tutorial-3_semA2023_student

pdf

School

City University of Hong Kong *

*We aren’t endorsed by this school

Course

5222

Subject

Computer Science

Date

Nov 24, 2024

Type

pdf

Pages

3

Uploaded by modalinghu

Report
Tutorial 3, CS5222, Sem A, 2023-24 Problem 1. Consider the following string of ASCII characters that were captured by Wireshark when the browser sent an HTTP GET message (i.e., this is the actual content of an HTTP GET message). The characters <cr><lf> are carriage return and line-feed characters (that is, the italized character string <cr> in the text below represents the single carriage-return character that was contained at that point in the HTTP header). Answer the following questions, indicating where in the HTTP GET message below you find the answer. GET /cs453/index.html HTTP/1.1<cr><lf>Host:gaia.cs.umass.edu<cr><lf> User-Agent: Mozilla/5.0 ( Windows;U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) <cr><lf> Accept:ext/xml, application/xml, application/xhtml+xml, text /html;q=0.9, text/plain;q=0.8,image/png,*/*;q=0.5 <cr><lf>Accept-Language: en-us,en;q=0.5<cr><lf>Accept-Encoding: zip,deflate<cr><lf>Accept-Charset: ISO-8859- 1,utf8;q=0.7,*;q=0.7<cr><lf>Keep-Alive: 300<cr><lf> Connection:keepalive<cr><lf><cr><lf> a. What is the URL of the document requested by the browser? b. What version of HTTP is the browser running? c. Does the browser request a non-persistent or a persistent connection? d. What is the IP address of the host on which the browser is running? e. What type of browser initiates this message? Why is the browser type needed in an HTTP request message?
Tutorial 3, CS5222, Sem A, 2023-24 Problem 2. Assume that the RTT between a client and the local DNS server is RTT L , while the RTT between the local DNS server and other DNS servers is RTT r . Assume that no DNS server performs caching. a. What is the total response time for the scenario illustrated in the following Figure? A) RTT L B) RTT L + RTT r C) RTT L + 2RTT r D) RTT L + 3RTT r b. Assume now that the DNS record for the requested name is cached at the local DNS server. What is the total response time? A) RTT L B) RTT L + RTT r C) RTT L + 2RTT r D) RTT L + 3RTT r
Tutorial 3, CS5222, Sem A, 2023-24 Problem 3. Suppose within your browser you type in a URL to obtain a webpage. The IP address for the associated URL is not cached in your local host, so as DNS lookup is necessary to obtain the IP address. Suppose that n DNS servers are visited before your host receives the IP address from DNS; Visiting the i -th of the them incurs an RTT i per DNS. Further suppose the HTML file references eight very small objects on the same server. Let RTT 0 denote the RTT between the local host and the server containing an object. Neglecting transmission times, how much time elapses with a. Non-persistent HTTP with no parallel TCP connections? A) RTT 1 + + RTT n + 8RTT 0 B) RTT 1 + + RTT n + 9RTT 0 C) RTT 1 + + RTT n + 16RTT 0 D) RTT 1 + + RTT n + 18RTT 0 b. Non-persistent HTTP with the browser configured for 5 parallel connections? A) RTT 1 + + RTT n + 4RTT 0 B) RTT 1 + + RTT n + 5RTT 0 C) RTT 1 + + RTT n + 6RTT 0 D) RTT 1 + + RTT n + 7RTT 0 c. Persistent HTTP? A) RTT 1 + + RTT n + 8RTT 0 B) RTT 1 + + RTT n + 10RTT 0 C) RTT 1 + + RTT n + 12RTT 0 D) RTT 1 + + RTT n + 14RTT 0 Problem 4. (Looking up an IP address using nslookup) You can type nslookup followed by the hostname you want to look up (e.g., type “nslookup ebay.com” in the command prompt), and nslookup will issues a DNS query to find out the IP address. a. What is the IP address of the hostname? b. Can you type the IP address in your browser’s address bar and get to the webpage?
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help