Proceedings
of the 2007 IEEE International
Conference
onTuesM02
Networking,
Sensing and Control, London, UK, 15-17 April 2007
Switching
Resilient PI
Controllers for
Active Queue
Management of
TCP
Flows
Deniz
Ustebay
Hitay OzbayDepartment of Electrical and Department of Electrical and
ElectronicsEngineering Electronics Engineering
BilkentUniversity BilkentUniversity
Ankara 06800,Turkey Ankara 06800, Turkey
Email: deniz@(d'ee.bilkent.edu.tr Email: hitay@bilkent.edu.tr
Abstract-Active Queue Management (AQM) is used in comr- complicated to implement in real networks. Therefore we
puter networks to increase link utilization with less queueing consider simpler PI controllers and switch among them. delays. The fluid flowmodel of TCP based on delay differential In this
paper
weapply thePI
controller proposed in1118]
to aequations supplies the mathematical background for modelling w.
the AQM as a feedback system. Recently various PI and PID network with time varying round trip times(RTT). We propose controllers are designed for this feedback system, [7], [18]. In that when RTT (i.e. time delay) varies with time, dividingthe thispaper, we consider the case for which the Round TripTime operatingrangeto smallerregionsanddesigningPI controllers (RTT) is time varying and we propose switching resilient PI for each of theseregions give better results than using a single
controllers usingthe design method introduced in [18].
PI
controller for the entire operating range. This propositionI.
INTRODUCTION is supported by ns-2 [12] simulation results.Remaining of the
paper
is organized as follows. The AQMOne of the most persistent problems confronted in the model and the details of PI controller design for AQM are Internet is the congestion. When congestion is present in the given in Section II. The results and analysis of the ns-computernetwork, buffersattherouters arefilled withpackets. simulations can be found in Section III. Concluding remarks Any packet that reaches to these routers are lost and to be aremade in Section IV.
resent. If lots of packets are lost and tried to be resent, a
considerableamountofdelaywillbe observedbythe endusers II. PlCONTROL FOR AQM
of the
Internet,
[4]. AQM is a congestion control mechanism A. Mathematical Modelof AQM Supporting TCP Flowsthat is used for preventing buffer overflows and such large The dynamical model of TCP was developed using fluid delays. On the other
hand,
buffers that have an amount of flow approximation in [11] and used by[2], [7], [10], [14],
packets
less than a desired level are also unwanted because[15],
[20]. In this paper we use asimplified
version of thisthey signal under utilization oflink capacities. In
fact,
AQM model introduced in [7]. The model consists of the following triesto maintain acertain desired level of queue length atthe nonlineardifferential,
time-delayed equations:routerbuffersbyavoiding both buffer overflow andemptiness. I
W(t)
W RFor this
objective
AQM schemes mark thepackets passing
147(t 1 WC) RI) throughthelink according to acertain probabilistic rule. This R(t) 2 R(t - R(t))packet marking probability can be a static function of queue q(t) N(t) W(t)
length as in RED [3] and REM [1] or a dynamic function R(t)
of queue length as in [7], [18]. In [11]7 a fluid flow model where W is the TCP window size, q is the queue length, N of AQM was developed. In
[6],
[7], the fluid flow model is is the number of TCPflows,
c is the linkcapacity,
and p is linearized and a design method for PI control of AQM is the probability ofpacket mark.Here,
RTT (total delay in the proposed. In[18],
new PI and PID controllers for AQM are feedback path) is expressed bydeveloped using techniques introduced in
[5],[13]
and it is (t)shown that the proposed PI controller performs better than
R(t)
=To(t)
+q(t)
(3)the PI controller
designed
in [7] in terms oftracking
androbustness. where
7O(t)
is the propagation delay. Note that we considerDifferent methods ofAQM have beenproposed in
2],
[9],
timevarying
propagation
delay.
The variation of lo t) will be[14],
[16],
[19],[20].
With theexception
of[20]
whereHo,
taken to be slowcompared
to the variations ofq(t
c(t) but the based AQM techniques areused,
the papers mentioned above magnitude of the variations of thepropagation delay islarger do not consider timevarying propagation
delays,
which may than the variations ofqueueing delay.
occur due to changes in the communication channels. The Equation(1)specifies the TCPwindowdynamic int-corporat-proposed switched HOO
conltrol
method of [20] is relatively ing the additive irncrease arnd multiplicative decrease (AIMD)behavior ofTCP. Likewise, equation (2) describes the queue C.
Switching
Controllength dynamic.Itispossibleto usetheseequationstodescribe The
PI
controller design given above assumes that RTT TCP as a feedback control system, where p is the control is time invariant.However,
incomputer networks
RTT isinputgenerated by feedback from q. This nonlinear feedback
probably
time varying
oruncertain.system can then be linearized around an equilibrium point Forthe case shown in Fig.
1,
the nominal value of RTT isusing small signal analysis. Let qo,W0,co,N0o,
tRo
be the 0 and we assume that RTT takes values betweenft-Af
nonrlLinal
~ ~ ~ ~ ~ ~ ~ ~
~
Rvalue we assumthatbrl
RTTn
take value beweRq
dA(t
nominal values atthe
equilibrium point.
Forq(t)
q +° q(t),
and Ro+ AR. If we are todesign
asingle
PI controller for WV(t) = WO+6w(t),
c(t) c0 +0c(t), N(t)
=No
+N(t),
this plant we canassumep(t) =po+
Ap(t)
and Rt(t)tRo
+6R(t),
withRo
=o+ co (i) the plant is nominal let R = Ro andimplementKpio0
atransfer functiont-~~pqs
Gp()from
input
6p
to outPUt6q
can be (ii fo fti:-0- Af i- tII <t0 lt ft(i)frR R<RY<R,ltR=R-t:i. :;< - 2 andlo-ARan
obtained,
see e.g.[2],
[6], [7],
[15],
implementK21
G
(Y)-e
Ros
Roco
K 1Roco0
(iii) forRo
< RTT <Ro
+tR,
let = tR2
=Pfo
+AR
pq
ft-0Ros
+f-
t. - 12NO
andimplement
Kpi2.
Since it is shown that considered PIcontroller is robust to
Now,
withplant dynamics expressed by
this transfer func- thechangesin
RTT,[18],
these three controllers are expectedtion, we can
design
a PI controller for theplant.
to havegood performance
in theneighborhood
of RTT valuesB. Resilient PI Controller Design they are designed for. In this paper, we illustrate that it is
possible to improve the performance in the case of time
Recently a study on allowableP1and PD control parameters
varyinlrg
RTT byapplyinlg
switching control. Twodifferenlt
for time delayed systems with at most two unstable poles is
done in
[5],
[13]. Theobjective
of thisstudy
was to find tbeconfigurations
areinvestigated:
donest
allowable
in].Ters
objectiveroftain
stywan
Dcntorollher
a)Usingtwo of thePIcontrollersabove,
we performmid-pointlargest aloal itraS fo cerai P1 an PD cnrller swthn. Wbe RT is in [ft0 - Aft...is: :,ft,] intra K-parameters. Controllers obtained with this method is expected active and when RTT is in
[Ro,
ftAf
tR]
intervalKpi2
isto work for a wide range of system parameters. Hence they active.
will be resilient in the sense of [17]. In
[18],
this controller b)Instead of dividing[fO
-ARfRo
+AfR]
interval intotwo,
parameterdesign
method isapplied
to the AQMproblem by
we divide it into N » 1 intervals. Therefore wedesign
Nselecting
the center of thelargest
allowable intervals as thedifferent
PI controllers for each of theseintervals
andas RTToptimal gains of the controllers. We now summarize the PI varies among these intervals the controller parameters switch
control design of [18].
For K > 1 the transfer function of the plant can be
rewritten as III. SIMULATIONS
c)K eRos The
performance
of thedesigned
PI controllers are testedCpq() w-f) here s
(Rs
1) with ns-2 simulations. The network topology (Fig. 2) of thesimulations consists ofasinglebottlenecklinkandtwo routers
~
f(s)
-1 at the ends of this link which support N TCP flows as in0
=0 11 s
ll'[19].
The buffers of both routers can hold 300packets
wherethe packets are of size 1000 Bytes. All the links
inl
tbe According to[5], [13],
the optimal proportional gain that network has the same capacity C0 = C1t=h10
Mbps. The
maximizes the allowable integral gain interval is 20I and the propagationdelays of thelinks vary with time.As RTTof the
maximum value of the maximal interval of the
integral
gain networkvanis
in the interval [0.16s 0.48s] thpropagation
is 1 .nTo make the controllerrobustly
stable with respect to delay of the bottlenecklink, To,
takes values
in the intervallargest perturbations in the controller parameters, we choose [4ms 36ms] the
propagation delay
of the links betweenthe
proportional
gain
as -20 andtheintegral
gain
as 80-which
routers and TCPsources/destiantions,
'll,takes values betweenis the midpoint of the maximal
interval,
[18]. Then the PI controller for the plant(5)
is obtained asTCP Sources TCP Destinations
Kpi(s)
20c0K
(1+ 80s)(6)
In order to implement these controllers in ns-2 we use a Q
digital implementation
methodsuggested
in[8].
[6]. COJORo-AR
Ro Ro+ARFig. 1. RTT
TABLE I TABLE II
THEANALYSISOFSIMULATION RESULTS FORRTTi THEANALYSISOFSIMULATION RESULTSFORRTT2
Controller Mean Std RM[S error s Controller Mean Std RMS error £
Kpio 153.34 39.64 0.27 0.33 Kpio 152.28 46.03 0.31 0.42
Kpil 142.60 39.14 0.27 0.27 Kpil 134.68 43.60 0.31 0.42
Kpi2 159.91 45.96 0.31 0.49 Kpi2 159.47 51.80 0.35 0.52
Kpij-Kpi2 Switching 152.52 35.07 0.23 0.22 Kpij-Kpi2 Switching 150.67 41.69 0.28 0.32
16 SwitchingControllers 148.77 34,63 0.23 0.23 16SwitchingCon_oilers 150,57 40.31 0.27 0,32
[8ms,72ms]. The nominal values of the system parametersare: better than the benchmarkPI design [7] which is available in
No = 30 TCP flows,
c,
= 1250 packets/s,q,
= 150 packets, the current version ofns-2).The performances of the designedRo = 0.32 s. controllerswere tested via ns-2 simulations. Simulations show
We investigate the performance of five different configura- that switching between two controllers gives better results
tions: compared to a single controller case.
(a) single controller,
Kpio,
Note that theoreticalproof of performance improvement by(b) single controller,
Kpil,
using switched controllers in such a complicated nonlinear(c) single controller,
Kpi2,
system (packet level simulation setting) is not easy to obtain.(d) two switching
controllers,
Kpil
andKpi2,
In fact, even for simplified flow model it can be shown(e) N=16 switching controllers. that arbitrary switching between two controllers may even
This
experiment
is donetwice,
first for an RTT function destabilize the feedbacksystem.
Therefore our simulationRTT1,
as in Fig.3(a)
and then for a morequickly changing
results illustratethe value ofmid-point
switchedPI
controllersRTT function, RTT2 as in Fig. 4(a). The plots of queue for this AQM problem.
lengths are given in Fig. 3 and Fig. 4. For the purpose of ACKNOWLEDGMENT
evaluating the simulation results,we compare someproperties
of thequeuelengths for allcases. We do the comparison with This work is supported in part by the European
Commis-mean, standard deviation (abbreviated std) RMS error and E sion (contract no. MIRG-CT-2004-006666) andbyTUBITAK
as in [18]. RMS error can be formulated as (grant no.
EEEAG-105E]56).
i
er ( 2 2 REFERENCES
RMXSero - I q
q(k)-
qd
. 7*.
._.
[1] S. Athuraliya, S. H. Low V. H. Li, Q. Yin, "REM: Active Queue\k=1 Management,"IEEE Network, vol. 15,no. 3, May-June2001,pp. 48-53.
where qd = 150 packets is the desired queue length and [2] M. diBemardo, F. Garofalo and S. Manfredi, "Performance ofRobust
AQM controllers inmultibottleneck scenarios,"Proc. o'the44th IEEE
MVI is the total number of the samples generated by network
Conr.rence
on Decision andControl, andthe European ControlCon-simulator. The last metric isgiven as E =
To/Ttota;
where To ference2005Seville, Spain,December2005, pp. 6756-6761.is the totallengthof time intervals forwhich q(t) f [120,180] [3] s.Floyd, V.Jacobson, "Randomearly detectiongatewaysforcongestion
and it tas i
teavoidance,
IEEE/ACM Transactions onNetworking,vol. 1,no.4,Aug.and
'1IotaI
is the total simulation time (200 seconds).1993,
pp. 397-413.The results are given in Tables I and II. According to the [4] S. Floyd, K. Fall, "Promotingthe use of end-to-end congestioncontrol
figures
andtables,
switching betweentwo controllersimproves in theI'nternet,"
IEE1:.'/ACM
Transactions onNetworking,vol. 7 (1999),figues
taknan menstnaddvainRM pp. 458-472.the1tracking and mean standard d viation RMS and values [5] A. N.Giindes H.
Ozhay
A. B. Ozgiier PID Controler Synthesis forfor bothRTT functions.Using 16 controllers does notprovide aClass ofUnstableMIMOplantswithI/ODelays, Autom.atica,vol. 43
a significant improvement accordingto the results in Tables I (2007) pp. 135-142.
and However forudt 3 4
t[6]
C. Hollot, V. Misra, D. Towsley, W. Gong, "On designing improvedand II. lHoweverfor R§112 case, around t 30, 40] there iS a controllersforAQMrouters supporting TCP
flows,"
in IEEEINFOCOM,
suddendropin queuelength whichcannotbecompensated by Alaska,April2001,pp. 1726-1734.
two switching controllers see Fig. 4. This sudden dropin q(t) [7] C. Hollot, V. Misra, D. Towsley, W. Gong, "Analysis and design of
controllers for AQMrouters supportingTCPflows,"IEEETransactions
iS nlot seenwhenlr we use Kpl (designedfor smallest nominlral onAu
tomatic
Control,
vol. 47, no.6, June2002,pp.
945-959.RTT) or 16 switched controllers. Since the numerical results [8] R. Isermann,Digital ControlSystems Volume 1: Fundamentals,
Deter-show that
Kpil
is not ableto track the queuelength properly tninistic Control 2nd revisedEd. Springer-Verlag, 1989.[9] S. Kunniyur, R. Srikant "Analysis and design of an adaptive virtual
thesIudden drop problems can be solved by 16 controllers with queue (AVQ) algorithm for active queuemanagement," in Proc. ACM
good performance. SIGCOMM,SanDiego, CA,Aug. 2001,pp. 123-134.
[10] S. Low, F. Paganini, J. Wang, S. Adhalka, J. Doyle, "Dynamics of
IV. CONCLUSION TCP/REDandascalablecontrol,"in Proc.IE,§EINFOCOM,NewYork,
June2002, pp239-248.
In this paper we proposed switching PI controllers for time [1] V. Misra, W. Gong, D. Towsley, "A fluid-based analysis of anetwork
varying time delayed single bottleneck network. We designed of AQMrouters supportingTCPflows with an applicationtoRED,"in
Proc. ACMSIGCOMM Stockholm, Sweeden Sep.2000,pp. 151-160. PIconntrollers accordingt esign method given in- [18 (In [12] ns-2 Network Simulator, version: 2.27. [Online]. Availahle:
[13] H. Ozbay,A. N. Gdndes, "Resilient PI and PD Controllers for aClass0:5
of UnstableMIMO plants with 1/0Delays,"inCDROMProceedingsof 0.45
6thIFACWorkshop onTimneDelavSystems,L'Aquila, Italy, July 2006.
[14] E-C. Park, H. Lim, K-J. Park, C-H. Choi, "Analysis and design of the 0.4
virtual ratecontrol algorithm forstabilizing queues in TCPnetworks," - 0-35
Computer Networks, vol. 44(2004), pp. 17-41.
[15] P-F. Quet,H. Ozbay, "OntheDesign ofAQM SupportingTCPFlows:
Using Robust Control Theory " IEEE Transactions on Automlatic 0.25
Control, vol.49, no. 6,June2004, pp. 1031-1036. 0.2
[16] S.Ryu, C.Rump, C.Qiao, "A predictive androbustactive queue
man-agement forInternet congestion control,"in Proc. oftile 8thIEEESyny- 0 50 Tim ( 150 200
posiurn on Contputers and Com-n unications, Kemer, Antalya, Turkey,
June-July 2003, pp. 991-998. 300
[17] G.J. Silva, A. Datta, S. P. Bhattacharyya,"PID Controllers for
Time-Delay Systems," Birkhauser, Boston,2005. 250
[18] D. Ustebay and H.Ozbay, "A NewPIand PID ControlDesignMethod forIntegrating Systemswith TimeDelays,"toappear in Proc. fthethe
Sixth WSIA Internatianal Conference on SignalProcessing, Roboticsci 1 so
andAutomation, Corfu, Greece, Fehruary 2007,
-[19] P. Yan, Y. Gao, H. Ozbay, "A Variable Structure Control Approach to 100 Active Queue ManagementforTCPwithECN,"IEEETransactions on 50 ControlSystems Technology, vol. 13,no. 2, March2005, pp. 203-215.
[20] P. YanandH.Ozbay,"RobustController Designfor AQM andH,, Per- 50 100 150 20 formance Analysis,"inAdvances inComnmunication ControlNetworks, Tie (sec)
S. Tarbouriech, C.Abdallah,J. Chiasson Eds., Springer-Verlag LNCIS,
Vol. 308, 2004,pp. 49-64. 300 c-1 sso~~~~~~~Ts (so
2sol
0 o100 is 200 300 10 5 1Fig. 3. ns-2 simulation:: (a) RTT1 (h) single controiler, Kpo (c) single con toiler, Kpi1 (d) single controller, Kpi2 (e) two :witching controIlers,
300 0250 0 so 1 00 1 50 2(00 300 2300 2500 100 1|>l 0 so 1 00 1 50 2(00 300 2005 015 0 E- ~ ~ ~ ~ ~ ~ ~ ~ ~ Tm (:sec)
Fi.4 s2smltos:()RT b igecntolr p;()snl
cotolrc p d)snl otolr,Ki e w wtcigcnrles