TCP Connection Lab

 

Background:

In this lab you will create a TCP layer that should be able to connect to a real TCP stack on another computer.  You will start your web server on a machine with the IP address of the eth1 network.  When the accept method is called on your protocol, you should record the IP address of the other end of the connection so that you can acknowledge packets when they arrive.  When the connect method is called, your code should send a SYN packet to the specified destination to initiate the connection.  The machine where your web server is running will then issue a SYN+ACK packet . You should then respond with an ACK packet and data is ready to be transferred.  You will need to send an ACK for every packet you receive, and should keep sending the current packet sent through your "push" method until the packet has been acknowledged.