507 views
3 votes
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 votes
1 votes
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

Related questions

0 votes
0 votes
1 answer
2
soumayan bandhu asked Sep 15, 2018
477 views
Is packets come to destination in order for both TCP and UDP?
1 votes
1 votes
1 answer
3
sh!va asked Mar 10, 2017
622 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, ...