c) In a TCP connection, the initial sequence number at the client site is 2717. The client opens the connection, sends three segments, the second of which carries 1000 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? [2 Marks] i) The SYN segment ii) The data segment iii) The FIN segment
Question
c) In a TCP connection, the initial sequence number at the client site is 2717. The client opens the connection, sends three segments, the second of which carries 1000 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? [2 Marks] i) The SYN segment ii) The data segment iii) The FIN segment
Solution
i) The SYN segment: The initial sequence number is 2717. So, the sequence number of the SYN segment is also 2717.
ii) The data segment: The SYN segment consumes one sequence number, so the sequence number for the data segment is 2717 + 1 = 2718.
iii) The FIN segment: The data segment carries 1000 bytes of data, so it consumes 1000 sequence numbers. Therefore, the sequence number for the FIN segment is 2718 + 1000 = 3718.
Similar Questions
Suppose Host A sends two TCP segments back-to-back to Host B over a TCPconnection. The first segment has sequence number 90. The second has sequencenumber 110.I. How much data is in the first segment?(2 marks)II. Suppose that the first segment is lost but the second segment arrives at B. Whatwill be the acknowledgment number in the acknowledgment that Host B sends toHost A?
TCP segment format. For the given function of a field in the TCP segment, select the name of that field from the pull-down list.Group of answer choicesThis field contains the port number associated with the sending socket for this TCP segment.This field contains application data that was written into a socket by the sender of this TCP segment.This field contains the index in the sender-to-receiver byte stream of the first byte of that data in the payload carried in this segment.This field contains the index in the byte stream of the next in-order byte expected at the receiverIf set, this segment cumulatively ACKs all data bytes up to, but not including, the byte index in the ACK value field of this segment.This field contains the number of available bytes in the TCP receiver’s buffer.This field contains the Internet checksum of the TCP segment and selected fields in the IP datagram header.This field contains the number of bytes in the TCP header.
Consider the figure below, where a TCP sender sends 8 TCP segments at t = 1, 2, 3, 4, 5, 6, 7, 8. Suppose the initial value of the sequence number is 0 and every segment sent to the receiver each contains 100 bytes. The delay between the sender and receiver is 5 time units, and so the first segment arrives at the receiver at t = 6. The ACKs sent by the receiver at t = 6, 7, 8, 10, 11, 12 are shown. The TCP segments (if any) sent by the sender at t = 11, 13, 15, 16, 17, 18 are not shown.The segment sent at t=4 is lost, as is the ACK segment sent at t=7.What is the sequence number of the segment sent at t=2? What is the ACK value carried in the receiver-to-sender ACK sent at t = 6? What is the ACK value carried in the receiver-to-sender ACK sent at t = 8? What is the ACK value carried in the receiver-to-sender ACK sent at t = 10?
TCP sequence numbers and ACKs (2). Suppose that as shown in the figure below, a TCP sender is sending segments with 100 bytes of payload. The TCP sender sends five segments with sequence numbers 100, 200, 300, 400, and 500. Suppose that the segment with sequence number 300 is lost. The TCP receiver will buffer correctly-received but not-yet-in-order segments for later delivery to the application layer (once missing segments are later received). Complete the sentences below ....After receiving segment 100, the receiver responds with an ACK with value: After receiving segment 200, the receiver responds with an ACK with value: After receiving segment 500, the receiver responds with an ACK with value: After receiving the retransmitted segment 300, the receiver responds with an ACK with value:
Which segment is sent by the client to synchronize sequence numbers during the three-way handshaking process?ACK segmentSYN + ACK segmentFIN segmentSYN segmentPreviousSave & Next
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.