996 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

541
views
2 answers
1 votes
asu asked Jul 11, 2016
541 views
WHY DO YOU THINK FRAGMENTATION IS ABANDONED IN IPV6
246
views
0 answers
0 votes
asu asked Jul 11, 2016
246 views
2.3k
views
2 answers
2 votes
Arjun asked Feb 16
2,340 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 due to ...
2.1k
views
1 answers
2 votes
Arjun asked Feb 16
2,149 views
​$\mathrm{TCP}$ client $\mathrm{P}$ successfully establishes a connection to $\text{TCP}$ server $\mathrm{Q}$. Let $\text{N}_{P}$ denote the sequence number in the $\te...