Assignment 4 (TDTS11): Analysis of popular sites

By Niklas Carlsson, January 2013

________________________________________________________________________

IMPORTANT: We want to remind you to read the complete instructions before starting this assignment.

Motivated by the concept of problem-based learning, the final assignment will involve a number of tasks of varying difficulty that may require that you identify and learn tools and techniques that are not explicitly taught in the course but if mastered (after some practice) may significantly simplify and speed up some of the tasks in this assignment.

Advice: After reading the instructions, we recommend that you first complete the "first" task and then make a careful game plan for attacking the remainder of the assignment. As you solve the various tasks you may also want to see if there are additional tools/knowledge/information that you need to obtain to more efficiently solve the different tasks.

________________________________________________________________________

First task [MUST]: Learning the tools

In your own words, please (concisely) explain what the following tools, sites, and/or services do and what information they may provide:

  1. traceroute (or potential Windows replacement)
  2. nslookup (dig, host, or similar - depending on system)
  3. alexa.com, compete.com, etc.
  4. arin.net, ripe.net, apnic.net, and lacnic.net
  5. Shell/script programming (e.g., bash) together with unix commands such as grep, sed, sort, and awk may be useful here.
  6. Other tools (including Wireshark) that you decide to use to solve this assignment.

Note that the 'man' pages on many systems can be valuable as an information source.

Recomendation: It is suggested that you each (on your own) study the above tools before the first time you and your lab partner start this assignment. When you first meet you should spend a few hours going through each tool and completing the above task. The time invested in learning the above tools is likely to be valuable for this assignment, and more importantly for the continuation of your carriers/education.

________________________________________________________________________

Second task [2pt]: Data collection

In this task you have two options: (i) collect your own trace, or (ii) find a person in the class who has collected a trace and borrow that trace. If you select option (ii) it should be clearly stated in your report who you borrowed the trace from. If you select option (i), please share the trace with your classmates. (Looking at each other's traces and/or comparing results may provide additional insights between differences observed, as well as help sanity check your results.)

The trace should be collected as follows: (1) Close down all applications that you have running. (2) Try to empty your local cache and any cookies that you may have on the local machine. (3) Start up Wireshark and begin a new capture (with Wireshark). (4) Start your favorite Web browser. (5) For the next 25 minutes, at the beginning of each new minute go to the main page of the i-th most popular site on the Internet according to alexa.com. In other words, you should visit the 25 most popular sites over the span of 25 minutes. (You should not click on any links, just go to the main page as defined at alexa.com.) (6) Allow for a few minutes for transactions to complete at the end of the trace period. (7) Stop capturing with Wireshark.

You should now have a trace in which the "front" page of the 25 most popular sites on the Internet (according to alexa.com) was visited.


Third task [2pt]: High-level data summary

  1. Please quantify how much additional content (both in terms of bytes and http transactions) were downloaded in addition to the 25 pages that you as a user explicitly requested. Does it differ much between sites?
  2. Can any of the http fields provide you insights to what content was "dragged along" with the 25 visited sites? For simplicity, let us define "dragged along" as served by a different domain. (You may also want to quantify how many http requests in total where caused by you making each request.)
  3. In addition to the 25 sites and the dragged along data, did you capture any other traffic to/from your computer? Please try to explain and categorize this traffic.


Fourth task [4pt]: Site performance of top 5 pages

For the top 5 pages, please answer and discuss the following questions. Note that you may need to use additional tools or complimentary information sources to answer some of the questions below. (Please also refer to the lectures notes for concepts such as RTT, hop count, etc.)

  1. What is the average response time of a http request?
  2. What is the average response time of a dns query?
  3. What is the average RTT for each type of content?
  4. Please comment on differences in RTT for different sites/content.
  5. What is the average observed download throughput?
  6. Can you estimate the load time (observed by the user)?


Fifth task [4pt]: Drag along content

Pick five pages that have many different http requests and answer the following questions.

  1. Can you specify what type of content that was "dragged along"?
  2. What is the average path length (e.g., hop count) of any of the drag-along content?
  3. What is the average path length (e.g., hop count) of any of the data initially requested?
  4. What are some of the most common "network owners" of the drag along content and where are these domains located?


Sixth task [2pt]: Popularity trends

  1. Which of the top-25 sites have gained the most relative popularity over the last year? If possible, please provide both statistical and visual support for your answer.


Seventh task [2pt]: The size of the Internet?

  1. Based on the above trace, would you be able to give an estimate of the diameter of the Internet? If so, what would it be and how did you obtain this estimate? If not, please explain your reasoning.
  2. Can you collect some alternative set of data to help answer this question? If so, please explain your approach (and provide an estimate, if possible).


Eight task [4pt]: Automate task 4 or 5

Can you automate tasks 4 or 5, such that solving the task for 500 pages essentially takes the same time as doing it for 1 page? For this task you should provide your automated solution (e.g., the script(s) or the source code for the program used for the data analysis and processing) and provide the answers for all 25 top-25 pages.


Ninth task [4pt]: Building your own Web crawler

In this task you should build your own Web crawler that explores the tree structure of the links (and objects that are used) at a given set of the Web sites. Your crawler should take a list of URL's as input and generate a tree structure of domains that are linked as output. For example, a site "www.foo.com" that have links to domains "bar1.com" and "bar2.com" and use a image from the domain "img.com" should result in the following relationships: "www.foo.com -> bar1.com", "www.food.com -> bar2.com" and "www.food.com -> img.com". You do not have to visualize the tree structure (although this can be a fun and interesting exercise in itself).

  1. Develop and test the crawler
  2. Document the functionality and limitations of your crawler
  3. Pick some illustrative sites from the alexa site and provide the tree structure of the domain relationships associated with these sites.

Requirements

For this assignment you must all do task 1. Among the other tasks you should select enough tasks that the sum of the points (pts) associated with the tasks adds to at least 16 (out of 24) points.

Demonstration and Report

For this assignment you will need to write a report that carefully describes which tasks you have selected to solve, explains how you solved them, and the lessons and insights you have gained. As in previous assignments, you should also discuss (and demonstrate) your solutions with the TA.

Your answers should clearly explain what you learned and how you solved the questions. (Note that the steps taken to obtain an answer in many cases is more important than the answer itself.) Please explain if you found additional tools and information sources which helped you answer the above questions. Finally, if you could not solve the question, please explain why it was not possible and what information you would need to solve the question.

Please structure your report such that your answers are clearly indicated for each question (and section of the assignment). It is not the TA's task to search for the answers. Both the questions themselves and the corresponding answers should be clearly stated (and indicated) in your report. Structure your report accordingly. Furthermore, your answers should be explained and supported using additional evidence, when applicable. During the demonstration the TA may ask similar questions to assess your understanding of the lab. You are expected to clearly explain and motivate your answers. As the assignments are done in groups of two, both members of the group will be asked to answer questions.

Additional instructions and information about the reports can be found here. Please take this chance to read the guidelines carefully.