Comments (23)
from mininet-wifi.
Okay I will try to do that. Is this the relevant example: https://github.com/intrig-unicamp/mininet-wifi/blob/8c43db940081d35cb57bfcbad5058324a674df2d/examples/wmediumd_mobility.py?
from mininet-wifi.
from mininet-wifi.
Hi Ramon,
I'd like to simulate a mobile ad hoc network. I enable wmediumd and interference. But stations can still ping each other when they are out of range. Please you help me check the code. Thanks a lot.
def topology():
"Create a network."
net = Mininet(controller=Controller, enable_wmediumd=True, enable_interference=True)
print "*** Creating nodes"
sta1 = net.addStation('sta1', mac='02:00:00:00:00:01', range='20')
sta2 = net.addStation('sta2', mac='02:00:00:00:00:02', range='20')
sta3 = net.addStation('sta3', mac='02:00:00:00:00:03', range='20')
print "*** Configuring wifi nodes"
net.configureWifiNodes()
print "*** Creating links"
net.addHoc(sta1, ssid='adhocNet', mode='g')
net.addHoc(sta2, ssid='adhocNet', mode='g')
net.addHoc(sta3, ssid='adhocNet', mode='g')
print "*** Starting network"
net.build()
net.plotGraph(max_x=100, max_y=100)
net.propagationModel('friisPropagationLossModel', sL=2)
net.seed(random.randint(0, 100))
net.startMobility(startTime=0, model='RandomWayPoint', max_x=100, max_y=100, min_v=0.5, max_v=0.8)
print "*** Running CLI"
CLI(net)
print "*** Stopping network"
net.stop()
from mininet-wifi.
from mininet-wifi.
from mininet-wifi.
def topology():
"Create a network."
net = Mininet(controller=Controller, enable_wmediumd=True, enable_interference=True)
print "*** Creating nodes"
sta1 = net.addStation('sta1', mac='02:00:00:00:00:01')
sta2 = net.addStation('sta2', mac='02:00:00:00:00:02')
sta3 = net.addStation('sta3', mac='02:00:00:00:00:03')
print "*** Configuring wifi nodes"
net.propagationModel('friisPropagationLossModel', sL=2)
net.configureWifiNodes()
print "*** Creating links"
net.addHoc(sta1, ssid='adhocNet', mode='g')
net.addHoc(sta2, ssid='adhocNet', mode='g')
net.addHoc(sta3, ssid='adhocNet', mode='g')
print "*** Starting network"
net.build()
net.plotGraph(max_x=100, max_y=100)
net.seed(random.randint(0, 100))
net.startMobility(startTime=0, model='RandomWayPoint', max_x=100, max_y=100, min_v=0.5, max_v=0.8)
print "*** Running CLI"
CLI(net)
print "*** Stopping network"
net.stop()
from mininet-wifi.
I modify the codes, but the result is same.
from mininet-wifi.
from mininet-wifi.
do this problem is relative with the propagation model? The running result is expected when I replaced the propagation model.
net.propagationModel("logDistancePropagationLossModel", exp=5)
from mininet-wifi.
Ok, Thank you very much for your hard work!
from mininet-wifi.
Hi Ramon,
Good afternoon!
In ad hoc mode, will the middle nodes automatically relay the received packet? Do it need to configure?
from mininet-wifi.
from mininet-wifi.
Ok, thank you for replying timely. I will try to do it.
from mininet-wifi.
from mininet-wifi.
Ok, Thank you!
from mininet-wifi.
Which troubleshooting steps did you try? Can you elaborate your question with technical details in terms of network aspects? By the way, you are working with adhoc and without wmediumd? Did you calibrate the propagation model in order to meet the signal range requirements?
Please help us help you and provide as much information as you can. Unfortunately we cannot reproduce all the codes we receive.
from mininet-wifi.
Actually, i am a student and I am absolutely new to new mininet. To answer your question I just tried with ping command and traceroute(however it did not work in mininet it was showing that command was not found) and I tried iwconfig(When I run this command it showed that ESSID: off/any, access point: is not associated.
mininet-wifi> STA1 iwconfig
STA1-wlan0 IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
lo no wireless extensions.
from mininet-wifi.
from mininet-wifi.
I have not configured the Adhoc nodes here. I just configured the mobile nodes.
from mininet-wifi.
Are you new computer networking too?? You may want to know that iwconfig does not work with adhoc. Anyway, you must enable wmediumd and make sure that the signal range you have set work well with the propagation model.
from mininet-wifi.
What??? What is the relationship between your question and this thread???
from mininet-wifi.
oh, I am very sorry actually I should have raised a new question instead of posting in this thread. I sincerely apologise for any inconvenience.
from mininet-wifi.
Related Issues (20)
- Station does not ping APs during handover. HOT 1
- AttributeError: 'Mininet_wifi' object has no attribute '_parseIperf' HOT 1
- About CSMA/CA HOT 1
- mininet-wifi in debian 11 bullseye , ModuleNotFoundError: No module named 'mn_wifi' HOT 2
- If Mininet-wifi supports CSMA/CA HOT 1
- Set range and antennaGain to Interfaces HOT 1
- E : package 'python-matplotlib' has no installation candidate HOT 2
- what is the routing protocol used in the example "vanet-sumo"? HOT 1
- Limits of values set in Mininet-WiFi HOT 1
- Execution of SDCD(Software_Defined_Storage_for_cooperative_Mobile_Edge_Computing_systems) code
- Matplotlib incompatible versions HOT 2
- CLI command via script HOT 6
- Unable ping in sdn-vanet when car moving HOT 5
- parameters min_v and max_v HOT 1
- Station takes more time between 2 points in mininet-wifi graph than expected. HOT 1
- Access point (AP) handover in WiFi HOT 1
- Communication problem between ap1 and sta1 HOT 1
- Learning documents as a reference HOT 1
- Combination of Mesh Wi-Fi and P4 access point(AP)
- How to print all mobile stations, their link information and their location coordinates in the access point transmission region using Python ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mininet-wifi.