Question

I NEED HELP WITH COMPUTER NETWORKS( PLEASE ANSWER THEM ALL) CALCULATIONS & MCQS 1. Name 1...

I NEED HELP WITH COMPUTER NETWORKS( PLEASE ANSWER THEM ALL)

CALCULATIONS & MCQS

1.

Name 1 languages that the browser is willing to accept in the following message?

GET /kurose_ross/interactive/quotation7.htm HTTP/1.1
Host: gaia.cs.umass.edu
Accept: text/plain, text/html, image/gif, image/jpeg, audio/mpeg, audio/basic, video/wmv, video/mp4, application/*, */*
Accept-Language: en, fr, de, ar, cs
If-Modified-Since: Mon, 12 Aug 2019 07:13:47 -0700
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20100101 Firefox/11.0

2.

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, u7 = 18 Mbps, u8 = 11 Mbps, u9 = 14 Mbps, u10 = 30 Mbps, and download rates of: d1 = 28 Mbps, d2 = 30 Mbps, d3 = 12 Mbps, d4 = 20 Mbps, d5 = 18 Mbps, d6 = 15 Mbps, d7 = 14 Mbps, d8 = 34 Mbps, d9 = 20 Mbps, d10 = 34 Mbps. What is the minimum time needed to distribute this file from the central server to the 10 peers using the client-server model (round to the nearest second)?

3.

Consider the following excerpt from a simple client side TCP program:

Client.py

from socket import *

sName=’xyz’

sPort=12002

cSocket=socket(AF_INET,SOCK_STREAM)

cSocket.connect((************))

cSocket.send (‘Welcome to Socket programming’.encode())

newText=cSocket.recv(1024)

print ('From Server:', newText.decode(), '\n')

cSocket.close()

Which of the following could be used to replace the *********** in line 5?

sPort

12000

‘’, serverPort



'',sPort

None of the above

4.

Consider the following excerpt from a simple client side UDP program:

Client.py

from socket import *

sName=’xyz’

sPort=12002

cSocket=socket(AF_INET,SOCK_DGRAM)

cSocket.sendto(‘Welcome to Sockets’.encode())

newText, sAddr=cSocket.recvfrom(1024)

print ('From Server:', newText.decode(), '\n')

cSocket.close()

In which of the following lines of code has an error been made?

cSocket.sendto(‘Welcome to Sockets’.encode())

sPort=12002

cSocket=socket(AF_INET,SOCK_DGRAM)

sName=’xyz’

newText, sAddr=cSocket.recvfrom(1024)

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

1. English, German, French, Arabic

2. Time to distribute F to 10 peers, using Client server

D > max(10*8 * 109/68 * 106 , 8*109/12* 106 ) = max( 1176.4, 666.7) = 1176.4 seconds.

3. Ip, Port i.e ('', sPort)

4. cSocket.sendto(‘Welcome to Sockets’.encode()) - sendto must also contain the Destination Ip.

Add a comment
Know the answer?
Add Answer to:
I NEED HELP WITH COMPUTER NETWORKS( PLEASE ANSWER THEM ALL) CALCULATIONS & MCQS 1. Name 1...
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
  • I NEED HELP WITH NETWORKS ( 1 - 11) QUESTIONS , ENSURE YOU ANSWER THEM ALL...

    I NEED HELP WITH NETWORKS ( 1 - 11) QUESTIONS , ENSURE YOU ANSWER THEM ALL QUESTION 1 Which of the following could be valid DNS resource record entries? (mysite.com, 125.245.206.3, NS) (ibm.com, backup6.ibm.com, CNAME) (158.223.21.2, mypage.edu, A) All of the above None of the above 1 points    QUESTION 2 Which mail protocol keeps state information across sessions? SMTP POP3 IMAP All of the above None of the above 1 points    QUESTION 3 What type of message is...

  • 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,...

  • 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.     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 For a client to obtain an IP address from the local...

  • 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...

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