blob: f260de409f9a777fb57541321251ccd24fb89354 [file] [log] [blame]
Spyridon Mastorakisb4bd4b72015-01-05 17:41:12 -08001#!/bin/bash
2
3size=100
4rate=1000
5sim_time=$(( 2000 / rate ))
6
7# scenarios using the ndnSIM CS
8echo "Using ndnSIM's CS.."
9
10# scenarios using the Lru replacement policy
11echo "Lru replacement policy.."
12
13# scenarios for the evaluation of memory overhead per PIT entry
14echo "Evaluation of memory overhead per PIT entry.."
15
16echo "CS size = " $size, "interest rate = " $rate
17
18# using broadcast forwarding strategy
19echo "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
23echo
24
25# using best route forwarding strategy
26echo "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
30echo
31
32size=100000
33rate=100
34sim_time=$(( 2000 / rate ))
35
36# scenarios using the NFD's CS
37echo "Using NFD's CS.."
38
39# scenarios for the evaluation of memory overhead per CS entry
40echo "Evaluation of memory overhead per CS entry.."
41
42echo "CS size = " $size, "interest rate = " $rate
43
44# using broadcast forwarding strategy
45echo "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
49echo
50
51# using best route forwarding strategy
52echo "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}"