The throughput different in wmediumd_interference.py

12 views
Skip to first unread message

GANLIN TANG

unread,
Sep 18, 2025, 10:18:52 PM (3 days ago) Sep 18
to mininet-wifi-discuss
Hello:
I'm study the example/wmediumd_interference.py, but when I follow the step in mininet-wifi book the example result is:
    mininet-wifi> iperf sta1 sta2
    *** Iperf: testing TCP bandwidth between sta1 and sta2
    *** Results: ['14.3 Mbits/sec', '14.4 Mbits/sec']

but my condition is:
mininet-wifi> sta1 iw dev sta1-wlan0 link
Connected to 02:00:00:00:03:00 (on sta1-wlan0)
        SSID: new-ssid
        freq: 5180.0
        RX: 737763 bytes (13443 packets)
        TX: 15581732 bytes (10492 packets)
        signal: -60 dBm
        rx bitrate: 54.0 MBit/s
        tx bitrate: 6.0 MBit/s
        bss flags: short-slot-time
        dtim period: 2
        beacon int: 100
mininet-wifi> sta2 iw dev sta2-wlan0 link
Connected to 02:00:00:00:03:00 (on sta2-wlan0)
        SSID: new-ssid
        freq: 5180.0
        RX: 15596049 bytes (18792 packets)
        TX: 422708 bytes (5318 packets)
        signal: -76 dBm
        rx bitrate: 48.0 MBit/s
        tx bitrate: 6.0 MBit/s
        bss flags: short-slot-time
        dtim period: 2
        beacon int: 100
mininet-wifi> iperf sta1 sta2
*** Iperf: testing TCP bandwidth between sta1 and sta2
*** Results: ['5.2 Mbits/sec', '5.2 Mbits/sec']

I can't get the 14 Mbits/sec value.
wmediumd_interference.py

Ramon Fontes

unread,
Sep 18, 2025, 10:36:47 PM (3 days ago) Sep 18
to GANLIN TANG, mininet-wifi-discuss
You may adjust the fading coefficient (e.g., set it to 0 or 1) to
achieve more stable results.
> --
> You received this message because you are subscribed to the Google Groups "mininet-wifi-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-dis...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/mininet-wifi-discuss/814175c9-218e-40c1-9d86-548f43119543n%40googlegroups.com.

GANLIN TANG

unread,
Sep 19, 2025, 9:29:22 AM (3 days ago) Sep 19
to mininet-wifi-discuss
Hello:
Thanks for reply, it will improve the throughtput.
There is another question:
I'm running the mn-wifi-book-en/codes/cap3/bonding.py
and the ryu output is:
ryu-manager ryu/app/simple_switch_lacp_13.py
\loading app ryu/app/simple_switch_lacp_13.py
loading app ryu.controller.ofp_handler
instantiating app None of LacpLib
creating context lacplib
instantiating app ryu/app/simple_switch_lacp_13.py of SimpleSwitchLacp13
instantiating app ryu.controller.ofp_handler of OFPHandler
packet in 1 00:00:00:11:22:33 33:33:00:00:00:16 1
[LACP][INFO] SW=0000000000000001 PORT=1 LACP received.
[LACP][INFO] SW=0000000000000001 PORT=1 the slave i/f has just been up.
[LACP][INFO] SW=0000000000000001 PORT=1 the timeout time has changed.
[LACP][INFO] SW=0000000000000001 PORT=1 LACP sent.
[LACP][INFO] SW=0000000000000001 PORT=2 LACP received.
[LACP][INFO] SW=0000000000000001 PORT=2 the slave i/f has just been up.
[LACP][INFO] SW=0000000000000001 PORT=2 the timeout time has changed.
[LACP][INFO] SW=0000000000000001 PORT=2 LACP sent.
slave state changed port: 1 enabled: True
slave state changed port: 2 enabled: True
packet in 1 f2:23:b6:f1:a8:df 33:33:00:00:00:16 4
packet in 1 f2:23:b6:f1:a8:df 33:33:ff:f1:a8:df 4
packet in 1 00:00:00:11:22:33 33:33:00:00:00:16 1
packet in 1 82:18:08:b4:40:b0 33:33:00:00:00:16 3
packet in 1 82:18:08:b4:40:b0 33:33:ff:b4:40:b0 3
packet in 1 00:00:00:11:22:33 33:33:ff:11:22:33 1
packet in 1 f2:23:b6:f1:a8:df 33:33:00:00:00:16 4
packet in 1 f2:23:b6:f1:a8:df 33:33:00:00:00:02 4
packet in 1 82:18:08:b4:40:b0 33:33:00:00:00:16 3
packet in 1 82:18:08:b4:40:b0 33:33:00:00:00:02 3
packet in 1 00:00:00:11:22:33 33:33:00:00:00:16 1
packet in 1 00:00:00:11:22:33 33:33:00:00:00:02 1
packet in 1 00:00:00:11:22:33 33:33:00:00:00:16 1
[LACP][INFO] SW=0000000000000001 PORT=1 LACP received.
[LACP][INFO] SW=0000000000000001 PORT=1 LACP sent.
[LACP][INFO] SW=0000000000000001 PORT=2 LACP received.
[LACP][INFO] SW=0000000000000001 PORT=2 LACP sent.


But after I translate both from h2 and h3, there only 10Mbit in on host which start first another only have 100KB.
bonding.py

Ramon Fontes

unread,
Sep 19, 2025, 9:47:51 AM (3 days ago) Sep 19
to GANLIN TANG, mininet-wifi-discuss
> But after I translate both from h2 and h3, there only 10Mbit in on host which start first another only have 100KB.

Did you enable the bonding module in your system kernel?

As you can see in
https://github.com/ramonfontes/mn-wifi-book-en/blob/master/codes/cap3/bonding.py#L34
the bandwidth is configured to 10 Mbps. Consequently, the measured
throughput should approximate this value.
> To view this discussion visit https://groups.google.com/d/msgid/mininet-wifi-discuss/cc69a168-70ad-4988-9d24-c831dcc356acn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages