Network Hosts Analyzer

19
Network Hosts Network Hosts Analyzer Analyzer Hadas Shumovitch shumoviz@t2 Elad Levi seladlvy@t2 Tal Katz sdew@t2

description

Network Hosts Analyzer. Hadas Shumovitch shumoviz@t2 Elad Levi seladlvy@t2 Tal Katz sdew@t2. Presentation Layout. Background Program outline Cache refresh algorithm User Interface Points for Extension. Background. - PowerPoint PPT Presentation

Transcript of Network Hosts Analyzer

Page 1: Network Hosts Analyzer

Network HostsNetwork Hosts

AnalyzerAnalyzer

Hadas Shumovitch shumoviz@t2Elad Levi seladlvy@t2 Tal Katz sdew@t2

Page 2: Network Hosts Analyzer

Presentation LayoutPresentation Layout

BackgroundBackground Program outlineProgram outline Cache refresh algorithmCache refresh algorithm User InterfaceUser Interface Points for ExtensionPoints for Extension

Page 3: Network Hosts Analyzer

BackgroundBackground

The Computer Science faculty has hundreds of The Computer Science faculty has hundreds of computers and users. computers and users.

There is a need for a program to monitor and There is a need for a program to monitor and supervise all of the computers.supervise all of the computers.

There are programs available, but they are very There are programs available, but they are very expensive. expensive.

Page 4: Network Hosts Analyzer

Background - continuedBackground - continued

Our goal is to design a scalable, Our goal is to design a scalable, configurable monitoring system which configurable monitoring system which answers the faculty needs and is easy to answers the faculty needs and is easy to use.use.

Page 5: Network Hosts Analyzer

Program outlineProgram outline

The program handles two threads.The program handles two threads. One thread is responsible for interaction One thread is responsible for interaction

with the user, while the other is with the user, while the other is responsible for updating the system’s responsible for updating the system’s cache.cache.

Page 6: Network Hosts Analyzer

Program outlineProgram outline

In order to reduce the amount of communication In order to reduce the amount of communication through the faculty network, and reduce the through the faculty network, and reduce the program response time, we’ll maintain a cache.program response time, we’ll maintain a cache.

The cache keeps the information about the The cache keeps the information about the faculty computers and floors switches.faculty computers and floors switches.

The updating frequency of the cache is defined The updating frequency of the cache is defined by the user. by the user.

Information requests from the user are answered Information requests from the user are answered by retrieving the information from the cache, by retrieving the information from the cache, except for “who is logged in right now”.except for “who is logged in right now”.

Page 7: Network Hosts Analyzer

Cache refresh algorithmCache refresh algorithm

Cache updating frequency can be Cache updating frequency can be changed by the user to any whole changed by the user to any whole number of minutes. The program is number of minutes. The program is loaded with a default updating frequency loaded with a default updating frequency of one hour.of one hour.

In addition, it is possible to perform In addition, it is possible to perform immediate cache refresh.immediate cache refresh.

Page 8: Network Hosts Analyzer

Cache refresh algorithmCache refresh algorithm

for (every floor)for (every floor){{

get floor’s router ARP table;get floor’s router ARP table;for (every switch in the floor)for (every switch in the floor){{

get switch's data;get switch's data;for (every MAC address connected to the switch)for (every MAC address connected to the switch){{

convert MAC -> IP address;convert MAC -> IP address;get end station local data; // UDP connectionget end station local data; // UDP connectionupdate the relevant entry in the cache;update the relevant entry in the cache;

}}}}

}}

Page 9: Network Hosts Analyzer

ExampleExample

Router Switch End Stations Router Switch End Stations

Floor 7:Floor 7:

Floor 3:Floor 3:

Page 10: Network Hosts Analyzer

Algorithms – Additional Algorithms – Additional communication modulescommunication modules

A telnet API: A telnet API: The routers and switches in the faculty run The routers and switches in the faculty run

Command Line Interface (CLI), through Command Line Interface (CLI), through which we get their inner information. which we get their inner information.

In order to connect to the routers and In order to connect to the routers and switches we have implemented a Telnet switches we have implemented a Telnet API.API.

The implementation is especially suitable The implementation is especially suitable for the kind of routers and switches in the for the kind of routers and switches in the faculty.faculty.

Page 11: Network Hosts Analyzer

Algorithms – Additional Algorithms – Additional communication modulescommunication modules

End Station Agent: End Station Agent: Every end station in the faculty, Every end station in the faculty,

including Laptops, should run an agent.including Laptops, should run an agent. When the agent starts to run, it reads When the agent starts to run, it reads

from a configuration file the computer’s from a configuration file the computer’s data. data.

The agent will listen for data requests The agent will listen for data requests on a pre defined port which is known by on a pre defined port which is known by the analyzer main system.the analyzer main system.

Page 12: Network Hosts Analyzer

Algorithms – Additional Algorithms – Additional communication modulescommunication modules

End Station Agent - continued: End Station Agent - continued: The agent is single threaded. The agent is single threaded. We have implemented two versions of We have implemented two versions of

the agent. One for Unix, and one for the agent. One for Unix, and one for Windows 2000 and up.Windows 2000 and up.

Page 13: Network Hosts Analyzer

User Interface User Interface

No GUI mode: No GUI mode:

Page 14: Network Hosts Analyzer

GUI modeGUI mode

Main Menu:Main Menu:

Page 15: Network Hosts Analyzer

User InterfaceUser Interface

Switches Menu:Switches Menu:

Page 16: Network Hosts Analyzer

User InterfaceUser Interface

Ports Menu:Ports Menu:

Page 17: Network Hosts Analyzer

User InterfaceUser Interface

End Stations Menu:End Stations Menu:

Page 18: Network Hosts Analyzer

User InterfaceUser Interface

End Station:End Station:

Page 19: Network Hosts Analyzer

Points for ExtensionPoints for Extension

Working from two different computers.Working from two different computers. End station agent informing on inner End station agent informing on inner

problems.problems.