Skip to content

Implementation of ARQ on top of UDP sockets in C.

Notifications You must be signed in to change notification settings

prateekgargX/ARQ-UDP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ARQ-UDP

We are implementing ARQ on top of UDP sockets. We have used Stop and Wait algorithm.

To emulate network delay, on linux machine you can use:

sudo tc qdisc add dev lo root netem delay <Delay_in_miliseconds>

assuming lo is your loopback device but you should use ip addr to get yours.

to compile,

gcc sender.c -o sender
gcc receiver.c -o receiver

To run the program,

./sender <SenderPort> <ReceiverPort> <RetransmissionTimer> <NoOfPacketsToBeSent>
./receiver <ReceiverPort> <SenderPort> <PacketDropProbability>

Ex: ./sender 8080 4040 100 4 and ./receiver 8080 4040 0.6

Note that NoOfPacketsToBeSent < 99999 and RetransmissionTimer > 2*Delay_in_miliseconds

After execution, two files containing output, sender.txt and receiver.txt will be produced

About

Implementation of ARQ on top of UDP sockets in C.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages