23 Jun Describe why an application
Describe why an application developer might choose to run over TCP rather than UDP.
3.2 Suppose host A is sending host B a large file over a TCP connection. If the acknowledge number for a segment of this connection is y, then the acknowledge number for the subsequent segment will necessarily be y+ 1. Is this true or false? Why?
3.3 Suppose 5 TCP connections are present over some bottleneck link of rate X bps. All connections have a huge file to send (in the same direction over the bottleneck link). The transmissions of the files start at the same time. What is the transmission rate that TCP would like to give to each of the connections?
3.4 How to identify a UDP socket? How to identify a TCP socket? Are these data fields same? Why?
3.5 UDP and TCP use 1s complement for their checksums. Suppose you have the following three 8-bit words: 11010101, 01111000, 10001010. What is the 1s complement of the sum of these words? Show all work. Why UDP takes the 1s complement of the sum, that is, why not just use the sum?
3.6 Suppose Client A initiates a SMTP session with server S. Provide possible source and destination port numbers for:
a. The segment sent from S to A.
b. The segment sent from A to S.
3.7 Compare two pipelining protocols shown in the textbook go-back-N and selective repeat.
3.8 In our textbook, protocol rdt 3.0 shows a data transfer protocols that uses only acknowledges.
As an alternative, consider a reliable data transfer protocol that uses negative acknowledgements.
Suppose the sender sends data only infrequently. Will a NAK-only protocol be preferable to
protocol that uses ACKs? Why? Suppose the sender has a lot of data to send and the end-to-end
connection experiences few losses. In the second case, would a NAK-only protocol be preferable
to a protocol that uses ACKs? Why?
3.9 Let us assume that the roundtrip delay between sender and receiver is constant and known to
the sender. Would a timer still be necessary in protocol rdt 3.0, assuming that packets can be
lost? Please explain.
3.10 Briefly discuss the basic mechanisms adopted by TCP congestion control.
Chapter 4 40 points
4.1 Describe two major network-layer functions in a datagram network.
4.2 Describe how packet loss can occur at input and outputs of a router. Is it possible to eliminate
packet loss at these ports? If so, how? If not, please explain.
4.3 Suppose an application generates chunks of 960 bytes of data every 20 msec, and each chunk
gets encapsulated in a TCP segment and then an IP datagram. What percentage of each datagram
will be overhead, and what percentage will be application data?
4.4 Consider a datagram network using 8-bit host addresses. Suppose a router uses longest prefix
matching and has the following forwarding table:
Prefix Match Interface
00 0
001 1
otherwise 2
For each of the 3 interfaces, give the associated range of destination host addresses and the
number of addresses in the range.
4.5 Consider the following network. With the indicated link costs, use Dijkstras shortest-path
algorithm to compute the shortest path from x to all network nodes. Show how the algorithm
works by computing a table similar to the textbook example. In cases when several candidate
nodes have the same minimal costs, choose a node according to non-decreasing alphabetical
order.
y
w
v
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
