Question

ANSWER NETWORKS QUESTIONS (MCQS AND CALCULATIONS) QUESTIONS ( 11 - 20) QUESTION 11 1.     Consider the following...

ANSWER NETWORKS QUESTIONS (MCQS AND CALCULATIONS)

QUESTIONS ( 11 - 20)

QUESTION 11

  1. 1.     Consider the following excerpt from a simple server side UDP program:

Server.py

from socket import *

sName=’127.0.0.1’

sSocket=socket(AF_INET,SOCK_DGRAM)

sSocket.bind((sName, 12005))

while True:

msg, cAddr =sSocket.recvfrom(2048)

newMsg = msg.decode().lower()

  sSocket.sendto(*********************)

What code could be used to replace the **********’s in line 8?

newMsg.encode(), cAddr

newMsg.encode()

msg.encode(), cAddr

msg.encode()

none of the above

1 points   

QUESTION 12

  1. For a client to obtain an IP address from the local DNS server, the local DNS server must contact a root DNS server, a top level domain server and an authoritative server where the RTT for these are RTT1=4msec, RTT2 = 5msec and RTT3 = 10msec. The RTT to the local DNS is 1msec. What is the total response time, assuming the IP address is cached in the local DNS server.

20 msec

19 msec

1 msec

11 msec

None of the above

1 points   

QUESTION 13

  1. In this architecture there is minimal or no reliance on dedicated servers

Client-server

P2P

Network

Application Layer

None of the above

1 points   

QUESTION 14

  1. HTTP request messages are in ____ format.

7-bit ASCII

Binary

Text

ASCII

None of the above

1 points   

QUESTION 15

  1. What type of a DNS RR stores the canonical hostname for the alias hostname?

A

NS

CNAME

MX

None of the above

1 points   

QUESTION 16

  1. Consider the message below: What is the size of the document being returned by the server (in bytes)?

HTTP/1.1 200 OK
Date: Tue, 13 Aug 12:21:39 +0000
Server: Apache/2.2.3 (CentOS)
Last-Modified: Tue, 13 Aug 2019 12:43:19 +0000
ETag:17dc6-a5c-bf716880.
Content-Length: 69763
Keep-Alive: timeout=44, max=71
Connection: Keep-alive
Content-type: image/html

1 points   

QUESTION 17

  1. Consider the message below: What is the type of file being sent to the client? HTTP/1 200 OK
    Date: Tue, 13 Aug 12:21:39 +0000
    Server: Apache/2.2.3 (CentOS)
    Last-Modified: Tue, 13 Aug 2019 12:43:19 +0000
    ETag:17dc6-a5c-bf716880.
    Content-Length: 69763
    Keep-Alive: timeout=44, max=71
    Connection: Keep-alive
    Content-type: image/html

1 points   

QUESTION 18

  1. Suppose within your Web browser you click on a link to obtain a Web page. The IP address for the associated URL is not cached in your local host, so a DNS lookup is necessary to obtain the IP address. Suppose that four DNS servers are visited before your host receives the IP address from DNS. The first DNS server visited is the local DNS cache, with an RTT delay of RTT0 = 2 msecs. The second, third and fourth DNS servers contacted have RTTs of RTT1 = 19, RTT2 = 17, and RTT3 = 26 msecs, respectively. Assume that the Web page associated with the link contains exactly one object, consisting of a small amount of HTML text. Suppose the RTT between the local host and the Web server containing the object is RTTHTTP = 37 msecs. Assuming zero transmission time for the HTML object, how much time elapses (in seconds) from when the client clicks on the link until the client receives the object?

1 points   

QUESTION 19

  1. Consider the message below: What date and time was this response sent? (Use the format: DD-MM-YYYY HH:MM)

HTTP/1.1 200 OK
Date: Tue, 13 Aug 2019 12:21:39 +0000
Server: Apache/2.2.3 (CentOS)
Last-Modified: Tue, 13 Aug 2019 12:43:19 +0000
ETag:17dc6-a5c-bf716880.
Content-Length: 69763
Keep-Alive: timeout=44, max=71
Connection: Keep-alive
Content-type: image/html

1 points   

QUESTION 20

  1. Consider the message below: What is the name of the server?

HTTP/1.1 200 OK
Date: Tue, 13 Aug 12:21:39 +0000
Server: Apache/2.2.3 (CentOS)
Last-Modified: Tue, 13 Aug 2019 12:43:19 +0000
ETag:17dc6-a5c-bf716880.
Content-Length: 69763
Keep-Alive: timeout=44, max=71
Connection: Keep-alive
Content-type: image/html

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer

QUESTION 11 1. Consider the following excerpt from a simple server side UDP program: Server.py from socket import * sName=12

QUESTION 13 In this architecture there is minimal or no reliance on dedicated servers Client-server P2P Network Application L

QUESTION 16 Consider the message below. What is the size of the document being returned by the server (in bytes)? HTTP/1.1 20

Answer

69763 bytes

QUESTION 17 Consider the message below: What is the type of file being sent to the client? HTTP/1 200 OK Date: Tue, 13 Aug 12

Answer

image/html

QUESTION 19 Consider the message below: What date and time was this response sent? (Use the format: DD-MM-YYYY HH:MM) HTTP/1.

Answer

13-08-2019 12:43

QUESTION 20 Consider the message below. What is the name of the server? HTTP/1.1 200 OK Date: Tue, 13 Aug 12:21:39 +0000 Serv

Answer

Apache/2.2.3 (CentOs)

--

Explanation

11)once socket is constructed the following wcode that will send our UDP message
sendto(Message, (UDP_IP_ADDRESS, UDP_PORT_NO))

according to this format

only option a will fit

newMsg.encode(), CAddr is the correct one

--
13)in P2P architecture there is minimal or no reliance on dedicated servers
because, each and every computer can act both client and server
--
14) HTTP request messages are in ASCII format
--
15)
CNAME means Canonical Name

---

Answered all the questions, excepts 2 questions, really sorry for that

if you need any further help, please mention it, love to help

Good Luck

Add a comment
Know the answer?
Add Answer to:
ANSWER NETWORKS QUESTIONS (MCQS AND CALCULATIONS) QUESTIONS ( 11 - 20) QUESTION 11 1.     Consider the following...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Problem # 1 (30 points): Suppose within your Web browser you click on a link to...

    Problem # 1 (30 points): Suppose within your Web browser you click on a link to obtain a web page Suppose that the IP address for the associated URL is not cached in your local host, so that a DNS look- up is necessary to obtain the IP address. Suppose that two (2) DNS servers are visited before your host receives the IP address from DNS; the successive visits incur an RTT of RTT1 and RTT2. Further suppose that the...

  • on calculations can i see how did the expect come to the solution ,all the workout...

    on calculations can i see how did the expect come to the solution ,all the workout should be included QUESTION 1 A file of size F = 8 Gbits needs to be distributed to10 peers. Suppose the server has an upload rate of u = 68 Mbps, and that the 10 peers have upload rates of: u1 = 20 Mbps, u2 = 22 Mbps, u3 = 12 Mbps, u4 = 19 Mbps, u5 = 25 Mbps, u6 = 24 Mbps,...

  • Consider following HTTP request header

    Consider following HTTP request headerGET /tr/page/49/genel-bilgi.html HTTP/2.0Host: ic.atilim.edu.trUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: en-US,en;q=0.5Accept-Encoding: gzip, deflate, brConnection: keep-aliveCookie: gcl_au=1.1.717471173.1571991598; __atuvc=12%7C43; ..........Upgrade-Insecure-Requests: 1TE: Trailersa. What is the URL of the document requested by the browser?b. What version of HTTP is the browser running?c. Does the browser request a non-persistent or a persistent connection?d. What is the IP address of the host on which the browser is running?e. What type of browser initiates this message? Why is...

  • 1. Let’s consider the network shown in Figure 1 where Snort is deployed. 1.1: In Figure...

    1. Let’s consider the network shown in Figure 1 where Snort is deployed. 1.1: In Figure 1, why is Snort deployed in the DMZ instead of the Internal Network? (9 points) 1.2: In Figure 1, say True or False to the following statement: “Snort can see both incoming packets from the left firewall and outgoing packets from the right firewall”. (5 points) 1.3: In Figure 1, assume a packet P matches the following Snort rule when the packet is analyzed...

  • Please Answer all Questions on Networks, They all involve calculation ( 1-9 Questions) "A single router...

    Please Answer all Questions on Networks, They all involve calculation ( 1-9 Questions) "A single router is transmitting packets, each of length L bits, over a single link with transmission rate R Mbps to another router at the other end of the link. Suppose that the packet length is L= 12000 bits, and that the link transmission rate along the link to router on the right is R = 1000 Mbps. What is the maximum number of packets per second...

  • Construction methods Do 4-3 5. Answer the following two questions, 5-1 and S-2 5-1) Draw the...

    Construction methods Do 4-3 5. Answer the following two questions, 5-1 and S-2 5-1) Draw the "node" network diagram and perform the CPM calculations based on the end-of-day convention to complete the table entries. (20 points) (Note: use very simple node design for the network diagram: for example, box or circle.) Activity! Duration | Predecessors | EST E-LS 1 LF- B. BFF/2 | 구 | 11 | 15 | 19 E, F SS12 5 13 it is assumed that the...

  • Question 1 ​ A URL is a ____-part addressing scheme a. ​two b. ​four c. ​three...

    Question 1 ​ A URL is a ____-part addressing scheme a. ​two b. ​four c. ​three d. ​one Question 2 ​ A text file that contains HTML tags is called a(n) ____. a. ​server b. ​HTML document c. ​browser d. ​IP address Question 3 ​ A(n) ____ comes into existence as soon as a work is placed into a tangible form. a. ​open-source project b. ​copyright c. ​reproduction notice d. ​lien Question 4 ​ A(n) ____ is a small file...

  • QUESTION 17 0.1 points Save Answer Questions 17-20 relate to the following information. Suppose we are...

    QUESTION 17 0.1 points Save Answer Questions 17-20 relate to the following information. Suppose we are given 20 tulip bulbs that are very similar in appearance. We are told that 8 tulips will bloom early, 12 will bloom late, 13 will be red, and 7 will be yellow. This information is summarized below Early (E) Late (L) Totals Red (R) 8 13 Yellow (Y) 3 4 7 Totals 8 12 20 What is P(Y)? QUESTION 18 0.1 points Save Answer...

  • Answer all questions (134 Marks) ASSIGNMENT 2 QUESTION 1 Consider the following traverse from A to...

    Answer all questions (134 Marks) ASSIGNMENT 2 QUESTION 1 Consider the following traverse from A to E. along the horizontal alignment of a rural highway near Fouriesburg in the Free State. The bearings and distances between successive points are shown on the drawing below, where the bearing (e) and distance (d) C to D are missing. Horizontal curves must be introduced at B, C and D 277029'13" C NORTH 1 592.500 m (d 207°09'47 289050'46" 1700.100 m 1141.900 m NOT...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT