In a TCP connection, the initial sequence number at the client site is 2,171. The client opens the connection, sends only one segment carrying 1,000 bytes of data, and closes the connection. What is the value of the sequence number in each of the following segments sent by the client?
a. The SYN segment?
b. The data segment?
c. The FIN segment?
explain for full credit

Respuesta :

Answer:

a. 2171

b. 2172

c .3172

Explanation:

a . As we know that sequence number is 32 bits has a two responsibility

  • When the SYN flag is set to the value 1 then that is the number of a initial list. That sequence number +1 is then the sequence number of the real initial data bit.
  • When the SYN flag is set to the value 0 then for the current session is equals to the average sequence number of this section's initial data Bit.

Initially the sequence number at the client site is 2,171 that is equals to the he SYN segment i.e 2171.

b  The data segment is determined by the following formula

[tex]=sequence \ number\ in\ the\ client site\ +\ 1[/tex]

[tex]=2,171 +1[/tex]

[tex]=2172[/tex]

c As mention in the question there are  1,000 bytes of data,

so  FIN segment can be determined by the

[tex]=2171+1000+1[/tex]

[tex]=3172[/tex]