chesteve / mn-ccnx

mn-ccnx
Other
32 stars 22 forks source link

First try for a pull request #4

Open Phi-Ho opened 10 years ago

Phi-Ho commented 10 years ago

Hi Christian,

This is my first pull request.

I hope you can make use of it.

Cheers,

PhiHo

IanFuxing commented 10 years ago

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 commented 10 years ago

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/carlosmscabral/mn-ccnx/pull/4#issuecomment-43705592 .

Phi-Ho commented 10 years ago

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/carlosmscabral/mn-ccnx/pull/4#issuecomment-43705592 .

Phi-Ho commented 10 years ago

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 commented 10 years ago

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/carlosmscabral/mn-ccnx/pull/4#issuecomment-43705592 .

chesteve commented 10 years ago

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:

https://github.com/carlosmscabral/mn-ccnx/pull/4 Commit Summary

File Changes

Patch Links:

— Reply to this email directly or view it on GitHubhttps://github.com/carlosmscabral/mn-ccnx/pull/4 .