Changes between Version 1 and Version 2 of GENIEducation/SampleAssignments/CCNAssignment/ForInstructors


Ignore:
Timestamp:
05/29/13 11:49:44 (11 years ago)
Author:
shuang@bbn.com
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GENIEducation/SampleAssignments/CCNAssignment/ForInstructors

    v1 v2  
    2828  ''In this task, you will observe the effects of the missing static routes, and restore them.'' [[BR]]
    2929  Log into the host ''researcher1''. Run the command ''ccninitkeystore''. Issue the command ''ccndstatus'' to print the status of the ccnd daemon on the local host. Note the number of content items stored on this host (which should be zero, if you have not yet fetched any content) and the number of interests accepted (under “Interest totals”).[[BR]]
     30  Output for ''ccndstatus'':
     31{{{
     32[shufeng@researcher1 ~]$ ccndstatus
     33researcher1.ccn.panther.emulab.net ccnd[1639] local port 9695 api 6003 start 1369836687.767003 now 1369842181.126690
     34Content items: 3 accessioned, 3 stored, 3 stale, 0 sparse, 0 duplicate, 3 sent
     35Interests: 9 names, 0 pending, 0 propagating, 0 noted
     36Interest totals: 3 accepted, 0 dropped, 3 sent, 0 stuffed
     37Faces
     38 face: 0 flags: 0xc pending: 0
     39 face: 1 flags: 0x400c pending: 0
     40 face: 2 flags: 0x5012 pending: 0 local: 0.0.0.0:9695
     41 face: 3 flags: 0x5010 pending: 0 local: 0.0.0.0:9695
     42 face: 4 flags: 0x4042 pending: 0 local: [::]:9695
     43 face: 5 flags: 0x4040 pending: 0 local: [::]:9695
     44 face: 9 flags: 0x410 pending: 0 remote: 192.168.5.2:9695
     45Face Activity Rates
     46                 Bytes/sec In/Out        recv data/intr sent     sent data/intr recv
     47 face: 0             0 / 0                      0 / 0                   0 / 0
     48 face: 9             0 / 0                      0 / 0                   0 / 0
     49Forwarding
     50 ccnx:/ccnx/%F8%FD%A2o%23%7C%C7%EE%87w%EC%AA%F6%B6J%83%E4%9C%D9%20%B7%10f9%9D%87%EF%F8%10~%07%AF face: 0 flags: 0x17 expires: 2147478157
     51 ccnx:/ccnx/ping face: 0 flags: 0x3 expires: 2147478157
     52 ccnx:/%C1.M.S.neighborhood face: 0 flags: 0x3 expires: 2147478157
     53 ccnx:/ndn face: 9 flags: 0x3 expires: 2147478172
     54 ccnx:/%C1.M.S.localhost/%C1.M.SRV/ccnd face: 0 flags: 0x3 expires: 2147478157
     55 ccnx:/%C1.M.S.localhost face: 0 flags: 0x23 expires: 2147478157
     56}}}
    3057  On ''researcher1'', issue a request for precipitation data from 1902/01/01 through 1902/01/02. To do this, use the Atmos tools by invoking:
    3158{{{
     
    3360}}}
    3461  Answer the date questions appropriately, and observe that a .nc NetCDF file is created in the current directory containing precipitation data for the specified dates.[[BR]]
     62  Output for ''client.py'':
     63{{{
     64[shufeng@researcher1 ~]$ /opt/ccnx-atmos/client.py
     65Start Date in YYYY/MM/DD? 1902/01/01
     66End Date in YYYY/MM/DD? 1902/01/02
     67Asking for /ndn/colostate.edu/netsec/pr_1902/01/01/00, Saving to pr_1902_01_01.tmp.nc
     68Time for pr_1902_01_01.tmp.nc 0.665292024612=
     69Asking for /ndn/colostate.edu/netsec/pr_1902/01/02/00, Saving to pr_1902_01_02.tmp.nc
     70Time for pr_1902_01_02.tmp.nc 4.67044997215=
     71Joining files..
     72Concat + write time 0.0258212089539
     73Wrote to pr_1902_1_1_1902_1_2.nc
     74}}}
     75  The .nc files:
     76{{{
     77[shufeng@researcher1 ~]$ ls
     78pr_1902_01_01.tmp.nc  pr_1902_01_02.tmp.nc  pr_1902_1_1_1902_1_2.nc
     79}}}
    3580  Run ''ccndstatus'' again, and look at the statistics on the local ''ccnd''. You should see both that a substantial number of content items are cached on this machine (this is the meaning of the “stored” field under “Content items”) and that many more Interests have been seen.[[BR]]
     81  Output for ''ccndstatus'':
     82{{{
     83[shufeng@researcher1 ~]$ ccndstatus
     84researcher1.ccn.panther.emulab.net ccnd[1639] local port 9695 api 6003 start 1369836687.767003 now 1369842419.431508
     85Content items: 165 accessioned, 165 stored, 3 stale, 0 sparse, 0 duplicate, 165 sent
     86Interests: 9 names, 0 pending, 0 propagating, 0 noted
     87Interest totals: 166 accepted, 0 dropped, 166 sent, 0 stuffed
     88Faces
     89 face: 0 flags: 0xc pending: 0
     90 face: 1 flags: 0x400c pending: 0
     91 face: 2 flags: 0x5012 pending: 0 local: 0.0.0.0:9695
     92 face: 3 flags: 0x5010 pending: 0 local: 0.0.0.0:9695
     93 face: 4 flags: 0x4042 pending: 0 local: [::]:9695
     94 face: 5 flags: 0x4040 pending: 0 local: [::]:9695
     95 face: 9 flags: 0x410 pending: 0 activity: 518 remote: 192.168.5.2:9695
     96Face Activity Rates
     97                 Bytes/sec In/Out        recv data/intr sent     sent data/intr recv
     98 face: 0             0 / 0                      0 / 0                   0 / 0
     99 face: 9             0 / 0                      0 / 0                   0 / 0
     100Forwarding
     101 ccnx:/ndn face: 9 flags: 0x3 expires: 2147477932
     102 ccnx:/ccnx/ping face: 0 flags: 0x3 expires: 2147477917
     103 ccnx:/%C1.M.S.neighborhood face: 0 flags: 0x3 expires: 2147477917
     104 ccnx:/%C1.M.S.localhost face: 0 flags: 0x23 expires: 2147477917
     105 ccnx:/%C1.M.S.localhost/%C1.M.SRV/ccnd face: 0 flags: 0x3 expires: 2147477917
     106 ccnx:/ccnx/%F8%FD%A2o%23%7C%C7%EE%87w%EC%AA%F6%B6J%83%E4%9C%D9%20%B7%10f9%9D%87%EF%F8%10~%07%AF face: 0 flags: 0x17 expires: 2147477917
     107}}}
    36108  Next, log into ''researcher2'' and issue the same command. Observe that it takes much longer at each step, does not terminate, and no .nc file is created. This is because the ''ccnd'' on ''researcher1'' had routes to the precipitation data requested by Atmos, but researcher2 does not. Issue the following command to install the appropriate routes:
    37109{{{