Hello Odil,
One thing worth mentioning here is that once the nodes are setup we cannot change their "setup", However we can disable or enable them only. One good thing about Wave is that you can specify the channel for the node at the time of transmission for each scheduled packet. Hence, you can allow the node to access the needed channel. make sure that Tx and Rx both have access to the same channel at the scheduled time. So, I can state the TDMA carried by scheduling the packets first and then run the simulation.
I established the connection as follows:
- Create a node container : vnodes
- I created two different phyHelper to distinguish among two groups of users over two types of channels: OFDM 3Mbps and OFDM 6Mbps. The one in 3Mbps has different settings for tx power and energy detection threshold from the nodes on 6Mbps.
- I created two waveHelpers for the same reason: setremotewifimanager: 6Mbps and 3Mbps
- I comleted the installation as follows:
for i in range(vnodes.GetN()):
if vnodes.Get(i) belong to group 3Mbps:
waveHelper3.Install(phy3, mac, vnodes.Get(i) )
else:
waveHelper6.Install(phy6, mac, vnodes.Get(i) )
- Loop on all Tx nodes and Rx nodes while making sure that Tx and Rx are assigned the same SCH, I didn't create specific node container or device container to distinguish between senders and receivers.
for i in range(vnodes.GetN()/2): # python code
sender = vnodes.Get(i).GetDevice(1) # device 0 --> loopback, device 1--> vanet
receiver = vnodes.Get(i+vnodes.GetN()/2).GetDevice(1) # receiver: the node in the 2nd half of the node container.
- Send packets from sender to receiver
- Receive() packets and do statistics calculations for IP packets : Throughput and for BSM packet : PDR
I hope this is useful for you.
One thing I need this stage is how can I schedule a high load on the OFDM3Mbps channels that differentiate its throughput from the other OFDM6Mbps channels. The problem amplified further when we have a specific SCHI time different than the default: 10, 20, 30, 40, 60, 70, 80, 90
I hope you have an idea in this direction. I'm open for further explanation if needed
Best regards,
Mohammad