Acknowledgement: Congestion Control Using Network Based Protocol (NBP)
Acknowledgement: Congestion Control Using Network Based Protocol (NBP)
ACKNOWLEDGEMENT
I have taken efforts in this project (Congestion Control using NBP). However it would not have
been possible without the kind support and help of many individuals and organizations. I would
like to extend my sincere thanks to all of them.
I am highly indebted to Chandigarh University and its faculty members for their guidance and
constant supervision as well as for providing necessary information regarding the project & also
for their support in completing the project.
I would like to express my gratitude towards my parents & member of Chandigarh University for
their kind co-operation and encouragement which help me in completion of this project.
I would like to express my special gratitude and thanks to industry persons for giving me such
attention and time.
My thanks and appreciations also go to my colleague in developing the project and people who
have willingly helped me out with their abilities.
Somesh Srivastava
ii
Congestion Control using Network Based Protocol (NBP)
ABSTRACT
The Internet’s excellent scalability and robustness result in part from the end-to-end nature
of Internet congestion control. End-to-end congestion control algorithms alone, however, are
unable to prevent the congestion collapse and unfairness created by applications that are
unresponsive to network congestion.
The Internet’s excellent scalability and robustness result in part from the end-to-end nature
of Internet congestion control. End-to-end congestion control algorithms alone, however, are
unable to prevent the congestion collapse and unfairness created by applications that are
unresponsive to network congestion. To address these maladies, we propose and investigate a
novel congestion-avoidance mechanism called Congestion Free Router (CFR).
CFR entails the exchange of feedback between routers at the borders of a network in order
to detect and restrict unresponsive traffic flows before they enter the network, thereby preventing
congestion within the network.
The fundamental philosophy behind the Internet is expressed by the scalability argument:
no protocol, mechanism, or service should be introduced into the Internet if it does not scale well.
A key corollary to the scalability argument is the end-to-end argument: to maintain scalability,
algorithmic complexity should be pushed to the edges of the network whenever possible .
iii
Congestion Control using Network Based Protocol (NBP)
List of Figures
iv
Congestion Control using Network Based Protocol (NBP)
Table of Content.
1 Introduction 1-2
2 SRS 3-6
5 Screenshot 28-30
7 Biblography 32
v
Congestion Control using Network Based Protocol (NBP)
CHAPTER 1: INTRODUCTION
Existing system
1
Congestion Control using Network Based Protocol (NBP)
Proposed system
2
Congestion Control using Network Based Protocol (NBP)
CHAPTER 2: SRS
1. INTRODUCTION
1.1 Purpose
The Internet’s excellent scalability and robustness result in part from the
end-to-end nature of Internet congestion control. End-to-end congestion
control algorithms alone, however, are unable to prevent the congestion -and
unfairness created by applications that are unresponsive to network
congestion.
The Internet’s excellent scalability and robustness result in part from the
end-to-end nature of Internet congestion control.however, are unable to
prevent the congestion collapse and unfairness created by applications that
are unresponsive to network congestion. To address these maladies, we
propose and investigate a novel congestion-avoidance mechanism called
Congestion Free Router (CFR).
2. OVERALL DESCRIPTION
Software Environment:
Hardware Environment:
4
Congestion Control using Network Based Protocol (NBP)
5
Congestion Control using Network Based Protocol (NBP)
6
Congestion Control using Network Based Protocol (NBP)
Forward Forward
Feedback Feedback
Source Destination
Router Router
Source Destination
Backward Backward
Feedback Feedback
Fig 1.
7
Congestion Control using Network Based Protocol (NBP)
2. FLOWCHART ANALYSIS:
Fig 2.
8
Congestion Control using Network Based Protocol (NBP)
False
If
Delta RTT=-Current RTT-
CurrentRTT
<e.baseRTT e.base RTT
True
B
A
Fig 3.
9
A Congestion Control using Network Based Protocol (NBP)
B
If f.phase
True
False
f.phase=
If
(deltaRTT*f.InRouterRat CONGESTION_
e<MSS*e.hopcount)
True
f.InRouter Rate=f.InRouterRate*2^RTTsElapsed
If f.phase
= = CONGESTION_
False
If f. InRouter Rate=
(deltaRTT*f.InRouterRat
e<MSS*e.hopcount) f.OutRouterRate-
rateQuantum
True
NEXT
10
Congestion Control using Network Based Protocol (NBP)
Feedback at the
OutRouter Router
No
If Packets Wait until the Packet is
are arrived arrived
Yes
Current Packet is
send
No
If Packets are Wait until the packet is
forwarded forward
Yes
Acknowledgement is
backward to InRouter
Yes
Stop the
If no Packet
timer
to Forwarded
No
Fig 4.
11
Congestion Control using Network Based Protocol (NBP)
Module 1: -
SOURCE MODULE.
Module 2: -
Module 3: -
ROUTER MODULE.
Module 4: -
Module 5: -
DESTINATION MODULE.
12
Congestion Control using Network Based Protocol (NBP)
2. Modules Description:
2. (A) Description:
An edge router operating on a flow passing into a network is called an
In-Router router. CFR prevents congestion collapse through a
13
Congestion Control using Network Based Protocol (NBP)
2. (C) Parameters:
Input Parameters:
Data Packets from Source Machine.
Backward feedback from the Router.
Output Parameters:
Data Packets.
Forward feedback.
3. (A) Description:
The task of this Module is to accept the packet from the In-Router
router and send it to the Out-Router router.
3. (C) Parameters:
Input Parameters:
Data Packets from In- Router Machine.
Forward feedback from the Router or In- Router.
Backward feedback from the Router or Out- Router.
Hop count.
Output Parameters:
Data Packets.
Forward feedback.
Incremented Hop count.
Backward feedback.
4. (A) Description:
An edge router operating on a flow passing out of a network is called
an Out-Router router. CFR prevents congestion collapse through a
combination of per-flow rate monitoring at Out-Router routers and per-
flow rate control at In-Router routers. Rate monitoring allows an Out-
Router to determine how rapidly each flow’s packets are leaving the
network. Rate monitored using a rate estimation algorithm such as the
Time Sliding Window (TSW) algorithm. Out-Router contains a flow
classifier, Rate monitor, and a feedback controller.
4. (B) Process Description:
Using time sliding window and rate monitoring algorithm to rank
the nodes in the network
Input data entities: which determine the rate of the
packets flow in the network.
Algorithm : time sliding window and rate monitoring
Output: packets are sending to destination.
15
Congestion Control using Network Based Protocol (NBP)
4. (C) Parameters:
Input Parameters:
Data Packets from Router.
Forward feedback from the Router.
Output Parameters:
Data Packets.
Backward feedback.
5. (A) Description:
The task of this Module is to accept the packet from the Out-Router
router and stored in a file in the Destination machine.
5. (B) Process Description:
Packets are received from the Neighbouring nodes.
Input data entities: message to be received from the Out router
to the Destination node in the form of packets with IP-address.
Algorithm: not applicable
Output: formatted packets with the requirement Information
for communication between Source and destination nodes.
5. (C) Parameters:
Message received from the Out-Router will be stored in the
corresponding folder as a text file depends upon the Source Machine
Name.
16
Congestion Control using Network Based Protocol (NBP)
3.1 Mechanism:
The architectural components, namely, the modified edge routers, which must
be present in the network
The feedback control algorithm, which determines how and when information
is exchanged between edge route
The rate control algorithm, which uses the information carried in feedback
packets to regulate flow transmission rates and thereby prevent congestion
collapse in the network.
A. Architectural Components
The only components of the network that require modification by CFR are
edge routers; the input ports of OutRouter routers must be modified to perform per-
flow monitoring of bit rates, and the output ports of InRouter routers must be
modified to perform per-flow rate control. In addition, both the InRouter and the
OutRouter routers must be modified to exchange and handle CFR feedback packets.
Fig 5.
17
Congestion Control using Network Based Protocol (NBP)
The input ports of OutRouter routers are enhanced in CFR. Fig. 3 illustrates
the architecture of an OutRouter router’s input port. Data packets sent by InRouter
routers arrive at the input port of the OutRouter router and are first classified by
flow. Flow classification is performed by InRouter routers on every arriving packet
based upon a flow classification policy.
After classifying packets into flows, each flow’s bit rate is then rate
monitored using a rate estimation algorithm such as the Time Sliding Window
(TSW) algorithm. These rates are collected by a feedback controller, which returns
them in backward feedback packets to an InRouter router whenever a forward
feedback packet arrives from that InRouter router.
Fig 6.
18
Congestion Control using Network Based Protocol (NBP)
The output ports of InRouter routers are also enhanced in CFR. Each output
port contains a flow classifier, per-flow traffic shapers (e.g., leaky buckets), a
feedback controller, and a rate controller (see Fig. 4). The flow classifier classifies
packets into flows, and the traffic shapers limit the rates at which packets from
individual flows enter the network. The feedback controller receives backward
feedback packets returning from OutRouter routers and passes their contents to the
rate controller. It also generates forward feedback packets that are transmitted to the
network’s OutRouter routers. To prevent congestion collapse, the rate controller
adjusts traffic shaper parameters according to a TCP-like rate-control algorithm, and
the rate-control algorithm used in CFR is described later in this section.
19
Congestion Control using Network Based Protocol (NBP)
Fig 7.
20
Congestion Control using Network Based Protocol (NBP)
C. Rate-Control Algorithm
The CFR rate-control algorithm regulates the rate at which each flow is
allowed to enter the network. Its primary goal is to converge on a set of per-flow
transmission rates (here in after called InRouter rates) that prevents congestion
collapse due to undelivered packets. It also attempts to lead the network to a state of
maximum link utilization and low router buffer occupancies, and it does this in a
manner that is similar to TCP.
Fig 8.
21
Congestion Control using Network Based Protocol (NBP)
timestamp and a list of flows arriving at the OutRouter router from the InRouter
router as well as the monitored OutRouter rates for each flow. Upon the arrival of a
backward feedback packet, the algorithm calculates the current round-trip time
(currentRTT in Fig. 6) between the edge routers and updates the base round-trip time
(e.base RTT), if necessary.
The base round-trip time (e.base RTT) reflects the best-observed round-trip
time between the two edge routers. The algorithm then calculates deltaRTT, which
is the difference between the current round-trip time (currentRTT) and the base
round-trip time (e.baseRTT). A deltaRTT value greater than zero indicates that
packets are requiring a longer time to traverse the network than they once did, and
this can only be due to the buffering of packets within the network.
Propagation delay
Source
Sink
Queuing delay
Round-trip time
The estimated number of round-trip times since the last feedback packet
arrived is denoted as RTTs Elapsed. Doubling the InRouter rate during slow start
22
Congestion Control using Network Based Protocol (NBP)
allows a new flow to rapidly capture available bandwidth when the network is
underutilized. If, on the other hand, the flow is in the congestion-avoidance phase,
then its InRouter rate is conservatively incremented by one rate Quantum value for
each round trip that has elapsed since the last backward feedback packet arrived
(f.InRouterrate rate Quantum RTTsElapsed). This results in rate growth behavior
that is similar to TCP in its congestion-avoidance phase.
Furthermore, the rate quantum is not allowed to exceed the flow’s current
OutRouter rate divided by a constant quantum factor (QF). This guarantees that rate
increments are not excessively large when the round-trip time is small. When the
rate-control algorithm determines that a flow is experiencing incipient congestion, it
reduces the flow’s InRouter rate.
23
Congestion Control using Network Based Protocol (NBP)
From this time point on, f.InRouterRate becomes greater than TCP’s transmission
rate, and therefore, CFR’s congestion control does not regulate TCP sources until
congestion happens again.
24
Congestion Control using Network Based Protocol (NBP)
CHAPTER 5: SCREENSHOTS
1. Source
Fig 9.
2. InRouter
25
Congestion Control using Network Based Protocol (NBP)
Fig 10.
3. Router
Fig 11.
4. OutRouter
Fig 12.
26
Congestion Control using Network Based Protocol (NBP)
Fig 13.
5.Destination
Fig 14.
27
Congestion Control using Network Based Protocol (NBP)
CFR ensures at the border of the network that each flow’s packets do not
enter the network faster than they are able to leave it, while ECSFQ ensures, at the
core of the network that flows transmitting at a rate lower than their fair share
experience no congestion, i.e., low network queuing delay. This allows the
transmission rate of all flows to converge to the network fair share. CFR requires no
modifications to core routers nor to end systems.
Only edge routers are enhanced so that they can perform the requisite per-
flow monitoring, per-flow rate-control and feedback exchange operations, while
ECSFQ requires a simple core-stateless modification to core routers. Simulation
results show that CFR successfully prevents congestion collapse from undelivered
packets. They also show that, while CFR is unable to eliminate unfairness on its
own, it is able to achieve approximate global max-min fairness for competing
network flows when combined with ECSFQ, they approximate global max-min
fairness in a completely core-stateless fashion.
28
Congestion Control using Network Based Protocol (NBP)
BIBLOGRAPHY
References
[1] S. Floyd and K. Fall, “Promoting the use of end-to-end congestion control
in the internet,” IEEE/ACM Trans. Networking, vol. 7, pp. 458–472,
Aug. 1999.
[2] J. Nagle, “Congestion control in IP/TCP Internet works,” Internet Engineering
Task Force, RFC 896, Jan. 1984.
[3] V. Jacobson, “Congestion avoidance and control,” ACM Comput. Commun. Rev.,
vol. 18, no. 4, pp. 314–329, Aug. 1988.
[4] (1999, Jan.) Real Broadcast Network White Paper. Real Networks, Inc. [Online].
Available: http://www.real.com/solutions/rbn/ whitepaper.html
[5] (1999, Jan.) Real Video Technical White Paper. Real Networks Inc. [Online].
Available: http://www.real.com/devzone/library/whitepapers/ overview.html
[6] A. Habib and B. Bhargava, “Unresponsive flow detection and control in
differentiated services networks,” presented at the 13th IASTED Int. Conf. Parallel
and Distributed Computing and Systems, Aug. 2001.
[10] A. Mustafa and M. Hassan, “End to end IP rate control,” in Recent Advances in
Computing and Communications. New York: McGraw-Hill, Dec. 2000, pp. 279–
282.
[11] A. Rangarajan and A. Acharya, “ERUF: Early regulation of unresponsive best-
effort traffic,” presented at the Int. Conf. Networks and Protocols, Oct. 1999.
[12] S. Robinson, “Multimedia transmission drive net toward gridlock,” New York
Times, Aug. 23, 1999.
[13] A. Demers, S.Keshav, and S. Shenker, “Analysis and simulation of a fair
queuing algorithm,” in Proc. ACM SIGCOMM, Sept. 1989, pp. 1–12.
29