Ask Computer Engineering Expert

Assignment

Read the Wireshark Introduction document available on WesternOnline, and carry out the activities described in the document.

In this lab, we'll explore several aspects of the HTTP protocol:

the basic GET/response interaction, HTTP message formats, retrieving large HTML files, and retrieving HTML files with embedded objects.

Note: Only trace HTTP packets from the server TCP port 80. If you see SSDP packets being shown with an HTTP filter, ignore these, since these are from UDP ports. You may also ignore GET requests for "favicon.ico" as these are not strictly part of the web page transfer.

1. The Basic HTTP GET/response interaction

1. Start up your web browser.

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

3. Wait a bit more than one minute (we'll see why shortly), and then begin Wireshark packet capture.

4. Enter the following to your browser. Your browser should display the very simple HTML file.

5. Stop Wireshark packet capture.

Questions:

1. Is your browser running HTTP version 1.0 or 1.1? What version of HTTP is the server running?

2. What is the IP address and port number of your computer?

3. What is the physical address of your computer? Of the wiu server.

4. Inspect the HTTP header of the request packet and briefly describe the fields in it.

5. How many application bytes are being returned to your browser in the HTTP response? How many bytes of data are being returned (not including the HTTP header)?

2. The HTTP CONDITIONAL GET/response interaction

Before performing the steps below, make sure your browser's cache is empty. (To do this under Firefox, select Tools->Options and click on clear all current history, or for Internet Explorer, select Tools->Internet Options->Delete under Browsing History; these actions will remove cached files from your browser's cache.) Now do the following:

1. Start up your web browser, and make sure your browser's cache is cleared, as discussed above.

2. Start up the Wireshark packet sniffer

3. Enter the following URL into your browser


4. Click the refresh button on your browser

5. Stop Wireshark packet capture, and enter "http" in the display-filter-specification window, so that only captured HTTP messages will be displayed later in the packetlisting window.

Questions:

6. 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?

7. Inspect the contents of the server response. Did the server explicitly return the contents of the file? How can you tell?

8. 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 GET? If so, what information follows the "IF-MODIFIED-SINCE:" header?

9. What is the HTTP status code and phrase returned from the server in response to this second HTTP GET? Did the server explicitly return the contents of the file? Explain.

3. Retrieving Long Documents

In our examples thus far, the documents retrieved have been simple and short HTML files. Let's next see what happens when we download a long HTML file. Do the following:

1. Start up your web browser, and make sure your browser's cache is cleared, as discussed previously.

2. Start up the Wireshark packet sniffer.

 3. Enter the following URL into your browser should display the rather lengthy US Bill of Rights.

4. Stop Wireshark packet capture, and enter "http" in the display-filter-specification window, so that only captured HTTP messages will be displayed.

In the packet-listing window, you should see your HTTP GET message, followed by a multiple-packet response to your HTTP GET request. This multiple-packet response deserves a bit of explanation.

Recall that the HTTP response message consists of a status line, followed by header lines, followed by a blank line, followed by the entity body. In the case of our HTTP GET, the entity body in the response is the entire requested HTML file.

In our case here, the HTML file is rather long, and at 4700 bytes, is too large to fit in one TCP packet. The single HTTP response message is thus broken into several pieces by TCP, with each piece being contained within a separate TCP segment.

Questions:

10. How many TCP segments were sent for the HTTP GET request sent by your browser (ignore any requests for "favicon.ico")?

11. How many data-containing TCP segments were needed to carry the single HTTP response?

12. What is the status code and phrase associated with the response to the HTTP GET request?

4. HTML Documents with Embedded Objects

Now that we've seen how Wireshark displays the captured packet traffic for large HTML files, we can look at what happens when your browser downloads a file with embedded objects, i.e., a file that includes other objects (in the example below, image files) that are stored on another server(s).

Do the following:

1. Start up your web browser, and make sure your browser's cache is cleared, as discussed previously.

2. Start up the Wireshark packet sniffer.

3. Enter the following URL into your browser

Should display a short HTML file with three images. These images are referenced in the base HTML file. That is, the images themselves are not contained in the HTML; instead the URLs for the images are contained in the downloaded HTML file. As discussed in the textbook, your browser will have to retrieve these files from the indicated web sites.

4. Stop Wireshark packet capture, and enter "http" in the display-filter-specification window, so that only captured HTTP messages will be displayed.

Questions:

13. How many HTTP GET request messages were sent by your browser (ignore any requests for "favicon.ico")? To which Internet addresses were these GET requests sent?

14. Can you tell whether your browser downloaded the images serially (i.e., one after the other), or whether they were downloaded from the two web sites in parallel? Explain.

15. How many TCP connections were opened for the transfer of the page with the images to your browser? How can you tell?

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M93106369

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As