Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

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

Explain a business process you are familiar with describe

Explain a business process you are familiar with. Describe how a computer-based information system is related (or used) in this business process. Explain how a computer-based information systems can improve the efficienc ...

Question squareroot write a function to determine the

Question : squareroot Write a function to determine the squareroot of a number. The squareroot of a number can be approximated by repeated calculation using the formula NG = 0.5(LG + N/LG) where NG stands for the next gu ...

What are the best practices to follow for microsoft windows

What are the best practices to follow for Microsoft Windows network security. Which two would you start with and why?

Can someone help solve this problem in lisp-programming

Can someone help solve this problem in Lisp-Programming language? More specifically in DrRacket. Exercise: A professor keeps the quiz grades of a student in a non-empty vector of non-negative numbers. Write a function th ...

Item 4 is the tester program for implementing the amusement

Item 4 is the tester program for implementing the Amusement Park. I am looking for an Amusement Park Tester program that is in Java. None of the answers included the tester program! I need to: Design a tester class calle ...

Suppose a program has a button with the caption quit

Suppose a program has a button with the caption "Quit" Suppose also that Name property of this button is btnQuit. Write a btnQuit_Click event precede that gives the user a second chance before ending the program. The prt ...

What are the key channels by which fiscal policy affects

What are the key channels by which fiscal policy affects output in a closed versus open economy? Using the models studied in class, discuss what is meant by "crowding out", and how the crowding out effect works in an ope ...

Give a recursive algorithm that generates a similar series

Give a recursive algorithm that generates a similar series of coins for changing n cents. Don't use dynamic programming for this problem.

If 1220 grams of rbcl are dissolved in water to make a

If 12.20 grams of RbCl are dissolved in water to make a solution of0.223 L, the density is found to be 1.040 g/cm 3 . Calculate the molality of the solute.

Explain the differences between working in the web based

Explain the differences between working in the web based version of Outlook in Office 365 to the desktop application version of Outlook.

  • 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