Professional Documents
Culture Documents
For this lab assignment, you will solve problems based on TCP and UDP.
Grading Criteria:
This assignment has 0 points (with weightage of 0% in your overall 100 points). However, you are
required to complete and get it checked by course TAs before the next lab.
In this section, well investigate the behaviour of the TCP protocol by analysing a trace of the
TCP segments sent and received in transferring a 150KB file from your computer to a remote
server. The study will involve TCPs use of sequence and acknowledgement numbers for
providing reliable data transfer; TCP connection setup and performance (throughput and round-
trip time) of the TCP connection between your computer and the remote server.
4. What is the sequence number of the SYNACK segment sent by remote server to the client
computer in reply to the SYN? What is the value of the Acknowledgement field in the
SYNACK segment? How did remote server determine that value? What is it in the segment
that identifies the segment as a SYNACK segment?
5. What is the sequence number of the TCP segment containing the HTTP POST command? Note
that in order to find the POST command, youll need to dig into the packet content field at the
bottom of the Wireshark window, looking for a segment with a POST within its DATA field.
Sequence number: 1
6. Consider the TCP segment containing the HTTP POST as the first segment in the TCP
connection:
a) What are the sequence numbers of the first six segments in the TCP connection (including
the segment containing the HTTP POST)?
a. Segment 1: 1
b. Segment 2: 566
Computer Networks - Lab Assignment 7
c. Segment 3:2026
d. Segment 4: 3486
e. Segment 5: 4946
f. Segment 6: 6046
b) At what time was each segment sent?
a. Segment 1: 0.026477
b. Segment 2: 0.041737
c. Segment 3: 0.054026
d. Segment 4: 0.054690
e. Segment 5: 0.077405
f. Segment 6: 0.078157
c) When was the ACK for each segment received?
a. Segment 1: 0.053937
b. Segment 2: 0.077294
c. Segment 3: 0.124085
d. Segment 4: 0.169118
e. Segment 5: 0.217299
f. Segment 6: 0.267802
d) Given the difference between when each TCP segment was sent, and when its
acknowledgement was received, what is the RTT value for each of the six segments?
SUBTRACT b) from c)
1. 0.053937-0.026477
2. 0.035557
3. 0.070059
4. 0.11443
5. 0.13989
6. 0.18964
e) What is the length of each of the first six TCP segments?
7. What is the minimum amount of available buffer space advertised at the received for the entire
trace? Does the lack of receiver buffer space ever throttle the sender?
MINIMUM amount of buffer is 5840 bytes found in first acknowledgment.
Receiver window grows steadily until max buffer sizer of 62780 is reached.
8. Are there any retransmitted segments in the trace file? What did you check for (in the trace) in
order to answer this question?
There are no retransmitted segments in the trace file. We can verify this by checking the
sequence numbers of the TCP segments in the trace file. In the Time-Sequence-Graph
(Stevens) of this trace, all sequence numbers from the source (192.168.1.102) to the
destination (128.119.245.12) are increasing monotonically with respect to time. If there is
a retransmitted segment, the sequence number of this retransmitted segment should be
smaller than those of its neighbouring segments
9. How much data does the receiver typically acknowledge in an ACK? Can you identify cases
where the receiver is ACKing every other received segment?
Computer Networks - Lab Assignment 7
10. What is the throughput (bytes transferred per unit time) for the TCP connection? Explain how
you calculated this value
1. Select one UDP packet (DNS uses UDP) from your trace. From this packet, determine how many
fields there are in the UDP header. Name these fields.
2. Determine the length (in bytes) of each of the UDP header fields.
The UDP header has a fixed length of 8 bytes. Each of these 4 header fields is 2 bytes long.
3. The value in the Length field is the length of what? Verify your claim with your captured UDP
packet.
The length field specifies the number of bytes in the UDP segment (header plus
data). An explicit length value is needed since the size of the data field may differ
from one UDP segment to the next. The length of UDP payload for selected
packet is 32 bytes. 40 bytes - 8 bytes = 32 bytes
4. What is the maximum number of bytes that can be included in a UDP payload?
The maximum number of bytes that can be included in a UDP payload is (2^16 1)
bytes plus the header bytes. This gives 65535 bytes 8 bytes = 65527 bytes.
The IP protocol number for UDP is 0x11 hex, which is 17 in decimal value
7. Examine a pair of UDP packets in which your host sends the first UDP packet and the second UDP
packet is a reply to this first UDP packet. Describe the relationship between the port numbers in the
two packets.
The source port of the UDP packet sent by the host is the same as the destination
port of the reply packet, and conversely the destination port of the UDP packet sent
by the host is the same as the source port of the reply packet.
Reference:
1. Computer Networking: A Top-Down Approach, 7th ed. J.F. Kurose and K.W. Ross