Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding the shortest path router for the router tracking purpose

Status
Not open for further replies.

CaitlinC

IS-IT--Management
Oct 28, 2001
5
US
Hi all,
A Question asking you regarding to routers' tracking information.

We keeps all the router infomation of our subnet in a file name "routers.txt" in this format:

1 2 1
2 4 1
4 3 1
1 3 5

This states there are four routers, the distance between routers 1 and 2 is 1, between 2 and 4 is 1, etc.

I need to write a Java program to keep track the shortest path between routers, I would understand that we can get this done easily in Java, but I am not a Java Savvy unfortunately. I'm new to Java, would somebody help me to the right direction?

In order to keep track the routers in our subnet easily,the output would look something like:
-----
Router 1
To Router Distance Vector
2 1 2
3 3 2
4 2 2

Thanks very much,
Cait.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top