| 115 | Outputs: |
| 116 | {{{ |
| 117 | [shufeng@researcher2 ~]$ /opt/ccnx-atmos/client.py |
| 118 | Start Date in YYYY/MM/DD? 1902/01/01 |
| 119 | End Date in YYYY/MM/DD? 1902/01/02 |
| 120 | Asking for /ndn/colostate.edu/netsec/pr_1902/01/01/00, Saving to pr_1902_01_01.tmp.nc |
| 121 | Time for pr_1902_01_01.tmp.nc 0.228802204132= |
| 122 | Asking for /ndn/colostate.edu/netsec/pr_1902/01/02/00, Saving to pr_1902_01_02.tmp.nc |
| 123 | Time for pr_1902_01_02.tmp.nc 0.226236820221= |
| 124 | Joining files.. |
| 125 | Concat + write time 0.0258860588074 |
| 126 | Wrote to pr_1902_1_1_1902_1_2.nc |
| 127 | |
| 128 | |
| 129 | [shufeng@researcher2 ~]$ /opt/ccnx-atmos/client.py |
| 130 | Start Date in YYYY/MM/DD? 1902/02/03 |
| 131 | End Date in YYYY/MM/DD? 1902/02/04 |
| 132 | Asking for /ndn/colostate.edu/netsec/pr_1902/02/03/00, Saving to pr_1902_02_03.tmp.nc |
| 133 | Time for pr_1902_02_03.tmp.nc 0.661566972733= |
| 134 | Asking for /ndn/colostate.edu/netsec/pr_1902/02/04/00, Saving to pr_1902_02_04.tmp.nc |
| 135 | Time for pr_1902_02_04.tmp.nc 4.66726303101= |
| 136 | Joining files.. |
| 137 | Concat + write time 0.0256381034851 |
| 138 | Wrote to pr_1902_2_3_1902_2_4.nc |
| 139 | |
| 140 | |
| 141 | |
| 142 | [shufeng@researcher2 ~]$ /opt/ccnx-atmos/client.py |
| 143 | Start Date in YYYY/MM/DD? 1902/02/03 |
| 144 | End Date in YYYY/MM/DD? 1902/02/04 |
| 145 | Asking for /ndn/colostate.edu/netsec/pr_1902/02/03/00, Saving to pr_1902_02_03.tmp.nc |
| 146 | Time for pr_1902_02_03.tmp.nc 0.0416989326477= |
| 147 | Asking for /ndn/colostate.edu/netsec/pr_1902/02/04/00, Saving to pr_1902_02_04.tmp.nc |
| 148 | Time for pr_1902_02_04.tmp.nc 0.0415050983429= |
| 149 | Joining files.. |
| 150 | Concat + write time 0.0257289409637 |
| 151 | Wrote to pr_1902_2_3_1902_2_4.nc |
| 152 | }}} |
| 153 | '''Answer:''' The first time fetching data from 2/3 to 2/4 took the longest, the 2nd time fetching data from 2/3 to 2/4 took the shortest time. [[BR]] |
| 154 | Since ccnd caches data for a short period of time, the 2nd time researcher2 fetches data from 2/3 to 2/4, it fetches the data from local cache. Since researcher1 already caches data from 1/1 to 1/2, the `router` caches that data. As a result, researcher2 got the data from 1/1 to 1/2 from router cache. |
116 | | Browse the content caches and interests seen on various hosts in the network by loading their ccnd status page on TCP port 9695 in your browser (see Section 5, Hints, below). Which hosts have seen interests and have content cached, and why? |
| 156 | Browse the content caches and interests seen on various hosts in the network by loading their ccnd status page on TCP port 9695 in your browser (see Section 5, Hints, below). Which hosts have seen interests and have content cached, and why? [[BR]] |
| 157 | '''Answer:''' datasource1, datasource2, router, researcher1 and researcher2 have seen interests and content cached. Since the data has passed them. |