.
Chapter 2 Application Layer
1. In the following four descriptions, which one is correct? A In C/S architecture, clients communicate with each other directly. B In C/S architecture, client has a fixed well-known address. C In P2P architecture, peers communicate with each other directly. D In P2P architecture, peer has a fixed well-known address.
2. In the context of a communication session between a pair of process, the process that initiates the communication is labeled as the , the process that waits to be contacted to begin the session is labeled as the . A client process, server process B sending process, receiving process
C input process, output process D communicating process, connecting process
3. A socket is the interface between within a host. A the network layer and the link layer B the link layer and the physical layer C the application layer and the transport layer D the transport layer and the network layer
4. In the following applications, which one is a loss-tolerant application? A E-mail B file transfer C instant messaging D real-time audio
5. In the following applications, which one is a bandwidth-sensitive application?
.
.
A E-mail B web application C real-time audio D file transfer
6. The service of TCP can’t guarantee .
A delivery of all data without error B delivery of all data in the proper order
C the rate of delivery D congestion control 7. In the following applications, which one uses UDP?
A E-mail B web application C file transfer D DNS 8. In the following descriptions about HTTP, which one is not correct? A HTTP uses non-persistent connections in its default mode. B HTTP uses TCP as its underlying transport protocol. C HTTP is a stateless protocol. D HTTP is client-server architecture.
9. Suppose a web page consists of a base HTML file, 5 JEPG images and a java applet, and also suppose HTTP uses persistent connection without pipelining, the total response time is .
A 2RTT B 8RTT C 12 RTT D 14RTT
10. In HTTP response message, if the requested HTTP protocol version is not supported, the status code is .
A 200 B 301 C 400 D 505
1~5 CACDC 6~10 CDABD
11. The port number of web application is .
.
.
A 25 B 20 C 80 D 53
12. A network entity that satisfies HTTP requests on the behalf of an origin web server is .
A server farm B server stack C proxy server D edge server 13. In the following descriptions about persistent connection, which one is not correct?
A The server leaves the TCP connection open after sending a response. B Each TCP connection is closed after the server sending one object. C There are two versions of persistent connection: without pipelining and with pipelining.
D The default mode of HTTP uses persistent connection with pipelining. 14. FTP uses two parallel TCP connections to transfer a file, there are . A control connection and data connection B receiving connection and sending connection C client connection and sever connection D program connection and process connection
15. In the following descriptions about FTP, which one is correct?
A FTP is p2p architecture. B FTP sends its control information out-of-band.
C FTP uses persistent connection. D FTP is a stateless protocol. 16. In the commands of FTP, which one does not have parameter? A USER B PASS C LIST D STOR
17. The Internet mail system has three components which they are .
.
.
A user agent, SMTP, POP3 B SMTP, POP3, IMAP
C user agent, SMTP, IMAP D user agent, SMTP, mail server 18. If the status code in HTTP response message is 404, it means . A Request succeeded.
B The requested document doesn’t exit on this server.
C This is a generic error code indicating that the request could not be understood by the server.
D Requested object has been permanently mover. 19. Comparison HTTP with SMTP, the correct is . A HTTP is a push protocol, and SMTP is a pull protocol. B In the default mode, both of them use persistent connection.
C HTTP places all of the message’s objects into one message, and SMTP sends every object one by one.
D HTTP requires each message to be in 7-bit ASCII format, and SMTP doesn’t impose this restriction.
20. The headers in the MIME message must include except .
A From B Content-type C Content-transfer-encoding D MIME version
11~15CCBAB 16~20 DDBBD
21. In the following protocol, which one is stateless?
A POP3 B SMTP C FTP D IMAP 22. DNS means .
.