Spyridon Mastorakis | b4bd4b7 | 2015-01-05 17:41:12 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | size=100 |
| 4 | rate=1000 |
| 5 | sim_time=$(( 2000 / rate )) |
| 6 | |
| 7 | # scenarios using the ndnSIM CS |
| 8 | echo "Using ndnSIM's CS.." |
| 9 | |
| 10 | # scenarios using the Lru replacement policy |
| 11 | echo "Lru replacement policy.." |
| 12 | |
| 13 | # scenarios for the evaluation of memory overhead per PIT entry |
| 14 | echo "Evaluation of memory overhead per PIT entry.." |
| 15 | |
| 16 | echo "CS size = " $size, "interest rate = " $rate |
| 17 | |
| 18 | # using broadcast forwarding strategy |
| 19 | echo "Using broadcast forwarding strategy.." |
| 20 | |
| 21 | ../../../waf --run ndn-test --command-template="%s --old-cs=ns3::ndn::cs::Lru --cs-size=${size} --rate=${rate} --sim-time=${sim_time} --pit=$(true) --strategy="/localhost/nfd/strategy/broadcast" " |
| 22 | |
| 23 | echo |
| 24 | |
| 25 | # using best route forwarding strategy |
| 26 | echo "Using best route forwarding strategy.." |
| 27 | |
| 28 | ../../../waf --run ndn-test --command-template="%s --old-cs=ns3::ndn::cs::Lru --cs-size=${size} --rate=${rate} --pit=$(true) --strategy="/localhost/nfd/strategy/best-route" --sim-time=${sim_time}" |
| 29 | |
| 30 | echo |
| 31 | |
| 32 | size=100000 |
| 33 | rate=100 |
| 34 | sim_time=$(( 2000 / rate )) |
| 35 | |
| 36 | # scenarios using the NFD's CS |
| 37 | echo "Using NFD's CS.." |
| 38 | |
| 39 | # scenarios for the evaluation of memory overhead per CS entry |
| 40 | echo "Evaluation of memory overhead per CS entry.." |
| 41 | |
| 42 | echo "CS size = " $size, "interest rate = " $rate |
| 43 | |
| 44 | # using broadcast forwarding strategy |
| 45 | echo "Using broadcast forwarding strategy.." |
| 46 | |
| 47 | ../../../waf --run ndn-test --command-template="%s --cs-size=${size} --rate=${rate} --strategy="/localhost/nfd/strategy/broadcast" --sim-time=${sim_time}" |
| 48 | |
| 49 | echo |
| 50 | |
| 51 | # using best route forwarding strategy |
| 52 | echo "Using best route forwarding strategy.." |
| 53 | |
| 54 | ../../../waf --run ndn-test --command-template="%s --cs-size=${size} --rate=${rate} --strategy="/localhost/nfd/strategy/best-route" --sim-time=${sim_time}" |