Mininet-wifi-Jupyter Notebook

396 views
Skip to first unread message

Muhammad

unread,
Mar 2, 2020, 12:55:20 PM3/2/20
to mininet-wifi-discuss

Dear Ramon,

Our lab members are considering the Integration between Mininet and Jupyter Notebook to come up with a modern web-based environment so as to be used for educational purposes. At this juncture, the progress is shown in the following YouTube video: 
https://www.youtube.com/watch?v=E_WzgIDSJ6k&feature=youtu.be


One of the obstacles in this path could be the great features xterm is offering for mininet and mininet-wifi. I am wondering if you have any possible solution for importing net.plotGraph you used in mininet-wifi, and Xterm into Jupyter Notebook? 



Note 1: It may sound off-topic, If so, kindly ignore this post.

Note 2: We also found: https://github.com/adamj9431/notebook_xterm



Sincerely,

Muhammad

Ramon Fontes

unread,
Mar 2, 2020, 1:35:18 PM3/2/20
to Muhammad, mininet-wifi-discuss
Hello Muhammad,

It's good to know someone is working on Mininet(-WiFi) and Jupyter Notebook for educational purposes. I have no doubt that it will be of great value to many students.

Could you provide more details about the problem with net.plotGraph and xterm?

Christian Esteve Rothenberg

unread,
Mar 2, 2020, 1:57:38 PM3/2/20
to Ramon Fontes, Muhammad, mininet-wifi-discuss
This is totally an in-topic and a very interesting one!

I support any efforts in this direction.

Warm regards,
Christian

--
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 on the web visit https://groups.google.com/d/msgid/mininet-wifi-discuss/CAK8U23ZhDz%2BOT9iCRYQfMvmvQciSHKeU%2BjJpqtGUTKtmCWs8xA%40mail.gmail.com.

Muhammad

unread,
Mar 3, 2020, 7:09:34 AM3/3/20
to mininet-wifi-discuss
Dear Ramon and Christian,

The real obstacle is that Jupyter Notebook does not support running GUI directly inside(as far as we know), which it means there is no chance to run the command like:
mininet>xterm h1
or see the GUI plotGraph indicating the real positions of node in the case of mininet-wifi. We have searched for feasible solutions, but what we have come up with so far is:
export your current session with x11vnc and then view it with a web based VNC viewer.
Have you ever tried this before? Do you think this is the right path to progress?

Note: Providing the undergraduate students with GUI experience, specifically plotGraph is very important to us.

Sincerely,
Mohammad

Ramon Fontes

unread,
Mar 3, 2020, 7:20:09 AM3/3/20
to Muhammad, mininet-wifi-discuss
Hello Muhammad,

I successfully ran both xterm and net.ploGraph() two or three months ago. If I remember correctly, I didn't have to do anything but install jupyter, start it with the jupyter notebook command, and run Mininet-WiFi through the web page at port 8888. Are you doing anything other than that?

Regards,
Ramon

--
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.

Muhammad

unread,
Mar 3, 2020, 11:09:04 AM3/3/20
to mininet-wifi-discuss
Hi Ramon,

Did xterm open in your browser or Is it opened as a separate window beside the browser window?

Assume we are lunching mininet-wifi web server on a linux machine running jupyter notebook service process in background. In this case, students normally just open their browser and enter the web page URL given to them. There is no ssh to mininet-wifi server! We want that the xterm and net.plotGraph() to be opened inside the browser, so every student, simply by opening the web page, should be able to enjoy the GUI. I reckon, you witness the xterm and net.PlotGraph() as you were running the whole process inside your machine, but what we need to offer to student is only a web-page with codes and instructions to be executed inside web page.

On Tuesday, March 3, 2020 at 1:20:09 PM UTC+1, Ramon Fontes wrote:
Hello Muhammad,

I successfully ran both xterm and net.ploGraph() two or three months ago. If I remember correctly, I didn't have to do anything but install jupyter, start it with the jupyter notebook command, and run Mininet-WiFi through the web page at port 8888. Are you doing anything other than that?

Regards,
Ramon
On Tue, Mar 3, 2020 at 9:09 AM Muhammad <muhamm...@gmail.com> wrote:
Dear Ramon and Christian,

The real obstacle is that Jupyter Notebook does not support running GUI directly inside(as far as we know), which it means there is no chance to run the command like:
mininet>xterm h1
or see the GUI plotGraph indicating the real positions of node in the case of mininet-wifi. We have searched for feasible solutions, but what we have come up with so far is:
export your current session with x11vnc and then view it with a web based VNC viewer.
Have you ever tried this before? Do you think this is the right path to progress?

Note: Providing the undergraduate students with GUI experience, specifically plotGraph is very important to us.

Sincerely,
Mohammad




On Monday, March 2, 2020 at 7:35:18 PM UTC+1, Ramon Fontes wrote:
Hello Muhammad,

It's good to know someone is working on Mininet(-WiFi) and Jupyter Notebook for educational purposes. I have no doubt that it will be of great value to many students.

Could you provide more details about the problem with net.plotGraph and xterm?

--
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-discuss+unsub...@googlegroups.com.

Ramon Fontes

unread,
Mar 4, 2020, 4:46:53 PM3/4/20
to Muhammad, mininet-wifi-discuss
Ok, I got your point. Regarding plotGraph() I need to check if we can use methods such as those presented at https://medium.com/@1522933668924/using-matplotlib-in-jupyter-notebooks-comparing-methods-and-some-tips-python-c38e85b40ba1. Did you try %matplotlib notebook?

To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-dis...@googlegroups.com.

--
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 on the web visit https://groups.google.com/d/msgid/mininet-wifi-discuss/50f6152e-fe36-494a-ae20-a6297fbfb7ad%40googlegroups.com.

Muhammad

unread,
Mar 10, 2020, 9:11:05 AM3/10/20
to mininet-wifi-discuss
Dear Ramon,

The first problem we may face is the installation of mininet-wifi on Jupyter Lab(Jupyter Norebook). For mininet we worked on this procedure:
May I ask about your method to install mininet-wifi(mininet-IoT) on Jupyter Notebook. Did you solve the problem of giving root access to cell in Jupyter. In fact, mininet should be executed as sudo  to be available.


On Wednesday, March 4, 2020 at 10:46:53 PM UTC+1, Ramon Fontes wrote:
Ok, I got your point. Regarding plotGraph() I need to check if we can use methods such as those presented at https://medium.com/@1522933668924/using-matplotlib-in-jupyter-notebooks-comparing-methods-and-some-tips-python-c38e85b40ba1. Did you try %matplotlib notebook?

To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-discuss+unsub...@googlegroups.com.

--
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-discuss+unsub...@googlegroups.com.

Ramon Fontes

unread,
Mar 10, 2020, 10:18:19 AM3/10/20
to Muhammad, mininet-wifi-discuss
Dear Muhammad,

I really don't know why do you need to follow those steps. You'll able to run Mininet-WiFi (as well as Mininet) as long as you run jupyter with sudo.

To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-dis...@googlegroups.com.

--
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.

--
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 on the web visit https://groups.google.com/d/msgid/mininet-wifi-discuss/77806249-27f8-431e-96ac-b9216608ff23%40googlegroups.com.

Muhammad

unread,
Mar 10, 2020, 11:27:42 AM3/10/20
to mininet-wifi-discuss
Our problem is after running command:

!sudo mn

in Jupyter, the cell will be executed and there will be no mininet_bash to enter the next commands. Kindly consider the attached photo:

mn.JPG











Have you encountered this issue?

On Tuesday, March 10, 2020 at 3:18:19 PM UTC+1, Ramon Fontes wrote:

Dear Muhammad,

I really don't know why do you need to follow those steps. You'll able to run Mininet-WiFi (as well as Mininet) as long as you run jupyter with sudo.

To unsubscribe from this group and stop receiving emails from it, send an email to mininet-wifi-discuss+unsub...@googlegroups.com.

--
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-discuss+unsub...@googlegroups.com.

--
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-discuss+unsub...@googlegroups.com.

Ramon Fontes

unread,
Mar 10, 2020, 8:22:04 PM3/10/20
to Muhammad, mininet-wifi-discuss
Yes, I've noticed the same issue here. I think shell commands doesn't work as we expect in the cell. Have you ever tried to contact the Jupyter's group?

Ramon Fontes

unread,
May 9, 2020, 8:26:22 PM5/9/20
to mininet-wifi-discuss
Hi,

%matplotlib qt opens the graph in a new window.

Muhammad

unread,
Aug 24, 2020, 5:19:06 PM8/24/20
to mininet-wifi-discuss
Dear Ramon,

I am planning to run mininet-wifi examples inside our template for students. Everything seems to be fine now, as depicted in the demo video. One issue that could be tackled is the real-time viewing of PlotGraph inside the Jupyter-notebook. %matplotlib qt puts the cell into error while running a simple example of mininet-wifi(handover bgscan). I tried
%matplotlib inline
It works as depicted at 03:16 in video, but it actually outputs one frame of the plot. Is there any way to get around this issue? Any possible solution to open net.plotGraph() from mininet-wifi CLI directly?

Sincerely,
Muhammad

Ramon Fontes

unread,
Aug 24, 2020, 5:43:48 PM8/24/20
to Muhammad, mininet-wifi-discuss
Dear Muhammad,

Have you ever tried "%matplotlib qt"? I just tested it with https://github.com/ramonfontes/p4-scenarios/blob/master/handover.ipynb and it worked. 

--
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 on the web visit https://groups.google.com/d/msgid/mininet-wifi-discuss/e501eb90-fbc4-4b83-ac1f-8366d992dd1bn%40googlegroups.com.

Muhammad

unread,
Aug 30, 2020, 4:34:37 AM8/30/20
to mininet-wifi-discuss
Dear Ramon,

Thanks for your reply. Yes, but it results in an error while running the cell. May I ask what backend did you use for matplotlib ( PyQt4, PyQt5, or PySide) when you set %matplotlib qt? To overcome this issue on my side, is there any possibility to execute net.PlotGraph from mininet-wifi runtime-CLI?

Sincerely,
Mohammad

Muhammad

unread,
Aug 30, 2020, 6:03:10 AM8/30/20
to mininet-wifi-discuss


Update on the issue: Just use pyside and different matplotlib backend. No error in running the cell, and the the new plot is opened in a seperate window; but, the Figure is empty as follows. Code demonstrates the mobility example from mininet-wifi example folder.


error.PNG

Ramon Fontes

unread,
Aug 30, 2020, 12:05:19 PM8/30/20
to Muhammad, mininet-wifi-discuss
Message has been deleted

Muhammad

unread,
Sep 2, 2020, 12:48:53 PM9/2/20
to mininet-wifi-discuss

Dear Ramon,


There is a next update regarding executing mininet-wifi examples on Jupyter-Notebook considering the following milestones:

·        1. SSH Tunneling

·        2. Show GUI on Remote Display

·        3. IPython & python3

·         4. Jupyter Server: Ubuntu 18.04 / Client: Windows 10

Short Demo: https://www.youtube.com/watch?v=xTprIa0SFXs

At this juncture, everything seems to be working properly. I am just cogitating about the possibility of offering a  mininet-wifi experiments course using JupyterHub in which students only use a web browser to execute the experiments. One obstacle is the running of the net.PlotGraph in a new window. If there exists a possibility to update the embedded PlotGraph in cell(%matplotlib inline), then there is no need to open a new GUI-based figure that could be problematic when deploying everything on web browser. I wrote a thread to update the inline figure every 1 second, but it was an unsuccessful attempt. Please note that when we use the inline plotting behavior of matplotlib, then one frame of PlotGraph is drawn, and the rest of the code is executed, which offers a hint that there may exist a way to update the PlotGraph inside the output cell. I also post the issue to the Jupyter Group.

Capture11.PNG

Update: %matplotlib notebook also outputs a blank white page.


Sincerely,
Muhammad

Ramon Fontes

unread,
Sep 2, 2020, 2:48:07 PM9/2/20
to Muhammad, mininet-wifi-discuss
Dear Muhammad,

Can you send an example where you can update the graph in a cell and run another process in a second cell, simultaneously?

Sent from my android

Muhammad

unread,
Sep 2, 2020, 4:47:24 PM9/2/20
to mininet-wifi-discuss
Dear Ramon,

As far as I am concerned, the only feasible solution is to use IPython parallel. However, I think it adds more complexity to the project. Do you encounter the same white blank figure if you set
%matplotlib notebook
?
Solving the issue with %matplotlib notebook sounds more efficient, as it offers the interactive plotting within the cell.

BR
Muhammad

Ramon Fontes

unread,
Sep 2, 2020, 7:00:33 PM9/2/20
to Muhammad, mininet-wifi-discuss
Yep. The same blank figure.

Muhammad

unread,
Feb 17, 2022, 5:45:46 PM2/17/22
to mininet-wifi-discuss
Dear Ramon,

I would like to know if you have any update regarding this thread. Let's quickly review what we have discussed.

1. Ramon suggested executing the %matplotlib qt for getting the animation of plot in mininet wifi.
2. Muhammad tested the configuration for running the Jupyter Server (Teacher Server) remotely and connecting to Server via SSH, and displaying the mininet-wifi animation (plot) in client side (Student machine) via X11 forwarding.
3. The environment stated in 2 is working appropriately with mininet-wifi. However, the each student should SSH to the server, and we want only web-based solution.
4. For web-based solution, we need to display animation of mininet-wifi within the Jupyter cell and not open-up window of qt for showing the plot. The feasible solution was to use %matplotlib notebook.
5. %matplotlib notebook creates no error. However, the interactive plotting environment within the cell is white for some strange reason. Here, we need investigation!

Do you think some parameter in net.Plot and plot.py within mininet-wifi makes some problem for %matplotlib notebook to render correctly?

By accomplishing the correct displaying of %matplotlib notebook, we would be able to use mininet-wifi which is scalable through JupyterHub, and only web browser on student side is needed!

Kindly let me know if you have some update.

Note: I attach some simple example scenario, with my latest run in Jupyter notebook.

Code:
-------------------------------------------------------------------
cell[1]: %matplotlib notebook

cell[2]:import sys

from mininet.node import Controller
from mininet.log import setLogLevel, info
from mn_wifi.node import UserAP
from mn_wifi.cli import CLI
from mn_wifi.net import Mininet_wifi
from mn_wifi.link import wmediumd
from mn_wifi.wmediumdConnector import interference


def topology(args):
    "Create a network."
    net = Mininet_wifi(controller=Controller, accessPoint=UserAP,
                       link=wmediumd, wmediumd_mode=interference)

    info("*** Creating nodes\n")
    net.addStation('sta1', position='15,20,0', bgscan_threshold=-60,
                   s_inverval=5, l_interval=10, bgscan_module="simple")
    ap1 = net.addAccessPoint('ap1', mac='00:00:00:00:00:01', ssid="handover",
                             mode="g", channel="1", passwd='123456789a',
                             encrypt='wpa2', position='10,30,0')
    ap2 = net.addAccessPoint('ap2', mac='00:00:00:00:00:02', ssid="handover",
                             mode="g", channel="6", passwd='123456789a',
                             encrypt='wpa2', position='60,30,0')
    ap3 = net.addAccessPoint('ap3', mac='00:00:00:00:00:03', ssid="handover",
                             mode="g", channel="1", passwd='123456789a',
                             encrypt='wpa2', position='120,100,0')
    c1 = net.addController('c1')

    info("*** Configuring Propagation Model\n")
    net.setPropagationModel(model="logDistance", exp=3.5)

    info("*** Configuring wifi nodes\n")
    net.configureWifiNodes()

    info("*** Creating links\n")
    net.addLink(ap1, ap2)
    net.addLink(ap2, ap3)

    if '-p' not in args:
        net.plotGraph(min_x=-100, min_y=-100, max_x=200, max_y=200)

    info("*** Starting network\n")
    net.build()
    c1.start()
    ap1.start([c1])
    ap2.start([c1])
    ap3.start([c1])

    info("*** Running CLI\n")
    CLI(net)

    info("*** Stopping network\n")
    net.stop()


if __name__ == '__main__':
    setLogLevel('info')
    topology(sys.argv)
-------------------------------------------------------------------
Note 2: Screenshot Of Execution

Capture.PNG



Sincerely,
Muhammad

Ramon Fontes

unread,
Feb 17, 2022, 9:26:04 PM2/17/22
to Muhammad, mininet-wifi-discuss
Hello Muhammad,

I hope you are well. Yes, I made some progress. CLI(net) is responsible for freezing the graph. 

Please find attached a workable notebook file. You can see the display animation of mininet-wifi within the Jupyter cell right now. However, It would be interesting to have CLI working as well. Thoughts?
jupyter.ipynb

Ramon Fontes

unread,
Feb 18, 2022, 6:50:55 AM2/18/22
to Muhammad, mininet-wifi-discuss
Muhammad,

I have good news. You can send commands through CLI after applying this patch https://github.com/intrig-unicamp/mininet-wifi/commit/83bbb3962a830adea836b570a06b8aff13b144bd

You can do as follows:
CLI(net, cmd='sta1 iwconfig')

Muhammad Bo

unread,
Feb 18, 2022, 10:43:37 AM2/18/22
to Ramon Fontes, mininet-wifi-discuss

Dear Ramon,

That is Great! Thank You.


Actually, since your previous message, I was thinking that executing two cells simultaneously (and independently) may be a solution to the problem. Hence, I was working with ipyparallel (IPython for parallel computing), and I made progress. But, now I need to stop that investigation.


One small inquiry exists on my side.
For the sake of reproducibility, I was working with the ready VM image of mn-wifi (i.e., 
[3.4GB Size] - Lubuntu 20.04 x64 - Mininet-WiFi (pass: wifi)). It was totally working with the previous steps we took to resolve the problem.

As soon as you commit the changes to the cli.py. I did git pull and update the code. Strange though it may seem, the plot was forced to be opened in an external window (figure), and not inside the cell of Jupyter.
In other words, before doing the git pull, nothing was wrong with jupyter.ipynb (i.e., the first cell configuring matplotlib made the way to see the plot inside the cell). Hence, there should exist one commit (compared to the version installed on the VM ready image) that causes this behavior.


I double-check it with the last commit. The last commit was not the reason for this behavior, as I revert the git pull and manually change the cli.py and make install, and all parts were working as they should be.


Any idea about it? Did you alter any lines in the plot or other parts?

Ramon Fontes

unread,
Feb 18, 2022, 11:59:08 AM2/18/22
to Muhammad Bo, mininet-wifi-discuss
Please try this commit

Muhammad Bo

unread,
Feb 18, 2022, 5:17:19 PM2/18/22
to Ramon Fontes, mininet-wifi-discuss
Thank You Ramon.

Maybe for final words around this topic, I notice one limitation and searched for feasible solutions. At the moment, in some experiments that we needs two simultaneous CLI (for instance, [1]: CLI(net, cmd=''sta1 ping sta2 -c20''), and [2]: CLI(net, cmd=''sta2 ping sta3 -c15'') ) to be running, we have issue with Jupyter as below.

  • Until that we get the output for running cell, we wont be able to execute the next cells.
Feasible Solutions and Obstacles
  • Jupyterlab will let multiple notebook to be connected to some specific kernel. It solves our problem, as in one notebook we can run the cell with [1], and another notebook we run the cell with [2]. However, Jupyterlab brings new problem with the %matplotlib notebook that you have recently addressed. JupyterLab does not support %matplotlib notebook the way Jupyter notebook does.
  • I was wondering we can use some trick like importing multiprocessing to force a cell to be non-blocking. I find the below intuition:
In cell 1 we execute:
###############
import time
from multiprocessing import Manager, Process, Value

condition = Value('b', True)

def worker(go):
    while go.value:
        time.sleep(4)
        print("Some CLI Here")
    return

p = Process(target=worker, args=(condition,))
p.start()
###############
  1. It makes the cell 1 non-blocking. Hence, we would be able too execute any other cell.
  2. If we want to stop process for cell one, we can execute: condition.value = False in any cell.
Do you think we can execute some command like CLI(net, cmd=''sta1 ping sta2 -c20'') using this approach?

Sincerely,
Mohammad

On Fri, Feb 18, 2022 at 5:59 PM Ramon Fontes <ramonre...@gmail.com> wrote:
Please try this commit

Ramon Fontes

unread,
Feb 20, 2022, 8:02:13 AM2/20/22
to Muhammad Bo, mininet-wifi-discuss
Muhammad,

I think multiprocessing won't work with CLI from Mininet. Have you ever tried util/m?

Muhammad

unread,
Sep 7, 2022, 5:20:58 AM9/7/22
to mininet-wifi-discuss

Dear All,

Update: I have some attempts to do the integration with JupyterHub (As it offers user control and etc.)

One question that needs to be checked with you in our previous attempt. I provided a simple ipynb file with a handover example. The issue is stated below.

· Execution 1: When running cell 2 (i.e., the handover example), the netplot works perfectly. There exists some mobility scenario in cell 2. If you execute cell 3 (i.e., ping) right after execution of cell 2 and before or during the mobility, the netplot graph will stop working, and ping continues to be executed. After finishing the ping, the mobility is done in the cell 2. Meanwhile, you get the below output in cell 3.


64 bytes from 10.0.0.2: icmp_seq=6 ttl=64 time=4.38 ms

Exception in thread wifiParameters:

Traceback (most recent call last):

  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner

    self.run()

  File "/usr/lib/python3.8/threading.py", line 870, in run

    self._target(*self._args, **self._kwargs)

  File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/mobility.py", line 171, in parameters

    self.config_links(mob_nodes)

  File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/mobility.py", line 195, in config_links

    ack = self.check_in_range(intf, ap_intf)

  File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/mobility.py", line 139, in check_in_range

    self.ap_out_of_range(intf, ap_intf)

  File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/mobility.py", line 105, in ap_out_of_range

    intf.disconnect(ap_intf)

  File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/link.py", line 515, in disconnect

    self.iwdev_cmd('{} disconnect'.format(self.name))

  File "/usr/local/lib/python3.8/dist-packages/mininet_wifi-2.6-py3.8.egg/mn_wifi/link.py", line 117, in iwdev_cmd

    return self.cmd('iw dev', *args)

  File "/usr/local/lib/python3.8/dist-packages/mininet/link.py", line 70, in cmd

    return self.node.cmd( *args, **kwargs )

  File "/usr/local/lib/python3.8/dist-packages/mininet/node.py", line 386, in cmd

    self.sendCmd( *args, **kwargs )

  File "/usr/local/lib/python3.8/dist-packages/mininet/node.py", line 303, in sendCmd

    assert self.shell and not self.waiting

AssertionError

64 bytes from 10.0.0.2: icmp_seq=7 ttl=64 time=4.70 ms


·  Execution2: let’s run cell 2 and waits for mobility to be accomplished. Then, by executing cell 3, ping outputs unreachable as it is expected since the sta is out of the range of coverage of AP.

It seems that executing the CLI(cmd=ping) stops the mobility. Any idea here to overcome?


Best,
Muhammad

mininet-Copy1.ipynb

Ramon Fontes

unread,
Sep 7, 2022, 6:36:54 AM9/7/22
to Muhammad, mininet-wifi-discuss
Please refer to related topic. We already discussed Jupyter notebook around here..

Sent from my android

--
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.
Reply all
Reply to author
Forward
0 new messages