100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

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

Rating
-
Sold
-
Pages
5
Grade
A+
Uploaded on
12-10-2024
Written in
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").

Show more Read less
Institution
Computer Networking
Course
Computer Networking









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Computer Networking
Course
Computer Networking

Document information

Uploaded on
October 12, 2024
Number of pages
5
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Content preview

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?

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TutorJosh Chamberlain College Of Nursing
View profile
Follow You need to be logged in order to follow users or courses
Sold
337
Member since
1 year
Number of followers
16
Documents
28401
Last sold
14 hours ago
Tutor Joshua

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

3.6

53 reviews

5
18
4
14
3
12
2
0
1
9

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions