CPqD / ofsoftswitch13

OpenFlow 1.3 switch.
http://cpqd.github.com/ofsoftswitch13
298 stars 191 forks source link

Changing link speed #291

Open lmakows-uva opened 5 years ago

lmakows-uva commented 5 years ago

hi All,

I am using cqqd with mininet. What I noticed is that the links from hosts and between the switches are explicitely 10G. Is there a way to set the speed to 1G?

I tried with ethtool but it says it is unsupported.


mininet@mininet-vm:~/ofsoftswitch13$ sudo ethtool f440-eth2
Settings for f440-eth2:
        Supported ports: [ ]
        Supported link modes:   Not reported
        Supported pause frame use: No
        Supports auto-negotiation: No
        Advertised link modes:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Speed: 10000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        MDI-X: Unknown
        Link detected: yes
mininet@mininet-vm:~/ofsoftswitch13$ sudo ethtool -s f440-eth2 autoneg off speed 1000
Cannot set new settings: Operation not supported
  not setting speed
  not setting autoneg```
ederlf commented 5 years ago

You could try to limit the link speeds on Mininet. https://github.com/mininet/mininet/wiki/Introduction-to-Mininet#setting-performance-parameters.