992 views
3 3 votes

 An application uses UDP to send 7300 bytes of data in a single message on a path with MTU 1500 and there is an error in one of the datagrams transmitted. The application is a reliable one and so retransmits the data again. If the same application is written to use TCP instead of UDP and there is an error in one of the datagrams transmitted, what is the difference in bytes retransmitted using UDP as compared to TCP

1 Answer

1 1 vote
Data send by udp =14600 (two times )

Data sent by TCP (7300 + 1500) =8800

Difference =5800

Since Udp is being used there is no reciever window and buffer that will store out of order datagrams and since its given that the application is relaible it retransmits the whole message again.

 

Now Tcp has got buffer at reciving window that stores out of order segemants.

Assuming a datagram of 1500 bytes (MTU) is having error,the rest will be stored and ack will be generated for this missing segement.Thus only this 1 would be retransmitted by the sender (after RTO or recieving 3 consective Ack's)
edited by
Position:
Show:

Related questions

0 0 votes
1 1 answer
972
972 views
soumayan bandhu asked Sep 15, 2018
972 views
Is packets come to destination in order for both TCP and UDP?
1 1 vote
2 2 answers
1.0k
1.0k views
sh!va asked Mar 10, 2017
1,035 views
The transport layer protocol used for real time multimedia, file transfer, DNS and e-mail respectively are(a) TCP, UDP, UDP and TCP(b) UDP, TCP, UDP and TCP(c) UDP, TCP, ...
2 2 votes
2 answers 2 answers
3.0k
3.0k views
reena_kandari asked Feb 8, 2017
3,017 views
Consider a scenario where UDP receiver computes the Internet checksum for the received UDP segment and finds that it matches the value carried in the checksum field.Which...