Project

General

Profile

Sample Configuration File » History » Version 1

A K M Mahmudul Hoque, 04/28/2014 08:08 AM

1 1 A K M Mahmudul Hoque
; Mandatory
2
network
3
{
4
  name "/ndn"               ; Name prefix of the networks router belongs to in URI format.
5
}
6
7
; Mandatory
8
site-name
9
{
10
  name "/edu/memphis/"      ; Name of the site to which this router belongs to in URI
11
                            ; format
12
}
13
14
; Mandatory
15
router-name
16
{
17
  name "/router/name" ; Name of the router in URI format
18
}
19
20
; This configuration command is used to configure neighboring router
21
ndnneighbor
22
{
23
  name "/name/of/neighbor1" ; Name of the neighbor in URI format
24
  connecting-face 7         ; Face number of connecting face of the neighbor
25
  
26
  link-cost 25.4            ; Link cost to reach the neighbor. Double value. If
27
                            ; Link cost is not configured default value of 10 is
28
                            ; used as link cost
29
}
30
31
32
; This configuration command is used to advertise the name prefix of the names
33
; reachable from this router
34
ndnname
35
{
36
  name "/name/prefix1"      ; name in URI format
37
}
38
39
; Root key prefix name, Mandatory
40
root-key-prefix
41
{
42
  name "/root/key/prefix"   ; name in URI format. This prefix is routable to 
43
                            ; each neighbor of this router
44
}
45
46
; Sync prefix for chronosync, Mandatory
47
chronosync-sync-prefix
48
{
49
  name "/sync/prefix/"      ; name in URI format. This prefix is routable to
50
                            ; each neighbor
51
}
52
53
54
; Numer of time NLSR will try to send interest if interest is timed out
55
interest-retry-number
56
{
57
  times 3                   ; times in integer value. Default value is 3.
58
}
59
60
; Nlsr waits interest-resend-time before sendind out an interest again after
61
; interest has timed out
62
interest-resend-time
63
{
64
  second 10                 ; second in integer value. Default value is 1 second
65
}
66
67
; It is the time in seconds after which router will refresh its LSAs.
68
lsa-refresh-time
69
{
70
  second 1800               ; second in interger value. Default value 3600
71
}
72
73
; Number of faces NLSR will add in NDN FIB for each reachable name prefixes
74
max-faces-per-prefix
75
{
76
  number 5                  ; number in integer value. Default value is 0 which
77
                            ; add all available faces in FIB. This command can be
78
                            ; used to restrict the number of faces added to FIB
79
}
80
81
; Directory where NLSR will write its log
82
log-dir
83
{
84
  directory "/path/to/log/dir" ; Path of directory in string.
85
}
86
87
; Type of faces will be added in NDN FIB
88
tunnel-type
89
{
90
  type "udp"                ; type in string. Either udp or tcp can be used as value
91
}
92
93
; used for turning debugging of NLSR on or off
94
debugging
95
{
96
  on-off "off"              ; string value. Either on or off can be used as value
97
}
98
99
; used for turning detalied debugging of NLSR on or off
100
detailed-logging
101
{
102
  on-off "off"              ; string value. Either on or off can be used as value
103
}
104
105
106
; Used to configure NLSR to calculate hyper bolic routing table
107
hyperbolic-routing
108
{
109
  mode "ON"                 ; String value. Three values: ON - Hyperbolic routing, 
110
                            ; off - Hyperbolic off, calculate Link state routing
111
                            ; dry-run - calculate both hyperbolic and link state
112
                            ; routing for testing and comparing them. But link state
113
                            ; table is used to update FIB
114
}
115
116
; Used to configure hyperbolic coordinate of the router. Mandatory if 'hyperbolic-routing'
117
; is 'on' or 'dry-run'
118
hyperbolic-cordinate
119
{
120
  radius 10.1               ; hyperbolic radius in double
121
  angle 0.34                ; hyperbolic angle in double
122
}