100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Examen

Test Bank Questions and Answers for computer network chapter 2 Rated A+

Puntuación
-
Vendido
-
Páginas
5
Grado
A+
Subido en
12-10-2024
Escrito en
2024/2025

Test Bank Questions and Answers for computer network chapter 2 Rated A+ For a communication session between a pair of processes, which process is the client and which is the server? - Answers The process which initiates the communication is the client; the process that waits to be contacted is the server. What is meant by a handshaking protocol? - Answers A protocol uses handshaking if the two communicating entities first exchange control packets before sending data to each other. SMTP uses handshaking at the application layer whereas HTTP does not. 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? - Answers Web caching can bring the desired content "closer" to the user, perhaps 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. In BitTorrent, suppose Alice provides chunks to Bob throughout a 30-second interval. Will Bob necessarily return the favor and provide chunks to Alice in the same interval? Why or why not? - Answers It is not necessary that Bob will also provide chunks to Alice. Alice has to be in the top 4 neighbors of Bob for Bob to send out chunks to her; this might not occur even if Alice provides chunks to Bob throughout a 30 second interval. What is an overlay network? Does it include routers? What are the edges in the overlay network? - Answers Overlay Network is a logical network that runs on top of another network. No, it does not include routers. If peer X maintains a TCP connection with another peer Y, then we say there is an edge between X and Y. An edge in overlay is simply the tcp connection between a peer. In Section 2.7, the UDP server described needed only one socket, whereas the TCP server needed two sockets. Why? If the TCP server were to support n simultaneous connections, each from a different client host, how many sockets would the TCP server need? - Answers With the UDP server, there is no welcoming socket, and all data from different clients enters the server through this one socket. With the TCP server, there is a welcoming socket, and each time a client initiates a connection to the server, a new socket is created. Thus, to support n simultaneous connections, the server would need n + 1 sockets. The text below shows the reply sent from the server in response to the HTTP GET message in the question above. Answer the following questions, indicating where in the message below you find the answer. HTTP/1.1 200 OK<cr><lf>Date: Tue, 07 Mar 2008 12:39:45GMT<cr><lf>Server: Apache/2.0.52 (Fedora)<cr><lf>Last-Modified: Sat, 10 Dec2005 18:27:46 GMT<cr><lf>ETag: "526c3-f22-a88a4c80"<cr><lf>Accept-Ranges: bytes<cr><lf>Content-Length: 3874<cr><lf> Keep-Alive: timeout=max=100<cr><lf>Connection:Keep-Alive<cr><lf>Content-Type: text/html; charset=ISO-8859-1<cr><lf><cr><lf><!doctype html public "-//w3c//dtd html 4.0 transitional//en"><lf><html><lf><head><lf> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><lf> <meta name="GENERATOR" content="Mozilla/4.79 [en] (Windows NT 5.0; U) Netscape]"><lf> <title>CMPSCI 453 / 591 /NTU-ST550A Spring 2005 homepage</title><lf></head><lf><much more document - Answers a. The status code of 200 and the phrase OK indicate that the server was able to locate the document successfully. The reply was provided on Tuesday, 07 Mar 2008 12:39:45 Greenwich Mean Time. b. The document was last modified on Saturday 10 Dec 2005 18:27:46 GMT. c. There are 3874 bytes in the document being returned. d. The first five bytes of the returned document are : <!doc. The server agreed to a persistent connection, as indicated by the Connection: Keep-Alive field Referring to Problem P7, suppose the HTML file references eight very small objects on the same server. Neglecting transmission times, how much time elapses with a. Non-persistent HTTP with no parallel TCP connections? b. Non-persistent HTTP with the browser configured for 5 parallel connections? c. Persistent HTTP? - Answers a) RTT1 + ... +RTTn + 2RTT0 +8*2RTT0 = 18RTT0 + RTT1 + ... +RTTn b)RTT1 + ... +RTTn +2RTT0 +2*2RTT0 =6RTT0 + RTT1 + .. + RTTn c) RTT1 + ... +RTTn + 2RTT0 + RTT0 = 3RTT0 +RTT1+ ... + RTTn Consider a short, 10-meter link, over which a sender can transmit at a rate of 150 bits/sec in both directions. Suppose that packets containing data are 100,000 bits long, and packets containing only control(e.g, ACK or hand-shaking) are 200 bits long. Assume that N parallel connections each get 1/N of the link bandwidth. Now consider the HTTP protocol, and suppose that each downloaded object is 100 Kbits long, and that the initial downloaded object contains 10 referenced objects from the same sender. Would parallel downloads via parallel instances of non-persistent HTTP make sense in this case? Now consider persistent HTTP. Do you expect significant gains over the non-persistent case? Justify and explain your answer. - Answers Let's think of this problem mathematically. We have the following given information: -There are a number N parallel connections -Each parallel connection gets 1/N of the link bandwidth -The link is 10 meters long -The transmission rate at which the sender sends the message is 150 bits/sec -The packets containing data are 100,000 bits long -The packets containing only control(hand-shaking) are 200 bits long Recall that on page 100-103, non-persistent connections are defined as only being able to accommodate up to 10 objects, and each object must enter the connection separately as the client or the server must close the connection for each object through the connection. Each object undergoes a delay of two RTTs. Figure 2.7 on page 102 shows that it takes three attempts for the client to send the message to the server before the server recognizes it and decides to send it("three-way handshake").

Mostrar más Leer menos
Institución
Computer Networking
Grado
Computer Networking









Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Computer Networking
Grado
Computer Networking

Información del documento

Subido en
12 de octubre de 2024
Número de páginas
5
Escrito en
2024/2025
Tipo
Examen
Contiene
Preguntas y respuestas

Temas

Vista previa del contenido

Test Bank Questions and Answers for computer network chapter 2 Rated A+

For a communication session between a pair of processes, which process is the client and which is the
server? - Answers The process which initiates the communication is the client; the process that waits to
be contacted is the server.

What is meant by a handshaking protocol? - Answers A protocol uses handshaking if the two
communicating entities first exchange control packets before sending data to each other. SMTP uses
handshaking at the application layer whereas HTTP does not.

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? - Answers
Web caching can bring the desired content "closer" to the user, perhaps 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.

In BitTorrent, suppose Alice provides chunks to Bob throughout a 30-second interval. Will Bob
necessarily return the favor and provide chunks to Alice in the same interval? Why or why not? -
Answers It is not necessary that Bob will also provide chunks to Alice. Alice has to be in the top 4
neighbors of Bob for Bob to send out chunks to her; this might not occur even if Alice provides chunks to
Bob throughout a 30 second interval.

What is an overlay network? Does it include routers? What are the edges in

the overlay network? - Answers Overlay Network is a logical network that runs on top of another
network.

No, it does not include routers.

If peer X maintains a TCP connection with another peer Y, then we say there is an edge between X and Y.
An edge in overlay is simply the tcp connection between a peer.

In Section 2.7, the UDP server described needed only one socket, whereas the

TCP server needed two sockets. Why? If the TCP server were to support n

simultaneous connections, each from a different client host, how many sockets

would the TCP server need? - Answers With the UDP server, there is no welcoming socket, and all data
from different clients enters the server

through this one socket. With the TCP server, there is a welcoming socket, and each time a client
initiates

a connection to the server, a new socket is created. Thus, to support n simultaneous connections, the
server

, would need n + 1 sockets.

The text below shows the reply sent from the

server in response to the HTTP GET message in the question above. Answer the

following questions, indicating where in the message below you find the answer.

HTTP/1.1 200 OK<cr><lf>Date: Tue, 07 Mar 2008 12:39:45GMT<cr><lf>Server:

Apache/2.0.52 (Fedora)<cr><lf>Last-Modified: Sat, 10 Dec2005 18:27:46

GMT<cr><lf>ETag: "526c3-f22-a88a4c80"<cr><lf>Accept-Ranges:

bytes<cr><lf>Content-Length: 3874<cr><lf> Keep-Alive:

timeout=max=100<cr><lf>Connection:Keep-Alive<cr><lf>Content-Type: text/html;

charset=ISO-8859-1<cr><lf><cr><lf><!doctype html public "-//w3c//dtd html 4.0

transitional//en"><lf><html><lf><head><lf> <meta http-equiv="Content-Type"

content="text/html; charset=iso-8859-1"><lf> <meta name="GENERATOR"

content="Mozilla/4.79 [en] (Windows NT 5.0; U) Netscape]"><lf> <title>CMPSCI

/NTU-ST550A Spring 2005 homepage</title><lf></head><lf><much more

document - Answers a. The status code of 200 and the phrase OK indicate that the server was able to
locate the

document successfully. The reply was provided on Tuesday, 07 Mar 2008 12:39:45

Greenwich Mean Time.

b. The document index.html was last modified on Saturday 10 Dec 2005 18:27:46 GMT.

c. There are 3874 bytes in the document being returned.

d. The first five bytes of the returned document are : <!doc. The server agreed to a

persistent connection, as indicated by the Connection: Keep-Alive field

Referring to Problem P7, suppose the HTML file references eight very small objects on the same

server. Neglecting transmission times, how much time elapses with

a. Non-persistent HTTP with no parallel TCP connections?

b. Non-persistent HTTP with the browser configured for 5 parallel connections?
$8.49
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada


Documento también disponible en un lote

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
TutorJosh Chamberlain College Of Nursing
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
337
Miembro desde
1 año
Número de seguidores
16
Documentos
28401
Última venta
1 día hace
Tutor Joshua

Here You will find all Documents and Package Deals Offered By Tutor Joshua.

3.6

53 reseñas

5
18
4
14
3
12
2
0
1
9

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes