CN104519017A - Simulation SNMP (Simple Network Management Protocol) agent end system - Google Patents

Simulation SNMP (Simple Network Management Protocol) agent end system Download PDF

Info

Publication number
CN104519017A
CN104519017A CN201310455057.6A CN201310455057A CN104519017A CN 104519017 A CN104519017 A CN 104519017A CN 201310455057 A CN201310455057 A CN 201310455057A CN 104519017 A CN104519017 A CN 104519017A
Authority
CN
China
Prior art keywords
snmp
module
simulation
xml file
port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310455057.6A
Other languages
Chinese (zh)
Inventor
王成鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201310455057.6A priority Critical patent/CN104519017A/en
Publication of CN104519017A publication Critical patent/CN104519017A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a simulation SNMP (Simple Network Management Protocol) agent end system. The simulation SNMP agent end system includes an XML design module, an XML file parsing module, a port monitoring module, an information acquisition module, a data processing module and an information responding module. The simulation SNMP agent end system of the invention is used for simulating the agent end of the SNMP, and can replace actual equipment to receive messages from the management end of the SNMP; when receiving a request message transmitted from the management end of the SNMP, the simulation SNMP agent end system of the invention simulate the actual equipment so as to timely perform analyze and judgment, return messages and respond timely. Thus, with the simulation SNMP agent end system of the invention adopted, the development of a system adopted as the management end of the SNMP can be facilitated, and development cycle length and cost can be decreased.

Description

Simulation SNMP agent side system
Technical field
The present invention relates to the communication technology between the management end of Simple Network Management Protocol (i.e. SNMP) and agent side, particularly relate to a kind of system simulating SNMP agent side.
Background technology
At present, life and the network of people are closely bound up, and in the life of people, network has become its important part, and a part and the network equipment is absolutely necessary in a network, the network equipment carries the transmission of the network information.Management for the network equipment just needs to use network management system.
With regard to current network management system, the general snmp protocol that adopts carrys out managing network device.Initial mode utilizes order line CLI mode configure managing network device, and this mode is not too convenient.Therefore create a kind of with the network management system of visualization interface, mainly can long-range, visual, easily operation is managed for configuration to the network equipment.This management just needs snmp protocol to carry out communicating between the network equipment with network management system.The network equipment needs the agent side function with SNMP, and network management system needs the management end function with SNMP.
And, existing network management system is generally all developed when there being the network equipment, the network management system developed is very high for the compatible degree of the network equipment, but, its exploitation will a little backwardness in time schedule, is all often after the network equipment is developed, on the basis of the network equipment, just carries out the research and development of network management system, thus, the time of going on the market can be postponed.And need network equipment energy output in a small amount, just can go developing network management system, thus, the research and development of network management system are difficult to the research and development step of following the network equipment especially, extend the construction cycle widely, cost of idle time.
Summary of the invention
The technical problem that the present invention need solve is to provide a kind of simulation SNMP agent side system, and can simulate the network equipment as SNMP agent side, contribute to the research and development of network management system, shorten the construction cycle greatly, save time cost.
For solving above-mentioned technical problem, the present invention devises a kind of simulation SNMP agent side system, and it comprises: XML design module, for the data content according to XML file form store M IB; XML file parsing module, the XML file scanned under system directory is resolved, thus is read XML file content, takes out mib information in node, and is stored in internal memory by mib information, wait and call; Port monitors module, monitors the port be connected that to communicate with outside snmp management end; Obtaining information module, monitors module listening port by port, obtains the request message data that transmit in port and put into Pdux object, and obtain source-information and it preserved; The request message data obtained are processed according to type by data processing module accordingly, and in internal memory, search corresponding mib information, obtain value value and put into Pdux object, as a part for response message; Response message module, according to the source-information obtained, returns to snmp management end by response message.
Improve further as the present invention, the XML file of the data content of store M IB comprises node, title, oid, value Type and Value value.
Improve further as the present invention, XML file parsing module utilizes Tiny XML parser to carry out analyzing XML file.
Improve further as the present invention, snmp management end is network management system.
The invention provides a kind of simulation SNMP agent side system, for imitating the agent side of SNMP, the message from snmp management end can be received, when receiving the request message that snmp management end sends, the present invention simulate SNMP agent side system substitute physical device can go in time analyze judge, return messages, respond in time.Thus, contribute to the exploitation of the system as snmp management end, as: the exploitation of network management system.
Accompanying drawing explanation
Fig. 1 is the structure chart that the present invention simulates SNMP agent side system.
Embodiment
Technical scheme of the present invention is understood better in order to make relevant technical staff in the field, below in conjunction with the accompanying drawing of embodiment of the present invention, technical scheme in embodiment of the present invention is clearly and completely described, obviously, described execution mode is only the present invention's part execution mode, instead of whole execution modes.
The invention provides a kind of simulation SNMP agent side system, the agent side of this system simulation SNMP, for setting up interactive communication with the management end of SNMP.In the present embodiment, network management system is as the management end of SNMP, and namely embodiment of the present invention simulation SNMP agent side system simulates real network equipment, with network management system interactive communication.Also do not produce at the network equipment of reality, embodiment of the present invention simulation SNMP agent side system substitutes real network equipment and network management system interactive communication, like this, can help the exploitation of network management system, save time construction cycle and cost.
As shown in Figure 1, the present invention simulates SNMP agent side system, comprises XML design module, XML file parsing module, port monitoring module, obtaining information module, data processing module and response message module.
XML design module, for the data content according to XML file form store M IB.XML is the abbreviation of extend markup language (Extensible Markup Language), is a kind of first Markup Language.It is the international standard that W3C proposes, and can define storage data, have good immanent structure in mode flexibly and effectively.It provide a kind of form of description scheme data, simplify exchanges data, code, data are separated with expression.
The present invention uses XML file form the data in MIB to be stored, can allow data store and understand more convenient, be easier to understand.Further, its structurized storage mode can allow other module management data very with open arms.Store the XML file of the data that a MIB is correlated with, it comprises node, title, oid, value Type and Value value.The design of XML file storage format is as follows:
The XML file that XML file parsing module scans under system directory is resolved, thus reads XML file content, takes out mib information in node, and is stored in internal memory by mib information, wait and call.In the present embodiment, XML file parsing module of the present invention utilizes Tiny XML parser to carry out analyzing XML file, simple and convenient.Particularly: first, .XML file is scanned from the catalogue of system, when finding that there is, TinyXML third party library is utilized to remove analyzing XML file, first open XML file, find <Instances>, go for <Instance> again, then <Instance> attribute is resolved, the value load store of <Instance> attribute and its child node <Value> in internal memory, wait and call.
Port monitors module, monitors the port be connected that to communicate with outside snmp management end.In an embodiment of the present invention, namely port runs the present invention and simulates the computer of SNMP agent side system and the gateway of extraneous (i.e. network management system) Communication.
Obtaining information module, the port that this module will be monitored from above-mentioned port monitoring module obtains data.When the port monitored has message to transmit, such as request message message, obtaining information module will be called an api function and go to obtain data, then puts into Pdux class object and goes.Further, also can obtain source-information, such as ip address etc., preserve it, for later response message module is prepared.
The request message data obtained are processed according to type by data processing module accordingly, and in internal memory, search corresponding mib information, obtain value value and put into Pdux object, as a part for response message.Concrete processing method is: when data processing module has data in Pdux class object, is obtained the type passing over data by get_type function, as: the types such as Get, GetNext, Set, Trap.Data processing module makes corresponding process according to type.Only Get, GetNext, Set categorical data is processed in the embodiment of the present invention.When data type is Set, GENERR error code will be returned; When data type is Get, by from the taking-up data in Pdux class object, the memory node that all vb(vb are data in Pdux class object as taken out, the i.e. memory node of mib information), go to search in storage whether have identical oid according to the oid in vb, have, then go again to judge valueType Value Types, then Value value is taken out, further, as a part for response message, after carrying out type conversion, value field value after conversion being put into this vb is gone, and namely carries out set_value () operation to this vb; When for GetNext, namely extract next the vb data in Pdux class object, then process as process Get categorical data.When data type is Trap, do not support.
Response message module is after processing by data processing module, result data will put into pdux object, after request message all analyzing and processing, after data are all in place, according to the source-information (such as IP address) that obtaining information module preserves, call response () function and response message message is passed to snmp management end.
Below only have expressed one embodiment of the present invention, it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.

Claims (4)

1. simulate a SNMP agent side system, it is characterized in that, comprising:
XML design module, for the data content according to XML file form store M IB;
XML file parsing module, the XML file scanned under system directory is resolved, thus is read XML file content, takes out mib information in node, and is stored in internal memory by mib information, wait and call;
Port monitors module, monitors the port be connected that to communicate with outside snmp management end;
Obtaining information module, monitors module listening port by port, obtains the request message data that transmit in port and put into Pdux object, and obtain source-information and it preserved;
The request message data obtained are processed according to type by data processing module accordingly, and in internal memory, search corresponding mib information, obtain value value and put into Pdux object, as a part for response message;
Response message module, according to the source-information obtained, returns to snmp management end by response message.
2. simulation SNMP agent side system according to claim 1, is characterized in that, the XML file of the data content of store M IB comprises node, title, oid, value Type and Value value.
3. simulation SNMP agent side system according to claim 1, it is characterized in that, XML file parsing module utilizes Tiny XML parser to carry out analyzing XML file.
4. simulation SNMP agent side system according to claim 1, it is characterized in that, snmp management end is network management system.
CN201310455057.6A 2013-09-29 2013-09-29 Simulation SNMP (Simple Network Management Protocol) agent end system Pending CN104519017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310455057.6A CN104519017A (en) 2013-09-29 2013-09-29 Simulation SNMP (Simple Network Management Protocol) agent end system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310455057.6A CN104519017A (en) 2013-09-29 2013-09-29 Simulation SNMP (Simple Network Management Protocol) agent end system

Publications (1)

Publication Number Publication Date
CN104519017A true CN104519017A (en) 2015-04-15

Family

ID=52793758

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310455057.6A Pending CN104519017A (en) 2013-09-29 2013-09-29 Simulation SNMP (Simple Network Management Protocol) agent end system

Country Status (1)

Country Link
CN (1) CN104519017A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105515825A (en) * 2015-11-25 2016-04-20 成都广达新网科技股份有限公司 SNMP simulator for network management capacity testing and testing method thereof
CN106533765A (en) * 2016-11-16 2017-03-22 成都广达新网科技股份有限公司 SNMP simulator design method and device based on XML

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801569A (en) * 2012-09-12 2012-11-28 上海斐讯数据通信技术有限公司 Data driven Agent end Trap alarming method
CN102868554A (en) * 2012-08-29 2013-01-09 上海斐讯数据通信技术有限公司 Simple network management protocol (SNMP) request processing method and SNMP network management system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868554A (en) * 2012-08-29 2013-01-09 上海斐讯数据通信技术有限公司 Simple network management protocol (SNMP) request processing method and SNMP network management system
CN102801569A (en) * 2012-09-12 2012-11-28 上海斐讯数据通信技术有限公司 Data driven Agent end Trap alarming method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
周明磊: "基于SNMP协议的网络设备仿真平台的研究和实现", 《硕士学位论文》 *
赵昕: "网络化虚拟打印机样机的研究与开发", 《硕士学位论文》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105515825A (en) * 2015-11-25 2016-04-20 成都广达新网科技股份有限公司 SNMP simulator for network management capacity testing and testing method thereof
CN105515825B (en) * 2015-11-25 2018-11-30 成都广达新网科技股份有限公司 A kind of SNMP simulator and its test method for network management volume test
CN106533765A (en) * 2016-11-16 2017-03-22 成都广达新网科技股份有限公司 SNMP simulator design method and device based on XML
CN106533765B (en) * 2016-11-16 2019-10-29 成都广达新网科技股份有限公司 A kind of SNMP Simulator design method and device based on XML

Similar Documents

Publication Publication Date Title
CN110933146B (en) Data conversion method and device and server
CN110365644B (en) Method for constructing high-performance monitoring platform of networking equipment
CN110752943B (en) Distributed fault diagnosis system and method for power transmission line
CN111340456A (en) Edge cloud collaborative data processing method, device and equipment based on Internet of things
CN102497427A (en) Method and device for realizing data acquisition services of renewable energy source monitoring system
CN104754608A (en) Method and system for monitoring performances of mobile terminal
WO2014008694A1 (en) Signaling monitoring device for implementing ps domain distributed architecture
CN102647432B (en) A kind of authentication information transmission method, device and certification middleware
CN103036877A (en) Device and method for code generation of coding and decoding based on threshold limit value (TLV) form protocol
CN105515825B (en) A kind of SNMP simulator and its test method for network management volume test
CN104519017A (en) Simulation SNMP (Simple Network Management Protocol) agent end system
CN114363238A (en) Method, device, terminal and storage medium for showing information of drop-off device
Ting et al. A comparison and evaluation of different BLE connection methods for wearable devices
CN113794994B (en) Information gathering method and device based on multicast domain name system and application thereof
CN106059635A (en) Bluetooth setting method and device for electronic equipment and Bluetooth connection method
CN103152195B (en) Collecting method and device
CN106612207B (en) The management-control method and device of ethernet device RSTP information
Xie et al. Research of conformance testing of low-rate wireless sensor networks based on remote test method
CN110995486B (en) Intelligent hardware equipment monitoring system based on Internet of things
CN111193611A (en) Client side fault monitoring method using MAS machine
CN105306315B (en) System and method based on SMB agreement mobile phone remote access family gateway equipment
CN108694251A (en) A kind of Log Administration System
CN213754542U (en) Internet of things gateway capable of dynamically matching equipment protocol
CN103546320B (en) A kind of docking calculation of the cross-linked data of transmission network based on SDH
CN101964726B (en) SNMP-based reliable data transmission method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150415