Comments (8)
from mininet-wifi.
Thank you!
from mininet-wifi.
Hi Ramonfontes,
I create a network in mininet wifi (code below) with a given fixed bandwidth (100Mbps), link delay and packet loss. However when i ping from host to host the packet loss results are different from time to time.
For instance:
net.addLink(s2, h3, bw=1000)
net.addLink(s2, h8, bw=100, delay='25ms', loss=2)
packet loss of the command: h8 ping -c 100 h3. the packet loss should be 2. but the actual results are not consistent ( 4, 5, 7...)
I dont know how to keep the packet loss to a given number.
Thank you,
`from mn_wifi.net import Mininet_wifi
from mn_wifi.cli import CLI_wifi
from mininet.node import Controller
from mininet.log import setLogLevel, info
def topology():
"Create a network."
net = Mininet_wifi( controller=Controller )
info("*** Creating nodes\n")
c1 = net.addController( 'c1')#, ip='127.0.0.1', port=6633 )
s2 = net.addSwitch( 's2', protocols='OpenFlow10', listenPort=6673, mac='00:00:00:00:00:02' )
h3 = net.addHost( 'h3', mac='00:00:00:00:00:03', ip='10.0.0.3/8' )
h4 = net.addHost( 'h4', mac='00:00:00:00:00:04', ip='10.0.0.4/8' )
h5 = net.addHost( 'h5', mac='00:00:00:00:00:05', ip='10.0.0.5/8' )
h6 = net.addHost( 'h6', mac='00:00:00:00:00:06', ip='10.0.0.6/8' )
h7 = net.addHost( 'h7', mac='00:00:00:00:00:07', ip='10.0.0.7/8' )
h8 = net.addHost( 'h8', mac='00:00:00:00:00:08', ip='10.0.0.8/8' )
h9 = net.addHost( 'h9', mac='00:00:00:00:00:09', ip='10.0.0.9/8' )
h10 = net.addHost( 'h10', mac='00:00:00:00:00:0a', ip='10.0.0.10/8' )
info("*** Creating links\n")
net.addLink(s2, h3, bw=1000)
net.addLink(s2, h4, bw=100, delay='1ms', loss=2)
net.addLink(s2, h5, bw=100, delay='2.5ms', loss=2)
net.addLink(s2, h6, bw=100, delay='5ms', loss=2)
net.addLink(s2, h7, bw=100, delay='10ms', loss=2)
net.addLink(s2, h8, bw=100, delay='25ms', loss=2)
net.addLink(s2, h9, bw=100, delay='35ms', loss=2)
net.addLink(s2, h10, bw=100, delay='25ms', loss=1)
info("*** Starting network\n")
net.configureWifiNodes()
net.build()
c1.start()
s2.start( [c1] )
info("*** Running CLI\n")
CLI_wifi( net )
info("*** Stopping network\n")
net.stop()
if name == 'main':
setLogLevel( 'info' )
topology()`
from mininet-wifi.
How can I reproduce the behavior mentioned by you?
from mininet-wifi.
could you please copy the code and ping h8 to h3 as above?
from mininet-wifi.
Or you can remote login to my system.
from mininet-wifi.
Sorry, but I didn't notice any problem with the script.
from mininet-wifi.
that is the question. script is ok, but packet loss results are different from time to time.
is that Link in mininet-wifi add loss automatically according to wireless modelling?
++++++++++h3 ping h8 -c 100++++++++++++
--- 10.0.0.8 ping statistics ---
100 packets transmitted, 93 received, 7% packet loss, time 99226ms
rtt min/avg/max/mdev = 50.063/50.328/58.065/0.853 ms
++++++++++h8 ping h3 -c 100++++++++++++
--- 10.0.0.3 ping statistics ---
100 packets transmitted, 97 received, 3% packet loss, time 99175ms
rtt min/avg/max/mdev = 50.066/50.339/54.715/0.487 ms
++++++++++++++h8 ping h3 -c 100+++++++++++++++++
--- 10.0.0.3 ping statistics ---
100 packets transmitted, 95 received, 5% packet loss, time 99199ms
rtt min/avg/max/mdev = 50.048/50.247/50.538/0.198 ms
from mininet-wifi.
Related Issues (20)
- 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 ?
- AODV LOADED HOT 3
- MININET-WIFI&ONOS HOT 1
- Combine 2 car is in ap and not in ap HOT 1
- why did sta2 also receive the data packets HOT 1
- Hurricane
- vanet.py issue HOT 11
- OVSAP can ping each other when they are out of range, and it does't have flows in AP HOT 3
- E: Package 'python-matplotlib' has no installation candidate
- ImportError: cannot import name 'OVSKernelAP' from 'mininet.node' HOT 11
- iperf error in Ubuntu 20.04 HOT 1
- E: Package 'pep8' has no installation candidate during install.sh HOT 4
- Error when laoding mac80211_hwsim
- AttributeError: 'managed' object has no attribute 'wmIface' HOT 3
- Does mininet-wifi support IEEE 802.11v, IEEE 802.11k and ieee 802.11r ? HOT 1
- mn_wifi error HOT 1
- Can I set bw parameter for link in adhoc mode? HOT 1
- The bw parameter is not work in the link for wifi mode HOT 1
- Wireless Communication between APs HOT 1
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.