blob: fac27565ad27e12c9f03e9822a3c852a89d3965b [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
Alexander Afanasyevc3c7f042015-08-21 11:38:00 -070018# using multicast forwarding strategy
19echo "Using multicast forwarding strategy.."
Spyridon Mastorakisb4bd4b72015-01-05 17:41:12 -080020
Alexander Afanasyevc3c7f042015-08-21 11:38:00 -070021../../../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/multicast" "
Spyridon Mastorakisb4bd4b72015-01-05 17:41:12 -080022
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
Alexander Afanasyevc3c7f042015-08-21 11:38:00 -070044# using multicast forwarding strategy
45echo "Using multicast forwarding strategy.."
Spyridon Mastorakisb4bd4b72015-01-05 17:41:12 -080046
Alexander Afanasyevc3c7f042015-08-21 11:38:00 -070047../../../waf --run ndn-test --command-template="%s --cs-size=${size} --rate=${rate} --strategy="/localhost/nfd/strategy/multicast" --sim-time=${sim_time}"
Spyridon Mastorakisb4bd4b72015-01-05 17:41:12 -080048
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}"