Hi,
In the vanet sumo script cars have two WLANs
Interface | Technology | Purpose
wlan0 | 802.11g Wi‑Fi | V2I (car ↔ AP)
wlan1 | 802.11p DSRC | V2V (car ↔ car)
which means only V2V is supportive for 802.11p, can we make V2I 802.11p as well? I want to analyze the performance of V2I 802.11p.
You say "I may add an AP and set the link to ITSLink."
But I see

I did like following:
#!/usr/bin/env python
"""Sample file for VANET
***Requirements***:
Kernel version: 5.8+ (due to the 802.11p support)
sumo 1.5.0 or higher
sumo-gui
Please consider reading https://mininet-wifi.github.io/80211p/ for 802.11p support
"""
from mininet.log import setLogLevel, info
from mn_wifi.cli import CLI
from mn_wifi.net import Mininet_wifi
from mn_wifi.sumo.runner import sumo
from mn_wifi.link import wmediumd, ITSLink
from mn_wifi.wmediumdConnector import interference
def topology():
"Create a network."
net = Mininet_wifi(link=wmediumd, wmediumd_mode=interference)
info("*** Creating nodes\n")
for id in range(0, 10):
net.addCar('car%s' % (id+1), wlans=2, encrypt=['wpa2', ''])
kwargs = {'ssid': 'vanet-ssid', 'mode': 'g', 'passwd': '123456789a',
'encrypt': 'wpa2', 'failMode': 'standalone', 'datapath': 'user'}
# Access Points (RSUs)
e1 = net.addAccessPoint('e1', mac='00:00:00:11:00:01', channel='1',
position='2600,3500,0', **kwargs)
e2 = net.addAccessPoint('e2', mac='00:00:00:11:00:02', channel='6',
position='2800,3500,0', **kwargs)
e3 = net.addAccessPoint('e3', mac='00:00:00:11:00:03', channel='11',
position='3000,3500,0', **kwargs)
e4 = net.addAccessPoint('e4', mac='00:00:00:11:00:04', channel='1',
position='2600,3300,0', **kwargs)
e5 = net.addAccessPoint('e5', mac='00:00:00:11:00:05', channel='6',
position='2800,3300,0', **kwargs)
e6 = net.addAccessPoint('e6', mac='00:00:00:11:00:06', channel='11',
position='3000,3300,0', **kwargs)
info("*** Configuring Propagation Model\n")
net.setPropagationModel(model="logDistance", exp=2.8)
info("*** Configuring nodes\n")
net.configureNodes()
# AP-to-AP backbone (Wi‑Fi)
net.addLink(e1, e2)
net.addLink(e2, e3)
net.addLink(e3, e4)
net.addLink(e4, e5)
net.addLink(e5, e6)
# Cars: add ITSLink on wlan1
for car in net.cars:
net.addLink(car, intf=car.wintfs[1].name,
cls=ITSLink, band=20, channel=181)
# APs (RSUs): add ITSLink interface for V2I
for ap in [e1, e2, e3, e4, e5, e6]:
net.addLink(ap, cls=ITSLink, band=20, channel=181)
# SUMO integration
net.useExternalProgram(program=sumo, port=8813,
extra_params=["--start --delay 1000"],
clients=1, exec_order=0)
info("*** Starting network\n")
net.build()
for enb in net.aps:
enb.start([])
# Assign IPs
for id, car in enumerate(net.cars):
car.setIP('192.168.0.{}/24'.format(id+1),
intf='{}'.format(car.wintfs[0].name))
car.setIP('192.168.1.{}/24'.format(id+1),
intf='{}'.format(car.wintfs[1].name))
# Telemetry
nodes = net.cars + net.aps
net.telemetry(nodes=nodes, data_type='position',
min_x=2200, min_y=2800,
max_x=3200, max_y=3900)
info("*** Running CLI\n")
CLI(net)
info("*** Stopping network\n")
net.stop()
if __name__ == '__main__':
setLogLevel('info')
topology()
Best regards
--
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/CAHdHLDtK7V%2BkMzbOs6xUoUMBviuQo5Q3zEyPGZqOdzkNTsZefA%40mail.gmail.com.