GithubHelp home page GithubHelp logo

Comments (23)

ramonfontes avatar ramonfontes commented on May 27, 2024

from mininet-wifi.

iamxg avatar iamxg commented on May 27, 2024

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.

ramonfontes avatar ramonfontes commented on May 27, 2024

from mininet-wifi.

iamxg avatar iamxg commented on May 27, 2024

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.

iamxg avatar iamxg commented on May 27, 2024

image

from mininet-wifi.

ramonfontes avatar ramonfontes commented on May 27, 2024

from mininet-wifi.

iamxg avatar iamxg commented on May 27, 2024

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.

iamxg avatar iamxg commented on May 27, 2024

I modify the codes, but the result is same.

from mininet-wifi.

ramonfontes avatar ramonfontes commented on May 27, 2024

from mininet-wifi.

iamxg avatar iamxg commented on May 27, 2024

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)

screenshot from 2017-08-26 16-54-58

from mininet-wifi.

iamxg avatar iamxg commented on May 27, 2024

Ok, Thank you very much for your hard work!

from mininet-wifi.

iamxg avatar iamxg commented on May 27, 2024

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.

ramonfontes avatar ramonfontes commented on May 27, 2024

from mininet-wifi.

iamxg avatar iamxg commented on May 27, 2024

Ok, thank you for replying timely. I will try to do it.

from mininet-wifi.

ramonfontes avatar ramonfontes commented on May 27, 2024

from mininet-wifi.

iamxg avatar iamxg commented on May 27, 2024

Ok, Thank you!

from mininet-wifi.

ramonfontes avatar ramonfontes commented on May 27, 2024

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.

Varadarajreddy avatar Varadarajreddy commented on May 27, 2024

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.

Varadarajreddy avatar Varadarajreddy commented on May 27, 2024

Screenshot from 2021-12-02 18-51-28

from mininet-wifi.

Varadarajreddy avatar Varadarajreddy commented on May 27, 2024

I have not configured the Adhoc nodes here. I just configured the mobile nodes.

from mininet-wifi.

ramonfontes avatar ramonfontes commented on May 27, 2024

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.

ramonfontes avatar ramonfontes commented on May 27, 2024

What??? What is the relationship between your question and this thread???

from mininet-wifi.

Varadarajreddy avatar Varadarajreddy commented on May 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.