Question

Networking problem help Consider the following TCP session between hosts A and host B on a...

Networking problem help Consider the following TCP session between hosts A and host B on a perfect channel: A has a file of size 2.5MSS to send to B. A desires to send segments of alternating sizes MSS and MSS/2 (sequence number = 0 for the first segment of size MSS). B also has a file of size 2.5MSS to send to A. B desires to send segments of alternating sizes MSS/2 and MSS (sequence number = 0 for the first segment of size MSS/2).

A sends first.Note, A and B don’t have to fully fill up their “desired” segment size if there is no sufficient bytes to send, especially at the end of their conversation, where it is even possible for them to send a segment whose data size is equal to 0. Draw all the segment exchanges until the Both A and B think they don’t have any more bytes to send and there is no byte to acknowledge.

For each segment, clearly mark the sequence number, the ACK number, and the size of data it carries. If the data size is equal to 0 in a segment, the sequence number field is irrelevant. You may just mark N/A.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Source port: 16 Bit number which identifies the Source Port number (Sending Computer's TCP Port).

Destination port: 16 Bit number which identifies the Destination Port number (Receiving Port).

Sequence number: 32 Bit number used for byte level numbering of TCP segments. If you are using TCP, each byte of data is assigned a sequence number. If SYN flag is set (during the initial three way handshake connection initiation), then this is the initial sequence number. The sequence number of the actual first data byte will then be this sequence number plus 1. For example, let the first byte of data by a device in a particular TCP header will have its sequence number in this field 50000. If this packet has 500 bytes of data in it, then the next packet sent by this device will have the sequence number of 50000 + 500 + 1 = 50501.

Acknowledgment Number: 32 Bit number field which indicates the next sequence number that the sending device is expecting from the other device.

Header Length: 4 Bit field which shows the number of 32 Bit words in the header. Also known as the Data Offset field. The minimum size header is 5 words (binary pattern is 0101).

Reserved: Always set to 0 (Size 6 bits).

Control Bit Flags: We have seen before that TCP is a Connection Oriented Protocol. The meaning of Connection Oriented Protocol is that, before any data can be transmitted, a reliable connection must be obtained and acknowledged. Control Bits govern the entire process of connection establishment, data transmissions and connection termination. The control bits are listed as follows: They are:

URG: Urgent Pointer.

ACK: Acknowledgement.

PSH: This flag means Push function. Using this flag, TCP allows a sending application to specify that the data must be pushed immediately. When an application requests the TCP to push data, the TCP should send the data that has accumulated without waiting to fill the segment.

RST: Reset the connection. The RST bit is used to RESET the TCP connection due to unrecoverable errors. When an RST is received in a TCP segment, the receiver must respond by immediately terminating the connection. A RESET causes both sides immediately to release the connection and all its resources. As a result, transfer of data ceases in both directions, which can result in loss of data that is in transit. A TCP RST indicates an abnormal terminination of the connection.

SYN: This flag means synchronize sequence numbers. Source is beginning a new counting sequence. In other words, the TCP segment contains the sequence number of the first sent byte (ISN).

FIN: No more data from the sender. Receiving a TCP segment with the FIN flag does not mean that transferring data in the opposite direction is not possible. Because TCP is a fully duplex connection, the FIN flag will cause the closing of connection only in one direction. To close a TCP connection gracefully, applications use the FIN flag.

Window: indicates the size of the receive window, which specifies the number of bytes beyond the sequence number in the acknowledgment field that the receiver is currently willing to receive.

Checksum: The 16-bit checksum field is used for error-checking of the header and data.

Urgent Pointer: Shows the end of the urgent data so that interrupted data streams can continue. When the URG bit is set, the data is given priority over other data streams (Size 16 bits).

In this lesson, you have learned different fields in Transmission Control Protocol (TCP) Segment Header and the use of these fields. The fields in Transmission Control Protocol (TCP) Segment Header are Source Port, Destination Port, Sequence Number, Acknowledgement Number, Header Length, Flags, Window Size, TCP Checksum and Urgent Pointer.

Add a comment
Know the answer?
Add Answer to:
Networking problem help Consider the following TCP session between hosts A and host B on a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Hosts A and B are communicating over a TCP connection, and Host B has already received from A all...

    Hosts A and B are communicating over a TCP connection, and Host B has already received from A all bytes up to and including byte 1029. Suppose Host A then sends three segments to Host B back-to-back. The first, second and third segments contain 1200, 150 and 80 bytes of data respectively. In the first segment, the sequence number is 1060, the source port number is 8080, and the destination port number is 80. Host B sends an acknowledgment whenever...

  • . Consider a TCP connection between Host A and Host B. Suppose that the TCP segments...

    . Consider a TCP connection between Host A and Host B. Suppose that the TCP segments traveling from Host A to Host B have source port number 37 and destination port number 61. What are the source and destination port numbers for the segments traveling from Host B to Host A? 
 . Suppose a process in Host C has a UDP socket with port number 6789. Sup- pose both Host A and Host B each send a UDP segment to...

  • Exercise 2. Suppose there are two hosts, S and R. They are communicating over a TCP...

    Exercise 2. Suppose there are two hosts, S and R. They are communicating over a TCP connection, and R has already received from S all bytes from 1 through 233. Now, Host S then sends three segments to Host R back to back. The segments size are 50, 70, and 90 bytes respectively. In the first segment, the source port number is 212 and the destination port number is 80. Host R sends an acknowledgement whenever it receives a segment...

  • 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 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...

  • suppose host A sends two TCP segments back to host B over a TCP connection. the...

    suppose host A sends two TCP segments back to host B over a TCP connection. the first segment has sequence number 30; the second has sequence number 50. how much data is in the first segment? suppose that the first segment is lost but the second segment is lost but the second segment arrives at B. in the acknowledgment that host B sends to host A, what will be the acknowledgment number? (5 marks) in TCP/IP

  • Let us say that the window size of a given TCP session is 1200 bytes and...

    Let us say that the window size of a given TCP session is 1200 bytes and the initial sequence number is 512, Assume that the following segments have been sent (the segment marked with an X has been lost) Host B Host A 400 bytes 400 bytes 400 bytes Assuming that expectational acknowledgements are being used, give the expectational acknowledgement number that is sent back to Host A.

  • Consider a Host X sending three segments of 100 bytes of data each to Host Y...

    Consider a Host X sending three segments of 100 bytes of data each to Host Y over a TCP connection. Assume Host Y has no data to send to X. Suppose the sequence number is initially S = 90 and the acknowledgement number is initially A = 160. If the first segment is lost, show the exchange of all three segments between X and Y to achieve reliable data transfer. Draw the bounce diagram.

  • PLEASE HELP WITH THESE COMPUTER NETWORK QUESTIONS THESE INCLUDE MCQS AND CALCULATIONS With reference to the...

    PLEASE HELP WITH THESE COMPUTER NETWORK QUESTIONS THESE INCLUDE MCQS AND CALCULATIONS With reference to the Go-Back-N and Selective repeat protocols, what does the window value signify? The packets that have already been ACKed The packets sent but remain unACKed The sequence numbers available and not yet sent The sequence numbers of packets not yet available None of the above 1 points    QUESTION 2 Which of the following is NOT a component of the TCP congestion control algorithm? Slow...

  • (networking):if Host A wants to deliver a 12 bits segment to host B, and the sequence...

    (networking):if Host A wants to deliver a 12 bits segment to host B, and the sequence number of the previous bit sent is 82: a)assuming that the segment reached its destination - what would be the serial number sent in the confirmation? b)assuming that the confirmation was lost. how would the TCP protocol recover from the loss? c)assuming that host B wanted to transmit data just after receiving the segment in the original question, is it possible to know what...

  • TCP headers and segmentation (B) 10. Which of the following flelds in the UDP header Is...

    TCP headers and segmentation (B) 10. Which of the following flelds in the UDP header Is NOT found in the TCP header? source port destination port checksum length 11. The value of the acknowledgement field in a TCP segment defines Number of bytes to retransmit Number of bytes to receive Starting point of next bytes to receive in sequence Total number of bytes left 12. Suppose Host A sends one segment with sequence number 38 and 4 bytes of data...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT