Changes between Version 30 and Version 31 of GENIExperimenter/Tutorials/jacks/GettingStarted_PartII_ndn/Procedure/Execute
- Timestamp:
- 06/21/16 11:37:41 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GENIExperimenter/Tutorials/jacks/GettingStarted_PartII_ndn/Procedure/Execute
v30 v31 53 53 In this experiment, you will be able to see the NDN in-network caching in action. Our experiment consists of the following nodes: 54 54 * A data source node, called {{{Custodian}}} that holds data in the namespace /nytimes 55 * A internet router node, called {{{Internet}}} that forwards {{{Interest}}} and {{{Data}}} packets to and from the {{{Custodian}}}.56 * A university hub node, called {{{University}}} that forwards {{{Interest}}} and {{{Data}}} packets to and from the university nodes.55 * A node, called {{{Internet Router}}} that forwards {{{Interest}}} and {{{Data}}} packets to and from the {{{Custodian}}}. 56 * A node, called {{{Campus Router}}} that forwards {{{Interest}}} and {{{Data}}} packets to and from the university nodes. 57 57 * A principal investigator node, called {{{PI}}} and a experimenter node, called {{{Experimenter}}} that will send {{{Interest}}} requests to the {{{Custodian}}} via UDP tunnels. 58 58 … … 68 68 === 5.1 Run the NDN application on the same node === 69 69 70 You are now ready to start the producer application and register a namespace. ^([#hn note: you can try other namespaces as well])^ 70 You are now ready to start the producer application and register a namespace. ^([#hn note: you can try other namespaces as well])^[[br]] 71 The producer application will listen for {{{Interest}}} requests of a namespace {{{-n}}} and reply with {{{Data}}} packets. 71 72 {{{ 72 73 $ cd /local … … 82 83 $ python consumer.py -u /nytimes/science 83 84 }}} 84 This will start the consumer application that will send Interestrequest packets to the producer. Take a moment to look at the entries in the NFD.85 This will start the consumer application that will send {{{Interest}}} request packets to the producer. Take a moment to look at the entries in the NFD. 85 86 You are all set. Stop the producer application by {{{Ctrl + C}}} and stop the NFD 86 87 {{{ … … 89 90 90 91 === 5.2 Run the NDN application on the entire topology === 91 In this section, we are going to start the NFD and register the namespace. We automated these tasks for some nodes using a script from Section 3. On your computer, do the following:92 In this section, we are going to start the NFD and register the forwarding faces on the remaining nodes. On your host machine, do the following: 92 93 94 SSH to the {{{Internet Router}}}, start the NFD and register the forwarding face 95 {{{ 96 $ nfd-start 97 $ nfdc register / udp4://10.0.20.2 98 }}} 99 100 We will repeat the procedure for the {{{Campus Router}}}. Note the different IP address this time.[[br]] 101 SSH to the {{{Campus Router}}}, start the NFD and register the forwarding face 102 {{{ 103 $ nfd-start 104 $ nfdc register / udp4://10.0.10.2 105 }}} 106 107 We are now ready to run our experiment.[[br]] 93 108 SSH to the {{{Custodian}}} node and start the {{{producer}}} application 94 109 {{{ … … 97 112 $ python producer.py -n /nytimes 98 113 }}} 99 where {{{n}}} is the namespace.100 114 101 115 SSH to the {{{Experimenter}}} node, register the namespace, and start the {{{consumer}}} application 102 116 {{{ 117 $ nfdc register / udp4://10.0.0.1 103 118 $ cd /local 104 $ nfdc register / udp4://10.0.0.1105 119 $ python consumer.py -u /nytimes/science 106 120 }}} … … 109 123 SSH to the {{{PI}}} node, register the namespace, and start the {{{consumer}}} application 110 124 {{{ 125 $ nfdc register / udp4://10.0.0.1 111 126 $ cd /local 112 127 $ python consumer.py -u /nytimes/science