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