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