0% found this document useful (0 votes)
6 views

Lab Mid

Uploaded by

oman butt
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Lab Mid

Uploaded by

oman butt
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

EE432 Computer Network

Lab mid Exam Time: 90 Mints


Roll No:
Name: Marks: 20

Question 1: (2 Marks)

Finding IP address of your machine in Wireshark: What is the Internet address (or the IP address) of the
‘uet.edu.pk’? What is the Internet address of your computer? How did you find in Wireshark?

Question 2: (2 Marks)

Finding IP address of your machine without Wireshark: Note the IP address of your machine manually
by typing ipconfig on the DOS prompt. Is the IP address of your machine the same as noted in question 1?
Question 3: (6 Marks)

Procedure
Follow the steps below to complete this exercise and to provide answers to the questions below:
• Start up your web browser.
• Start up the Wireshark packet sniffer, (but don’t yet begin packet capture). Enter “http” (just the letters, not
the quotation marks) in the display-filter-specification window, so that only captured HTTP messages will be
displayed later in the packet-listing window. (We’re only interested in the HTTP protocol here, and don’t
want to see the clutter of all captured packets).
• Wait a bit more than one minute (we’ll see why shortly), and then begin Wireshark packet capture.
• Enter the following to your browser http://gaia.cs.umass.edu/wireshark-labs/HTTP-wireshark-
file1.html.Your browser should display the very simple, one-line HTML file.
• Stop Wireshark packet capture.
By looking at the information in the HTTP GET and response messages, answer the following questions.
Questions:

i. Which version of HTTP is the browser running 1.0 or 1.1? Which HTTP version is the server
running? Paste screenshots and accompanying text to answer this question.

ii. What languages (if any) does the browser indicate that it can accept to the server? Paste screenshot
(containing referenced item) and accompanying text to answer this question.

iii. When was the HTML file that you are retrieving last modified at the server? Describe how you
determined this.
Question 4: (4 Marks)

Procedure
1. Use ipconfig to empty the DNS cache in your host.
2. Open your browser and empty your browser cache. (With Internet Explorer, go to Tools menu and
select Internet Options; then in the General tab select Delete Files.)
3. Open Wireshark and enter “ip.addr == your_IP_address” into the filter, where you obtain
your_IP_address with ipconfig. This filter removes all packets that neither originate nor are destined
to your host.
4. Start packet capture in Wireshark.
5. With your browser, visit the Web page: http://www.ietf.org
6. Stop packet capture.

i. Locate the DNS query and response messages. Are they sent over UDP or TCP (i.e., what transport
layer protocol is being used)? Paste a screenshot and use accompanying text to answer this question.

ii. What is the destination port for the DNS query message? What is the source port of DNS response
message? Paste a screenshot and use accompanying text to answer this question

iii. Examine the DNS response message. How many “answers” are provided? What do each of these
answers contain? Paste a screenshot and use accompanying text to answer this question.
Question 5: (6 Marks)

Procedure
Start up the Wireshark software.
Start up your favorite web browser, and type any site which uses the UDP packets for traffic flow in the
packet listing window.
Stopping the capture and inspecting captured packets: After your browser has displayed the page, stop
Wireshark packet capture.
Filter the UDP packets and answer the following questions.
Questions:
i. Select one packet and determine the source MAC address of that UDP packet.

ii. Select one packet and determine the destination MAC address of that UDP packet.

iii. Select one packet and determine how many fields are there in the UDP header.

iv. List the name of these fields.


v. From the packet content field, determine the length (in bytes) of each of the UDP header fields.

vi. What is the source and the destination port number of UDP packet.

You might also like