Questions Part2
Questions Part2
Network architecture refers to the organization of the communication process into layers (e.g., the five-
layer Internet architecture).
Application architecture, on the other hand, is designed by an application developer and dictates the
broad structure of the application (e.g., client-server or P2P).
4. For a communication session between a pair of processes, which process is the client
and which is the server?
The process which initiates the communication is the client; the process that waits to be
contacted is the server.
The IP address of the destination host and the port number of the socket in the destination
process.
• example port numbers:
o HTTP server: 80
o mail server: 25
• to send HTTP message to gaia.cs.umass.edu web server:
o IP address: 128.119.245.12
o port number: 80
6. List the four broad classes of services that a transport protocol can provide. For each of
the service classes, indicate if either UDP or TCP (or both) provides such a service.
Answer:
7. What are Internet transport protocols services. List main differences between them
8. Why do HTTP, SMTP, and POP3 run on top of TCP rather than on UDP?
The applications associated with those protocols require that all application data be received in the correct
order and without gaps. TCP provides this service whereas UDP does not.
9. Consider an e-commerce site that wants to keep a purchase record for each of its
customers. Describe how this can be done with cookies. Support your answer with a
graph of how cookies can be used fo maintaining state
When the user first visits the site, the server creates a unique identification number, creates an entry in its
back-end database, and returns this identification number as a cookie number. This cookie number is
stored on the user’s host and is managed by the browser. During each subsequent visit (and purchase), the
browser sends the cookie number back to the site. Thus the site knows when this user (more precisely,
this browser) is visiting the site.
10. Describe how Web caching can reduce the delay in receiving a requested object. Will
Web caching reduce the delay for all objects requested by a user or for only some of the
objects? Why? Support you answer with graph.
Web caching can bring the desired content “closer” to the user, possibly to the same LAN to which the
user’s host is connected. Web caching can reduce the delay for all objects, even objects that are not
cached, since caching reduces the traffic on links.
11. Suppose Alice, with a Web-based e-mail account (such as Hotmail or Gmail), sends a
message to Bob, who accesses his mail from his mail server using POP3. Discuss how
the message gets from Alice’s host to Bob’s host. Be sure to list the series of application-
layer protocols that are used to move the message between the two hosts.
The message is first sent from Alice’s host to her mail server over HTTP. Alice’s mail server then sends
the message to Bob’s mail server over SMTP. Bob then transfers the message from his mail server to his
host over POP3.
12. List HTTP request messages types and clarify their functions.
1- POST method:
▪ web page often includes form input
▪ user input sent from client to server in entity body of HTTP POST request message
2- GET method (for sending data to server):
▪ include user data in URL field of HTTP GET request message (following a ‘?’):
www.somesite.com/animalsearch?monkeys&banana
3- HEAD method:
▪ requests headers (only) that would be returned if specified URL were requested with an HTTP
GET method.
4- PUT method:
▪ uploads new file (object) to server
▪ completely replaces file that exists at specified URL with content in entity body of POST HTTP
request message
13. List HTTP response status codes
▪ 200 OK
request succeeded, requested object later in this message
▪ 301 Moved Permanently
requested object moved, new location specified later in this message (in Location: field)
▪ 400 Bad Request
request msg not understood by server
▪ 404 Not Found
requested document not found on this server
▪ 505 HTTP Version Not Supported
14. Why Web caching?
▪ reduce response time for client request (cache is closer to client)
▪ reduce traffic on an institution’s access link
▪ Internet is dense with caches - enables “poor” content providers to more effectively deliver
content
20. Sketch DNS: as a distributed, hierarchical database and show its levels