CMT2002 Assignment 2 Problem 1
CMT2002 Assignment 2 Problem 1
Problem 1
Classify each of the following network applications, with explanation, into different
application architectures -- client-server(CS), peer-to-peer (P2P) or hybrid of both.
a. Web (HTTP)
b. File transfer (FTP),
c. Telnet,
d. e-mail,
e. instant messaging (Whatsapp, skype)
Problem 2
(a) Briefly describe the type of messages used and the interaction between the web client
and web server when a web client uses HTTP protocol to request a web page from a web
server.
(b) Explain why HTTP is a stateless protocol?
Problem 3
Consider an e-commerce site that wants to keep a purchase record for each of its customer.
Describe how this can be achieved using cookies.
Problem 4
Caching can reduce user-perceived response times and save network bandwidth. However,
it introduces a new problem – the copy of an object residing in the cache may be outdated.
In other words, the object housed in the web server may have been modified since the
copy was cached at the client. How is this issue handled by HTTP?
Problem 5
Consider a host at domain abc.com with local DNS server, dns.abc.com. Suppose the host
wants to get an IP address for www.ibm.com. It is given that the authoritative name server
for the domain ibm.com is ns.ibm.com. With the aid of a diagram, explain how the host
gets the IP address. Also, describe what messages are exchanged among the hosts involved
in the process.
Problem 6
Consider distributing a file of size F = 15 Gbits to N peers. The server has an upload rate of
us = 30 Mbps, each peer has a download rate of di = 2Mbps and an upload rate of u. For N =
10, 100, and 1,000 and u = 300Kbps, 700Kbps, and 2 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.
Problem 7
Explain the mechanism of tracing the path with traceroute between two hosts on the
Internet. What information can be obtained by this tool?
- END -