Reprodicing the Hybrid model for TCP with AQM

The main references for this are R.Castro work:

Algunas ideas/preguntas

Sería factible que el modelo continuo tome datos (el estado de las variables) del modelo discreto. Por ejemplo, la ecuacion 18.13 estima el tamaño de la cola del router. Puede salir esta informacion del modelo discreto. Idem para la probabilidad de descarte. Incluso el RTT (que en la ecuacion sale del tamaño de la cola). O sea, solo estimar el W.
Si es que es factible, eso puede ayudar a sacar la parte de AQM. No todas las redes usan AQM, pero estas ecuaciones asume que se usa AQM para calcular la probabilidad de descarte. Si la probabilidad de descarte sale del modelo discreto, la ecuacion se puede utilizar para cualquier red que descarte paquetes.

Reproducing Original Model

Commit: 0b51532fc7e

/examples/Matias/hybridTCP_AQM_castro/HybridFlow_vReport.pdm

Inline image 1

Reproduce Figure 7.16

Note that here we are only running the hybrid model (green line in figure 7.16, Blue line in the plot below). The continous model should be similar, but it is competing with an extra flow (the discrete flow). The discrete only model was not executed here.

Selection_829.png

W se ve asi (igual que el paper)

Inline image 1

Y la simulacion híbrida completa (las colas):

Inline image 2

Fixes to the original model

- Inports of the DQSS were swapped

- parameters corrected according to the thesis

Tests with the hybrid model

Setting Ncont=1 (Ndis=1 always)

Queue lenght (live and sampled weightedAVG)

TCP window size for discrete and fluid flows

Sweep from Ncont=1 to Ncont=10

TCP Window size from the discrete flow (in blue), and all the Ncont fluid flows (in red). The fluid flows are identical, so the window is representative for all.

It can be seen that the more flows are running in the network, the less bandwidth is asiggned to each.

The discrete and fluid W are qualitatively similar: the amplitud in which the W oscilates is similar. The frecuency is more or less similar.

From N=8 onwards the continuos W finds a stabilization point and stops oscilating (which would be the extected behavior in any TCP window). The point were it stabilizes is more or less the same of the avg of the discrete window. Also it can be seen that the discrete W oscilates with a low amplitud and higher frecuency.

Sweeping tau (dynamic and static)

With DelayQSS the RTT is used as delay, which is dynamic (RTT(t)). Here we see the effect of using DelayQSS in oposition to a static delay (or no delay when tau=0). We do the experiments for 1 continuos flow and 10 continuos flows.

For the static values of tau we changed the continuos model to take a constant value on the delay (instead of the dynamic RTT) as shown below:

N=1

We see the expected behavior of the delay: the higher the value for tau, the function is moved more to the right.
It is interesting how the delay affects the amplitud of W: the higher the delay, the bigger the amplitud.
It can be seen that using a dynamic tau is different from all static taus and resembles more to when tau is fixed to tau=0.05 (which not surprisingly matches the meanRTT for the run with dynamic tau meanRTT=0.0456323).

Taus_N1.png

same including the discrete window

N=10

Something similar happens when using 10 flows: the higher the tau, the higher the amplitud.
But for tau<=0.05 the function stabilizes. For the dynamic tau, which resembles the static tau=0.05 (because the meanRTT=0.0631575) it also stabilizes.

same including the discrete window

N=6

Including the discrete window

Tests with the pure discrete model

Using the pure discrete model with 6 flows:

6 flow incremental arrival test

Tests with 6 TCP flows each starting 5s after the previous one.

Simulation shows simular results than the reported in the paper.
There is a different in the behavior of the first flow around 19s: it shows a flat slope during ~10s which was not reported in the paper. Servaral simulations were run and show the same thing. Also seen when running the 6 flow simultaneously (a flat slope of ~9s in several flows).

This strange behaviour is probably rue to a Forced RTO in all TCP models set to 10. In the Hybrid model this parameter is set to 2s.

Setting RTO=-1, so as to calculate RTO dynamically

Still strange behaviour

Setting RTO=0.2

This is more simular to what was reported in the paper

6 simultaneos flows test

This tests is the discrete equivalent to the test in the hybrid scenario with Ncont=5 and Ndist=1

It shows the streange flat 9s slope, due to the RTO forced to 10s, in this case seen in several of the flows.

Setting RTO=0.2

Comparison of Discrete and Hybrid models

Here we compare the hybrid approach with the pure discrete approach.

6 flows

We plot the Wc and Wd from the hybrid model for Ncont=5 and Ndisc=1 (N=6 flows in total). We plot W1 from the discrete model with 6 simultaneos flows.

For the discrete model we use RTO=0.2. For the hybrid model, unless specified otherwise we use the dynamic tau (RTT(t)).

Comparison sweeping tau constant values

The plot with the results of the hybrid model execution is in previous section (sweeping tau values, and the contrasting against the discrete window from the hybrid model). Here we plot the same results as before, but also including the discrete window from the discrete model.

Comparando las curvas a los largo del tiempo ningun modelo continuo representa bien los picos del modelo discreto (no creo que ningun tau sea mejor que otro). El modelo discreto hibrido se hacerca mucho mas al modelo puramente discreto que los continuos (para cualquier tau). Esto es esperable y similar a lo que se ve en el paper.

including the Wc from hybrid model

comparing mean values for W

tau=-0.1 => dynamic tau (original model)
tau=-0.2 => full discrete model


También hice comparaciones del valor promedio de las ventanas (el grafico de barras del final). En ese casi si dan todos muy similar. El que mejor se acerca al modelo discreto es el que usa el RTT dinamico (DQSS tiene sentido :- ) ). Tambien el que usa tau=0.5 (porque el meanRTT=0.6).

-- MatiasAlejandroBonaventura - 2016-07-20

Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r6 - 2017-08-11 - MatiasAlejandroBonaventura
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback