CN108737134A - A kind of analogue web element testing method and device - Google Patents

A kind of analogue web element testing method and device Download PDF

Info

Publication number
CN108737134A
CN108737134A CN201710247705.7A CN201710247705A CN108737134A CN 108737134 A CN108737134 A CN 108737134A CN 201710247705 A CN201710247705 A CN 201710247705A CN 108737134 A CN108737134 A CN 108737134A
Authority
CN
China
Prior art keywords
network element
network
network address
snmp messages
element group
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
CN201710247705.7A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710247705.7A priority Critical patent/CN108737134A/en
Publication of CN108737134A publication Critical patent/CN108737134A/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network

Landscapes

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

Abstract

One aspect of the present invention provides a kind of analogue web element testing method, including:Receive NM server send SNMP messages, according to scheduled transformation rule by the purpose network address translation for including in the SNMP messages be network element group simulator purpose network address;Forward the SNMP messages to corresponding network element group simulator according to network element group simulator purpose network address, wherein the network element group simulator is made of the analogue network element of predetermined quantity;Response message is directly sent to the NM server corresponding to the source network address according to the source network address carried in the SNMP messages by the network element group simulator.

Description

A kind of analogue web element testing method and device
Technical field
The present invention can be related to communication and computer realm, more particularly to a kind of analogue web element testing method and device.
Background technology
Telecommunication network management system is mainly made of the element of three aspects:Telecommunication Network Element, telecommunicatioin network management software and telecommunications network Network communications protocol.Simple Network Management Protocol (SNMP, Simple Network Management Protocol) is telecommunications network Widely used a kind of agreement in network management system.According to the division of snmp protocol, Telecommunication Network Element belong to snmp protocol by pipe Equipment and SNMP agent are managed, and telecommunicatioin network management software is exactly then Network Management System.Network management system passes through snmp protocol and SNMP Agency is communicated, and SNMP agent is interacted with managed device again, to complete management of the network management system to managed device.It is existing The telecom network management system in generation needs while managing the Telecommunication Network Element of a variety of substantial amounts, and this requires telecom network management system softwares Development late stage can there are many class, big quantity Telecommunication Network Elements to carry out system and pressure test.But telecom network management system software is opened The research and development department of hair is difficult the Telecommunication Network Element for possessing a variety of substantial amounts, is tieed up even if possessing and being also required to input significant cost Shield.Therefore carry out analogue network element the prior art mainly adopts software to solve the problems, such as multiple types network element, but such methods have list The defect that NE quantity usually only tens is simulated in a terminal can only meet environment when the daily exploitation of network management system is debugged Demand cannot be satisfied network management system test and when pressure test to multiple types, the demand of extensive Telecommunication Network Element, in the prior art At present also without relevant solution.
Invention content
The present invention provides a kind of analogue web element testing methods, at least to solve using software to multiple types, extensive electricity Believe that network element carries out the technical issues of efficient simulation is for network management system test, pressure test.
One aspect of the present invention provides a kind of analogue web element testing method, including:Receive the SNMP reports that NM server is sent Text, according to scheduled transformation rule by the purpose network address translation for including in the SNMP messages be network element group simulator purpose Network address;Forward the SNMP messages to corresponding network element group simulator according to network element group simulator purpose network address, Described in network element group simulator be made of the analogue network element of predetermined quantity;It is reported according to the SNMP by the network element group simulator The source network address carried in text directly sends response message to the NM server corresponding to the source network address.
Further, by the network element group simulator according to the source network address carried in the SNMP messages directly to NM server corresponding to the source network address sends response message, including:Institute is parsed by the network element group simulator The purpose network address carried in group (community) field in SNMP messages is stated, is distributed according to the purpose network address The SNMP messages give analogue network element in the network element group simulator to handle, wherein the analogue network element is with the purpose network Location corresponds;The SNMP messages are parsed by the analogue network element, are referred to if carrying FTP uploads in the SNMP messages It enables, specified file is uploaded by FTP according to the FTP uploading instructions carried in the SNMP messages by the analogue network element Server;If carrier state inquiry instruction in the SNMP test packets, by the network element group simulator according to The source network address carried in SNMP messages directly sends response message to the NM server corresponding to the source network address, The response message includes state value of the analogue unit according to the progress feedback actually uploaded.
Further, by the network element group simulator according to the source network address carried in the SNMP messages directly to NM server corresponding to the source network address sends response message, including:Described in the network element group simulator parsing Information in SNMP messages in object identifier (OID) field, it is corresponding with OID according to the information searching in the oid field Data;By the network element group simulator according to the source network address carried in the SNMP messages directly to the source network NM server corresponding to location sends response message, and the response message includes the data corresponding with OID.
Further, it is corresponding network element group simulator purpose by purpose network address translation according to scheduled transformation rule Network address is the network address for being revised as specifying in the network segment by the purpose network address for belonging to the same network segment.
Another aspect of the present invention also provides a kind of analogue network element test device, including:Mapping network addresses module receives net The SNMP messages that pipe server is sent turn the purpose network address for including in the SNMP messages according to scheduled transformation rule It is changed to network element group simulator purpose network address;Forwarding module, described in the forwarding of network element group simulator purpose network address SNMP messages are to corresponding network element group simulator;Network element group emulation module, the analogue network element for simulating predetermined quantity form, And it is directly sent out to the NM server corresponding to the source network address according to the source network address carried in the SNMP messages Send response message.
Further, which is located at tested NM server side.
Further, the network element group emulation module includes:Resolution unit, for parsing group in the SNMP messages (community) the purpose network address carried in field, Dispatching Unit distribute the SNMP according to the purpose network address Message gives analogue network element in the network element group simulator to handle, wherein the analogue network element is a pair of with the purpose network address one It answers;Analogue network element, for parsing the SNMP messages, if carrying FTP uploading instructions, the mould in the SNMP messages Specified file is then uploaded ftp server by quasi- network element according to the FTP uploading instructions carried in the SNMP messages;If Carrier state inquiry instruction in the SNMP messages, the analogue unit is according to the progress feedback states value actually uploaded.It sends Unit, for directly being taken to the webmaster corresponding to the source network address according to the source network address carried in the SNMP messages Business device sends response message, and the response message includes the state value.
Further, network element group emulation module includes:Resolution unit, for parsing object identity in the SNMP messages Accord with the information in (OID) field;Searching unit, for searching data corresponding with OID according to described information;Transmission unit is used According to the source network address carried in the SNMP messages directly to corresponding to the source network address NM server send out It includes the data corresponding with OID to send response message, the response message.
The present invention is to use request-id fields to be used as transmitting-receiving message based on udp protocol by making full use of snmp protocol This principle of matched unique mark will be needed a variety of using the unidirectional mapping techniques of IP in network management system test and pressure test Class, extensive network element are mapped in one or more network element group analog modules, are solved using software to multiple types, extensive telecommunications Network element carries out the technical issues of efficient simulation is for network management system test, pressure test.Skill in this specification preferred embodiment Art scheme is few to hardware resource requirements, and configuration is simple, at low cost, efficient.
Figure of description
Fig. 1 is a kind of analogue web element testing method flow chart of this specification preferred embodiment;
Fig. 2 is a kind of schematic diagram of analogue network element test device of this specification preferred embodiment;
Fig. 3 is this specification preferred embodiment network element simulator schematic diagram 1;
Fig. 4 is this specification preferred embodiment network element simulated technological process schematic diagram 1;
Fig. 5 is this specification preferred embodiment network element simulator schematic diagram 2;
Fig. 6 is this specification preferred embodiment network element simulated technological process schematic diagram 2;
Specific implementation method
Come that the present invention will be described in detail below with reference to attached drawing and in conjunction with the embodiments.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.
One aspect of the present invention provided a kind of analogue web element testing method, and Fig. 1 is one kind of this specification preferred embodiment Analogue web element testing method flow chart, as shown in Figure 1, including:
S101:The SNMP messages that NM server is sent are received, it will be in the SNMP messages according to scheduled transformation rule Including purpose network address translation be network element group simulator purpose network address;
S102:The SNMP messages are forwarded to be simulated to corresponding network element group according to network element group simulator purpose network address Device, wherein the network element group simulator is made of the analogue network element of predetermined quantity;
S103:By the network element group simulator according to the source network address carried in the SNMP messages directly to described NM server corresponding to source network address sends response message.
The technical solution that this specification embodiment discloses can configure network element group analog module as needed before test Configuration data and IP address carry out various functions test, system testing when pressure test, starts the activation of network element simulator software The unidirectional mapping function of mapping network addresses module I P address is reached by the way that a large amount of IP address to be unidirectionally mapped as to a small amount of IP address To simulating multiple types, the technique effect of extensive network element in network management system.
Further, it is corresponding network element group simulator purpose by purpose network address translation according to scheduled transformation rule Network address includes the network address for being revised as specifying in the network segment by the purpose network address for belonging to the same network segment.
Further, this specification preferred embodiment receives the SNMP test packets and root for network element group emulation module It directly sends and rings to the NM server corresponding to the source network address according to the source network address carried in the SNMP test packets Message is answered to disclose the technical solution taken under two kinds of different test scenes, the first is, passes through the network element group simulator root It directly sends and rings to the NM server corresponding to the source network address according to the source network address carried in the SNMP messages Message is answered, including:Pass through what is carried in group (community) field in the network element group simulator parsing SNMP messages Purpose network address distributes the SNMP messages to analogue network element in the network element group simulator according to the purpose network address Processing, wherein the analogue network element is corresponded with the purpose network address;The SNMP is parsed by the analogue network element Message is carried by the analogue network element according in the SNMP messages if carrying FTP uploading instructions in the SNMP messages The FTP uploading instructions specified file is uploaded into ftp server;If carrier state is inquired in the SNMP test packets Instruction, by the network element group simulator according to the source network address carried in the SNMP messages directly to the source network NM server corresponding to location sends response message, the response message include the analogue unit according to actually upload into Open up the state value of feedback.
Second is to be parsed in the SNMP messages in object identifier (OID) field by the network element group simulator Information, according to the information searching data corresponding with OID in the oid field;By the network element group simulator according to institute It states the source network address carried in SNMP messages and directly sends response report to the NM server corresponding to the source network address Text, the response message include the data corresponding with OID.
This specification preferred embodiment also discloses a kind of analogue network element test device, and Fig. 2 is this specification preferred embodiment A kind of schematic diagram of analogue network element test device, as shown in Fig. 2, device includes mapping network addresses module 21, for receiving net The SNMP messages that pipe server is sent turn the purpose network address for including in the SNMP messages according to scheduled transformation rule It is changed to network element group simulator purpose network address;Forwarding module 22, described in the forwarding of network element group simulator purpose network address SNMP messages are to corresponding network element group simulator;Network element group emulation module 23, the analogue network element group for simulating predetermined quantity At, and according to the source network address carried in the SNMP messages directly to the NM server corresponding to the source network address Send response message.
Further, which is located at tested NM server side.
Further, this specification preferred embodiment receives the SNMP test packets and root for network element group emulation module It directly sends and rings to the NM server corresponding to the source network address according to the source network address carried in the SNMP test packets Message is answered to disclose the technical solution taken under two kinds of different test scenes, the first is, the network element group emulation module packet Resolution unit is included, for parsing the purpose network address carried in group (community) field in the SNMP messages distribution Unit distributes the SNMP messages according to the purpose network address and is handled to analogue network element in the network element group simulator, Described in analogue network element and the purpose network address correspond;Analogue network element, for parsing the SNMP messages, such as FTP uploading instructions are carried in SNMP messages described in fruit, the analogue network element is then according to the FTP carried in the SNMP messages Specified file is uploaded ftp server by uploading instructions;If carrier state inquiry instruction in the SNMP messages, the simulation Unit is according to the progress feedback states value actually uploaded.Transmission unit, for according to the source network carried in the SNMP messages Address directly sends response message to the NM server corresponding to the source network address, and the response message includes the shape State value.
Second is that the network element group emulation module includes:Resolution unit, for parsing object in the SNMP messages Information in identifier (OID) field;Searching unit, for searching data corresponding with OID according to described information;It sends single Member, for according to the source network address carried in the SNMP messages directly to the network manager service corresponding to the source network address Device sends response message, and the response message includes the data corresponding with OID.
A kind of analogue network element test device that this specification embodiment discloses, including 1~M net of mapping network addresses module Tuple analog module.Network element group analog module runs a network element group analog module process by software realization on a station terminal. K IP address, network element group analog module and the IP bindings on each self terminal can be configured in each terminal, IP mapping blocks will be into Enter to be mapped as K IP per N number of IP to analogue network element test device and relay to corresponding network element group analog module.Each network element Group analog module can simulate N number of network element, and each analogue network element test device can simulate N*M network element, and N, M are more than 2 Natural number.Compared with building the method for test environment using true network element, hardware of the invention input, human cost is few, network element Quantity size increases by 4 orders of magnitude.
It is as follows that this specification also provides two preferred embodiments:
Embodiment one:
Network management system needs to carry out the pressure test of 5000 network element scales, certain business that can extract 5000 network elements is matched Set data.Fig. 3 is this specification preferred embodiment network element simulator schematic diagram 1, as shown in Figure 3.Each of the simulator software Process includes several threads, simulates a group NEs.Per thread has independent SNMP transceiver modules and MIB processing modules, mould Intend a network element.One IP address of each SNMP transceiver modules binding terminal.The configuration data of network element simulator software is configured, Configure the OID and value of the business datum of this extraction.
1.3.6.1.4.1.3902.XXXX.2.1.X AAA
1.3.6.1.4.1.3902.XXXX.2.2.X BBB
1.3.6.1.4.1.3902.XXXX.3.2.X CCC
... ...
The IP address for configuring the binding of network element simulator is as follows:
1.3.6.1.4.1.3902.XXXX.2.1.X AAA
1.3.6.1.4.1.3902.XXXX.2.2.X BBB
1.3.6.1.4.1.3902.XXXX.3.2.X CCC
... ...
20 IP of configurating terminal in the terminal of network element simulator operation:192.168.1.1~192.168.20.1, and Run network element simulator.Configuration of IP maps on the server of network management system, and by 192.168.1.0/24, this 255 IP map For 192.168.1.1;192.168.2.0/24 this 255 IP are mapped as 192.168.2.1, and so on, 192.168.20.0/ 24 this 255 IP are mapped as 192.168.20.1, and IP is activated to map.
Increase by 5000 network elements in network management system, IP address is respectively:
192.168.1.1 192.168.2.1 ... 192.168.19.1 192.168.20.1
192.168.1.2 192.168.2.2 ... 192.168.19.2 192.168.20.2
192.168.1.3 192.168.2.3 ... 192.168.19.3 192.168.20.3
... ... ... ... ...
192.168.1.250 192.168.2.250 ... 192.168.19.1 192.168.20.250
Start extraction net element business data task on webmaster, starts the business datum for extracting 5000 network elements.Webmaster is sent out The snmp-get messages sent are (webmaster IP is 192.168.100.100) as follows:
Dest-mac src-mac 192.168.1.3 192.168.100.100 .. xa0 . 95 .. 1.3.6.1.4.1.3902.XXXX.2.1.X
Dest-mac src-mac 192.168.1.9 192.168.100.100 .. xa0 .. 96 .. 1.3.6.1.4.1.3902.XXXX.2.1.X
Dest-mac src-mac 192.168.3.8 192.168.100.100 .. xa0 .. 97 .. 1.3.6.1.4.1.3902.XXXX.2.1.X
... ... ... ... .. .. .. .. .. ...
It is mapped by IP, the message that network element simulator receives is as follows:
Dest-mac src-mac 192.168.1.1 192.168.100.100 .. xa0 .. 95 .. 1.3.6.1.4.1.3902.XXXX.2.1.X
Dest-mac src-mac 192.168.1.1 192.168.100.100 .. xa0 .. 96 .. 1.3.6.1.4.1.3902.XXXX.2.1.X
Dest-mac src-mac 192.168.3.3 192.168.100.100 .. xa0 .. 97 .. 1.3.6.1.4.1.3902.XXXX.2.1.X
... ... ... ... .. . .. .. .. ...
These messages can be according to the difference of its destination IP and by the different thread process of network element group simulator, per thread It is all gone to search the corresponding values of OID according to configuration file, and returned.
The message that webmaster receives is as follows:
Dest-mac src-mac 192.168.100.100 192.168.1.1 .. xa2 .. 95 1.3.6.1.4.1.3902.XXXX.2.1.X AA
Dest-mac src-mac 192.168.100.100 192.168.1.1 .. xa2 . 96 1.3.6.1.4.1.3902.XXXX.2.1.X AA
Dest-mac src-mac 192.168.100.100 192.168.3.1 .. xa2 .. 97 1.3.6.1.4.1.3902.XXXX.2.1.X AA
... .. ... ... .. .. .. .. ...
Shown in upper table, although the network element IP that the source IP of the data returned and webmaster are extracting version information is inconsistent, But the snmp stack of webmaster is matched according to request-id, will be considered that the reply data for having received these network elements.
Fig. 4 is this specification preferred embodiment network element simulated technological process schematic diagram 1, as shown in figure 4, webmaster is soft in the above process 5000 network elements are configured in part, webmaster is sent to the SNMP messages of network element all by the processing of extensive net element simulation system.It should Extensive net element simulation system is made of an IP mapping block and a network element simulator.IP mapping blocks are by every 250 IP It is mapped as an IP.Network element simulator software can start 20 threads at runtime, and per thread has its independent SNMP transmitting-receiving Module and MIB processing modules, each SNMP transceiver modules bind an IP address.Webmaster is sent to 5000 network elements in this way SNMP messages will be received by 20 SNMP transceiver modules respectively after IP maps, and be handled by respective snmp stack Afterwards, it transfers to respective MIB processing modules to handle and response message is sent to webmaster by SNMP transceiver modules again.Namely network element mould The per thread of quasi- device is responsible for handling the message of 250 network elements, for example webmaster is directed to 192.168.1.1~192.168.1.250 Network element send message can all be handled by thread 1, webmaster be directed to 192.168.2.1~192.168.2.250 network elements message The message of transmission can all be handled by thread 2, and so on, network element simulator is opened by a process, the very little of 20 threads Pin provides for 5000 analogue network elements in conjunction with IP mappings, and hardware resource requirements are few, efficient, and the process of data configuration is simple, Human cost is low.
Embodiment two
Network management system needs to carry out the pressure test of 5000 network element scales, can synchronize the configuration file of 5000 network elements (network element instructs according to the SNMP of webmaster and uploads files to ftp server by FTP), since the operation is very time-consuming behaviour Make, therefore webmaster can also periodically send status inquiry command after issuing and uploading file command success, inquiry file upload into It spends and whether finally uploads successfully.
Fig. 5 is this specification preferred embodiment network element simulator schematic diagram 2, selects internal structure chart as schemed, net shown in 5 First simulator.Each process of the simulator software includes several threads.Per thread have independent SNMP transceiver modules and Distribution module, each simulator simulate a group NEs.One IP address of each SNMP transceiver modules binding terminal.Network element is simulated Device can hand to distribution module when receiving special SNMP messages (i.e. file upload command and status inquiry command).Distribution Module determines to be distributed to existing interim thread or starts a new interim thread then according to the community of message Message is distributed to this thread again.Each interim thread only handles the identical messages of community.Interim thread is receiving file When upload command, FTP operations can be carried out according to the FTP relevant parameters that the message carries, upload files to specified FTP service Device, and during this period, the progress report that ftp file transmits is transmitted by responsive state querying command to webmaster, and in file Auto-destruct afterwards.
Configure the IP address of network element simulator binding:
20 IP of configurating terminal in the terminal of network element simulator operation:192.168.1.1~192.168.20.1, and Start webmaster.
Configuration of IP maps on the server of network management system, and by 192.168.1.0/24, this 255 IP are mapped as 192.168.1.1;192.168.2.0/24 this 255 IP are mapped as 192.168.2.1, and so on, 192.168.20.0/24 This 255 IP are mapped as 192.168.20.1, and IP is activated to map.
IP before mapping IP after mapping
192.168.1.0/24 192.168.1.1
192.168.2.0/24 192.168.2.1
192.168.3.0/24 192.168.3.1
... ...
192.168.20.0/24 192.168.20.1
Increase by 5000 network elements in network management system, IP address is respectively:
192.168.1.1 192.168.2.1 ... 192.168.19.1 192.168.20.1
192.168.1.2 192.168.2.2 ... 192.168.19.2 192.168.20.2
192.168.1.3 192.168.2.3 ... 192.168.19.3 192.168.20.3
... ... ... ... ...
192.168.1.250 192.168.2.250 ... 192.168.19.1 192.168.20.250
Start synchronous network element data task on webmaster, starts the data of synchronous 5000 network elements.The task concurrently synchronizes The data of 30 network elements, a network element understands automatic compensation one after the completion, until 5000 fully synchronized completions of network element.Webmaster is sent out The SNMP messages sent are as follows:
Dest-mac src-mac 192.168.1.3 192.168.100.100 .. xa0 .. 95 .. public192.168.1.3 ..
Dest-mac src-mac 192.168.1.9 192.168.100.100 ... 0xa0 ... 696 ... public192.168.1.9 ..
Dest-mac src-mac 192.168.3.8 192.168.100.100 ... 0xa0 ... 697 ... public192.168.3.8 ..
... ... ... ... .. .. ... ... ... ...
It is mapped by IP, the message that network element simulator receives is as follows:
Dest-mac src-mac 192.168.1.3 192.168.100.100 .. xa0 .. 95 .. public192.168.1.3 ..
Dest-mac src-mac 192.168.1.9 192.168.100.100 ... 0xa0 ... 696 ... public192.168.1.9 ..
Dest-mac src-mac 192.168.3.8 192.168.100.100 ... 0xa0 ... 697 ... public192.168.3.8 ..
... ... ... ... .. .. ... ... ... ...
These messages can be received by the SNMP transceiver modules of different threads according to the difference of its destination IP and be transferred to point Resume module is sent out, distribution module is distributed to different interim threads according to the difference of the community of message again.It is each interim Thread is responsible for primary complete ftp file upload and SNMP status inquiries response, auto-destruct after task.
The message that webmaster receives is as follows:
Shown in upper table, although the source IP of the data returned and webmaster are just inconsistent in the network element IP of synchrodata, net The snmp stack of pipe is matched according to request-id, will be considered that the reply data for having received these network elements.The same source The value of the identical OID of IP and different, repeatedly inquires the same OID, value is changed according to actual conditions, i.e., This value is stateful.
Fig. 6 is this specification preferred embodiment network element simulated technological process schematic diagram 2, as shown in fig. 6, being configured in webmastering software 5000 network elements, webmaster are sent to the SNMP messages of network element all by the processing of extensive net element simulation system.The extensive network element Analogue system is made of an IP mapping block and a network element simulator.Every 250 IP are mapped as one by IP mapping blocks IP.Network element simulator software can start 20 threads at runtime, and per thread has its independent SNMP transceiver module and distribution Module, each SNMP transceiver modules bind an IP address.The SNMP messages that webmaster is sent to 5000 network elements are mapped by IP After will be received respectively by 20 SNMP transceiver modules, and hand over distribution module, distribution module is according to the information after parsing Community information checks for corresponding interim thread, and the information is delivered interim thread if thread exists, An interim thread is created if thread is not present, then information is delivered.Interim thread is in the letter for receiving distribution module distribution After breath, action is made according to the particular content of information:It, then will be specific according to the parameter in information if it is FTP uploading instructions File uploads ftp server;If it is status query instruction, then corresponding state value is returned to according to the progress actually uploaded.Net The per thread of first simulator be responsible for handle 250 network elements message, such as webmaster for 192.168.1.1~ 192.168.1.250 the message that network element is sent can all be handled by thread 1, webmaster for 192.168.2.1~ 192.168.2.250 the message that the message of network element is sent can all be handled by thread 2, and so on.Network element simulator passes through one The expense combination IP mappings of process, the very little of 20 interim threads of thread+30 just easily provide 5000 analogue network elements, and Each analogue network element is able to carry out the state of the respective FTP operations of FTP operation and maintenances.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be with different from shown in sequence execution herein The step of going out or describing, either they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
Above this is merely a preferred embodiment of the present invention, and is not intended to restrict the invention, for the technology of this field For personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (8)

1. a kind of network element analogy method, which is characterized in that including:
Receive the SNMP messages that NM server is sent, the purpose that will include in the SNMP messages according to scheduled transformation rule Network address translation is network element group simulator purpose network address;
Forward the SNMP messages to corresponding network element group simulator according to network element group simulator purpose network address, wherein described Network element group simulator is made of the analogue network element of predetermined quantity;
By the network element group simulator according to the source network address carried in the SNMP messages directly to the source network NM server corresponding to location sends response message.
2. test method according to claim 1, which is characterized in that by the network element group simulator according to the SNMP The source network address carried in message directly sends response message, packet to the NM server corresponding to the source network address It includes:
The purpose network carried in group (community) field in the SNMP messages is parsed by the network element group simulator Address is distributed the SNMP messages according to the purpose network address and is handled to analogue network element in the network element group simulator, Described in analogue network element and the purpose network address correspond;
The SNMP messages are parsed by the analogue network element, if carrying FTP uploading instructions in the SNMP messages, pass through institute It states analogue network element and specified file is uploaded into ftp server according to the FTP uploading instructions carried in the SNMP messages;Such as Carrier state inquiry instruction in SNMP test packets described in fruit is taken by the network element group simulator according in the SNMP messages The source network address of band directly sends response message, the response message to the NM server corresponding to the source network address Include state value of the analogue unit according to the progress feedback actually uploaded.
3. test method according to claim 1, which is characterized in that by the network element group simulator according to the SNMP The source network address carried in message directly sends response message, packet to the NM server corresponding to the source network address It includes:
The information in the SNMP messages in object identifier (OID) field is parsed by the network element group simulator, according to institute State the information searching data corresponding with OID in oid field;
By the network element group simulator according to the source network address carried in the SNMP messages directly to the source network NM server corresponding to location sends response message, and the response message includes the data corresponding with OID.
4. according to the method described in claim 1, it is characterized in that, the scheduled transformation rule is:
Purpose network address comprising identical network identity information is revised as the finger in the network identity information belonging network Determine network address.
5. a kind of analogue network element test device, which is characterized in that including:
Mapping network addresses module receives the SNMP messages that NM server is sent, will be described according to scheduled transformation rule The purpose network address translation for including in SNMP messages is network element group simulator purpose network address;
Forwarding module forwards the SNMP messages to be simulated to corresponding network element group according to network element group simulator purpose network address Device;
Network element group emulation module, the analogue network element for simulating predetermined quantity forms, and is carried according in the SNMP messages Source network address directly to corresponding to the source network address NM server send response message.
6. device according to claim 5, which is characterized in that the mapping network addresses module is located at tested network manager service Device side.
7. device according to claim 5, which is characterized in that the network element group emulation module includes:
Resolution unit, for parsing the purpose network address carried in group (community) field in the SNMP messages
Dispatching Unit distributes the SNMP messages to analogue network element in the network element group simulator according to the purpose network address Processing, wherein the analogue network element is corresponded with the purpose network address;
Analogue network element, it is described if carrying FTP uploading instructions in the SNMP messages for parsing the SNMP messages Specified file is then uploaded ftp server by analogue network element according to the FTP uploading instructions carried in the SNMP messages;Such as Carrier state inquiry instruction in SNMP messages described in fruit, the analogue unit is according to the progress feedback states value actually uploaded.
Transmission unit, for according to the source network address carried in the SNMP messages directly to corresponding to the source network address NM server send response message, the response message include the state value.
8. device according to claim 5, which is characterized in that the network element group emulation module includes:
Resolution unit, for parsing the information in the SNMP messages in object identifier (OID) field;
Searching unit, for searching data corresponding with OID according to described information;
Transmission unit, for according to the source network address carried in the SNMP messages directly to corresponding to the source network address NM server send response message, the response message includes the data corresponding with OID.
CN201710247705.7A 2017-04-19 2017-04-19 A kind of analogue web element testing method and device Pending CN108737134A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710247705.7A CN108737134A (en) 2017-04-19 2017-04-19 A kind of analogue web element testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710247705.7A CN108737134A (en) 2017-04-19 2017-04-19 A kind of analogue web element testing method and device

Publications (1)

Publication Number Publication Date
CN108737134A true CN108737134A (en) 2018-11-02

Family

ID=63924725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710247705.7A Pending CN108737134A (en) 2017-04-19 2017-04-19 A kind of analogue web element testing method and device

Country Status (1)

Country Link
CN (1) CN108737134A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110875840A (en) * 2018-09-03 2020-03-10 中兴通讯股份有限公司 Network element management method, device, system and storage medium
CN114124727A (en) * 2021-11-08 2022-03-01 中信科移动通信技术股份有限公司 Network management communication pressure testing method and system
CN114554532A (en) * 2022-03-09 2022-05-27 武汉烽火技术服务有限公司 5G device high-concurrency simulation method and device
WO2023051002A1 (en) * 2021-09-30 2023-04-06 中兴通讯股份有限公司 Terminal simulation test method and apparatus, storage medium, and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108309A (en) * 1997-12-08 2000-08-22 Mci Communications Corporation SONET network element simulator
US6119168A (en) * 1993-06-28 2000-09-12 Fujitsu Limited Communications system usable as system for simulating a plurality of other communications systems and communication processing system having such communications system
US20080159506A1 (en) * 2006-12-28 2008-07-03 Bellsouth Intellectual Property Corporation Network element provisioning and event simulation in a communications network
US20090043561A1 (en) * 2007-08-09 2009-02-12 Guy David Arieli system and a method for a multi device emulation in network management system
KR20090044110A (en) * 2007-10-31 2009-05-07 포스데이타 주식회사 Simulator and simulation method for testing network element and medium for storing for program for carrying out the method
CN104796302A (en) * 2015-04-17 2015-07-22 大唐移动通信设备有限公司 Method and system for testing network element simulators

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6119168A (en) * 1993-06-28 2000-09-12 Fujitsu Limited Communications system usable as system for simulating a plurality of other communications systems and communication processing system having such communications system
US6108309A (en) * 1997-12-08 2000-08-22 Mci Communications Corporation SONET network element simulator
US20080159506A1 (en) * 2006-12-28 2008-07-03 Bellsouth Intellectual Property Corporation Network element provisioning and event simulation in a communications network
US20090043561A1 (en) * 2007-08-09 2009-02-12 Guy David Arieli system and a method for a multi device emulation in network management system
KR20090044110A (en) * 2007-10-31 2009-05-07 포스데이타 주식회사 Simulator and simulation method for testing network element and medium for storing for program for carrying out the method
CN104796302A (en) * 2015-04-17 2015-07-22 大唐移动通信设备有限公司 Method and system for testing network element simulators

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110875840A (en) * 2018-09-03 2020-03-10 中兴通讯股份有限公司 Network element management method, device, system and storage medium
CN110875840B (en) * 2018-09-03 2021-10-15 中兴通讯股份有限公司 Network element management method, device, system and storage medium
WO2023051002A1 (en) * 2021-09-30 2023-04-06 中兴通讯股份有限公司 Terminal simulation test method and apparatus, storage medium, and electronic device
CN114124727A (en) * 2021-11-08 2022-03-01 中信科移动通信技术股份有限公司 Network management communication pressure testing method and system
CN114124727B (en) * 2021-11-08 2023-10-31 中信科移动通信技术股份有限公司 Network management communication pressure testing method and system
CN114554532A (en) * 2022-03-09 2022-05-27 武汉烽火技术服务有限公司 5G device high-concurrency simulation method and device

Similar Documents

Publication Publication Date Title
CN108737134A (en) A kind of analogue web element testing method and device
CN102708213B (en) Method for realizing BOM (Bill of Material) information transmission between PDM (Product Data Management) system and ERP (Enterprise Resource Planning) system
CN112217656B (en) Method and device for synchronizing configuration information of network equipment in SD-WAN (secure digital-to-Wide area network) system
CN110324169A (en) A kind of method and apparatus of interface management
CN101686145A (en) Equipment capable of upgrading, upgrading method and system
CN107003983A (en) Configuration network
CN104965726A (en) Configuration updating method, apparatus and system
CN106528871A (en) Method for updating information of engineering data points in industrial control system on line
CN113055232B (en) Network configuration deployment method, device and equipment
CN103780627A (en) Native APP, Web APP and Wechat-similar APP information synchronization system
CN1980144A (en) Method for quickly configurating large data-quantity network management data
CN104363122B (en) A kind of method for pre-configuration and system of network element
CN103595550A (en) Network-topology displaying method for EOC device
CN104536965A (en) System and method for data query and presentation under big data condition
CN110086640A (en) The enabled method and apparatus of business
CN106998338A (en) A kind of method and device for realizing VNF deployment
CN107819611A (en) Client method of testing based on the more service end emulation of IEC61850
CN107071013A (en) A kind of the service response method and service system of intelligent substation access regulation and control main website
CN105488288A (en) NS3 (Network Simulator Version-3) parallel analog simulation system
CN106878095A (en) A kind of network collocating method and system based on scenario distributed emulation
CN112351106A (en) Service grid platform containing event grid and communication method thereof
CN107133040A (en) A kind of standardized product service apparatus and business module extend method of replacing
WO2021037178A1 (en) Base station station-type replacement method, sdr network management system, base station station-type replacement apparatus and computer-readable storage medium
CN105700950B (en) A kind of data communications method and device
CN101778001B (en) Method and system for mutual compatibility of multi-version between SNMP (Simple Network Management Protocol) agent and managed apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for 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: 20181102