Configuration File Format » History » Version 2
A K M Mahmudul Hoque, 05/05/2014 08:43 AM
| 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 | ; the router section contains the setting of network, site name |
||
| 8 | ; and router name which all together makes router-prefix |
||
| 9 | |||
| 10 | router |
||
| 11 | { |
||
| 12 | network |
||
| 13 | { |
||
| 14 | name /ndn ; name prefix of the network router belongs to |
||
| 15 | } ; must be in ndn URI format |
||
| 16 | |||
| 17 | site-name |
||
| 18 | { |
||
| 19 | name /memphis.edu ; name prefix of the site name router belongs to |
||
| 20 | } ; must be in ndn URI format |
||
| 21 | |||
| 22 | router-name |
||
| 23 | { |
||
| 24 | name /cs/pollux ; name prefix of the router |
||
| 25 | } ; must be in ndn URI format |
||
| 26 | } |
||
| 27 | |||
| 28 | ; the hello section describes the configuration settings for NLSR hello protocol |
||
| 29 | |||
| 30 | hello |
||
| 31 | { |
||
| 32 | ; neighbor command is used to configure router's neighbor. Each neighbor will need |
||
| 33 | ; one block of neighbor command |
||
| 34 | |||
| 35 | neighbor |
||
| 36 | { |
||
| 37 | name /ndn/memphis.edu/cs/castor ; name prefix of the neighbor router consists |
||
| 38 | ; of network, site-name and router-name |
||
| 39 | |||
| 40 | host cs.castor.memphis.edu ; hostname or ip address of neighbor router |
||
| 41 | link-cost 20.6 ; cost of the connecting link to neighbor |
||
| 42 | } |
||
| 43 | |||
| 44 | ; interest-retry command is used to configure the interval of hello interest and number |
||
| 45 | ; of retry interests before a router gives up in case of interest timed out |
||
| 46 | |||
| 47 | interest-retry |
||
| 48 | { |
||
| 49 | number 3 ; interest retry number in integer. Default value 3 |
||
| 50 | ; valid values 1-10 |
||
| 51 | |||
| 52 | interval 10 ; interest sending interval in seconds. Default value 1 |
||
| 53 | ; valid values 1-15 |
||
| 54 | } |
||
| 55 | } |
||
| 56 | |||
| 57 | ; the synchronization section contains all the configuration settings for router's update |
||
| 58 | ; synchronization with neighbors in the network |
||
| 59 | |||
| 60 | synchronization |
||
| 61 | { |
||
| 62 | 2 | A K M Mahmudul Hoque | ; all routers in the network must have same sync-prefix. Routers synchronizes routing updates |
| 63 | ; in this prefix across the network. This prefix is routable to each neighbor from every router |
||
| 64 | 1 | A K M Mahmudul Hoque | |
| 65 | sync-prefix |
||
| 66 | { |
||
| 67 | 2 | A K M Mahmudul Hoque | name /ndn/nlsr/sync ; name in URI format. Default value /ndn/nlsr/sync |
| 68 | 1 | A K M Mahmudul Hoque | } |
| 69 | |||
| 70 | 2 | A K M Mahmudul Hoque | ; lsa-refresh-time is the time in seconds, after which router will refresh its LSAs |
| 71 | |||
| 72 | 1 | A K M Mahmudul Hoque | lsa-refresh-time |
| 73 | { |
||
| 74 | 2 | A K M Mahmudul Hoque | seconds 1800 ; default value 1800. Valid values 240-7200 |
| 75 | 1 | A K M Mahmudul Hoque | } |
| 76 | } |
||
| 77 | |||
| 78 | 2 | A K M Mahmudul Hoque | ; the hyperbolic section contains the configuration settings of enabling a router to calculate |
| 79 | ; routing table using [hyperbolic routing table calculation](http://arxiv.org/abs/0805.1266) method |
||
| 80 | |||
| 81 | hyperbolic |
||
| 82 | 1 | A K M Mahmudul Hoque | { |
| 83 | 2 | A K M Mahmudul Hoque | ; |
| 84 | |||
| 85 | switch |
||
| 86 | { |
||
| 87 | } |
||
| 88 | ; |
||
| 89 | |||
| 90 | coordinate |
||
| 91 | { |
||
| 92 | } |
||
| 93 | 1 | A K M Mahmudul Hoque | } |