intrig-unicamp / mininet-wifi

Emulator for Software-Defined Wireless Networks
https://mn-wifi.readthedocs.io/
Other
432 stars 239 forks source link

why ovs queue setting no working on wireless interface?? #395

Closed Sean861026 closed 3 years ago

Sean861026 commented 3 years ago
截圖 2021-07-03 19 05 30
ramonfontes commented 3 years ago

This is due to the values added from TC to bw, loss and delay to the wlan interface. You can confirm this by running examples/wmediumd_interference.py cause this code uses wmediumd instead of tc.

You can also delete the rules with ap1 tc qdisc del dev ap1-wlan1 root and then queue-stats will work.

Sean861026 commented 3 years ago

if i use wmediumd, can i set the link bw and delay?

ramonfontes commented 3 years ago

You cannot set link parameters when using wmediumd because they are defined by the propagation model. You cannot use TC and OVS queues together either.

Sean861026 commented 3 years ago

ok, got it. thank you! i'll close this issue after this.

Sean861026 commented 3 years ago

sorry, i use tc qdisc del dev ap1-wlan1 root and then create ovs queue. But it always on default queue, is this situation normal?

截圖 2021-07-04 06 50 26
ramonfontes commented 3 years ago

I suggest you to check the ovs doc.

Sean861026 commented 3 years ago

sorry for bother again. i try to use tc directly but i got nothing after i add a filter.

sudo tc qdisc del dev ap2-wlan1 root handle 1:0 htb
sudo tc qdisc add dev ap2-wlan1 root handle 1:0 htb
sudo tc class add dev ap2-wlan1 parent 1:0 classid 1:1 htb rate 75mbps ceil 75mbps
sudo tc class add dev ap2-wlan1 parent 1:1 classid 1:11 htb rate 20mbps ceil 20mbps
sudo tc filter add dev ap2-wlan1 protocol ip parent 1:1 prio 1 u32 match ip dst 192.168.2.2 flowid 1:11
sudo tc filter show dev ap2-wlan1
ramonfontes commented 3 years ago

Please read the tc doc!! This is not a mn-wifi issue.

Have you ever tried tc filter show dev ap-wlan1 parent 1:1??

Sean861026 commented 3 years ago

ok, thank you