[Xorp-hackers] Conflict between processes, how to avoid?

Bruce M Simpson bms at incunabulum.net
Sun Aug 3 15:05:45 PDT 2008


Nguyen Van Nam wrote:
> Hi all,
> Thank you so much for your answers.
> In fact, i have implemented a XRL client interface to notify LSDB change.
> But I have encountered an error when I called another Xrl request to 
> set interface cost, because this one cause the LSDB to be changed
> immediately so at the same time there are 2 processes running. In your 
> experiences , how to avoid this?

XRLs can only be processed one at a time by any XORP process, as they 
are all single threaded.

How exactly is the race condition manifesting in your program, and how 
is this a problem? It would be helpful for others if you point out 
exactly which error(s) you're seeing.

It is not going to be possible to avoid having the Lsa database change 
from underneath the xorp_ospf process, obviously because setting the 
interface cost changes the cost of Lsas (and their corresponding routing 
table entries) which transit that interface.

thanks
BMS



More information about the Xorp-hackers mailing list