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 | |
Alexander Afanasyev | 411ee4b | 2014-08-16 23:17:03 -0700 | [diff] [blame] | 14 | ; InterestLifetime (in seconds) for LSA fetching |
| 15 | lsa-interest-lifetime 4 ; default value 4. Valid values 1-60 |
| 16 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 17 | ; log-level is to set the levels of log for NLSR |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 18 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 19 | log-level INFO ; default value INFO, valid value DEBUG, INFO |
| 20 | log-dir /var/log/nlsr/ ; path for log directory (Absolute path) |
| 21 | seq-dir /var/lib/nlsr/ ; path for sequence directory (Absolute path) |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | ; the neighbors section contains the configuration for router's neighbors and hello's behavior |
| 25 | |
| 26 | neighbors |
| 27 | { |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 28 | ; in case hello interest timed out, router will try 'hello-retries' times at 'hello-timeout' |
| 29 | ; seconds interval before giving up for any neighbors (deciding link is down) |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 30 | |
| 31 | hello-retries 3 ; interest retries number in integer. Default value 3 |
| 32 | ; valid values 1-10 |
| 33 | |
| 34 | hello-timeout 1 ; interest time out value in integer. Default value 1 |
| 35 | ; Valid values 1-15 |
| 36 | |
| 37 | hello-interval 60 ; interest sending interval in seconds. Default value 60 |
| 38 | ; valid values 30-90 |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 39 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 40 | ; neighbor command is used to configure router's neighbor. Each neighbor will need |
| 41 | ; one block of neighbor command |
| 42 | |
| 43 | neighbor |
| 44 | { |
| 45 | name /ndn/edu/memphis/%C1.Router/cs/castor ; name prefix of the neighbor router consists |
| 46 | ; of network, site-name and router-name |
| 47 | |
| 48 | face-uri udp://castor.cs.memphis.edu ; face uri of the face connected to the neighbor |
| 49 | link-cost 25 ; cost of the connecting link to neighbor |
| 50 | } |
| 51 | |
| 52 | neighbor |
| 53 | { |
| 54 | 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] | 55 | ; of network, site-name and router-name |
| 56 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 57 | face-uri udp://mira.cs.memphis.edu ; face uri of the face connected to the neighbor |
| 58 | link-cost 30 ; cost of the connecting link to neighbor |
| 59 | } |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 60 | } |
| 61 | |
| 62 | ; the hyperbolic section contains the configuration settings of enabling a router to calculate |
| 63 | ; routing table using [hyperbolic routing table calculation](http://arxiv.org/abs/0805.1266) method |
| 64 | |
| 65 | hyperbolic |
| 66 | { |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 67 | ; commands in this section follows a strict order |
| 68 | ; the switch is used to set hyperbolic routing calculation in NLSR |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 69 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 70 | state off ; default value 'off', set value 'on' to enable hyperbolic routing table |
| 71 | ; calculation which turns link state routing 'off'. set value to 'dry-run" |
| 72 | ; to test hyperbolic routing and compare with link state routing. |
akmhoque | ba09474 | 2014-02-28 11:47:21 -0600 | [diff] [blame] | 73 | |
| 74 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 75 | radius 123.456 ; radius of the router in hyperbolic coordinate system |
| 76 | angle 1.45 ; angle of the router in hyperbolic coordinate system |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 77 | } |
| 78 | |
| 79 | |
| 80 | ; the fib section is used to configure fib entry's type to ndn FIB updated by NLSR |
| 81 | |
| 82 | fib |
| 83 | { |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 84 | ; the max-faces-per-prefix is used to limit the number of faces for each name prefixes |
| 85 | ; by NLSR in ndn FIB |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 86 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 87 | max-faces-per-prefix 3 ; default value 0. Valid value 0-60. By default (value 0) NLSR adds |
| 88 | ; all available faces for each reachable name prefixes in NDN FIB |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 89 | } |
| 90 | |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 91 | ; the advertising section contains the configuration settings of the name prefixes |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 92 | ; hosted by this router |
| 93 | |
| 94 | advertising |
| 95 | { |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 96 | ; the ndnname is used to advertised name from the router. To advertise each name prefix |
| 97 | ; configure one block of ndnname configuration command for every name prefix. |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 98 | |
Alexander Afanasyev | 8388ec6 | 2014-08-16 18:38:57 -0700 | [diff] [blame] | 99 | prefix /ndn/edu/memphis/cs/netlab ; name in ndn URI format |
| 100 | prefix /ndn/edu/memphis/sports/basketball |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 101 | } |
| 102 | |
| 103 | security |
| 104 | { |
| 105 | validator |
| 106 | { |
| 107 | rule |
| 108 | { |
| 109 | id "NSLR Hello Rule" |
| 110 | for data |
| 111 | filter |
| 112 | { |
| 113 | type name |
akmhoque | 93f1a07 | 2014-06-19 16:24:28 -0500 | [diff] [blame] | 114 | regex ^[^<NLSR><INFO>]*<NLSR><INFO><><>$ |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 115 | } |
| 116 | checker |
| 117 | { |
| 118 | type customized |
| 119 | sig-type rsa-sha256 |
| 120 | key-locator |
| 121 | { |
| 122 | type name |
| 123 | hyper-relation |
| 124 | { |
| 125 | k-regex ^([^<KEY><NLSR>]*)<NLSR><KEY><ksk-.*><ID-CERT>$ |
Yingdi Yu | 6a3a4dd | 2014-06-20 14:10:39 -0700 | [diff] [blame] | 126 | k-expand \\1 |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 127 | h-relation equal |
akmhoque | 93f1a07 | 2014-06-19 16:24:28 -0500 | [diff] [blame] | 128 | p-regex ^([^<NLSR><INFO>]*)<NLSR><INFO><><>$ |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 129 | p-expand \\1 |
| 130 | } |
| 131 | } |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | rule |
| 136 | { |
| 137 | id "NSLR LSA Rule" |
| 138 | for data |
| 139 | filter |
| 140 | { |
| 141 | type name |
akmhoque | a816bee | 2014-06-24 14:37:40 -0500 | [diff] [blame] | 142 | regex ^[^<NLSR><LSA>]*<NLSR><LSA> |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 143 | } |
| 144 | checker |
| 145 | { |
| 146 | type customized |
| 147 | sig-type rsa-sha256 |
| 148 | key-locator |
| 149 | { |
| 150 | type name |
| 151 | hyper-relation |
| 152 | { |
| 153 | k-regex ^([^<KEY><NLSR>]*)<NLSR><KEY><ksk-.*><ID-CERT>$ |
Yingdi Yu | 6a3a4dd | 2014-06-20 14:10:39 -0700 | [diff] [blame] | 154 | k-expand \\1 |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 155 | h-relation equal |
akmhoque | 50125a9 | 2014-06-30 08:54:17 -0500 | [diff] [blame] | 156 | p-regex ^([^<NLSR><LSA>]*)<NLSR><LSA>(<>*)<><><>$ |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 157 | p-expand \\1\\2 |
| 158 | } |
| 159 | } |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | rule |
| 164 | { |
| 165 | id "NSLR Hierarchy Exception Rule" |
| 166 | for data |
| 167 | filter |
| 168 | { |
| 169 | type name |
akmhoque | cc82753 | 2014-07-09 08:48:49 -0500 | [diff] [blame] | 170 | regex ^[^<KEY><%C1.Router>]*<%C1.Router>[^<KEY><NLSR>]*<KEY><ksk-.*><ID-CERT><>$ |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 171 | } |
| 172 | checker |
| 173 | { |
| 174 | type customized |
| 175 | sig-type rsa-sha256 |
| 176 | key-locator |
| 177 | { |
| 178 | type name |
| 179 | hyper-relation |
| 180 | { |
akmhoque | cc82753 | 2014-07-09 08:48:49 -0500 | [diff] [blame] | 181 | k-regex ^([^<KEY><%C1.Operator>]*)<%C1.Operator>[^<KEY>]*<KEY><ksk-.*><ID-CERT>$ |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 182 | k-expand \\1 |
| 183 | h-relation equal |
akmhoque | cc82753 | 2014-07-09 08:48:49 -0500 | [diff] [blame] | 184 | p-regex ^([^<KEY><%C1.Router>]*)<%C1.Router>[^<KEY>]*<KEY><ksk-.*><ID-CERT><>$ |
Yingdi Yu | 20e3a6e | 2014-05-26 23:16:10 -0700 | [diff] [blame] | 185 | p-expand \\1 |
| 186 | } |
| 187 | } |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | rule |
| 192 | { |
| 193 | id "NSLR Hierarchical Rule" |
| 194 | for data |
| 195 | filter |
| 196 | { |
| 197 | type name |
| 198 | regex ^[^<KEY>]*<KEY><ksk-.*><ID-CERT><>$ |
| 199 | } |
| 200 | checker |
| 201 | { |
| 202 | type hierarchical |
| 203 | sig-type rsa-sha256 |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | trust-anchor |
| 208 | { |
| 209 | type file |
| 210 | file-name "root.cert" |
| 211 | } |
| 212 | } |
akmhoque | 50125a9 | 2014-06-30 08:54:17 -0500 | [diff] [blame] | 213 | ; cert-to-publish "root.cert" ; optional, a file containing the root certificate. only the router |
| 214 | ; that is designated to publish root cert needs to specify this |
| 215 | ; cert-to-publish "site.cert" ; optional, a file containing the root certificate. only the router |
| 216 | ; that is designated to publish site cert need to specify this |
| 217 | ; cert-to-publish "operator.cert" ; optional, a file containing the root certificate. only the |
| 218 | ; router that is designated to publish operator cert need to |
| 219 | ; specify this |
| 220 | cert-to-publish "router.cert" ; required, a file containing the router certificate. |
akmhoque | 157b0a4 | 2014-05-13 00:26:37 -0500 | [diff] [blame] | 221 | } |