How to enable 802.11n and above in Adhoc

31 views
Skip to first unread message

GANLIN TANG

unread,
Sep 24, 2025, 6:58:37 AMSep 24
to mininet-wifi-discuss
Hello:
I try to use 802.11n in Adhoc, but I'm not sure I have open it or not.
The code is follow, another question is how to check the type of 802.11 in node.
The out put in one station is:
root@ubuntu:/home/tang/sdn_manet_exp# iw dev A-wlan0 link
Joined IBSS 02:ca:ff:ee:ba:01 (on A-wlan0)
SSID: adhocNet
freq: 2412
root@ubuntu:/home/tang/sdn_manet_exp# iw dev A-wlan0 info
Interface A-wlan0
ifindex 133
wdev 0x7200000001
addr 00:00:00:00:00:04
ssid adhocNet
type IBSS
wiphy 114
channel 1 (2412 MHz), width: 20 MHz (no HT), center1: 2412 MHz
txpower 20.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytestx-packets
0 0 11 0 0 0 0 1080 11
topo.py

Ramon Fontes

unread,
Sep 24, 2025, 9:07:21 AMSep 24
to GANLIN TANG, mininet-wifi-discuss
You have to set the mode when you create the link:
https://github.com/intrig-unicamp/mininet-wifi/blob/master/examples/adhoc.py#L49
> --
> 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/29cb032b-af3f-4420-997f-df5e5c488603n%40googlegroups.com.

GANLIN TANG

unread,
Sep 24, 2025, 8:03:29 PMSep 24
to mininet-wifi-discuss
Hello:
I try to setting of
net.addLink(sta1, cls=adhoc, intf='D-wlan0', ssid='adhocNet', mode='n', channel=11, ht_cap='HT40+', **kwargs)
channel = 1(or 6) it will show like:
Traceback (most recent call last):
  File "/home/tang/sdn_manet_exp/topo.py", line 71, in <module>
    topology(sys.argv)
  File "/home/tang/sdn_manet_exp/topo.py", line 49, in topology
    net.addLink(sta1, cls=adhoc, intf='D-wlan0', ssid='adhocNet', mode='n', channel=11, ht_cap='HT40+', **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/mininet_wifi-2.6-py3.10.egg/mn_wifi/net.py", line 658, in addLink
    link = cls(node=node1, **params)
  File "/usr/local/lib/python3.10/dist-packages/mininet_wifi-2.6-py3.10.egg/mn_wifi/link.py", line 1818, in __init__
    self.configureAdhoc()
  File "/usr/local/lib/python3.10/dist-packages/mininet_wifi-2.6-py3.10.egg/mn_wifi/link.py", line 1837, in configureAdhoc
    self.join_ibss(self.ssid, self.format_freq(),
  File "/usr/local/lib/python3.10/dist-packages/mininet_wifi-2.6-py3.10.egg/mn_wifi/link.py", line 233, in format_freq
    return int(format(self.freq, '.3f').replace('.', ''))
TypeError: unsupported format string passed to NoneType.__format__

and if I setting the 
net.addLink(sta1, cls=adhoc, intf='D-wlan0', ssid='adhocNet', mode='n', channel=44, ht_cap='HT40+', **kwargs)
which the channel = 44
the topo is totally same but all node couldn't connect and ping.


And I try to find out how to check the 802.11 type(eg. g, n, ac..) using in each node, but I don't know how to check it.

Screenshot from 2025-09-25 08-16-09.png
topo.py

GANLIN TANG

unread,
Sep 24, 2025, 8:58:26 PMSep 24
to mininet-wifi-discuss
Hello:
Thank for the reply!
it could ping successful, but I still don't know how to check the 802.11 type.
In the condition of :
net.addLink(sta1, cls=adhoc, intf='D-wlan0', ssid='adhocNet', mode='n', channel=36, **kwargs)
The output of iw is:
iw dev A-wlan0 link
Joined IBSS 02:ca:ff:ee:ba:01 (on A-wlan0)
SSID: adhocNet
freq: 5180
root@ubuntu:/home/tang/sdn_manet_exp# iw dev A-wlan0 info
Interface A-wlan0
ifindex 382
wdev 0x14d00000001
addr 00:00:00:00:00:04
ssid adhocNet
type IBSS
wiphy 333
channel 36 (5180 MHz), width: 20 MHz (no HT), center1: 5180 MHz
txpower 21.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytestx-packets
0 0 13 0 0 0 0 1228 13

In the condition of :
net.addLink(sta1, cls=adhoc, intf='D-wlan0', ssid='adhocNet', mode='n', channel=36, ht_cap='HT40+',**kwargs)
The out put of iw is:
root@ubuntu:/home/tang/sdn_manet_exp# iw dev A-wlan0 info
Interface A-wlan0
ifindex 389
wdev 0x15300000001
addr 00:00:00:00:00:04
ssid adhocNet
type IBSS
wiphy 339
channel 36 (5180 MHz), width: 40 MHz, center1: 5190 MHz
txpower 21.00 dBm
multicast TXQ:
qsz-byt qsz-pkt flows drops marks overlmt hashcol tx-bytes tx-packets
0 0 17 0 0 0 0 1552 17
root@ubuntu:/home/tang/sdn_manet_exp# iw dev A-wlan0 link
Joined IBSS 02:ca:ff:ee:ba:01 (on A-wlan0)
SSID: adhocNet
freq: 5180




Thanks!

Ramon Fontes

unread,
Sep 24, 2025, 9:02:05 PMSep 24
to GANLIN TANG, mininet-wifi-discuss
AFAIK, there is no way to check it via wireless tools such as iw/iwconfig. You may want to check their doc.

GANLIN TANG

unread,
Sep 25, 2025, 4:58:18 AMSep 25
to mininet-wifi-discuss
Hello:
As now, the test result is below:
all of the current pair of mode and channel:
mode=n2 channel=1 mode=n channel=36 mode=ax2 channel=1 # for 2.4GHz mode=ax5 channel=36 mode=ax channel=21
only when the channel equal 1 the node could ping to each other in the scope.

The scrip has been upload, and before the test the test nodes will be setting in the scope like py E.setPosition("131,164,0").

And if add ht_cap='HT40+' to the link setting like:
net.addLink(sta6, cls=adhoc, intf='F-wlan0', ssid='adhocNet', mode=m, channel=c, ht_cap='HT40+',**kwargs)
The throughput which test in xterm by iperf will be limit to 1Mbits/s.
topo (1).py

GANLIN TANG

unread,
Sep 25, 2025, 8:16:38 PMSep 25
to mininet-wifi-discuss
Hello Ramon:
Thanks for your help again!
I am reading about one paper, and have some confused about it.
The paper's name is "On the Implementation of a Cross-Layer SDN Architecture for 802.11 MANETs"
In side the paper the topology is like:
Screenshot from 2025-09-26 08-55-09.png
I want to ask is that possible that A and D will influenced by E in the CSMA/CA when A->D and D->C
and will not influenced when B->C in mininet-wifi.

I have asked the author, they are working in the real world the anthor is like:
"we used RF fixed attenuators and SMA cables in order to control the range of the nodes. You can see in the image how such a setup can be achieved.
I guess you can achieve something similar in Mininet-WiFi by adjusting the position of nodes and their TX Power."
Screenshot from 2025-09-26 09-00-20.png
Is it possible to realize in mininet-wifi?

And I'm really appreciate about your help and patience!!
Thanks again!!

GANLIN TANG

unread,
Sep 26, 2025, 4:58:10 AMSep 26
to mininet-wifi-discuss
Hello:
I have test some condition about the adhoc node throughput.
There are some confused:
In the image E is close to D and within its sensing range(could ping), while E is farther from B and outside its sensing range(can't ping)
Screenshot from 2025-09-26 15-23-40.png
In this code scenario, I first activated the E→F transmission, and then, based on that, tested B→C and D→C separately. The distances were set so that D is closer to E and even within its sensing range, while B is farther from E and outside the sensing range. C is at the same distance from both B and D. However, the test results showed no difference in throughput between B→C and D→C.

Shouldn’t D be more affected by CSMA than B? And shouldn't the B->C throughput should larger than D->C?
topo (2).py
Reply all
Reply to author
Forward
0 new messages