Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First try for a pull request #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

Phi-Ho
Copy link

@Phi-Ho Phi-Ho commented May 20, 2014

Hi Christian,

This is my first pull request.

I hope you can make use of it.

Cheers,

PhiHo

Changes:
1/- setup.py is modified
2/- new directory "ccnxmn" is created with 4 new files:
  - __init__.py
  - CCN_cli.py
  - CCN_node.py
  - conf_parser.py
3/- bin/miniccnx is changed
-from mininet.cli import CLI
-from mininet.node import CPULimitedCCNHost, CCNHost
+from ccnxmn.CCN_cli import CCNxCLI
+from ccnxmn.CCN_node import CPULimitedCCNHost, CCNHost

-from mininet.conf_parser import parse_hosts,parse_routers, parse_links
+from ccnxmn.conf_parser import parse_hosts,parse_routers, parse_links

-    CLI(net)
+    CCNxCLI(net)
@IanFuxing
Copy link

HI,
I want to built a test for palying video online in mn-ccnx networks as following steps:

  1. Edit the the configuration file with the command "vim mn-ccnx/ccn_utils/miniccnx.conf" as

    [nodes]
    h1: _ ccnx:/,s1
    h2: _ cpu=0.1
    s1: _ ccnx:/test,s2
    s2: _ ccnx:/test,h2
    [routers]
    s1: ccnx:/test,s2
    s2: ccnx:/test,h2
    [links]
    h1:s1 bw=100 delay=5ms
    h2:s2 bw=100 delay=5ms
    s1:s2 bw=100 loss=1 delay=10ms

  2. Start miniccnx: "sudo miniccnx miniccnx.conf"

  3. Start xterm: "xterm h1 h1 h2 h2 h2 s1 s2"

  4. Start ccnx daemon " ccnd" at every node

  5. Start ccnr at node h2 " ccnr" (The daemon of ccnr is allowed to be started at only one node. In another way, node h2 has start the daemon ccnr, the other nodes cannt start the ccnr. That is a little weird and different with reall ccnx network. Why?)

  6. Upload the video file to "ccnx:/kungfu" with the commond: "ccnputfile ccnx:/kungfu/kf.mkv /home/kungfu.mkv"

  7. Open the vlc player, and open network stream with "ccnx:///kungfu/kf.mkv"

  8. vlc does not play well with error:

That is very simple test, but it does not work. Did i miss any key steps?

PS: The vlc has installed the plugin of ccnx.

Regards,
Fuxing Ian Chen

@Phi-Ho
Copy link
Author

Phi-Ho commented May 21, 2014

Hi,

Thank you for sharing your test.

I myself would like to learn about CCNx.

Have you tried with the original miniccnx?

Regards,

PhiHo

On Tue, May 20, 2014 at 10:18 PM, IanFuxing notifications@github.comwrote:

HI,
I want to built a test for palying video online in mn-ccnx networks as
following steps:

  1. Edit the the configuration file with the command "vim
    mn-ccnx/ccn_utils/miniccnx.conf" as

[nodes]
h1: _ ccnx:/,s1
h2: _ cpu=0.1
s1: _ ccnx:/test,s2
s2: _ ccnx:/test,h2
[routers]
s1: ccnx:/test,s2
s2: ccnx:/test,h2
[links]
h1:s1 bw=100 delay=5ms
h2:s2 bw=100 delay=5ms
s1:s2 bw=100 loss=1 delay=10ms

  1. Start miniccnx: "sudo miniccnx miniccnx.conf"
  2. Start xterm: "xterm h1 h1 h2 h2 h2 s1 s2"
  3. Start ccnx daemon " ccnd" at every node
  4. Start ccnr at node h2 " ccnr" (The daemon of ccnr is allowed to be
    started at only one node. In another way, node h2 has start the daemon
    ccnr, the other nodes cannt start the ccnr. That is a little weird and
    different with reall ccnx network. Why?)
  5. Upload the video file to "ccnx:/kungfu" with the commond: "ccnputfile
    ccnx:/kungfu/kf.mkv /home/kungfu.mkv"
  6. Open the vlc player, and open network stream with
    "ccnx:///kungfu/kf.mkv"
  7. vlc does not play well with error:

That is very simple test, but it does not work. Did i miss any key steps?

PS: The vlc has installed the plugin of ccnx.

Regards,
Fuxing Ian Chen


Reply to this email directly or view it on GitHubhttps://github.com//pull/4#issuecomment-43705592
.

@Phi-Ho
Copy link
Author

Phi-Ho commented May 21, 2014

P.S: Please give me details of the environment (OS, version...) and what
need be installed on the VM and the commands to run vlc player

On Wed, May 21, 2014 at 4:36 AM, Phiho Hoang hohoangphi@gmail.com wrote:

Hi,

Thank you for sharing your test.

I myself would like to learn about CCNx.

Have you tried with the original miniccnx?

Regards,

PhiHo

On Tue, May 20, 2014 at 10:18 PM, IanFuxing notifications@github.comwrote:

HI,
I want to built a test for palying video online in mn-ccnx networks as
following steps:

  1. Edit the the configuration file with the command "vim
    mn-ccnx/ccn_utils/miniccnx.conf" as

[nodes]
h1: _ ccnx:/,s1
h2: _ cpu=0.1
s1: _ ccnx:/test,s2
s2: _ ccnx:/test,h2
[routers]
s1: ccnx:/test,s2
s2: ccnx:/test,h2
[links]
h1:s1 bw=100 delay=5ms
h2:s2 bw=100 delay=5ms
s1:s2 bw=100 loss=1 delay=10ms

  1. Start miniccnx: "sudo miniccnx miniccnx.conf"
  2. Start xterm: "xterm h1 h1 h2 h2 h2 s1 s2"
  3. Start ccnx daemon " ccnd" at every node
  4. Start ccnr at node h2 " ccnr" (The daemon of ccnr is allowed to be
    started at only one node. In another way, node h2 has start the daemon
    ccnr, the other nodes cannt start the ccnr. That is a little weird and
    different with reall ccnx network. Why?)
  5. Upload the video file to "ccnx:/kungfu" with the commond: "ccnputfile
    ccnx:/kungfu/kf.mkv /home/kungfu.mkv"
  6. Open the vlc player, and open network stream with
    "ccnx:///kungfu/kf.mkv"
  7. vlc does not play well with error:

That is very simple test, but it does not work. Did i miss any key steps?

PS: The vlc has installed the plugin of ccnx.

Regards,
Fuxing Ian Chen


Reply to this email directly or view it on GitHubhttps://github.com//pull/4#issuecomment-43705592
.

@Phi-Ho
Copy link
Author

Phi-Ho commented May 21, 2014

Taking the hint from Fuxing Ian Chen, CCNxMininet class was created in ccnxmn/CCN_net.py.

If there are errors, please quote the errors, thanks.

@Phi-Ho Phi-Ho closed this May 21, 2014
@Phi-Ho Phi-Ho reopened this May 21, 2014
@Phi-Ho
Copy link
Author

Phi-Ho commented May 21, 2014

Hi IanFuxing,

I've just committed some changes.

Please try again and please quote the error messages.

I will try to setup the environment to reproduce the errors.

Regards,

PhiHo

On Wed, May 21, 2014 at 5:58 AM, Phiho Hoang hohoangphi@gmail.com wrote:

P.S: Please give me details of the environment (OS, version...) and what
need be installed on the VM and the commands to run vlc player

On Wed, May 21, 2014 at 4:36 AM, Phiho Hoang hohoangphi@gmail.com wrote:

Hi,

Thank you for sharing your test.

I myself would like to learn about CCNx.

Have you tried with the original miniccnx?

Regards,

PhiHo

On Tue, May 20, 2014 at 10:18 PM, IanFuxing notifications@github.comwrote:

HI,
I want to built a test for palying video online in mn-ccnx networks as
following steps:

  1. Edit the the configuration file with the command "vim
    mn-ccnx/ccn_utils/miniccnx.conf" as

[nodes]
h1: _ ccnx:/,s1
h2: _ cpu=0.1
s1: _ ccnx:/test,s2
s2: _ ccnx:/test,h2
[routers]
s1: ccnx:/test,s2
s2: ccnx:/test,h2
[links]
h1:s1 bw=100 delay=5ms
h2:s2 bw=100 delay=5ms
s1:s2 bw=100 loss=1 delay=10ms

  1. Start miniccnx: "sudo miniccnx miniccnx.conf"
  2. Start xterm: "xterm h1 h1 h2 h2 h2 s1 s2"
  3. Start ccnx daemon " ccnd" at every node
  4. Start ccnr at node h2 " ccnr" (The daemon of ccnr is allowed to be
    started at only one node. In another way, node h2 has start the daemon
    ccnr, the other nodes cannt start the ccnr. That is a little weird and
    different with reall ccnx network. Why?)
  5. Upload the video file to "ccnx:/kungfu" with the commond: "ccnputfile
    ccnx:/kungfu/kf.mkv /home/kungfu.mkv"
  6. Open the vlc player, and open network stream with
    "ccnx:///kungfu/kf.mkv"
  7. vlc does not play well with error:

That is very simple test, but it does not work. Did i miss any key
steps?

PS: The vlc has installed the plugin of ccnx.

Regards,
Fuxing Ian Chen


Reply to this email directly or view it on GitHubhttps://github.com//pull/4#issuecomment-43705592
.

@chesteve
Copy link
Owner

Received. Give us a few days to try it out. Many thanks!

Hi Christian,

This is my first pull request.

I hope you can make use of it.

Cheers,

PhiHo

You can merge this Pull Request by running

git pull https://github.com/Phi-Ho/mn-ccnx master

Or view, comment on, or merge it at:

#4
Commit Summary

  • ccnxmn is an extension of Mininet
  • Matching contents of ccnxmn.tar.gz
  • Fixing white spaces

File Changes

Patch Links:


Reply to this email directly or view it on
GitHubhttps://github.com//pull/4
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants