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...
Host A and B are communicating over a TCP connection, and Host B has already received...
Host A and B are communicating over a TCP connection, and Host B has already received from A all bytes up through byte 99. Suppose Host A then sends two segments to Host B back-to-back. The first and second segments contain 30 and 70 bytes of data, respectively. In the first segment, the sequence number is 100, the source port number is 4321, and the destination port number is 80. Host B sends an ACK whenever it receives a segment...
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...
Consider sending a large file from a host to another over a TCP connection that has...
Consider sending a large file from a host to another over a TCP connection that has no loss. Suppose TCP uses AIMD for its congestion control without slow start. The initial MSS=4 and cwnd increases by 1 MSS every time a batch of ACKs is received. Assume approximately constant round-trip times. a. how long does it take for cwnd increase from 5 MSS to 9 MSS (assuming no loss events)? b. What is the average throughout (in terms of MSS...
Suppose there are 4 routers in sequence between Host A and Host B, all of which...
Suppose there are 4 routers in sequence between Host A and Host B, all of which use store-and-forward routing. What is the total end-to-end delay for a packet originating from Host A with destination Host B, under the following conditions. ◘ Each of the link transmission rates are 9.4 Mbps ◘ The total distance from Host A to Host B along its path of transmission is123.4 km ◘ The speed of propagation through the transmission medium is is 2.5 x...
A client sends a TCP segment to the server with Sequence Number 1400 and the payload...
A client sends a TCP segment to the server with Sequence Number 1400 and the payload included in the segment is 1399 bytes long. - A. What is the ACK Number in the acknowledgement that is returned from the server? - B. Assume this packet is lost but the following packet is received. What is the ACK Number in the acknowledgement that is returned from the server for this packet? - C. Provide a detailed explanation for part B.
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...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT