

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


ECE 3076, Summer 2006, Solution for HW#
Review Question#
The IP address of the destination host and the port number of the destination socket.
Review Question#
The applications associated with those protocols require that all application data be received in the correct order and without gaps. TCP provides this service whereas UDP does not.
Review Question#
The overlay network in a P2P file sharing system consists of the nodes participating in the file sharing system and the logical links between the nodes. There is a logical link (an “edge” in graph theory terms) from node A to node B if there is a semi-permanent TCP connection between A and B. An overlay network does not include routers. With Gnutella, when a node wants to join the Gnutella network, it first discovers (“out of band”) the IP address of one or more nodes already in the network. It then sends join messages to these nodes. When the node receives confirmations, it becomes a member of the of Gnutella network. Nodes maintain their logical links with periodic refresh messages.
Review Question#
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.
Problem 1
a) F b) T c) F d) F
Problem 6
The total amount of time to get the IP address is RTT 1 (^) + RTT 2 +L+ RTT n.
Once the IP address is known, RTTO elapses to set up the TCP connection and another
RTT O elapses to request and receive the small object. The total response time is 2 RTTo + RTT 1 + RTT 2 +L+ RTT n
a) RTT 1 (^) + L+ RTTn + 2 RTTo + 3 ⋅ 2 RTT o = 8 RTT (^) o + RTT 1 +L+ RTT n.
b) RTT 1 (^) + L+ RTTn + 2 RTTo + 2 RTT o = 4 RTT (^) o + RTT 1 +L+ RTT n.
c) RTT 1 (^) + L+ RTTn + 2 RTTo + RTT o = 3 RTT (^) o + RTT 1 +L+ RTT n.
Problem 9
a) The time to transmit an object of size L over a link or rate R is L/R. The average time is the average size of the object divided by R :
∆= (900,000 bits)/(1,500,000 bits/sec) = .6 sec β = 1.5 requests/sec
The traffic intensity on the link is (1.5 requests/sec)(.6 sec/request) = .9. Thus, the average access delay is (.6 sec)/(1 - .9) = 6 seconds. The total average response time is therefore 6 sec + 2 sec = 8 sec.
b) The traffic intensity on the access link is reduced by 40% since the 40% of the requests are satisfied within the institutional network. Thus the average access delay is (.6 sec)/[1 – (.6)(.9)] = 1.2 seconds. The response time is approximately zero if the request is satisfied by the cache (which happens with probability .4); the average response time is 1.2 sec + 2 sec = 3.2 sec for cache misses (which happens 60% of the time). So the average response time is (.4)(0 sec) + (.6)(3.2 sec) = 1.92 seconds. Thus the average response time is reduced from 8 sec to 1.92 sec.
Problem 13
a) For a given input of domain name (such as ccn.com), IP address or network administrator name, whois database can be used to locate the corresponding registrar, whois server, DNS server, and so on.