Lab 4a 2210220
Lab 4a 2210220
MSSV : 2210220
Lớp : L07
LAB 4A
(Using the file tcpethereal-trace-1)
1. Capturing a bulk TCP transfer from your computer to a remote server
Question 3: What is the IP address and TCP port number used by your client
computer (source) to transfer the file to gaia.cs.umass.edu?
ANSWER:
(use sample file)
3. TCP Basics
Question 4: What is the sequence number of the TCP SYN segment that is used to
initiate the TCP connection between the client computer and gaia.cs.umass.edu?
What is it in the segment that identifies the segment as a SYN segment?
ANSWER:
TCP SYN segment: 0
SYN Flags = 1 -> segment as SYN segment
Question 5: What is the sequence number of the SYNACK segment sent by
gaia.cs.umass.edu to the client computer in reply to the SYN? What is the value of
the Acknowledgement field in the SYNACK segment? How did gaia.cs.umass.edu
determine that value? What is it in the segment that identifies the segment as a
SYNACK segment?
ANSWER:
Sequence number of the SYNACK segment: 0
SYNACK segment: SYN flag = ACK flag = 1
*The gaia.cs.umass.edu server adds 1 to the initial sequence number of the SYN
segment from the client computer. For this case, the initial sequence number of the
SYN segment from the client computer is 0, thus the value of the
acknowledgement field in the SYN_ACK segment is 1. A segment will be
identified as a SYN_ACK segment if both SYN flag and ACKnowledgement flag
in the segment are set to 1.
Question 6: What is the sequence number of the TCP segment containing the
HTTP POST command? Note that in order to find the POST command, you’ll
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.
ANSWER:
Sequence number of the TCP segment: 1
Question 7: Consider the TCP segment containing the HTTP POST as the first
segment in the TCP connection. What are the sequence numbers of the first six
segments in the TCP connection (including the segment containing the HTTP
POST)? At what time was each segment sent? When was the ACK for each
segment received?
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? What is the EstimatedRTT value (see Section 3.5.3, page 242 in
text) after the receipt of each ACK?
ANSWER:
TCP segment 1-6:
+ Packet: 4, 5, 7, 8, 10, 11
+ ACK: 9, 12, 14, 15, 16, 17
+ Sequence number: 1, 566, 2026, 3486, 4946, 6406
Question 10: Are there any retransmitted segments in the trace file? What did you
check for (in the trace) in order to answer this question?
ANSWER:
No there is no retransmitted segments in the trace file.
Question 11: How much data does the receiver typically acknowledge in an ACK?
Can youidentify cases where the receiver is ACKing every other received segment
(see Table 3.2 on page 250 in the text).
ANSWER:
*ACK data = ACK sequence number - ACK sequence number
Question 12: What is the throughput (bytes transferred per unit time) for the TCP
connection? Explain how you calculated this value.
ANSWER:
Amount of data transmitted 181283
Through-put = time incurred
= 26.221522−20.596858 =32230 bytes / s