Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Comparing routing path if it is in agreement to IGP

by taint (Chaplain)
on Aug 21, 2012 at 06:36 UTC ( #988594=note: print w/replies, xml ) Need Help??

in reply to Comparing routing path if it is in agreement to IGP

Greetings, You'll really need to be more specific (provide more data -- the script itself, maybe?). But if I understand you correctly, You'll need to define a couple of things, to compare against. eg;
if $something<0 || -1; die "no route!";
In other words, if there is no answer, that means (as you put it) the interface is disabled. You'll also probably need to do some comparisons regarding the "hop count", so that you can monitor the progress of data via your script. Mind you, I'm groping in the dark here. You really need to provide a little more information, for anybody to provide meaningful responses. But I thought I'd at least try. :)
Best wishes.
#!/usr/bin/perl -Tw
use perl::always;
my $perl_version = "5.12.4";
print $perl_version;

Replies are listed 'Best First'.
Re^2: Comparing routing path if it is in agreement to IGP
by zakishah (Novice) on Aug 21, 2012 at 11:39 UTC

    Thank you very much Chris for your prompt consideration on my problem. Actually sometimes we configure routers with static configuration in this case the priority is given to the path that is described by static route, in other words the dynamic protocols are ignored, similarly some times due to router failure or disable interface the path packet takes is not the one that we expect( IGP path) so how would i detect the situation through script that prompts me that the path is not expected one may be there is router failure or static configurtion. i am giving traceroute result that helps further to understand problem first traceroute result is the one that is expected by OSPF and second one is which represents problem that shows that there might be a static route configuration or disable interface

    1 ( 0.478 ms 0.457 ms 0.478 ms 2 ( 0.867 ms 0.780 ms 0.846 ms 3 ( 1.401 ms 1.438 ms 1.198 ms ========================================================= 2nd tracerroute result 1 ( 0.452 ms 0.443 ms 0.382 ms 2 ( 0.900 ms 0.782 ms 0.783 ms 3 ( 1.246 ms 1.197 ms 1.145 ms 4 ( 1.642 ms 1.497 ms 1.437 ms 5 ( 1.976 ms 1.660 ms 1.755 ms 6 ( 2.209 ms 2.114 ms 2.071 ms
    ========================================================== Question 2:how to do to build a model of the IGP shortest paths in perl by using one of Graph perl modules, and build the graph of the OSPF adjacencies between the routers, with their IGP weights to get shortest path that will give expected paths between all routers?
      Sorry to get back to you so late on this. It appears you've already received a slution to this in another thread. So no reason to repeat here. :)
      Best wishes.
      #!/usr/bin/perl -Tw
      use perl::always;
      my $perl_version = "5.12.4";
      print $perl_version;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988594]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2018-02-23 06:22 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (300 votes). Check out past polls.