Homework 7 Solution

Problem 1 (5)

A process on host 1 has been assigned port p, and a process on host 2 has been assigned port q. Is it possible for there to be two or more TCP connections between these two ports at the same time?

No. A pair of ports uniquely sets up ONE connection

Problem 2 (40)

TCP provides reliable transfer through a mixture of sequence number, receiver buffer, cumulative acknowledgement, and fast retransmission. Answer the following True or False problems. If it's False, explain why.

Problem 3 (10)

TCP provides congestion control through slow start and AIMD ( additive increase and multiplicative decrease). Answer the following True or False problems. If it's False, explain why.

Problem 4 (10)

Problem 5 (20)

Problem 6 (15)

Refresh concepts on ``big endian'' and ``little endian''

Problem 7 (10 - check for completion but not correctness): Task 1 of project 4

Write a server for node0 and call it node0.c. Write a client for node1 and call it node1.c. Initially, prepare the initial DV table for both node0 and node1. Let node1 send its DV to node0. Upon receiving node1's DV, node0 will modify its DV according to node1's input. Then it'll reply node1 with the updated DV.