Page 2 of 3

Re: piconet

Posted: Wed Aug 12, 2020 12:13 am
by jamesrxy

Hi Dr. Pan, it seems piconet fails to work on win10.
here is my experience testing piconet on win10:

  1. Download VirtualBox and multipass from Official website on Internet.
    *note that it is better not to change installation directory for them in case of incompatibility issues, use the default directory instead.
  2. Run piconet
    I used 'Git bash' to run linux subsystem on win10 to run piconet.

    Code: Select all

    cd ~/csc361-lab-setup-master

    Code: Select all

    ./piconet run
    However, it seems on win10, the time out problem still exists even if the uvic vpn is not used
    here is the error I got:
    ""
  3. Creating piconet
    launch failed: The following errors occurred:
    piconet: timed out waiting for response
  4. - Waiting for VM piconet to come up
    Error: Timed out waiting for VM to come up
    ""
    But, it can be seen from multipass that piconet instance is created:
    =====================================================
    Name State IPv4 Image
    mp1 Running N/A Ubuntu 18.04 LTS
    piconet Running N/A Ubuntu 18.04 LTS
    =========================================================

I am not sure if it is my problem that any configurations went wrong during the process.


Re: piconet

Posted: Wed Aug 12, 2020 8:31 am
by pan
jamesrxy wrote:

""

  • Creating piconet
    launch failed: The following errors occurred:
    piconet: timed out waiting for response
  • - Waiting for VM piconet to come up
    Error: Timed out waiting for VM to come up
    ""
    But, it can be seen from multipass that piconet instance is created:
    =====================================================
    Name State IPv4 Image
    mp1 Running N/A Ubuntu 18.04 LTS
    piconet Running N/A Ubuntu 18.04 LTS
    =========================================================

I am not sure if it is my problem that any configurations went wrong during the process.

can you access the running piconet by

Code: Select all

$ multipass shell piconet

? normally, it shall show the ipv4 address associated with each running vm instance, e.g.,

Code: Select all

$ multipass list
Name                    State             IPv4             Image
piconet                 Running           192.168.64.2     Ubuntu 18.04 LTS

and after you multipass shell accessed piconet,

Code: Select all

ubuntu@piconet:~$ ip netns 
r (id: 2)
h2 (id: 1)
h1 (id: 0)

shall show the three (child) namespaces inside piconet, i.e., h1 (client host), r (router) and h2 (server host) for our virtual csc361 lab setup


Re: piconet

Posted: Wed Aug 12, 2020 5:52 pm
by pan

for windows tester: if you cannot get the piconet script to configure the vm automatically, just copy the files in bin, etc and lib inside the installation package to /usr/local/bin (set the script executable with "chmod a+x"), /usr/local/etc and /usr/local/lib, respectively, inside the vm, and copy the files in systemd/system in the installation package to /etc/systemd/system inside the vm, and then enable

Code: Select all

/usr/bin/sudo /bin/systemctl enable ttyd.service
/usr/bin/sudo /bin/systemctl enable piconet.service
/usr/bin/sudo /bin/systemctl daemon-reload

and lunch

Code: Select all

/usr/bin/sudo /bin/systemctl start piconet
/usr/bin/sudo /bin/systemctl start ttyd

on your local computer, open html/ui.html with your chrome, and you shall see the 4-pane interface


Re: piconet

Posted: Fri Aug 28, 2020 2:15 pm
by pan

the new piconet in a container (instead of vm) with jupyterlab user interface, hosted in the "cloud" with gitlab integration, a step closer to the real deployment for the fall ;-)


Re: piconet

Posted: Fri Aug 28, 2020 2:40 pm
by pan

persistent

Screen Shot 2020-08-28 at 2.36.45 PM.png
Screen Shot 2020-08-28 at 2.36.45 PM.png (240.45 KiB) Viewed 5956 times

vs non-persistent http connection

Screen Shot 2020-08-28 at 2.38.24 PM.png
Screen Shot 2020-08-28 at 2.38.24 PM.png (234.31 KiB) Viewed 5956 times

Re: piconet

Posted: Fri Aug 28, 2020 2:56 pm
by pan

recursive (r-eth0) vs iterative (r-eth2) dns query


Re: piconet

Posted: Sat Aug 29, 2020 10:14 pm
by pan

tcp connection establishment (3-way handshake)

Screen Shot 2020-08-29 at 10.09.57 PM.png
Screen Shot 2020-08-29 at 10.09.57 PM.png (229.88 KiB) Viewed 5955 times

and release (4-way handshake)

Screen Shot 2020-08-29 at 10.10.52 PM.png
Screen Shot 2020-08-29 at 10.10.52 PM.png (233.65 KiB) Viewed 5955 times

and flow control (the opening and closing of the flow-control window)


Re: piconet

Posted: Sat Aug 29, 2020 10:40 pm
by pan

tcp error control: packet loss

Screen Shot 2020-08-29 at 10.29.49 PM.png
Screen Shot 2020-08-29 at 10.29.49 PM.png (213.75 KiB) Viewed 5960 times

and retransmission by dupack

Screen Shot 2020-08-29 at 10.30.28 PM.png
Screen Shot 2020-08-29 at 10.30.28 PM.png (221.47 KiB) Viewed 5960 times

vs loss

Screen Shot 2020-08-29 at 10.35.24 PM.png
Screen Shot 2020-08-29 at 10.35.24 PM.png (220.21 KiB) Viewed 5960 times

and retransmissions by timeout

Screen Shot 2020-08-29 at 10.37.07 PM.png
Screen Shot 2020-08-29 at 10.37.07 PM.png (222.87 KiB) Viewed 5960 times

Re: piconet

Posted: Sun Aug 30, 2020 12:03 am
by pan

tcp congestion control (reno, initcwnd=1, sack=0): packet loss and retransmission by timeout

Screen Shot 2020-08-29 at 10.50.03 PM.png
Screen Shot 2020-08-29 at 10.50.03 PM.png (229.72 KiB) Viewed 5974 times

and the increase of congestion window during congestion avoidance

Screen Shot 2020-08-29 at 10.55.39 PM.png
Screen Shot 2020-08-29 at 10.55.39 PM.png (248.76 KiB) Viewed 5974 times

and the inflation of congestion window during duplicate acknowledgment and eventual retransmission by triple dupack

Screen Shot 2020-08-29 at 11.18.18 PM.png
Screen Shot 2020-08-29 at 11.18.18 PM.png (237.1 KiB) Viewed 5974 times

and new loss during recovery

Screen Shot 2020-08-29 at 11.47.17 PM.png
Screen Shot 2020-08-29 at 11.47.17 PM.png (233.19 KiB) Viewed 5974 times

and

Screen Shot 2020-08-29 at 11.56.51 PM.png
Screen Shot 2020-08-29 at 11.56.51 PM.png (232.49 KiB) Viewed 5974 times

and bursty losses

Screen Shot 2020-08-30 at 12.00.08 AM.png
Screen Shot 2020-08-30 at 12.00.08 AM.png (235.11 KiB) Viewed 5974 times

Re: piconet

Posted: Sun Aug 30, 2020 12:26 am
by pan

before

Screen Shot 2020-08-30 at 12.23.23 AM.png
Screen Shot 2020-08-30 at 12.23.23 AM.png (108.94 KiB) Viewed 5973 times

vs after

Screen Shot 2020-08-30 at 12.24.58 AM.png
Screen Shot 2020-08-30 at 12.24.58 AM.png (144.85 KiB) Viewed 5973 times

nat


Re: piconet

Posted: Sun Aug 30, 2020 10:43 am
by liuuvic
pan wrote:

persistent

Screen Shot 2020-08-28 at 2.36.45 PM.png

vs non-persistent http connection

Screen Shot 2020-08-28 at 2.38.24 PM.png

Hi Dr.Pan, I see the commands used in your screenshots and that in the manual are different for Lab3. Which one I should follow? Do I need to modify the commands in the manual?


Re: piconet

Posted: Sun Aug 30, 2020 10:52 am
by liuuvic
liuuvic wrote:
pan wrote:

persistent

Screen Shot 2020-08-28 at 2.36.45 PM.png

vs non-persistent http connection

Screen Shot 2020-08-28 at 2.38.24 PM.png

Hi Dr.Pan, I see the commands used in your screenshots and that in the manual are different for Lab3. Which one I should follow? Do I need to modify the commands in the manual?

Also, if I start nginx on terminal 4 and run

root@r piconet> wget -e robots=off --no-http-keep-alive -r 172.16.1.2:80

I get:

http://172.16.1.2/
Connecting to 172.16.1.2:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 612 [text/html]
Saving to: ‘172.16.1.2/index.html’

172.16.1.2/inde 100%[====>] 612 --.-KB/s in 0s

2020-08-30 10:49:34 (30.4 MB/s) - ‘172.16.1.2/index.html’ saved [612/612]

FINISHED --2020-08-30 10:49:34--
Total wall clock time: 0.003s
Downloaded: 1 files, 612 in 0s (30.4 MB/s)

The only file downloaded is the index.html, which can be found in the left of the window.


Re: piconet

Posted: Sun Aug 30, 2020 12:47 pm
by pan
liuuvic wrote:
pan wrote:

persistent vs non-persistent http connection

Hi Dr.Pan, I see the commands used in your screenshots and that in the manual are different for Lab3. Which one I should follow? Do I need to modify the commands in the manual?

either one is fine. they are for the same purposes

liuuvic wrote:

Also, if I start nginx on terminal 4 and run root@r piconet> wget -e robots=off --no-http-keep-alive -r 172.16.1.2:80 I get: http://172.16.1.2/Connecting to 172.16.1.2:80... connected. HTTP request sent, awaiting response... 200 OK Length: 612 [text/html] Saving to: ‘172.16.1.2/index.html’ 172.16.1.2/inde 100%[====>] 612 --.-KB/s in 0s 2020-08-30 10:49:34 (30.4 MB/s) - ‘172.16.1.2/index.html’ saved [612/612] FINISHED --2020-08-30 10:49:34-- Total wall clock time: 0.003s Downloaded: 1 files, 612 in 0s (30.4 MB/s) The only file downloaded is the index.html, which can be found in the left of the window.

that's because your html directory where your nginx serves only has a placeholder index.html. you can use the sample html files in http://panlab.cs.uvic.ca/web3/download/ ... p?id=34494 and put them in the document directory where nginx serves incoming http requests (often /var/www/html)


Re: piconet

Posted: Sun Aug 30, 2020 1:43 pm
by pan

static routing for piconet (h1-r-h2) in the new docker container with the new jupyterlab interface


Re: piconet

Posted: Sun Aug 30, 2020 1:57 pm
by pan

interworking within a network

Screen Shot 2020-08-30 at 1.52.58 PM.png
Screen Shot 2020-08-30 at 1.52.58 PM.png (147.27 KiB) Viewed 5976 times

and between

Screen Shot 2020-08-30 at 1.54.02 PM.png
Screen Shot 2020-08-30 at 1.54.02 PM.png (172.35 KiB) Viewed 5976 times

so piconet works well for all 10 lab modules inside the docker container too ;-)