Hi Sherif,

You need tc links in order to configure bandwidth or delay, right?


> OVSSwitch --(normal link)-- LinuxBridge --(tc link)-- LinuxBridge --(normal 
link)-- OVSSwitch

I haven't tried this topology yet, but with putting LinuxBridge like the above, 
you can
configure tc link independently from normal links of LinuxBridge-OVSSwitch.
For the normal links, you can configure Queues with rest_qos, I guess.

Here is a sample of Mininet script constructing the above topology.

from mininet.cli import CLI
from mininet.net import Mininet
from mininet.node import RemoteController
from mininet.nodelib import LinuxBridge
from mininet.link import TCLink
from mininet.log import setLogLevel


def main():
    """
    s1 --(normal link)-- b1 --(tc link)-- b2 --(normal link)-- s2
    """
    net = Mininet(controller=RemoteController)

    net.addController('c0')

    s1 = net.addSwitch('s1')
    s2 = net.addSwitch('s2')
    b1 = net.addSwitch('b1', cls=LinuxBridge)
    b2 = net.addSwitch('b2', cls=LinuxBridge)

    h1 = net.addHost('h1')
    h2 = net.addHost('h2')

    net.addLink(s1, h1)
    net.addLink(s2, h2)

    net.addLink(s1, b1)
    net.addLink(b1, b2, cls=TCLink, bw=10)
    net.addLink(b2, s2)

    net.start()
    CLI(net)
    net.stop()


if '__main__' == __name__:
    setLogLevel('info')
    main()


I would basically need to create linux bridges and only add queues and qos in 
the LinuxBridge switches? If that's the case then the queues will they show on 
ofctl if I do

curl -X GET http://localhost:8080/stats/queue/2 | jq ?
Where 2 would be the switch dpid of LinuxBridge or OVSSwitch?

LinuxBridge has no dpid, because LinuxBridge is not OpenFlow switch.
If configure some parameter on LinuxBridge, you need to set them by using "ip" 
or
"brctl" command for example (it is out of scope of OpenFlow).


Thanks,
Iwase

On 2017年08月22日 16:21, Fahmy Sherif Alaa Salaheldin wrote:
Hey Iwase,

I think I get what you're proposing.

But in that case the queues/qos would be added on the tc link itself?
I apologize if these are naive questions but i am a complete beginner

Sherif
________________________________________
De : Iwase Yusuke <iwase.yusu...@gmail.com>
Envoyé : mardi 22 août 2017 08:47
À : Fahmy Sherif Alaa Salaheldin
Cc : ryu-devel@lists.sourceforge.net
Objet : Re: Setting up Queues/QOS outside rest_qos

Hi again,

Just an idea, how about putting redundant LinuxBridge instances between your 
OVSSwitch instances?
(I didn't try it yet though)
e.g.)
    OVSSwitch --(normal link)-- LinuxBridge --(tc link)-- LinuxBridge --(normal 
link)-- OVSSwitch

LinuxBridge class is defined in mininet.nodelib.

Thanks,
Iwase


On 2017年08月22日 15:42, Fahmy Sherif Alaa Salaheldin wrote:
Good Morning,


I was wondering if somebody already experimented with setting up queues/qos on 
a MININET
environnement using RYU without using RYU's rest_QOS API.


In fact, I am trying to setup the queues by creating them manually with the 
linux tc tool as soon as
the mininet environment is setup up after creating the queues I add flow rules 
to the switches only
using RYU's ofctl_rest API.


Is that possible? If yes did someone try it? Any pointers?


Thank you in advance,

Sherif


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to