• No results found

Network Discovery Tool

N/A
N/A
Protected

Academic year: 2021

Share "Network Discovery Tool"

Copied!
43
0
0

Loading.... (view fulltext now)

Full text

(1)

Problem Statement Related Work Proposed Work Design Plan of Implementation

Network Discovery Tool

Bestin Jose

Mahesh Kumar Shyamsunder

Computer Science and Engineering Indian Institue of Technology

Bombay

(2)

Problem Statement Related Work Proposed Work Design Plan of Implementation 1 Problem Statement 2 Related Work Introduction to Netdisco Features of NetDisco 3 Proposed Work 4 Design Main Algorithm

Inputs to the Algorithm Example

(3)

Problem Statement Related Work Proposed Work Design Plan of Implementation

Problem Statement

To implement the algorithm which discovers the network topology information and give it to NetDisco tool.

Netdisco then uses this information to moniter and manage the network.

(4)

Problem Statement Related Work Proposed Work Design Plan of Implementation

Problem Statement

To implement the algorithm which discovers the network topology information and give it to NetDisco tool.

Netdisco then uses this information to moniter and manage the network.

(5)

Problem Statement Related Work Proposed Work Design Plan of Implementation Introduction to Netdisco Features of NetDisco

What is NetDisco

Netdisco is an Open Source web-based network management tool.

Designed for moderate to large networks.

Configuration information and connection data for network devices are retrieved using SNMP protocol.

With Netdisco you can locate the switch port of an end-user system by IP or MAC address.

(6)

Problem Statement Related Work Proposed Work Design Plan of Implementation Introduction to Netdisco Features of NetDisco

Screenshot of NetDisco

screenshot_03.jpg (JPEG Image, 640x473 pixels) http://netdisco.org/screenshot_03.jpg

(7)

Problem Statement Related Work Proposed Work Design Plan of Implementation Introduction to Netdisco Features of NetDisco

Features of NetDisco

Switch Ports

Central Location to disable/enable switch ports. MAC Address to switch port resolution

IP Address to switch port resolution

Find Switch Ports with multiple nodes attached Find nodes using multiple IP addresses

(8)

Problem Statement Related Work Proposed Work Design Plan of Implementation Introduction to Netdisco Features of NetDisco

Features contd.

Easy Administration:

Controllable through Web Interface or Command Line Interface(CLI).

Database store for scalability and speed. Easily extendible to new devices.

Network Administration and Security:

Automatic inventory and search of network hardware. Duplex Mismatch Finder.

(9)

Problem Statement Related Work Proposed Work Design Plan of Implementation Introduction to Netdisco Features of NetDisco

Features contd.

Easy Administration:

Controllable through Web Interface or Command Line Interface(CLI).

Database store for scalability and speed. Easily extendible to new devices.

Network Administration and Security:

Automatic inventory and search of network hardware. Duplex Mismatch Finder.

(10)

Problem Statement Related Work Proposed Work Design Plan of Implementation Introduction to Netdisco Features of NetDisco

Features contd.

Reporting:

Graphing of network topology. Clickable image-map of devices. Link speed shown.

Statistics for number of actual nodes connected to network.

Inventory of Network Devices:

By Operating System (IOS,CatOS,HP...) By Model, Vendor, OSI Layer, DNS Name

Find device ports that are blocking (via Spanning Tree Protocol)

(11)

Problem Statement Related Work Proposed Work Design Plan of Implementation Introduction to Netdisco Features of NetDisco

Features contd.

Reporting:

Graphing of network topology. Clickable image-map of devices. Link speed shown.

Statistics for number of actual nodes connected to network. Inventory of Network Devices:

By Operating System (IOS,CatOS,HP...) By Model, Vendor, OSI Layer, DNS Name

Find device ports that are blocking (via Spanning Tree Protocol)

(12)

Problem Statement Related Work Proposed Work Design Plan of Implementation

Proposed Work

Netdisco autodiscovers devices which support CDP protocol. However, many networks have parts of the topology that are not covered by CDP.

We need to fill the information of the devices which does not

suppot CDP protocol in netdisco-topology.txt.

Our Work

To discover the network topology and give the topology

information in the format required by Netdisco. For this we will use SNMP protocol.

(13)

Problem Statement Related Work Proposed Work Design Plan of Implementation

Proposed Work

Netdisco autodiscovers devices which support CDP protocol. However, many networks have parts of the topology that are not covered by CDP.

We need to fill the information of the devices which does not

suppot CDP protocol in netdisco-topology.txt.

Our Work

To discover the network topology and give the topology

information in the format required by Netdisco. For this we will use SNMP protocol.

(14)

Problem Statement Related Work Proposed Work Design Plan of Implementation

Example format of netdisco-topology.txt file

Let’s say you have two CDP speaking devices with a non-CDP speaking device in between them.

CISCO BAY HP 21 25 26 12 topology file: ciscoswitch.my.company link:21,bayswitch.my.company,25 bayswitch.my.company link:26,hpswitch.my.company,12

(15)

Problem Statement Related Work Proposed Work Design Plan of Implementation

Snmp ptotocol

SNMP is a protocol designed to give remote management access to a Network device.

Features:

Enable/disable a port

Checks health and performance of the network. Access control.

(16)

Problem Statement Related Work Proposed Work Design Plan of Implementation

Snmp ptotocol

SNMP is a protocol designed to give remote management access to a Network device.

Features:

Enable/disable a port

Checks health and performance of the network. Access control.

(17)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm Example

Idea of the Algorithm

1 Represents the network by a collection of skeleton paths,Q,

between pairs of nodes belonging to the same subnet.

2 Iteratively refines Qto provide more accurate topology information for the network.

(18)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm Example

Idea of the Algorithm

1 Represents the network by a collection of skeleton paths,Q,

between pairs of nodes belonging to the same subnet.

2 Iteratively refines Qto provide more accurate topology

(19)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm Example

Flow diagram for the Algorithm

IDLE STATE

and subnet information

COMPUTING INITIAL SKELETON INFORMATION REQUIREMENTS GATHERING STATE START EACH PATH COMPUTING CONSTRAINTS ON REFINING PATHS comment: REFINING PATHS UNTIL NO REFINEMENT IS POSSIBLE PATH REFINEMENT STATE

COMPUTE ACTUAL CONNECTIONS Collecting Routers, switches

(20)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm

Router Information

Constraints: You need to know atleast One Router IP

address

Idea: Repeatedly find the neighboring routers of the currently known routers until no new routers are discovered.

Implementation: The neighboring routers of a router R are the set of routers that are next hops for some destination in theipRouteTablein MIB-II in R.

Shell Command: snmpwalk -0s -c public -v 1 10.105.1.250 ipRouteTable

(21)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm

Router Information

Constraints: You need to know atleast One Router IP

address

Idea: Repeatedly find the neighboring routers of the

currently known routers until no new routers are discovered.

Implementation: The neighboring routers of a router R are the set of routers that are next hops for some destination in theipRouteTablein MIB-II in R.

Shell Command: snmpwalk -0s -c public -v 1 10.105.1.250 ipRouteTable

(22)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm

Router Information

Constraints: You need to know atleast One Router IP

address

Idea: Repeatedly find the neighboring routers of the

currently known routers until no new routers are discovered.

Implementation: The neighboring routers of a router R are

the set of routers that are next hops for some destination in

theipRouteTablein MIB-II in R.

Shell Command: snmpwalk -0s -c public -v 1 10.105.1.250 ipRouteTable

(23)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm

Router Information

Constraints: You need to know atleast One Router IP

address

Idea: Repeatedly find the neighboring routers of the

currently known routers until no new routers are discovered.

Implementation: The neighboring routers of a router R are

the set of routers that are next hops for some destination in

theipRouteTablein MIB-II in R.

Shell Command: snmpwalk -0s -c public -v 1

10.105.1.250 ipRouteTable

(24)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm

Router Information

Constraints: You need to know atleast One Router IP

address

Idea: Repeatedly find the neighboring routers of the

currently known routers until no new routers are discovered.

Implementation: The neighboring routers of a router R are

the set of routers that are next hops for some destination in

theipRouteTablein MIB-II in R.

Shell Command: snmpwalk -0s -c public -v 1

10.105.1.250 ipRouteTable

(25)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm contd..

Switch Information

A interface of the router connects one subnet to the network.

Idea: The IP addresses of the subnet can be determined by knowing the IP address of the interface.

Implementation:

The IP address of the interface is obtained usingipAddrTable

in MIB-II.

The subnet entities are computed by enumerating the ip addresses in the subnet corresponding to the IP address of the interface.

From theipNetToMediaTablewe can find subnet,mac address, system name and the number of ports.

We determine whether a particular ip address is a device by checkingipForwardingflag orsystem.sysServicevariables.

(26)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm contd..

Switch Information

A interface of the router connects one subnet to the network.

Idea: The IP addresses of the subnet can be determined by

knowing the IP address of the interface.

Implementation:

The IP address of the interface is obtained usingipAddrTable

in MIB-II.

The subnet entities are computed by enumerating the ip addresses in the subnet corresponding to the IP address of the interface.

From theipNetToMediaTablewe can find subnet,mac address, system name and the number of ports.

We determine whether a particular ip address is a device by checkingipForwardingflag orsystem.sysServicevariables. Perl Module: Net::SNMP::Hostinfo module

(27)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm contd..

Switch Information

A interface of the router connects one subnet to the network.

Idea: The IP addresses of the subnet can be determined by

knowing the IP address of the interface. Implementation:

The IP address of the interface is obtained usingipAddrTable in MIB-II.

The subnet entities are computed by enumerating the ip addresses in the subnet corresponding to the IP address of the interface.

From theipNetToMediaTablewe can find subnet,mac address, system name and the number of ports.

We determine whether a particular ip address is a device by checkingipForwardingflag orsystem.sysServicevariables.

(28)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm contd..

Switch Information

A interface of the router connects one subnet to the network.

Idea: The IP addresses of the subnet can be determined by

knowing the IP address of the interface. Implementation:

The IP address of the interface is obtained usingipAddrTable in MIB-II.

The subnet entities are computed by enumerating the ip addresses in the subnet corresponding to the IP address of the interface.

From theipNetToMediaTablewe can find subnet,mac address, system name and the number of ports.

We determine whether a particular ip address is a device by checkingipForwardingflag orsystem.sysServicevariables.

(29)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm contd..

Switch Information

A interface of the router connects one subnet to the network.

Idea: The IP addresses of the subnet can be determined by

knowing the IP address of the interface. Implementation:

The IP address of the interface is obtained usingipAddrTable in MIB-II.

The subnet entities are computed by enumerating the ip addresses in the subnet corresponding to the IP address of the interface.

From theipNetToMediaTablewe can find subnet,mac address, system name and the number of ports.

We determine whether a particular ip address is a device by checkingipForwardingflag orsystem.sysServicevariables.

(30)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm contd..

Address Forwarding Table(AFT) information

Now we got all the MAC addresses of routers and switch in the system.

Every Port of a switch or router has Address forwarding table. Definition: AFT for a port is the set of MAC addresses that have been seen as source addresses on frames received at that port.

Constraint: AFT information should be complete. AFT info is complete if it contains MAC addresses of all switches and routers from which frames can be received at that particular port.

(31)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm contd..

Address Forwarding Table(AFT) information

Now we got all the MAC addresses of routers and switch in the system.

Every Port of a switch or router has Address forwarding table.

Definition: AFT for a port is the set of MAC addresses that have been seen as source addresses on frames received at that port.

Constraint: AFT information should be complete. AFT info is complete if it contains MAC addresses of all switches and routers from which frames can be received at that particular port.

(32)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm contd..

Address Forwarding Table(AFT) information

Now we got all the MAC addresses of routers and switch in the system.

Every Port of a switch or router has Address forwarding table. Definition: AFT for a port is the set of MAC addresses that have been seen as source addresses on frames received at that port.

Constraint: AFT information should be complete. AFT info is complete if it contains MAC addresses of all switches and routers from which frames can be received at that particular port.

(33)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm contd..

Address Forwarding Table(AFT) information

Now we got all the MAC addresses of routers and switch in the system.

Every Port of a switch or router has Address forwarding table. Definition: AFT for a port is the set of MAC addresses that have been seen as source addresses on frames received at that port.

Constraint: AFT information should be complete.

AFT info is complete if it contains MAC addresses of all switches and routers from which frames can be received at that particular port.

(34)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm contd..

Address Forwarding Table(AFT) information

Now we got all the MAC addresses of routers and switch in the system.

Every Port of a switch or router has Address forwarding table. Definition: AFT for a port is the set of MAC addresses that have been seen as source addresses on frames received at that port.

Constraint: AFT information should be complete.

AFT info is complete if it contains MAC addresses of all switches and routers from which frames can be received at that particular port.

(35)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm

Inputs to the Algorithm

Example

Inputs to the Algorithm contd..

Address Forwarding Table(AFT) information

Now we got all the MAC addresses of routers and switch in the system.

Every Port of a switch or router has Address forwarding table. Definition: AFT for a port is the set of MAC addresses that have been seen as source addresses on frames received at that port.

Constraint: AFT information should be complete.

AFT info is complete if it contains MAC addresses of all switches and routers from which frames can be received at that particular port.

(36)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm Inputs to the Algorithm

Example

Example

Original Network Topology

s 1 r 1 a 1 2 3 2 e 1 f 1 1 x b 1 2 q 1 c 1 2 y 1 d 1 1 b 1 f 1

(37)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm Inputs to the Algorithm

Example

Example contd.

s1 a1 , a2 , b1 , b2 , c1 ,c2 , d1 ,d2 t1 x1 b1 , b2 ,c1 ,c2 , e2 ,e1 y1 u1 b1 , b2 , c1 , c2 , d1 , d2 , e3 , e1 v1 a1 , a2 , b1 , b2 r1 q1 S1 a1 , a2 , b1 , b2 , c1 , c2 , d1 , d2 T1 b1 , b2 , c1 , c2 X1 E2 e1 y1 u1 e2 e1 b1 , b2 c1 , c2 d1 d2 v1 q1 r1 a1 , a2 , b1 , b2

(38)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm Inputs to the Algorithm

Example

Example contd.

s1 a1 a2 b1 b2 c1 c2 d1 d2 t1 x1 e1 e2 y1 u1 e2 e1 d1 d2 v1 r1 q1 b1 , b2 , c1 ,c2 b1 , b2 , c1 , c2 a1 , a2 , b1 ,b2

(39)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm Inputs to the Algorithm

Example

Example contd.

s1 a1 a2 b1 b2 c1 c2 d1 d2 t1 x1 e1 e2 b1 b2 c1 c2 y1 u1 e2 e1 b1 b2 c1 c2 d1 d2 v1 r1 a1 a2 b1 b2 q1

(40)

Problem Statement Related Work Proposed Work Design Plan of Implementation Main Algorithm Inputs to the Algorithm

Example

Example contd.

r1 s1 a1 a2 e1 b1 b2 c1 q1 d2 u1 t1 e2 x1 e3 u1 c2 y1 d1 Resulting Connections

(41)

Problem Statement Related Work Proposed Work Design Plan of Implementation

Plan of Implementation

We will be using perl language for implementation. The perl modules which will be used are:

NET::SNMP

Net::SNMP is a collection of various tools relating to the snmp including:

An SNMP library

Tools to request or set information from SNMP agents. Tools to generate and handle SNMP traps etc..

FUNCTIONS: snmpget, snmpset, snmpwalk, snmpgetnext, snmpstatus

(42)

Problem Statement Related Work Proposed Work Design Plan of Implementation

Plan of Implementation contd.

SNMP::INFO

Perl5 module to network devices through snmp.

SNMP::INFO gives an object oriented interface to information obtained through SNMP. SUB-CLASSES: SNMP::INFO::BRIDGE, SNMP::INFO::CDP, SNMP::INFO::ETHERLIKE, SNMP::INFO::LAYER1 SNMP::INFO::LAYER2, SNMP::INFO::LAYER3, SNMP::INFO::MAU METHODS:

(43)

Problem Statement Related Work Proposed Work Design Plan of Implementation

References

1 Physical Topology Discovery for Large Multi-Subnet

Networks. Yigal Bejerano, Yuri Breitbart , Minos Garofalakis, Rajeev Rastogi. Bell Labs, Lucent Technologies

2 Topology Discovery in Heterogeneous IP Networks. Yuri

Breitbart, Minos Garofalakis, Cliff Martin, Rajeev Rastogi, S. Seshadri, Avi Silberschatz. Information Sciences Research Center Bell Labs, Lucent Technologies.

3 www.netdisco.org

4 www.net-snmp.org

5 http://snmp-info.sourceforge.net

References

Related documents

The goal of our joint code design is to minimize the expected distortion D = E:d(g,g)] of the COVQ and RCPC codes, where the expectation is with respect to the

RIB-BAK U-channel signposts and breakaway systems are accepted by the FHWA (Federal Highway Administration) for small sign support applications, and also meet or exceed the NCHRP

customer within a time period that is less than five (5) business days before the scheduled Equipment Installation date as indicated in the Project Timeline. This charge will

Dewing and Dijk (2016) critically appraised mainly descriptive studies, discussing themes such as diagnosis, staff knowledge and attitudes, experiences of persons with dementia,

Every industrialized nation offers some form of paid parental leave, with the exception of the United States, whose only federal policy regarding parental leave is the Family

In the current study we compared the cortisol stress re- sponse pathway in a psychosocial stress induction (Trier Social Stress Test; TSST) with obese individuals and

Ugotovili smo, da je optimalna nastavitev praga prostornine zadržanega globokega vdiha odvisna ne le od vrednosti volumna maksimalnega globokega vdiha, pač pa tudi od prostornine

8a If the plan provides pension benefits, enter the applicable pension feature codes from the List of Plan Characteristics Codes in the instructions: b If the plan provides