Question

In: Computer Science

Host A and B are communicating over a TCP connection. The initial sequence number at Host...

Host A and B are communicating over a TCP connection. The initial sequence number at Host A is 2171. Host A opens the connection, sends three segments, the second of which carries 400 bytes of data, and closes the connection. In the segment sent by Host A, source port number is 303, and the destination port number is 80.

) What is the value of the sequence number of the SYN segment? (1.5 marks) )

What is the value of the sequence number of the data segment? in the acknowledgment of the second segment,what is the acknowledgment number, the source port number, and the destination port number?

) What is the value of the sequence number of the FIN segment? (1.5 marks)

Solutions

Expert Solution

Hello,

TCP 3 way handshake in TCP/IP process is a set for process for communication, between client-server or host-Host.

  1. SYN is used to initiate a connection.
  2. ACK is an acknowledgement that other side has received the SYN
  3. SYN-ACK is the SYN bit from the sender with the acknowledgment of the earlier data.
  4. FIN is for terminating the connection
  • What is the value of the sequence number of the SYN segment?

While beginning the communication, as an initial step the connection needs to be established. The Host A will send a SYN segment with a sequence number and informs the Host B about the communication to be made. This sequence number indicate the initial sequence number of the data that will be transferred.

So, the Value of the sequence number of the SYN segment is 2171

  • What is the value of the sequence number of the data segment? in the acknowledgment of the second segment, what is the acknowledgment number, the source port number, and the destination port number? (3 marks)

Now second segment sends 400 bytes of data – new sequence number= 2171+400 = 2571

The acknowledgement of the second data segment will be the received sequence number incremented by 1 = 2572

The source port number is 80 and the destination port number is 303

  • What is the value of the sequence number of the FIN segment? (1.5 marks)

FIN segment is used to terminate the connection, which carries no sequence number.

The FIN segment can be sent with the last data segment transferred.


Related Solutions

Host A and B are communicating over a TCP connection. The initial sequence number at Host...
Host A and B are communicating over a TCP connection. The initial sequence number at Host A is 2171. Host A opens the connection, sends three segments, the second of which carries 400 bytes of data, and closes the connection. In the segment sent by Host A, source port number is 303, and the destination port number is 80. ) What is the value of the sequence number of the SYN segment? (1.5 marks) ) What is the value of...
Hosts A and B are communicating over a TCP connection and Host B has already received...
Hosts A and B are communicating over a TCP connection and Host B has already received from A all bytes up through byte 126. Suppose Host A then sends two segments to Host B back-to-back (See the figure below). The first and second segments contain 80 and 40 bytes of data respectively. In the first segment, the sequence number is 127, the source port number is 302, and the destination port number is 80. Host B sends an acknowledgment whenever...
Hosts A and B are communicating over a TCP connection, and Host B has already received...
Hosts A and B are communicating over a TCP connection, and Host B has already received from A all bytes up through byte 126. Suppose Host A then sends two segments to Host B back-to-back. The first and second segments contain 80 and 40 bytes of data, respectively. In the first segment, the sequence number is 127, the source port number is 302, and the destination port number is 80. Host B sends an acknowledgment whenever it receives a segment...
Explain the significance of the following in a TCP segment: 1) sequence number 2)Acknowledgement number 3)...
Explain the significance of the following in a TCP segment: 1) sequence number 2)Acknowledgement number 3) Window 4) SYN Flag 5) FIN Flag
Consider the TCP connection mechanism.    i. What mechanism is used to set up a TCP...
Consider the TCP connection mechanism.    i. What mechanism is used to set up a TCP connection? ii. Why is the mechanism needed? iii. Outline how the mechanism works with a diagram. iv.CLASSFULL AND CLASSLESS IP
Using a TCP SYN spoofing attack, the attacker aims to flood the table of TCP connection...
Using a TCP SYN spoofing attack, the attacker aims to flood the table of TCP connection requests on a system so that it is unable to respond to legitimate connection requests. Consider a server system with a table for 256 connection requests. This system will retry sending the SYN-ACK packet five times when it fails to receive an ACK packet in response, at 30 second intervals, before purging the request from its table. Assume that no additional countermeasures are used...
Using a TCP SYN spoofing attack, the attacker aims to flood the table of TCP connection...
Using a TCP SYN spoofing attack, the attacker aims to flood the table of TCP connection requests on a system so that it is unable to respond to legitimate connection requests. Consider a server system with a table for 256 connection requests. This system will retry sending the SYN-ACK packet five times when it fails to receive an ACK packet in response, at 30 second intervals, before purging the request from its table. Assume that no additional countermeasures are used...
Both TCP and RTP use sequence numbers. Investigate whether or not the sequence numbers in the...
Both TCP and RTP use sequence numbers. Investigate whether or not the sequence numbers in the TCP and RTP protocols play the same role.
What role does TCP play during HTTP requests? Is TCP a connection-oriented protocol? Explain in details....
What role does TCP play during HTTP requests? Is TCP a connection-oriented protocol? Explain in details. Also, show your knowledge about layers.
In an organization there are four Hosts (i.e. Host A, Host B, Host C and Host...
In an organization there are four Hosts (i.e. Host A, Host B, Host C and Host D) connected to a Router (i.e. Router0). Explain in your own words (a) what happens when each of the four Hosts send a broadcast (b) How many broadcast domains are on the Router0? (c) If the Router (i.e. Router0) is replaced by a hub, how many broadcast domains are on the hub? (d) If the Router (i.e. Router0) is replaced by a switch, how...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT