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

Given : -

Looking from the prospective of Host A the following things are given.

Initial sequence number = 2171.

size of 2nd segments = 400 bytes.

source port no = 303.

destination port no = 80.

As per understanding Host A is client and Host B is server.

a) The value of the sequence number of the SYN send by host A = seq no of 1st segments ie 2171.

b) The value seq no of the data segments are following : -

The value of 1st data segment sequence no = 2171 ie (intial seq no).

The value of 2nd data segment sequence no = 1st segment sequence no + destination port no ie 2171 + 80 = 2251.

The value of 3rd data segment sequence no = 2nd segment sequence no + size of 2nd segments ie 2251 + 400 = 2651.

c) The acknowledgment number of 2nd segments, the source port number, and the destination port number is following: -

As the acknowledgment is send by Host B (server).So,now the source is Host B .therefore the source port no is 80,destination port no will be 303 and ACK No = sequence no of 2nd data segment send by Host A + size of 2nd segment ie 2251 + 400 = 2651.

d) The value of the sequence number of the FIN segment is following: -

FIN segment is requested by the client ie Host A.To initiates the closing procedure.FIN is basically a Bit flag has value 0 or 1.

Here in the question it is written that after sending of 3 data segments the connection closes.So the Value of FIN flag is set to 1.


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