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 Digital Logic computer-networks + – resuscitate 992 views answer comment Share Follow Print See 1 comment 1 1 comment reply Sumit1311 commented Jan 14, 2016 reply Follow flag Do we have to consider standard header lengths? 0 0 replyShare Please log in or register to add a comment.
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) Furqan Khan answered Jan 14, 2016 • edited Jan 14, 2016 by Furqan Khan Furqan Khan comment Share Follow See all 3 Comments 3 3 Comments reply Sumit1311 commented Jan 14, 2016 reply Follow flag Don't we need to consider header lengths(Standard in TCP and UDP)? 0 0 replyShare Furqan Khan commented Jan 14, 2016 reply Follow flag It says that 1 of the data gram has got some error.So the error is in IP packet and since the MTU is 1500 and no info is given about size of TCP or IP header ,so that's why did not consider it (it could be anything between (20-60 B) 0 0 replyShare Sumit1311 commented Jan 14, 2016 reply Follow flag Okay....... Thanks. 0 0 replyShare Please log in or register to add a comment.