TCP sequence number

tcp

I would like to know if two segments of same sequence number arrive at the destination, which segment will get accepted ?

For eg:

A clients sends a packet to a server and wait for an acknowledgement . But it didnt received the ack(due to some network problem , this segment takes time to reach the server) within the timeline so starts sending the same segment again. Now at server side, what happens if the both the packets reach at the same time.

Best Answer

One packet gets marked as a duplicate and discarded. Since they're identical, it doesn't matter which one that is. See https://stackoverflow.com/questions/12871760/packet-loss-and-packet-duplication

Related Topic