CPET 281

profileMoh-993
CPET281_TAP0RNM.docx

Spring 2020

CPET 281

Local Area Networks and Management

TAP 0

(3.75%)

Student Name

Student ID

Razan almutairi

86618

Feedback/Comments:

S

Topic

Max Points

Earned Points

Feedback

1

Question 1

25

2

Question 2

25

3

Question 3

25

4

Question 4

10

5

Question 5

15

Total

100

Grade: /100

Q1. Consider the following HTTP message and answer the following questions: (25 points)

GET /index.html HTTP/1.1\r\n

Host: www.example.com\r\n

User-Agent: Firefox/3.7.16\r\n

Accept: text/html,application/xhtml+xml\r\n

Accept-Language: en-us,en;q=0.5\r\n

Accept-Encoding: gzip,deflate\r\n

Accept-Charset: ISO-8859-1,utf-8;q=0.7\r\n

Keep-Alive: 115\r\n

Connection: keep-alive\r\n

\r\n

a. What type of HTTP message is this? How did you know?

b. What is the complete URL?

c. What is the hostname and path name?

d. Is the connection persistent or non-persistent? Why?

e. What port number will this message be sent to?

Q2. Consider the following HTTP message and answer the following questions: (25 points)

HTTP/1.1 200 OK\r\n

Date: Sun, 26 Sep 2010 20:09:20 GMT\r\n

Server: Apache/2.0.52 (CentOS)\r\n

Last-Modified: Tue, 30 Oct 2007 17:00:02 GMT\r\n

ETag: "17dc6-a5c-bf716880"\r\n

Accept-Ranges: bytes\r\n

Content-Length: 2652\r\n

Keep-Alive: timeout=10, max=100\r\n

Connection: Keep-Alive\r\n

Content-Type: text/html; charset=ISO-8859-1\r\n

\r\n

data data data data data ...

a. What type of HTTP message is this? How did you know?

b. What is the operating system of this machine?

c. What type of HTTP web server is this machine running?

d. What can be said about the status of this message? Explain why.

e. Is this connection using TCP or UDP? Explain why.

Q3. Calculate the bandwidth of a TCP connection (in bytes per second) given that the congestion window size is 40 packets, where each packet is 10 bytes. The round-trip time (RTT) is equal to 15ms. (25 points)

Q4. Answer the following questions: (10 points)

a. What is the 32-bit binary equivalent of the IP address 200.101.4.22?

b. What is the Decimal equivalent of the Binary representation of the IP address:

11001111.00000011.00001100.00010011 ?

Q5. Describe all the steps that happen from the moment you enter a website name on the browser address bar and hit enter to the moment where the web page appears on your browser.

(15 points)

Page 1 of 4

Page 2 of 4