LabMMTTT NguyễnThanhBình 20ECE
LabMMTTT NguyễnThanhBình 20ECE
TECHNOLOGY
FACULTY OF ADVANCED SCIENCE AND TECHNOLOGY
***
2. How long did it take from when the HTTP GET message was sent until the
HTTP OK reply was received? (By default, the value of the Time column in the
packet listing window is the amount of time, in seconds, since Wireshark
tracing began. To display the Time field in time-of-day format, select the
Wireshark View pull down menu, then select Time Display Format, then select
Time-of-day.)
+ HTTP GET message sent at 10:32:07.396849
+ HTTP OK 0.337703 seconds when the HTTP GET message was sent until the
HTTP OK reply was received.
3. What is the Internet address of gaia.cs.umass.edu (also known as
wwwnet.cs.umass.edu)? What is the Internet address of your computer?
+ Internet address of the gaia.cs.umass.edu is 128.119.245.12
+ Internet address of my computer is 192.168.100.226
4. Print the two HTTP messages (GET and OK) referred to in question 2 above.
To do so, select Print from the Wireshark File command menu, and select the
“Selected Packet Only” and “Print as displayed” radial buttons, and then click
OK.
+ Two HTTP messages (GET and OK) had been exported as plain text.
WIRESHARK LAB: HTTP
2. What languages (if any) does your browser indicate that it can accept to the
server?
4. What is the status code returned from the server to your browser?
The status code returned from the server to my browser is 200 OK
5. When was the HTML file that you are retrieving last modified at the server?
The HTML file was last modified at the server on Monday, April 10, 2023,
05:59:01 GMT
7. By inspecting the raw data in the packet content window, do you see any
headers within the data that are not displayed in the packet-listing window? If
so, name one.
No. The raw data appears to match up exactly with what is shown in the packet-
listing window.
8. Inspect the contents of the first HTTP GET request from your browser to the
server. Do you see an “IF-MODIFIED-SINCE” line in the HTTP GET?
9. Inspect the contents of the server response. Did the server explicitly return
the contents of the file? How can you tell?
10. Now inspect the contents of the second HTTP GET request from your
browser to the server. Do you see an “IF-MODIFIED-SINCE:” line in the
HTTP GET6? If so, what information follows the “IF-MODIFIED-SINCE:”
header?
13. Which packet number in the trace contains the status code and phrase
associated with the response to the HTTP GET request? Packet number 151
14. What is the status code and phrase associated with the response to the HTTP
GET request?
The status code and phrase associated with the response to the HTTP GET
request is 200 OK.
15. How many data-containing TCP segments were needed to carry the single
HTTP response and the text of the Bill of Rights?
The images were downloaded serially because look at the time the get request
time for both of the image is different and the second image get requests were
sent after the first image were received so we can say that the requests and
response are done serially.
V. 5 HTTP Authentication
18. What is the server’s response (status code and phrase) in response to the
initial HTTP GET message from your browser?
HTTP/1.1 401 Authorization Required
19. When your browser sends the HTTP GET message for the second time,
what new field is included in the HTTP GET message?
Authorization
WIRESHARK LAB: TCP
I. A first look at the captured trace.
1. What is the IP address and TCP port number used by the client computer
(source) that is transferring the alice.txt file to gaia.cs.umass.edu? To answer
this question, it’s probably easiest to select an HTTP message and explore the
details of the TCP packet used to carry this HTTP message, using the “details of
the selected packet header window” (refer to Figure 2 in the “Getting Started
with Wireshark” Lab if you’re uncertain about the Wireshark windows).
3. What is the sequence number of the TCP segment containing the HTTP
POST command? Note that 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.
The sequence number of the TCP segment containing the HTTP Post command
is 1.
4. 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? Assume that the value of the EstimatedRTT
is equal to the measured RTT for the first segment, and then is computed using
the EstimatedRTT equation on page 242 for all subsequent segments.
The sequence number for segment 1 is 1.
5. What is the length of each of the first six TCP segments?
Length of the first TCP segment (containing the HTTP POST): 565 bytes
Length of each of the other five TCP segments: 1460 bytes
8. How much data does the receiver typically acknowledge in an ACK? Can
you identify cases where the receiver is ACKing every other received segment
(see Table 3.2 on page 250 in the text).
➔ 1460 Bytes
Can you identify cases where the receiver is ACKing every other received
segment (see Table 3.2 on page 250 in the text): No
9. What is the throughput (bytes transferred per unit time) for the TCP
connection? Explain how you calculated this value.
Here, First TCP segment is 1 bytes
And the last segment is 164091 bytes
So, Total data = 164091 – 1 = 164090 bytes
Transmission time for first segment = 0.026477 seconds
Transmission time for last segment = 5.455830 seconds
Difference = 5.455830 seconds - 0.026477 seconds = 5.429353seconds
Now the throughput is = 164090 / 5.429353= 30222.7539819 bytes/sec
WIRESHARK LAB: UDP
1. Select one UDP packet from your trace. From this packet, determine how
many fields there are in the UDP header. (You shouldn’t look in the textbook!
Answer these questions directly from what you observe in the packet trace.)
Name these fields.
4 field
5. What is the largest possible source port number? (Hint: see the hint in 4.)
The largest possible source port number is (2^16-1)=65535
6. What is the protocol number for UDP? Give your answer in both
hexadecimal and decimal notation. To answer this question, you’ll need to look
into the Protocol field of the IP datagram containing this UDP segment (see
Figure 4.13 in the text, and the discussion of IP header fields).
Protocol number in decimal is 17.
Protocol number in hexadecimal is 11.
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. (Hint: for
a second packet to be sent in response to a first packet, the sender of the first
packet should be the destination of the second packet). Describe the relationship
between the port numbers in the two packets.
The source port number from the source IP sends the request packet to the
destination IP’s destination port number. During the sending of a response, the
source IP that sent the request packet becomes the destination and it’s source
port becomes the destination port. The response sender’s IP and port number
turns to the source.
WIRESHARK LAB: Ethernet and ARP
2. What is the 48-bit destination address in the Ethernet frame? Is this the
Ethernet address of gaia.cs.umass.edu? (Hint: the answer is no). What device
has this as its Ethernet address? [Note: this is an important question, and one
that students sometimes get wrong. Re-read pages 468-469 in the text and make
sure you understand the answer here.]
The 48-bit destination address in the Ethernet frame is ea:94:3b:d7:a4:1c.
This is not the Ethernet address of gaia.cs.umass.edu. It is the mac address for
my router or internet gateway address.
3. Give the hexadecimal value for the two-byte Frame type field. What upper
layer protocol does this correspond to?
Type: IPv4 (0x0800)
4. How many bytes from the very start of the Ethernet frame does the ASCII
“G” in “GET” appear in the Ethernet frame?
After 432 bits or 54 bytes the G in get appears.
5. What is the value of the Ethernet source address? Is this the address of your
computer, or of gaia.cs.umass.edu (Hint: the answer is no). What device has this
as its Ethernet address?
The Source address is ea:94:3b:d7:a4:1c. This address is the address of my
router/internet gateway address.
6. What is the destination address in the Ethernet frame? Is this the Ethernet
address of your computer?
The Destination address is 6e:17:8b:3a:ad:78. This is the Ethernet address of my
computer.
7. Give the hexadecimal value for the two-byte Frame type field. What upper
layer protocol does this correspond to?
The two-byte frame type field is 0x0800. The protocol corresponds to TCP.
9. How many Ethernet frames (each containing an IP datagram, each containing
a TCP segment) carry data that is part of the complete HTTP “OK 200 ...” reply
message?
13. What is the hexadecimal value of the destination addresses in the Ethernet
frame containing the ARP request message sent out by your computer? And
what device (if any) corresponds to that address (e.g,, client, server, router,
switch or otherwise...)?
The hex value for the destination address is d2:66:8c:7f:72:ca.
14. What is the hexadecimal value for the two-byte Ethernet Frame type field.
What upper layer protocol does this correspond to?
The hexadecimal value is Type: ARP (0x0806)
15. How many bytes from the very beginning of the Ethernet frame does the
ARP opcode field begin?
It is 20 bytes from the beginning.
16. What is the value of the opcode field within the ARP-payload part of the
Ethernet frame in which an ARP response is made?
The value of the opcode field within the ARP-payload of the request is request
(1).
17. Does the ARP request message contain the IP address of the sender? If the
answer is yes, what is that value?
Yes, the value of IP address of the sender is 192.168.126.100.
18. What is the IP address of the device whose corresponding Ethernet address
is being requested in the ARP request message sent by your computer?
The IP address is 192.168.126.111
19. What is the value of the opcode field within the ARP reply message
received by your computer?
The value of the opcode field within the ARP reply message received is reply
(2).
20. Finally (!), let’s look at the answer to the ARP request message! What is the
Ethernet address corresponding to the IP address that was specified in the ARP
request message sent by your computer (see question 18)?
The Ethernet address corresponding to the IP address is c2:f7:7f:3a:61:5b
21. We’ve looked at the ARP request message sent by your computer running
Wireshark, and the ARP reply message sent in response. But there are other
devices in this network that are also sending ARP request messages that you can
find in the trace. Why are there no ARP replies in your trace that are sent in
response to these other ARP request messages?
There is no reply in this trace because we are not at the machine that sent the
request. The ARP request is broadcast, but the ARP reply is sent back directly
to the sender’s Ethernet address.