akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 1 | ; the general section contains all the general settings for router |
akmhoque | ba09474 | 2014-02-28 11:47:21 -0600 | [diff] [blame] | 2 | |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 3 | general |
| 4 | { |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 5 | ; mandatory configuration command section network, site and router |
akmhoque | ba09474 | 2014-02-28 11:47:21 -0600 | [diff] [blame] | 6 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 7 | network /ndn/ ; name of the network the router belongs to in ndn URI format |
| 8 | site /edu/memphis ; name of the site the router belongs to in ndn URI format |
| 9 | router /%C1.Router/cs/pollux ; name of the router in ndn URI format |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 10 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 11 | ; lsa-refresh-time is the time in seconds, after which router will refresh its LSAs |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 12 | lsa-refresh-time 1800 ; default value 1800. Valid values 240-7200 |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 13 | |
Vince Lehman | fc7d5b6 | 2014-12-05 15:02:47 -0600 | [diff] [blame] | 14 | ; router-dead-interval is the time in seconds after which an inactive router's |
| 15 | ; LSAs are removed |
| 16 | ;router-dead-interval 3600 ; default value: 2*lsa-refresh-time. Value must be larger |
| 17 | ; than lsa-refresh-time |
| 18 | |
Alexander Afanasyev | 411ee4b | 2014-08-16 23:17:03 -0700 | [diff] [blame] | 19 | ; InterestLifetime (in seconds) for LSA fetching |
| 20 | lsa-interest-lifetime 4 ; default value 4. Valid values 1-60 |
| 21 | |
Vince Lehman | f99b87f | 2014-08-26 15:54:27 -0500 | [diff] [blame] | 22 | ; log-level is used to set the logging level for NLSR. |
| 23 | ; All debugging levels listed above the selected value are enabled. |
| 24 | ; |
| 25 | ; Valid values: |
| 26 | ; |
| 27 | ; NONE ; no messages |
| 28 | ; ERROR ; error messages |
| 29 | ; WARN ; warning messages |
| 30 | ; INFO ; informational messages (default) |
| 31 | ; DEBUG ; debugging messages |
| 32 | ; TRACE ; trace messages (most verbose) |
| 33 | ; ALL ; all messages |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 34 | |
Vince Lehman | f99b87f | 2014-08-26 15:54:27 -0500 | [diff] [blame] | 35 | log-level INFO |
| 36 | |
Muktadir R Chowdhury | bfa2760 | 2014-10-31 10:57:41 -0500 | [diff] [blame] | 37 | log-dir /var/log/nlsr/ ; path for log directory (Absolute path) |
| 38 | seq-dir /var/lib/nlsr/ ; path for sequence directory (Absolute path) |
| 39 | ;log4cxx-conf /path/to/log4cxx-conf ; path for log4cxx configuration file (Absolute path) |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | ; the neighbors section contains the configuration for router's neighbors and hello's behavior |
| 43 | |
| 44 | neighbors |
| 45 | { |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 46 | ; in case hello interest timed out, router will try 'hello-retries' times at 'hello-timeout' |
| 47 | ; seconds interval before giving up for any neighbors (deciding link is down) |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 48 | |
| 49 | hello-retries 3 ; interest retries number in integer. Default value 3 |
| 50 | ; valid values 1-10 |
| 51 | |
| 52 | hello-timeout 1 ; interest time out value in integer. Default value 1 |
| 53 | ; Valid values 1-15 |
| 54 | |
| 55 | hello-interval 60 ; interest sending interval in seconds. Default value 60 |
| 56 | ; valid values 30-90 |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 57 | |
Vince Lehman | 7b61658 | 2014-10-17 16:25:39 -0500 | [diff] [blame] | 58 | ; adj-lsa-build-interval is the time to wait in seconds after an Adjacency LSA build is scheduled |
| 59 | ; before actually building the Adjacency LSA |
| 60 | |
| 61 | adj-lsa-build-interval 5 ; default value 5. Valid values 0-5. It is recommended that |
| 62 | ; adj-lsa-build-interval have a lower value than routing-calc-interval |
| 63 | |
| 64 | ; first-hello-interval is the time to wait in seconds before sending the first Hello Interest |
| 65 | |
| 66 | first-hello-interval 10 ; Default value 10. Valid values 0-10 |
| 67 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 68 | ; neighbor command is used to configure router's neighbor. Each neighbor will need |
| 69 | ; one block of neighbor command |
| 70 | |
| 71 | neighbor |
| 72 | { |
| 73 | name /ndn/edu/memphis/%C1.Router/cs/castor ; name prefix of the neighbor router consists |
| 74 | ; of network, site-name and router-name |
| 75 | |
| 76 | face-uri udp://castor.cs.memphis.edu ; face uri of the face connected to the neighbor |
| 77 | link-cost 25 ; cost of the connecting link to neighbor |
| 78 | } |
| 79 | |
| 80 | neighbor |
| 81 | { |
| 82 | name /ndn/edu/memphis/%C1.Router/cs/mira ; name prefix of the neighbor router consists |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 83 | ; of network, site-name and router-name |
| 84 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 85 | face-uri udp://mira.cs.memphis.edu ; face uri of the face connected to the neighbor |
| 86 | link-cost 30 ; cost of the connecting link to neighbor |
| 87 | } |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 88 | } |
| 89 | |
| 90 | ; the hyperbolic section contains the configuration settings of enabling a router to calculate |
| 91 | ; routing table using [hyperbolic routing table calculation](http://arxiv.org/abs/0805.1266) method |
| 92 | |
| 93 | hyperbolic |
| 94 | { |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 95 | ; commands in this section follows a strict order |
| 96 | ; the switch is used to set hyperbolic routing calculation in NLSR |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 97 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 98 | state off ; default value 'off', set value 'on' to enable hyperbolic routing table |
Junxiao Shi | f09e263 | 2015-01-02 18:15:01 -0700 | [diff] [blame] | 99 | ; calculation which turns link state routing 'off'. set value to 'dry-run' |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 100 | ; to test hyperbolic routing and compare with link state routing. |
akmhoque | ba09474 | 2014-02-28 11:47:21 -0600 | [diff] [blame] | 101 | |
| 102 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 103 | radius 123.456 ; radius of the router in hyperbolic coordinate system |
| 104 | angle 1.45 ; angle of the router in hyperbolic coordinate system |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 105 | } |
| 106 | |
| 107 | |
| 108 | ; the fib section is used to configure fib entry's type to ndn FIB updated by NLSR |
| 109 | |
| 110 | fib |
| 111 | { |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 112 | ; the max-faces-per-prefix is used to limit the number of faces for each name prefixes |
| 113 | ; by NLSR in ndn FIB |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 114 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 115 | max-faces-per-prefix 3 ; default value 0. Valid value 0-60. By default (value 0) NLSR adds |
| 116 | ; all available faces for each reachable name prefixes in NDN FIB |
Vince Lehman | 7b61658 | 2014-10-17 16:25:39 -0500 | [diff] [blame] | 117 | |
| 118 | ; routing-calc-interval is the time to wait in seconds after a routing table calculation is |
| 119 | ; scheduled before actually performing the routing table calculation |
| 120 | |
| 121 | routing-calc-interval 15 ; default value 15. Valid values 0-15. It is recommended that |
| 122 | ; routing-calc-interval have a higher value than adj-lsa-build-interval |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 123 | } |
| 124 | |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 125 | ; the advertising section contains the configuration settings of the name prefixes |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 126 | ; hosted by this router |
| 127 | |
| 128 | advertising |
| 129 | { |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 130 | ; the ndnname is used to advertised name from the router. To advertise each name prefix |
| 131 | ; configure one block of ndnname configuration command for every name prefix. |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 132 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 133 | prefix /ndn/edu/memphis/cs/netlab ; name in ndn URI format |
| 134 | prefix /ndn/edu/memphis/sports/basketball |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 135 | } |
| 136 | |
| 137 | security |
| 138 | { |
| 139 | validator |
| 140 | { |
| 141 | rule |
| 142 | { |
| 143 | id "NSLR Hello Rule" |
| 144 | for data |
| 145 | filter |
| 146 | { |
| 147 | type name |
akmhoque | 93f1a07 | 2014-06-19 16:24:28 -0500 | [diff] [blame] | 148 | regex ^[^<NLSR><INFO>]*<NLSR><INFO><><>$ |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 149 | } |
| 150 | checker |
| 151 | { |
| 152 | type customized |
| 153 | sig-type rsa-sha256 |
| 154 | key-locator |
| 155 | { |
| 156 | type name |
| 157 | hyper-relation |
| 158 | { |
| 159 | k-regex ^([^<KEY><NLSR>]*)<NLSR><KEY><ksk-.*><ID-CERT>$ |
Yingdi Yu | 6a3a4dd | 2014-06-20 14:10:39 -0700 | [diff] [blame] | 160 | k-expand \\1 |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 161 | h-relation equal |
akmhoque | 93f1a07 | 2014-06-19 16:24:28 -0500 | [diff] [blame] | 162 | p-regex ^([^<NLSR><INFO>]*)<NLSR><INFO><><>$ |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 163 | p-expand \\1 |
| 164 | } |
| 165 | } |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | rule |
| 170 | { |
| 171 | id "NSLR LSA Rule" |
| 172 | for data |
| 173 | filter |
| 174 | { |
| 175 | type name |
akmhoque | a816bee | 2014-06-24 14:37:40 -0500 | [diff] [blame] | 176 | regex ^[^<NLSR><LSA>]*<NLSR><LSA> |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 177 | } |
| 178 | checker |
| 179 | { |
| 180 | type customized |
| 181 | sig-type rsa-sha256 |
| 182 | key-locator |
| 183 | { |
| 184 | type name |
| 185 | hyper-relation |
| 186 | { |
| 187 | k-regex ^([^<KEY><NLSR>]*)<NLSR><KEY><ksk-.*><ID-CERT>$ |
Yingdi Yu | 6a3a4dd | 2014-06-20 14:10:39 -0700 | [diff] [blame] | 188 | k-expand \\1 |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 189 | h-relation equal |
Muktadir R Chowdhury | aa3b085 | 2015-08-06 13:08:56 -0500 | [diff] [blame^] | 190 | ; the last four components in the prefix should be <lsaType><seqNo><version><segmentNo> |
| 191 | p-regex ^([^<NLSR><LSA>]*)<NLSR><LSA>(<>*)<><><><>$ |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 192 | p-expand \\1\\2 |
| 193 | } |
| 194 | } |
| 195 | } |
| 196 | } |
| 197 | |
| 198 | rule |
| 199 | { |
| 200 | id "NSLR Hierarchy Exception Rule" |
| 201 | for data |
| 202 | filter |
| 203 | { |
| 204 | type name |
akmhoque | cc82753 | 2014-07-09 08:48:49 -0500 | [diff] [blame] | 205 | regex ^[^<KEY><%C1.Router>]*<%C1.Router>[^<KEY><NLSR>]*<KEY><ksk-.*><ID-CERT><>$ |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 206 | } |
| 207 | checker |
| 208 | { |
| 209 | type customized |
| 210 | sig-type rsa-sha256 |
| 211 | key-locator |
| 212 | { |
| 213 | type name |
| 214 | hyper-relation |
| 215 | { |
alvy | 297f416 | 2015-03-03 17:15:33 -0600 | [diff] [blame] | 216 | k-regex ^([^<KEY><%C1.Operator>]*)<%C1.Operator>[^<KEY>]*<KEY><ksk-.*><ID-CERT>$ |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 217 | k-expand \\1 |
| 218 | h-relation equal |
akmhoque | cc82753 | 2014-07-09 08:48:49 -0500 | [diff] [blame] | 219 | p-regex ^([^<KEY><%C1.Router>]*)<%C1.Router>[^<KEY>]*<KEY><ksk-.*><ID-CERT><>$ |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 220 | p-expand \\1 |
| 221 | } |
| 222 | } |
| 223 | } |
| 224 | } |
| 225 | |
| 226 | rule |
| 227 | { |
| 228 | id "NSLR Hierarchical Rule" |
| 229 | for data |
| 230 | filter |
| 231 | { |
| 232 | type name |
| 233 | regex ^[^<KEY>]*<KEY><ksk-.*><ID-CERT><>$ |
| 234 | } |
| 235 | checker |
| 236 | { |
| 237 | type hierarchical |
| 238 | sig-type rsa-sha256 |
| 239 | } |
| 240 | } |
| 241 | |
| 242 | trust-anchor |
| 243 | { |
| 244 | type file |
| 245 | file-name "root.cert" |
| 246 | } |
| 247 | } |
alvy | 297f416 | 2015-03-03 17:15:33 -0600 | [diff] [blame] | 248 | |
| 249 | prefix-update-validator |
| 250 | { |
| 251 | rule |
| 252 | { |
| 253 | id "NLSR ControlCommand Rule" |
| 254 | for interest |
| 255 | filter |
| 256 | { |
| 257 | type name |
| 258 | regex ^<localhost><nlsr><prefix-update>[<advertise><withdraw>]<>$ |
| 259 | } |
| 260 | checker |
| 261 | { |
| 262 | type customized |
| 263 | sig-type rsa-sha256 |
| 264 | key-locator |
| 265 | { |
| 266 | type name |
| 267 | regex ^([^<KEY><%C1.Operator>]*)<%C1.Operator>[^<KEY>]*<KEY><ksk-.*><ID-CERT>$ |
| 268 | } |
| 269 | } |
| 270 | } |
| 271 | |
| 272 | rule |
| 273 | { |
| 274 | id "NLSR Hierarchy Rule" |
| 275 | for data |
| 276 | filter |
| 277 | { |
| 278 | type name |
| 279 | regex ^[^<KEY>]*<KEY><ksk-.*><ID-CERT><>$ |
| 280 | } |
| 281 | checker |
| 282 | { |
| 283 | type hierarchical |
| 284 | sig-type rsa-sha256 |
| 285 | } |
| 286 | } |
| 287 | |
| 288 | trust-anchor |
| 289 | { |
| 290 | type file |
| 291 | file-name "site.cert" |
| 292 | } |
| 293 | } |
Vince Lehman | 9f51efd | 2014-09-18 14:46:01 -0500 | [diff] [blame] | 294 | ; cert-to-publish "root.cert" ; optional, a file containing the root certificate |
| 295 | ; Only the router that is designated to publish the root cert |
| 296 | ; needs to specify this |
| 297 | |
| 298 | ; cert-to-publish "site.cert" ; optional, a file containing the site certificate |
| 299 | ; Only the router that is designated to publish the site cert |
| 300 | ; needs to specify this |
| 301 | |
| 302 | ; cert-to-publish "operator.cert" ; optional, a file containing the operator certificate |
| 303 | ; Only the router that is designated to publish the operator |
| 304 | ; cert needs to specify this |
| 305 | |
akmhoque | 50125a9 | 2014-06-30 08:54:17 -0500 | [diff] [blame] | 306 | cert-to-publish "router.cert" ; required, a file containing the router certificate. |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 307 | } |