1,020 views

2 Answers

Best answer
6 votes
6 votes

UDP is a message oriented protocol whereas TCP is a byte oriented protocol . Hence TCP transfers a contiguous stream of bytes. TCP assigns a sequence number to each byte transmitted . The receiving TCP uses the sequence numbers to rearrange the segments when they arrive out of order . 

Good read ==>  http://ssfnet.org/Exchange/tcp/tcpTutorialNotes.html

TCP has a sequence number field of 32 bits and hence with each byte , it assigns sequence number (0 to 232 - 1) to uniquely identify each byte sent and received . So, as the sequence number clock count starts from 0 and goes upto 232 - 1, then it wraps around and again starts from 0 . Hence,  total time taken by sequence number clock to count from 0 to 232 -1 and then reversing back to 0 is called wrap around time .

A). TCP utilizes the full bandwidth = 40 gbps and each byte getting one sequence number ,so,

wrap around time = 232  B / (40/8) GBps = 0.858993 sec = 859 msec.

B). Now, an added time stamp field increments 1000 times every 859 msec .

So, 1 time in every 859 usec.

Also, 32 bit time stamp will count from (0 to 232 -1 ).

Hence , time taken by timestamp field to wrap will be ==> 232 X 859 usec ==>

3.68 X 1012 usec .

selected by
0 votes
0 votes

a))

Total Seq in TCP header=32 bit

Total byte=2^32 byte

1 byte take=1/5x10^9 sec

Then 2^32 will take=2^32/5x10^9=0.86 sec

Image result for tcp header format

Related questions

553
views
2 answers
1 votes
asu asked Jul 11, 2016
553 views
WHY DO YOU THINK FRAGMENTATION IS ABANDONED IN IPV6
252
views
0 answers
0 votes
asu asked Jul 11, 2016
252 views
73
views
1 answers
0 votes
Emankashyap asked Jun 9
73 views
Assume a TCP implementation over a 10Gbps link with one way dealy of 80ms if TCP receiver window size is 2MB and TCP send 1KB packet then how many RTT does it take until slow ... no loss of packet.a) 11 RTT b) 10 RTT c) 12 RTT d) 13 RTT
2.5k
views
2 answers
2 votes
Arjun asked Feb 16
2,509 views
Consider a $\text{TCP}$ connection operating at a point of time with the congestion window of size $12$ $\text{MSS}$ (Maximum Segment Size), when a timeout occurs ... window size (in $MSS$) during the third $\text{RTT}$ will be __________.