Transmission Control Protocol
Transmission Control Protocol
Exp:No:
Date:
AIM
To design and analysis the performance of Transmission Control Protocol in different
scenario.
Software Used
Riverbed Modeler Academic Edition
Theory
The Internets TCP guarantees the reliable, in-order delivery of a stream of bytes.
It includes a flow-control mechanism for the byte streams that allows the receiver to limit
how much data the sender can transmit at a given time. In addition, TCP implements a
highly tuned congestion-control mechanism. The idea of this mechanism is to throttle
how fast TCP sends data to keep the sender from overloading the network.
The idea of TCP congestion control is for each source to determine how much
capacity is available in the network, so that it knows how many packets it can safely have
in transit. It maintains a state variable for each connection, called the congestion window,
which is used by the source to limit how much data it is allowed to have in transit at a
given time. TCP uses a mechanism, called additive increase/multiplicative decrease, that
decreases the congestion window when the level of congestion goes up and increases the
congestion window when the level of congestion goes down. TCP interprets timeouts as a
sign of congestion. Each time a timeout occurs, the source sets the congestion window to
half of its previous value. This halving corresponds to the multiplicative decrease part of
the mechanism. The congestion window is not allowed to fall below the size of a single
packet (the TCP maximum segment size, or MSS). Every time the source successfully
sends a congestion windows worth of packets, it adds the equivalent of one packet to the
congestion window; this is the additive increase part of the mechanism. TCP uses a
mechanism called slow start to increase the congestion window rapidly from a cold
start in TCP connections.
It increases the congestion window exponentially, rather than linearly. Finally,
TCP utilizes a mechanism called fast retransmit and fast recovery. Fast retransmit is a
heuristic that sometimes triggers the retransmission of a dropped packet sooner than the
regular timeout mechanism In this lab you will set up a network that utilizes TCP as its
end-to-end transmission protocol and analyze the size of the congestion window with
different mechanisms.
Procedure
Step 1 - Create a New Project
1. Start Riverbed Modeler Academic Edition => Choose New from the File menu.
2. Select Project and click OK => Name the project <your initials>_TCP, and the
scenario No_Drop => Click OK.
3. In the Startup Wizard: Initial Topology dialog box, make sure that Create Empty
Scenario is selected => Click Next => Select Choose From Maps from the Network
Scale list => Click Next => Choose USA from the Map List => Click Next twice =>
Click OK.
The ip32_cloud node model represents an IP cloud supporting up to 32 serial line interfaces at a
selectable data rate through which IP traffic can be modeled. IP packets arriving on any cloud
interface are routed to the appropriate output interface based on their destination IP address. The
RIP or OSPF protocol may be used to automatically and dynamically create the cloud's routing
tables and select routes in an adaptive manner. This cloud requires a fixed amount of time to
route each packet, as determined by the Packet Latency attribute of the node.
2
5. Click OK and then save your project. Now, you have completed the configuration of
the West subnet. To go back to the top level of the project, click the Go to next higher
level
button.
button.
button.
3. Click Show. The resulting graphs should resemble the ones below.
4. To zoom in on the details in the graph, click and drag your mouse to draw a rectangle,
as shown above.
5. The graph should be redrawn to resemble the following one:
10
6. Notice the Segment Sequence Number is almost flat with every drop in the
congestion window.
7. Close the View Results dialog box and select Compare Results from the Result menu.
8. Fully expand the Object Statistics hierarchy as shown and select the following result:
Sent Segment Sequence Number.
9. Click Show. After zooming in, the resulting graph should resemble the one below.
Results
11