blob: 2f2440fedb56a54d43a94fbf21b11031f23e269d [file] [log] [blame]
akmhoque157b0a42014-05-13 00:26:37 -05001; the general section contains all the general settings for router
akmhoqueba094742014-02-28 11:47:21 -06002
akmhoque157b0a42014-05-13 00:26:37 -05003general
4{
5; mandatory configuration command section network, site and router
akmhoqueba094742014-02-28 11:47:21 -06006
akmhoque157b0a42014-05-13 00:26:37 -05007 network /ndn/ ; name of the network the router belongs to in ndn URI format
8 site /memphis.edu/ ; name of the site the router belongs to in ndn URI format
9 router /cs/pollux/ ; name of the network the router belongs to in ndn URI format
10
11; lsa-refresh-time is the time in seconds, after which router will refresh its LSAs
12
13 lsa-refresh-time 1800 ; default value 1800. Valid values 240-7200
14
15; log-level is to set the levels of log for NLSR
16
17 log-level INFO ; default value INFO, valid value DEBUG, INFO
18}
19
20; the neighbors section contains the configuration for router's neighbors and hello's behavior
21
22neighbors
23{
24; in case hello interest timed out, router will try 'hello-retries' times at 'hello-time-out'
25; seconds interval before giving up for any neighbors (deciding link is down)
26
27 hello-retries 3 ; interest retries number in integer. Default value 3
28 ; valid values 1-10
29
30 hello-timeout 1 ; interest time out value in integer. Default value 1
31 ; Valid values 1-15
32
33 hello-interval 60 ; interest sending interval in seconds. Default value 60
34 ; valid values 30-90
35; neighbor command is used to configure router's neighbor. Each neighbor will need
36; one block of neighbor command
37
38 neighbor
39 {
40 name /ndn/memphis.edu/cs/castor ; name prefix of the neighbor router consists
41 ; of network, site-name and router-name
42
43 face-uri udp://castor.cs.memphis.edu ; face id of the face connected to the neighbor
44 link-cost 25 ; cost of the connecting link to neighbor
45 }
46
47 neighbor
48 {
49 name /ndn/memphis.edu/cs/mira ; name prefix of the neighbor router consists
50 ; of network, site-name and router-name
51
52 face-uri udp://mira.cs.memphis.edu ; face id of the face connected to the neighbor
53 link-cost 30 ; cost of the connecting link to neighbor
54 }
55}
56
57; the hyperbolic section contains the configuration settings of enabling a router to calculate
58; routing table using [hyperbolic routing table calculation](http://arxiv.org/abs/0805.1266) method
59
60hyperbolic
61{
62; commands in this section follows a strict order
63; the switch is used to set hyperbolic routing calculation in NLSR
64
65 state off ; default value 'off', set value 'on' to enable hyperbolic routing table
66 ; calculation which turns link state routing 'off'. set value to 'dry-run"
67 ; to test hyperbolic routing and compare with link state routing.
akmhoqueba094742014-02-28 11:47:21 -060068
69
akmhoque157b0a42014-05-13 00:26:37 -050070 radius 123.456 ; radius of the router in hyperbolic coordinate system
71 angle 1.45 ; angle of the router in hyperbolic coordinate system
72}
73
74
75; the fib section is used to configure fib entry's type to ndn FIB updated by NLSR
76
77fib
78{
79; the max-faces-per-prefix is used to limit the number of faces for each name prefixes
80; by NLSR in ndn FIB
81
82 max-faces-per-prefix 3 ; default value 0. Valid value 0-60. By default (value 0) NLSR adds
83 ; all available faces for each reachable name prefixes in NDN FIB
84
85}
86
87; the advertising section contains the configuration settings of the name prefixes
88; hosted by this router
89
90advertising
91{
92; the ndnname is used to advertised name from the router. To advertise each name prefix
93; configure one block of ndnname configuration command for every name prefix.
94
95 prefix /ndn/edu/memphis/cs/netlab ; name in ndn URI format
96 prefix /ndn/edu/memphis/sports/basketball
97}