5,835 views
7 votes
7 votes
Imagine a TCP connection is transferring 6000B. First Byte is numbered as 10010.The sequence number of the last byte sent,if data are sent in 5 segments with the first 4 segments carrying 1000B and last segement carrying 2000B are ?

1 Answer

Best answer
10 votes
10 votes

A TCP connection is transferring $6000B$.

  • First Byte is numbered as $10010$ as sequence number and carries $1000B$.
  • Second byte starts from $10010 + 1000 - 1= 11010$ as sequence number 
  • Similarly, third byte from $12010$.
  • Third byte from $13010$.
  • Last byte has sequence number = $14010$ which carries $2000B$

This procedure is done for "If each segment is encapsulated with sequence number", but question asks for each byte,so.


Now, each byte gets a sequence number and sequence number of last segment => $10010 + 6000 - 1$ => 16009$ is the last byte sent .

selected by

Related questions

2 votes
2 votes
1 answer
2
iarnav asked Jan 27, 2018
499 views
what is the difference between round trip time and propagation delay in tcp/ip protocol? is RTT = 2 * TP ?
7 votes
7 votes
2 answers
3
rahul sharma 5 asked Aug 16, 2017
1,651 views
Consider TCP congestion control. Assuming RTT as 4 seconds and segment size as 3KB, if bandwidth is 500kbps, what is the smallest window size for which there is no stalli...