关键词 > COMP3331/9331

COMP 3331/9331 Computer Networks and Applications Application Layer - Questions

发布时间:2023-07-04

Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: daixieit

COMP 3331/9331 Computer Networks and Applications

Application Layer - Questions

Q1) Why is SMTP not used for transferring e-mail messages from the recipient’s mail server to the recipient’s personal computer?

Q2) Why do you think DNS uses UDP, instead of TCP, for its query and response messages?

Q3) Suppose you are sending an email from your Hotmail account to your friend, who reads his/her e-mail from his/her mail server using IMAP. Briefly describe how your  email  travels  from  your  host  to  your  friend’s  host.  Also,  what  are  the application-layer protocols involved?

Q4) How can iterated DNS queries improve the overall performance?

Q5) Suppose you needed to use HTTP to download a web page with three embedded images. Draw diagrams, similar to those from the lecture slides, depicting the main interactions between the client and server when using non-persistent HTTP, persistent HTTP without pipelining, and persistent HTTP with pipelining.

Q6) Suppose within your Web browser you click on a link to obtain a web page. The IP address for the associated URL is not cached in your local host, so a DNS look-up is necessary to obtain the IP address. Suppose that n DNS servers are visited before your host receives the IP address from DNS and that iterative queries are used. Let the successive visits to the DNS  servers incur an RTT  of RTT 1,  ....., RTTn. Further suppose  that  the  web page  associated  with  the  link  contains  exactly  one  object, consisting of a small amount of HTML text. Let RTT0 denote the RTT between the local host and the server containing the object. Assuming zero transmission time of the object, how much time elapses from when the client clicks on the link until the client receives the object? (EXAM PROBLEM FROM PAST SESSIONS)

Q8) Consider a new peer Alice that joins BitTorrent without possessing any chunks. Without any chunks, she cannot become a top-four uploader for any of the peers, since she has nothing to upload. How then will Alice get her first chunk?

Q9) Consider distributing a file of F = 10 Gbits to N peers. The server has an upload rate of us = 20Mbps, and each peer has a download rate of di = 1 Mbps and an upload rate of u. For N=10, 100 and 1000 and u = 200Kbps, 600 Kbps and 1 Mbps, prepare a chart giving the minimum distribution time for each of the combinations of N and u for both client-server distribution and P2P distribution.

Q10) Multiple Choice Questions Choose one from the possible choices:

A) In the lecture we solved a problem, which involved finding the total delay incurred in downloading objects assuming that the web cache hit ratio was 40%. Now assume that the cache hit rate is 50% (i.e. 50% of the requests are satisfied locally from the web cache). The rest of the parameters are the same as in that problem. The average delay to download the objects is:

(i) between 1.2 and 1.3 seconds  

(ii) greater than two seconds       

(iii) between 1.0 and 1.1 seconds 

(iv) none of the above

B)  Suppose  a  client  sends  an  HTTP request  message  with  the If-modified-since: header. Suppose the object in the server has not changed since the last time that client retrieved the object. Then the server will send a response message with the status code:

(i)  304 Not Modified 

(ii)  404 Not Found   

(iii)  200 OK

(iv)  403 Permission Denied

C) HTTP request and response messages are not humanly readable

(i)  True  

(ii)  False

D) All SMTP e-mail messages must be in 8-bit ASCII

(i)  True  

(ii)  False