Design and Implementation of Test IP Network Intelligent Monitoring System Based On SNMP
Design and Implementation of Test IP Network Intelligent Monitoring System Based On SNMP
Design and Implementation of Test IP Network Intelligent Monitoring System Based On SNMP
Abstract—Network monitoring system plays an important database to ensure the security and stability of the whole
role in ensuring network security and maintaining network network. The structure of the paper is as follows, the SNMP
stability. Based on the thorough study of the application of the network management protocol is introduced in section 2, based
simple network management protocol (SNMP), a network on which the design of test IP network monitoring system
intelligent monitoring model for test internet protocol (IP) model based on SNMP is discussed, and then the
network is designed, and a network monitoring system is implementation of test IP network monitoring system is
developed. The system can realize the network equipment proposed in section 3. At last, the conclusion of the test IP
operation state monitoring, equipment performance monitoring network monitoring system is summarized.
and fault monitoring function in test IP networks at the same
time. Meanwhile, the network monitoring system can realize
remote real-time status query, fault alarm, network equipment II. SNMP NETWORK MANAGEMENT PROTOCOL
maintenance tips and other functions. This system can discover SNMP is based on the management of the working
the existing problems in the network during the process of real- end/agent model and the computer which running the network
time monitoring, and then provide the decision reference for the management system (NMS) is usually a network management
network managers to make trouble shooting and network
workstation. Agent is a process that runs on a network device
maintenance by expert database to ensure the security and
stability of the whole network.
and management workstation to get network equipment
working status and performance through agency inquiries. The
Keywords—network monitoring; SNMP; expert database; test agent is responsible for handling and responding to requests
IP network from the management station, and reporting the major events to
the management station. The management station can receive
the Trap message sent by the agent, and the Trap message is a
I. INTRODUCTION
message sent to the management end by the agent who has
Test IP network undertakes the information interaction important relations between the local and the network state.
between the remote measurement equipment and command The destination address of Trap needs to be specified in
center in the vehicle test [1]. With more and more complex of advance at the proxy. The management terminal first analyzes
the vehicle test, test IP network needs to manage the nodes and the information in the Trap information, and then judges the
data is more and more large, and the requirement of real-time, events and monitors the working status of the network interface
security and stability of the network system is more and more to achieve real-time communication line monitoring network,
high. At present, there is still a lack of complete technical which can implement the purpose of understanding the line
means to monitor the IP network and the network device itself status in time. The network devices running the agent network
command line monitoring method is universal used, which is are routers, switches, host and other equipment. The network
not intuitive enough. Furthermore, this method can only be management system in the network can monitor the device
used to solve the problem of passive query. In view of the which enabled the SNMP protocol, which is the central
current situation of the test IP network, it is urgent to establish nervous system in the whole network and the expert database
a set of network monitoring system. Based on the study of the can be stored here. Network monitoring system is the
application of SNMP in network monitoring [2], this paper combination of software and hardware.
designs and develops a set of monitoring system which is
suitable for the test IP network. The system can realize the Network monitoring is the network management personnel
network equipment operation state monitoring, equipment obtaining all kinds of network equipment network information
performance monitoring and fault monitoring function in test through the network monitoring system and the process of
IP networks at the same time. Meanwhile, the network analyzing and processing the information. In the use of SNMP
monitoring system can realize remote real-time status query, protocol for network management, the introduction of the
fault alarm, network equipment maintenance tips and other management information base (MIB) is a standard document,
functions. This system can discover the existing problems in which describes the query information that the agent can
the network during the process of real-time monitoring, and provide for the management of the workstation. Usually the
then provide the decision reference for the network managers network device MIB document is divided into standard MIB
to make trouble shooting and network maintenance by expert document and private document. The standard MIB document
2125
track the whole network and the network manager can handle status = snmp.get(pdu, *target);
the network event in time. pdu.get_vb(vb,0);
vb.get_value(r1);
IV. IMPLEMENTATION OF TEST IP NETWORK MONITORING pdu.get_vb(vb,1);
SYSTEM
vb.get_value(r2);
pdu.get_vb(vb,2);
The test IP network monitoring system [5] mainly includes vb.get_value(r3);
performance monitoring of network equipment, the network //close winsocket
event processing in monitoring system and the network Snmp::socket_cleanup();
equipment state monitoring. The main problems caused by the
change of the performance of the network equipment are the The data of utilization rate of CPU and memory is
high utilization rate of the system memory and high utilization processed by timer function, and then the real-time
rate of CPU. Therefore, the test IP network monitoring system performance and historical performance are shown by display
is designed to monitor the CPU utilization of network device. The thread which can handle the Trap message is
equipment, system memory share parameters of the function, created, and then the Trap message can be active transmitted
in order to achieve the ability to monitor network performance. through the SNMP network. The Trap message can be
centralized processing and the results of the analysis will be
In the software design, the utilization rate of CPU and sent to user in time. The network event processing flow is
memory can be obtained by data timing thread which is created shown in Fig.3.
according to the timer queue. The time interval is 1 minutes.
The utilization rate of CPU and memory can be real-time
collected and recorded, which will be stored in the database for Winsock initialization
further analysis. The data can be display as curve to show the
performance of the device. Meanwhile, a separate thread is
created to real-time shows the utilization rate of CPU and
memory. The processing flow of monitoring equipment SNMP object created
performance is shown in Fig.2.
Winsock initialization
Trap message thread created
Results analysis
No
Success Exit
Fig. 3. The network event processing flow
2126
the processing results and the data must be stored to the The interface traffic query can be implemented by the
database for expert statistic. function of SNMP class, such as GetNext() function. The query
results is stored in the form of a variable, which is a
Interface infomation CStringArray type variable. the detail code can be given by
configuration
status=snmp.get_next(pdu, *target);
pdu.get_vb(vb,0);
Get IP adress MIB document reply_oid=vb.get_printable_oid();
reply_value=vb.get_printable_value();
……
Value.Add(reply_value);
Initialization work
Once the state and traffic query of the interface is
completed, the real-time monitoring data can send to the
database as the part of the historical data. For the test IP
Winsock object SNMP object UDP object network, the fault state can be divided into several categories
based on the analysis of the historical data. Thus the processing
results of the real-time monitoring data can provide the fault
state type to the network managers by comparing with the
Object created
expert system. Also the real-time collected data is taken as
historical to add the information for expert system to correct
and improve the fault categories. As a result, the network
Interface state query manager can find and judge the network fault in time and
maintain the network in time.
V. CONCLUSION
Interface traffic query
This work proposed a test IP network monitoring system
based on SNMP. The application of SNMP in the network
management is deeply studied and the characteristics of the test
Database IP network are analyzed, and then a test IP network monitoring
system based on SNMP and database technology has is
designed and implement on VC++6.0 platform. The historical
and the real-time collected data are stored in the database. The
Expert system
expert system is established according to the historical data of
the test IP network, and the network fault classification can be
used to the real-time collected data of an equipment to provide
Display device real-time monitoring of the test IP network. The system
provides for real-time monitoring of complex network
operation means for network management, through the system
Fig. 4. The network equipment monitoring flow administrator can discover network problems, improve the
reliability and stability of IP network test.
In the interface state query module, it needs to initialize the
SNMP and Winsock and constructed the object of SNMP and REFERENCES
UDP address. The function GetPort(CString &ip, CString
&community, CString &oid_port) can complete this work, the
[1] ;Liu, H. Liang and Z. X. Xuan, “Telemetry vibration signal anomaly
detail code can be given by detection method based on the fuzzy entropy of wavelet modulus
maxima,” Journal of Vibration and Shock, Vol. 35, No.6, pp. 147-151,
ĂĂ 2016.
Snmp::socket_startup(); [2] N. Zhang, X. S. Qiu, “Research and implementation of telecom netwrok
//construct the address object management architecture based on Web services,” Application Research
UdpAddress address((LPCTSTR)ip); of Computers, Vol.25, No.6, pp. 1882-1885, 2008.
address.set_port(161); [3] C. Y. Xie, W. M. Li, “Research on PDU standard in the DIS-based
//construct OID object command training & simulation system,” Journal of Air Force
Oid Baseoid((LPCTSTR) oid_str); Engineering University (Natural Science Edition), Vol.3, No.1, pp. 69-
62, 2002.
snmp_version version=version1;
Snmp snmp(status, 0, false); [4] W. Gao, C. Y. Xiao, “Design of infrared alarm system based on GSM
and PDU encoding process,” Wireless Internet Technology, Vol.12, pp.
//construct PDU 19-20, 2014.
Pdu pdu; [5] A. M. Wei, H. B. Wang, Y. Lin and S. D. Cheng, “The achievements of
Vb vb; bandwidth measurement techniques in IP networks,” Acta Electronica
vb.set_oid(Baseoid); Sinica, Vol.34, No.7, pp. 1301-1310, 2006.
pdu += vb;
2127