[Ndn-interest] running problems about nlsr
Junxiao Shi
shijunxiao at email.arizona.edu
Sun Mar 1 23:06:15 PST 2015
Hi Shuo
Did you create certificates for root, site, operator, and each router?
If you still have problems, please post configuration files *without
comments*, so that it's easier to read.
This can be obtained by: sed -e 's/;.*//' -e'/^\s*$/d'
/etc/ndn/nlsr/nlsr.conf
Please also attach NLSR logs. It's located in /var/log/ndn/nlsr/.
Yours, Junxiao
On Sun, Mar 1, 2015 at 11:54 PM, Shuo Chen <chenatu2006 at gmail.com> wrote:
> Dear all,
> I have installed nlsr and try to configure it. However, the
> prefixes are found not to be advertised properly. Is there any setting like
> allowing certain port? Before using nlsr, nfdc is used and everything works
> well. Could someone help me check the problem?
>
> My configurations are below:
> 3 routers are connected to each other: /thu/elop1/%C1.Router/router1
> /thu/elop2/%C1.Router/router2 and /thu/elop3/%C1.Router/router3
>
> The results of nfd-status -r is as below:
> *RIB:*
> * /localhost/nfd/rib route={faceid=258 (origin=0 cost=0 ChildInherit)}*
> * /thu/elop3/%C1.Router/router3 route={faceid=260 (origin=128 cost=25
> RibCapture)}*
> * /thu/elop2/%C1.Router/router2 route={faceid=261 (origin=128 cost=30
> RibCapture)}*
> * /thu/elop1/%C1.Router/router1 route={faceid=270 (origin=0 cost=0
> RibCapture)}*
> * /thu/elop/%C1.Router/router3 route={faceid=260 (origin=128 cost=25
> RibCapture)} (This name is from old settings)*
> * /thu/elop/%C1.Router/router2 route={faceid=261 (origin=128 cost=30
> RibCapture)} (**This name is from old settings**)*
> * /thu/NLSR/sync route={faceid=260 (origin=128 cost=25 RibCapture),
> faceid=261 (origin=128 cost=30 RibCapture)}*
> * /thu/NLSR/LSA/elop1/%C1.Router/router1 route={faceid=270 (origin=0
> cost=0 RibCapture)}*
> * /thu/NLSR/LSA route={faceid=260 (origin=128 cost=25 RibCapture),
> faceid=261 (origin=128 cost=30 RibCapture)}*
> * /ndn/broadcast/KEYS route={faceid=260 (origin=128 cost=25 RibCapture),
> faceid=261 (origin=128 cost=30 RibCapture), faceid=270 (origin=0 cost=0
> RibCapture)}*
>
> The prefixes manager by router1 is not shown in this rib which is
> * /thu/elop1/server-1/repo/1*
> * /thu/elop1/server-1/data/1*
>
>
> config file of router1 is as below
>
> *; nlsr.conf starts here*
> *; the general section contains all the general settings for router*
>
> *general*
> *{*
> * ; mandatory configuration command section network, site and router*
> * network /thu/ ; name of the network the router belongs to in
> ndn URI format*
> * site /elop1/ ; name of the site the router belongs to in ndn URI
> format*
> * router /%C1.Router/router1 ; name of the network the router
> belongs to in ndn URI format*
>
> * ; lsa-refresh-time is the time in seconds, after which router will
> refresh its LSAs*
> * lsa-refresh-time 1800 ; default value 1800. Valid values
> 240-7200*
>
> * ; InterestLifetime (in seconds) for LSA fetching*
> * lsa-interest-lifetime 4 ; default value 4. Valid values 1-60*
>
> * ; log-level is to set the levels of log for NLSR*
> * log-level INFO ; default value INFO, valid value DEBUG, INFO*
> * log-dir /var/log/nlsr/*
> * seq-dir /var/lib/nlsr/*
> *}*
>
> *; the neighbors section contains the configuration for router's neighbors
> and hello's behavior*
>
> *neighbors*
> *{*
> * ; in case hello interest timed out, router will try 'hello-retries'
> times at 'hello-time-out'*
> * ; seconds interval before giving up for any neighbors (deciding link
> is down)*
>
> * hello-retries 3 ; interest retries number in
> integer. Default value 3*
> * ; valid values 1-10*
>
> * hello-timeout 1 ; interest time out value in
> integer. Default value 1*
> * ; Valid values 1-15*
>
> * hello-interval 60 ; interest sending interval in
> seconds. Default value 60*
> * ; valid values 30-90*
> * ; neighbor command is used to configure router's neighbor. Each
> neighbor will need*
> * ; one block of neighbor command*
>
> * neighbor*
> * {*
> * name /thu/elop3/%C1.Router/router3 ; name prefix of the
> neighbor router consists*
> * ; of network,
> site-name and router-name*
>
> * face-uri udp4://52.1.251.14 <http://52.1.251.14> ; face uri of
> the face connected to the neighbor*
> * link-cost 25 ; cost of the connecting link
> to neighbor*
> * }*
>
> * neighbor*
> * {*
> * name /thu/elop2/%C1.Router/router2 ; name prefix of the
> neighbor router consists*
> * ; of network, site-name
> and router-name*
>
> * face-uri udp4://54.152.174.232 <http://54.152.174.232> ; face
> uri of the face connected to the neighbor*
> * link-cost 30 ; cost of the connecting link
> to neighbor*
> * }*
> *}*
>
> *; the hyperbolic section contains the configuration settings of enabling
> a router to calculate*
> *; routing table using `hyperbolic routing table calculation`_ method*
>
> *hyperbolic*
> *{*
> * ; commands in this section follows a strict order*
> * ; the switch is used to set hyperbolic routing calculation in NLSR*
>
> * state off ; default value 'off', set value 'on' to enable
> hyperbolic routing table*
> * ; calculation which turns link state routing
> 'off'. set value to 'dry-run'*
> * ; to test hyperbolic routing and compare with
> link state routing.*
>
>
> * radius 123.456 ; radius of the router in hyperbolic
> coordinate system*
> * angle 1.45 ; angle of the router in hyperbolic coordinate
> system*
> *}*
>
>
> *; the fib section is used to configure fib entry's type to ndn FIB
> updated by NLSR*
>
> *fib*
> *{*
> * ; the max-faces-per-prefix is used to limit the number of faces for
> each name prefixes*
> * ; by NLSR in ndn FIB*
>
> * max-faces-per-prefix 3 ; default value 0. Valid value 0-60. By
> default (value 0) NLSR adds*
> * ; all available faces for each reachable
> name prefixes in NDN FIB*
>
> *}*
>
> *; the advertising section contains the configuration settings of the name
> prefixes*
> *; hosted by this router*
>
> *advertising*
> *{*
> * ; the ndnname is used to advertised name from the router. To
> advertise each name prefix*
> * ; configure one block of ndnname configuration command for every name
> prefix.*
>
> * prefix /thu/elop1/server-1/repo/1*
> * prefix /thu/elop1/server-1/data/1*
> *}*
>
> config file of router2 is as below:
>
> *; nlsr.conf starts here*
> *; the general section contains all the general settings for router*
>
> *general*
> *{*
> * ; mandatory configuration command section network, site and router*
> * network /thu/ ; name of the network the router belongs to in
> ndn URI format*
> * site /elop2/ ; name of the site the router belongs to in ndn URI
> format*
> * router /%C1.Router/router2 ; name of the network the router
> belongs to in ndn URI format*
>
> * ; lsa-refresh-time is the time in seconds, after which router will
> refresh its LSAs*
> * lsa-refresh-time 1800 ; default value 1800. Valid values
> 240-7200*
>
> * ; InterestLifetime (in seconds) for LSA fetching*
> * lsa-interest-lifetime 4 ; default value 4. Valid values 1-60*
>
> * ; log-level is to set the levels of log for NLSR*
> * log-level INFO ; default value INFO, valid value DEBUG, INFO*
> * log-dir /var/log/nlsr/*
> * seq-dir /var/lib/nlsr/*
> *}*
>
> *; the neighbors section contains the configuration for router's neighbors
> and hello's behavior*
>
> *neighbors*
> *{*
> * ; in case hello interest timed out, router will try 'hello-retries'
> times at 'hello-time-out'*
> * ; seconds interval before giving up for any neighbors (deciding link
> is down)*
>
> * hello-retries 3 ; interest retries number in
> integer. Default value 3*
> * ; valid values 1-10*
>
> * hello-timeout 1 ; interest time out value in
> integer. Default value 1*
> * ; Valid values 1-15*
>
> * hello-interval 60 ; interest sending interval in
> seconds. Default value 60*
> * ; valid values 30-90*
> * ; neighbor command is used to configure router's neighbor. Each
> neighbor will need*
> * ; one block of neighbor command*
>
> * neighbor*
> * {*
> * name /thu/elop3/%C1.Router/router3 ; name prefix of the
> neighbor router consists*
> * ; of network,
> site-name and router-name*
>
> * face-uri udp://52.1.251.14 <http://52.1.251.14> ; face uri of the
> face connected to the neighbor*
> * link-cost 25 ; cost of the connecting link
> to neighbor*
> * }*
>
> * neighbor*
> * {*
> * name /thu/elop1/%C1.Router/router1 ; name prefix of the
> neighbor router consists*
> * ; of network, site-name
> and router-name*
>
> * face-uri udp://54.152.123.79 <http://54.152.123.79> ; face uri
> of the face connected to the neighbor*
> * link-cost 30 ; cost of the connecting link
> to neighbor*
> * }*
> *}*
>
> *; the hyperbolic section contains the configuration settings of enabling
> a router to calculate*
> *; routing table using `hyperbolic routing table calculation`_ method*
>
> *hyperbolic*
> *{*
> * ; commands in this section follows a strict order*
> * ; the switch is used to set hyperbolic routing calculation in NLSR*
>
> * state off ; default value 'off', set value 'on' to enable
> hyperbolic routing table*
> * ; calculation which turns link state routing
> 'off'. set value to 'dry-run'*
> * ; to test hyperbolic routing and compare with
> link state routing.*
>
>
> * radius 123.456 ; radius of the router in hyperbolic
> coordinate system*
> * angle 1.45 ; angle of the router in hyperbolic coordinate
> system*
> *}*
>
>
> *; the fib section is used to configure fib entry's type to ndn FIB
> updated by NLSR*
>
> *fib*
> *{*
> * ; the max-faces-per-prefix is used to limit the number of faces for
> each name prefixes*
> * ; by NLSR in ndn FIB*
>
> * max-faces-per-prefix 3 ; default value 0. Valid value 0-60. By
> default (value 0) NLSR adds*
> * ; all available faces for each reachable
> name prefixes in NDN FIB*
>
> *}*
>
> *; the advertising section contains the configuration settings of the name
> prefixes*
> *; hosted by this router*
>
> *advertising*
> *{*
> * ; the ndnname is used to advertised name from the router. To
> advertise each name prefix*
> * ; configure one block of ndnname configuration command for every name
> prefix.*
>
> * prefix /thu/elop2/server-2/repo/1*
> * prefix /thu/elop2/server-2/data/1*
> *}*
>
> ----
> Shuo Chen
> Tsinghua University
>
>
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20150302/1b8e9f75/attachment.html>
More information about the Ndn-interest
mailing list