网络拓扑自动检测 [英] Network topology auto detection

查看:591
本文介绍了网络拓扑自动检测的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我正在从事这个项目,它是一个网络监视工具,该工具应自动检测拓扑并为isp绘制"200个节点",我正在使用ping广播获取网络中的所有IP地址,然后使用traceroute来检测网络中的跃点,但是我不知道如何使用它们来绘制,我真的需要帮助,所以如果有人知道任何图书馆或提及任何可以帮助我的东西,我将非常高兴正在编写它在C#中,此库或函数应允许我在节点之间的每个链接旁边放置一些信息,如丢失率,可用带宽或抖动.我只是视觉部分有问题,那我应该怎么用?

hello there, i am working on this project, its a network monitoring tool that should auto-detect the topology and draw it " 200 nodes " for an isp, i am using ping broadcast to get all the IP addresses in the network , then traceroute to detect the hops within the network , but i have no idea how to use them to draw , i really need help so if anyone knows any library or mention anything that can help i''ll be very pleased " am writing it in C# ", this library or function should allow me to put some info like , loss rate, available bandwidth, or jitter beside every link between the nodes. am just having a problem with the visual part so what should i use? any related information can be very useful for me , thanks alot.

推荐答案

你好

我认为使用visio是最简单的方法

如何:创建新的Visio文档

使用C#和.NET在Visio ActiveX控件中绘制Visio形状

但是!
如果要自己绘制节点:

1.您必须创建一个(或多个)用户控件.
例如,父控件(Node)
而其他内容(例如计算机,打印机等)则继承自Node
它们可以包含指定的图像.
它们具有连接器.

2.制作一个包含所有节点的容器屏幕,如Panel(在窗口中)或Canvas(在WPF中)
它实际上是您的桌面,并管理Node.

3.用户控件必须表示某些类(或者您可能希望将用户控件与类合并)
Node类具有一个property(或一个集合)Nodeproperty作为连接器
好的,当容器检测到连接器时,它会在它们之间画线.
Hello

I think using visio is the simplest way

How to: Create New Visio Documents

Drawing Visio Shapes in the Visio ActiveX Control using C# and .NET

But!
If you want to draw the nodes yourself:

1. you must make a (or many) user control(s).
For example a parent control (Node)
and the other things (like computer, printer, ...) inherit from Node
They can contain specified images.
They have connectors.

2. Make a container screen like Panel (in window) or Canvas (in WPF) that contains all nodes
It''s actually your desktop and manages the Nodes.

3. User controls must represent some classes (Or maybe you prefer to merge user controls with classes)
Node class has a property of a (or a collection of) Node(s) as connectors
Ok when the container detects the connectors, it draws lines among them.


这篇关于网络拓扑自动检测的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆