Computer Networking: A Top Down Approach Ch 2

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

COMPARING AND CONTRASTING HTTP AND SMTP. Which of the following characteristics apply to HTTP only (and do not apply to SMTP)? Note: check one or more of the characteristics below. Uses CRLF.CRLF to indicate end of message. Operates mostly as a "client pull" protocol. Uses a blank line (CRLF) to indicate end of request header. Operates mostly as a "client push" protocol. Has ASCII command/response interaction, status codes. Is able to use a persistent TCP connection to transfer multiple objects

Operates mostly as a "client pull" protocol. Uses a blank line (CRLF) to indicate end of request header. Uses server port 80.

Suppose now the server sends the following HTTP response message the client:HTTP/1.0 200 OKDate: Wed, 09 Sep 2020 23:46:21 +0000Server: Apache/2.2.3 (CentOS)Last-Modified: Wed, 09 Sep 2020 23:51:41 +0000ETag:17dc6-a5c-bf716880.Content-Length: 418Connection: CloseContent-type: image/htmlWill the web server close the TCP connection after sending this message? [Note: you can find more questions like this one here.] There's not enough information in the response message to answer this question. Yes

Yes, the server will close this connection because version 1.0 of HTTP is being used, and TCP connections do not stay open persistently.

COMPARING AND CONTRASTING HTTP AND SMTP (3). Which of the following characteristics apply to both HTTP and SMTP? Note: check one or more of the characteristics below. Uses CRLF.CRLF to indicate end of message. Uses a blank line (CRLF) to indicate end of request header. Operates mostly as a "client push" protocol. Has ASCII command/response interaction, status codes. Is able to use a persistent TCP connection to transfer multiple objects. Operates mostly as a "client pull" protocol.

Has ASCII command/response interaction, status codes. Is able to use a persistent TCP connection to transfer multiple objects.

COOKIES. What is the purpose of a cookie value in the HTTP GET request? The cookie value indicates whether the user wants to use HTTP/1, HTTP/1.1, or HTTP/2 for this GET request. The cookie value is an encoding of a user email address associated with the GET request. The cookie value encodes the format of the reply preferred by the client in the response to this GET request. The cookie value itself doesn't mean anything. It is just a value that was returned by a web server to this client during

The cookie value itself doesn't mean anything. It is just a value that was returned by a web server to this client during an earlier interaction.

THE LOCAL DNS SERVER. Check all of the phrases below that state a true property of a local DNS server. The local DNS server is only contacted by a local host if that local host is unable to resolve a name via iterative or recursive queries into the DNS hierarchy. The local DNS server can decrease the name-to-IP-address resolution time experienced by a querying local host over the case when a DNS is resolved via querying into the DNS hierarchy. The local DNS server holds hostname-to-IP translati

The local DNS server can decrease the name-to-IP-address resolution time experienced by a querying local host over the case when a DNS is resolved via querying into the DNS hierarchy. The local DNS server record for a remote host is sometimes different from that of the authoritative server for that host.

THE PEER-TO-PEER (P2P) PARADIGM. Which of the characteristics below are associated with a P2P approach to structuring network applications (as opposed to a client-server approach)? A process requests service from those it contacts and will provide service to processes that contact it. There is a server with a well known server IP address. HTTP uses this application structure. There is not a server that is always on. There is a server that is always on.

A process requests service from those it contacts and will provide service to processes that contact it. There is not a server that is always on.

CONDITIONAL HTTP GET. What is the purpose of the conditional HTTP GET request message? To allow a server to only send the requested object to the client if this object has changed since the server last sent this object to the client. To allow a server to only send the requested object to the client if the client has never requested that object before. To allow a server to only send the requested object to the client if the server is not overloaded. To allow a server to only send the requested o

To allow a server to only send the requested object to the client if this object has changed since the server last sent this object to the client.

WHAT IS DASH? In DASH (Dynamic, Adaptive Streaming over HTTP), a server divides a video file into chunks that ... (pick best completion from below) ... are stored, each encoded at multiple rates (video quality). The client receives multiple video chunks (encoded at different rates) and plays out the chunks that best fit the screen size. ... are download smallest-chunk-first in order to maximize the number of chunks received. ... allow premium users to avoid watching chunks that contain commerci

... are stored, each encoded at multiple rates (video quality). The client plays the video chunk-by-chunk, with each chunk requested at encoding rate that fits the available bandwidth at the time.

A DETAILED LOOK AT AN HTTP GET (1). Suppose a client is sending an HTTP GET request message to a web server, gaia.cs.umass.edu. Suppose the client-to-server HTTP GET message is the following:GET /kurose_ross_sandbox/interactive/quotation2.htm HTTP/1.1Host: gaia.cs.umass.eduAccept: text/plain, text/html, text/xml, image/jpeg, image/gif, audio/mpeg, audio/mp4, video/wmv, video/mp4,Accept-Language: en-us, en-gb;q=0.1, en;q=0.7, fr, fr-ch, da, de, fiIf-Modified-Since: Wed, 09 Sep 2020 16:06:01 -0700

1.1

E-MAIL DELAYS. How many RTTs are there from when a client first contacts an email server (by initiating a TCP session) to when the client can begin sending the email message itself - that is following all initial TCP or SMTP handshaking required? Recall the figure below from our class notes: 1 3 0 2.5 2

3

HOW MANY SOCKETS? Suppose a Web server has five ongoing connections that use TCP receiver port 80, and assume there are no other TCP connections (open or being opened or closed) at that server. How many TCP sockets are in use at this server? 1 4 5 6

6

WHICH E-MAIL PROTOCOL? Match the functionality of a protocol with the name of a the email protocol (if any) that implements that functionality. QUESTION LIST: Pushes email from a mail client to a mail server. Choose Answer ABC Pulls mail from one mail server to another mail server. Choose Answer ABC Pulls email to a mail client from a mail server. Choose Answer ABC ANSWER LIST: A. SMTP B. IMAP C. Neither SMTP nor IMAP does this.

A C B

DNS FUNCTIONS . Match the function of a server to a given type of DNS server in the DNS server hierarchy. QUESTION LIST: Provides authoritative hostname to IP mappings for organization's named hosts. Choose Answer ABCD Replies to DNS query by local host, by contacting other DNS servers to answer the query. Choose Answer ABCD Responsible for a domain (e.g., *.com, *.edu); knows how to contact authoritative name servers. Choose Answer ABCD Highest level of the DNS hierarchy, knows how to reach se

A D B C

HTTP COOKIES. What is an HTTP cookie used for? A cookie is used to spoof client identity to an HTTP server. Like dessert, cookies are used at the end of a transaction, to indicate the end of the transaction. A cookies is a code used by a server, carried on a client's HTTP request, to access information the server had earlier stored about an earlier interaction with this person. [Think about the distinction between a browser and a person.] A cookie is a code used by a server, carried on a client

A cookie is a code used by a server, carried on a client's HTTP request, to access information the server had earlier stored about an earlier interaction with this Web browser. [Think about the distinction between a browser and a person.]

WHAT'S IN THE DNS TYPE A RESOURCE RECORD? What information does the type "A" resource record hold in the DNS database? Check all that apply. A domain name and the name of the authoritative name server for that domain. A hostname and an IP address. An alias name and a true name for a server. A name and the name of the SMTP server associated with that name.

A hostname and an IP address.

WHAT'S IN AN HTTP REPLY? Which of the following pieces of information will appear in a server's application-level HTTP reply message? (Check all that apply.) A response code A response phrase associated with a response code A sequence number The server's IP address A checksum The name of the Web server (e.g., gaia.cs.umass.edu)

A response code A response phrase associated with a response code

"HTTP IS STATELESS." What do we mean when we say "HTTP is stateless"? In answering this question, assume that cookies are not used. Check all answers that apply. An HTTP client does not remember the identities of the servers with which it has interacted. The HTTP protocol is not licensed in any country. An HTTP server does not remember anything about what happened during earlier steps in interacting with this HTTP client. We say this when an HTTP server is not operational. An HTTP client does n

An HTTP server does not remember anything about what happened during earlier steps in interacting with this HTTP client.

UDP SERVICE. When an application uses a UDP socket, what transport services are provided to the application by UDP? Check all that apply. Loss-free data transfer. The service will reliably transfer all data to the receiver, recovering from packets dropped in the network due to router buffer overflow. Throughput guarantee. The socket can be configured to provide a minimum throughput guarantee between sender and receiver. Best effort service. The service will make a best effort to deliver data to

Best effort service. The service will make a best effort to deliver data to the destination but makes no guarantees that any particular segment of data will actually get there.

STREAMING VIDEO DEFINITIONS . Match the definition/function of an element or approach in a networked streaming video system, with its name. QUESTION LIST: A unit of video, each of which may be encoded at multiple different rates, stored in different files. Choose Answer ABCD A file containing the location and encoding rate of files corresponding to video segments in a video. Choose Answer ABCD An approach that allows a client to adapt the encoding rate of retrieved video to network congestion c

C A B D

WHY WEB CACHING? Which of the following are advantages of using a web cache? Sselect one or more answers. Overall, caching requires fewer devices/hosts to satisfy a web request, thus saving on server/cache costs. Caching allows an origin server to more carefully track which clients are requesting and receiving which web objects. Caching uses less bandwidth coming into an institutional network where the client is located, if the cache is also located in that institutional network. Caching genera

Caching uses less bandwidth coming into an institutional network where the client is located, if the cache is also located in that institutional network. Caching generally provides for a faster page load time at the client, if the web cache is in the client's institutional network, because the page is loaded from the nearby cache rather than from the distant server.

TCP SERVICE. When an application uses a TCP socket, what transport services are provided to the application by TCP? Check all that apply. Throughput guarantee. The socket can be configured to provide a minimum throughput guarantee between sender and receiver. Best effort service. The service will make a best effort to deliver data to the destination but makes no guarantees that any particular segment of data will actually get there. Congestion control. The service will control senders so that t

Congestion control. The service will control senders so that the senders do not collectively send more data than links in the network can handle. Flow Control. The provided service will ensure that the sender does not send so fast as to overflow receiver buffers. Loss-free data transfer. The service will reliably transfer all data to the receiver, recovering from packets dropped in the network due to router buffer overflow.

WHY DOES THE DNS PERFORM CACHING? What is the value of caching in the local DNS name server? Check all that apply. DNS caching provides for faster replies, if the reply to the query is found in the cache. DNS caching results in less load elsewhere in DNS, when the reply to a query is found in the local cache. DNS caching provides the ability to serve as authoritative name server for multiple organizations. DNS caching provides prioritized access to the root servers, since the DNS request is fro

DNS caching provides for faster replies, if the reply to the query is found in the cache. DNS caching results in less load elsewhere in DNS, when the reply to a query is found in the local cache.

HTTP/2 VERSUS HTTP/1.1. Which of the following are changes between HTTP 1.1 and HTTP/2? Note: select one or more answers. HTTP/2 has many new HTTP methods and status codes. HTTP/2 allows objects in a persistent connection to be sent in a client-specified priority order. HTTP/2 provides enhanced security by using transport layer security (TLS). HTTP/2 allows a large object to be broken down into smaller pieces, and the transmission of those pieces to be interleaved with transmission other small

HTTP/2 allows objects in a persistent connection to be sent in a client-specified priority order. HTTP/2 allows a large object to be broken down into smaller pieces, and the transmission of those pieces to be interleaved with transmission other smaller objects, thus preventing a large object from forcing many smaller objects to wait their turn for transmission.

THE DNS AUTHORITATIVE NAME SERVER. What is the role of an authoritative name server in the DNS? (Check all that apply) It provides the definitive answer to the query with respect to a name in the authoritative name server's domain. It is a local (to the querying host) server that caches name-to-IP address translation pairs, so it can answer authoritatively and can do so quickly. It provides a list of TLD servers that can be queried to find the IP address of the DNS server that can provide the d

It provides the definitive answer to the query with respect to a name in the authoritative name server's domain.

CDNS. What approach is taken by a CDN to stream content to hundreds of thousands of simultaneous users? Allow client devices to send requested content to each other, in order to offload the CDN infrastructure. Serve video from a single central "mega-server" with ultra-high-speed network connectivity, and high-speed storage. Proactively push videos to a client device before they're requested, using machine learning to predict requested videos. Store/serve multiple copies of videos at multiple ge

Store/serve multiple copies of videos at multiple geographically distributed sites.

THE HTTP GET. What is the purpose of the HTTP GET message? The HTTP GET request message is used by a web client to post an object on a web server. The HTTP GET request message is sent by a web server to a web client to get the next request from the web client. The HTTP GET request message is used by a web client to request a web server to send the requested object from the server to the client. The HTTP GET request message is sent by a web server to a web client to get the identity of the web

The HTTP GET request message is used by a web client to request a web server to send the requested object from the server to the client.

SERVER REPLY (UDP). How does the networked application running on a server know the client IP address and the port number to reply to in response to a received datagram? The server will know the port number being used by the client since all services have a well-known port number. As the result of performing the accept() statement, the server has created a new socket that is bound to that specific client, and so sending into this new socket (without explicitly specifying the client IP address a

The application code at the server determines client IP address and port # from the initial segment sent by client, and must explicitly specify these values when sending into a socket back to that client.

THE CLIENT-SERVER PARADIGM. Which of the characteristics below are associated with a client-server approach to structuring network applications (as opposed to a P2P approach)? There is a server that is always on. There is a server with a well known server IP address. A process requests service from those it contacts and will provide service to processes that contact it. There is not a server that is always on. HTTP uses this application structure.

There is a server that is always on. There is a server with a well known server IP address. HTTP uses this application structure.

SOCKET CONNECT(). What happens when a socket connect() procedure is called/invoked? This procedure creates a new socket at the client, and connects that socket to the specified server. This causes the server to create a connection with a TCP client. The server does so by creating a new socket for communication back to that client. This causes the client to reach out to a TCP server to establish a connection between that client and the server. If there is already one or more servers on this conn

This procedure creates a new socket at the client, and connects that socket to the specified server.

IF-MODIFIED-SINCE. What is the purpose of the If-Modified-Since field in a HTTP GET request message To inform the HTTP cache that it (the cache) should retrieve the full object from the server, and then cache it until the specified time. To allow the server to indicate to the client that it (the client) should cache this object. To indicate to the server that the client wishes to receive this object, and the time it until it which it will cache the returned object To indicate to the server that

To indicate to the server that the client has cached this object from a previous GET, and the time it was cached.

.6-4 Manifest file. What is the purpose of a manifest file in a streaming multimedia setting? To let a OTT (Over-the-top) video server know the video that the client wants to view. Allows a video service to log the video and the server from which a client streams a video. To let a client know where it can retrieve different video segments, encoded at different rates To allow a client to reserve bandwidth along a path from a server to that client, so the client can view a stream video without im

To let a client know where it can retrieve different video segments, encoded at different rates

A DETAILED LOOK AT AN HTTP GET (2). Again, suppose a client is sending an HTTP GET request message to a web server, gaia.cs.umass.edu. The client-to-server HTTP GET message is the following (same as in previous problem): GET /kurose_ross_sandbox/interactive/quotation2.htm HTTP/1.1Host: gaia.cs.umass.eduAccept: text/plain, text/html, text/xml, image/jpeg, image/gif, audio/mpeg, audio/mp4, video/wmv, video/mp4,Accept-Language: en-us, en-gb;q=0.1, en;q=0.7, fr, fr-ch, da, de, fiIf-Modified-Since:

United Kingdom English

COMPARING AND CONTRASTING HTTP AND SMTP (2). Which of the following characteristics apply to SMTP only (and do not apply to HTTP)? Note: check one or more of the characteristics below. Uses server port 80. Uses server port 25. Uses CRLF.CRLF to indicate end of message. Uses a blank line (CRLF) to indicate end of request header. Has ASCII command/response interaction, status codes. Is able to use a persistent TCP connection to transfer multiple objects. Operates mostly as a "client pull" protoco

Uses server port 25. Uses CRLF.CRLF to indicate end of message. Operates mostly as a "client push" protocol.

Suppose an HTTP server sends the following HTTP response message a client: HTTP/1.0 200 OK Date: Wed, 09 Sep 2020 23:46:21 +0000 Server: Apache/2.2.3 (CentOS) Last-Modified: Wed, 09 Sep 2020 23:51:41 +0000 ETag:17dc6-a5c-bf716880. Content-Length: 418 Connection: Close Content-type: image/html Will the web server close the TCP connection after sending this message? Yes, because this is HTTP 1.0 No, this is a persistent connection, and so the server will keep the TCP connection open. There's not

Yes, because this is HTTP 1.0

Again, suppose a client is sending an HTTP GET request message to a web server, gaia.cs.umass.edu. Suppose the client-to-server HTTP GET message is the following (same as in previous problem): GET /kurose_ross_sandbox/interactive/quotation2.htm HTTP/1.1Host: gaia.cs.umass.eduAccept: text/plain, text/html, text/xml, image/jpeg, image/gif, audio/mpeg, audio/mp4, video/wmv, video/mp4,Accept-Language: en-us, en-gb;q=0.1, en;q=0.7, fr, fr-ch, da, de, fiIf-Modified-Since: Wed, 09 Sep 2020 16:06:01 -0

Yes, because this is a conditional GET, as evidenced by the If-Modified-Since field.

HTTP GET (EVEN MORE). Suppose a client is sending an HTTP GET message to a web server, gaia.cs.umass.edu. Suppose the client-to-server HTTP GET message is the following: GET /kurose_ross_sandbox/interactive/quotation2.htm HTTP/1.1 Host: gaia.cs.umass.eduAccept: text/plain, text/html, text/xml, image/jpeg, image/gif, audio/mpeg, audio/mp4, video/wmv, video/mp4, Accept-Language: en-us, en-gb;q=0.1, en;q=0.7, fr, fr-ch, da, de, fi If-Modified-Since: Wed, 09 Sep 2020 16:06:01 -0700 User Agent: Mozi

Yes, because this is a conditional GET.

UDP SOCKETS. Which of the following characteristics below are associated with a UDP socket? Check one or more that apply. socket(AF_INET, SOCK_STREAM) creates this type of socket when contacted, the server will create a new server-side socket to communicate with that client a server can perform an accept() on this type of socket socket(AF_INET, SOCK_DGRAM) creates this type of socket provides unreliable transfer of a groups of bytes ("a datagram"), from client to server the application must ex

provides unreliable transfer of a groups of bytes ("a datagram"), from client to server the application must explicitly specify the IP destination address and port number for each group of bytes written into a socket data from different clients can be received on the same socket


Set pelajaran terkait

Anatomy Final Exam Review Mastering Chapters 1-9

View Set

Principles & Techniques of Counseling (Chp. 8)

View Set

2.11 Checks on the Judicial Branch

View Set