CN102946395B - The method and apparatus of analogue network element - Google Patents

The method and apparatus of analogue network element Download PDF

Info

Publication number
CN102946395B
CN102946395B CN201210480874.2A CN201210480874A CN102946395B CN 102946395 B CN102946395 B CN 102946395B CN 201210480874 A CN201210480874 A CN 201210480874A CN 102946395 B CN102946395 B CN 102946395B
Authority
CN
China
Prior art keywords
identification information
message
response message
virtual
network equipment
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.)
Active
Application number
CN201210480874.2A
Other languages
Chinese (zh)
Other versions
CN102946395A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210480874.2A priority Critical patent/CN102946395B/en
Publication of CN102946395A publication Critical patent/CN102946395A/en
Application granted granted Critical
Publication of CN102946395B publication Critical patent/CN102946395B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a kind of method and apparatus of analogue network element, method comprises: by the message sent based on the interface network equipment of libpcap/winpcap dynamic base; The identification information of Virtual NE and default identification information file being compared, when comprising the identification information of Virtual NE in default identification information file, generating response message; According to the identification information of the network equipment in response message, by response message by being sent to the network equipment based on the interface of libpcap/winpcap dynamic base.According to the method and apparatus of analogue network element of the present invention, by the interface message based on libpcap/winpcap dynamic base, only need to receive message, do not need to perform for each network element configuration IP address, the operation safeguarding IP address, so just significantly reduce the burden of this interface, the efficiency ensure that this interface message, E-Packeting, and then the normal operation of device that ensure that whole analogue network element.

Description

The method and apparatus of analogue network element
Technical field
The present invention relates to the network communications technology, particularly relate to a kind of method and apparatus of analogue network element.
Background technology
In prior art, the test for some product (such as gateway software) many times needs thousands of telecommunication apparatus to coordinate.But telecommunication apparatus is expensive, a large amount of real equipment can not be used in order to a certain test.In order to address this problem, create analogue network element technology.
Need for each network element is equipped with IP(InternetProtocol in analogue network element technology, Internet Protocol) address, in order to simulate large batch of network element, just must use large batch of IP address, normally used in analogue network element technology is virtual IP address, namely do not need the IP address all approved by network elements all on network, and be only operable IP address in the network in particular range.
Existing analogue network element technology, when using virtual ip address, be by operating system based on TCP/IP(TransmissionControlProtocol/InternetProtocol, transmission control protocol/Internet Protocol) module be network element configuration virtual ip address.But due to the complexity of the module based on ICP/IP protocol, often increase an IP address, just need for the certain system resource of this IP address assignment, distributing this system resource is to safeguard all IP addresses, such as, detect a series of activities that whether has IP address to clash etc.After IP address reaches certain data volume, the resource based on the consumption of the module of ICP/IP protocol is very high, thus causes the network processes efficiency of whole operating system to reduce, and the operational efficiency of analogue network element obviously declines.
Summary of the invention
The invention provides a kind of method and apparatus of analogue network element, in order to improve the operational efficiency of analogue network element.
First aspect present invention provides a kind of method of analogue network element, comprising: by the message sent based on the interface network equipment of libpcap/winpcap dynamic base, described message comprises the identification information of the described network equipment and the identification information of Virtual NE; Resolve the identification information obtaining described Virtual NE, and the identification information of described Virtual NE and default identification information file are compared, when comprising the identification information of described Virtual NE in described default identification information file, generate response message, described default identification information file is for storing the identification information of the Virtual NE that can simulate, and described response message comprises the identification information of the described network equipment and the identification information of described Virtual NE; According to the identification information of the network equipment described in described response message, described response message is sent to the described network equipment by the described interface based on libpcap/winpcap dynamic base.
According to first aspect, in the implementation that the first is possible, described virtual identification information comprises at least one in following information: virtual network Protocol IP address information and interface message.
In conjunction with first aspect or the first possible implementation, in the implementation that the second is possible, when the identification information of described Virtual NE is present in default virtual identifying file, generates response message and comprise: described message repeating is received message queue to first in first out; Every Preset Time detect described first in first out receive message queue, when detect in described first in first out receiving queue have described message time, generate described response message based on Simple Network Management Protocol SNMP, or generate described response message by Web server.
In conjunction with first aspect or the first possible implementation or the second mode in the cards, in the implementation that the third is possible, described response message is sent to the described network equipment by the described interface based on libpcap/winpcap dynamic base before, also comprise: described response message is forwarded to first in first out and sends message queue; Detect described first in first out every Preset Time and send message queue, when detect described first in first out send in message queue have described message time, perform the identification information according to the network equipment described in described response message, described response message is sent to the operation of the described network equipment by the described interface based on libpcap/winpcap dynamic base.
In conjunction with first aspect or the first possible implementation or the second mode in the cards or the third mode in the cards, in the 4th kind of possible implementation before the identification information of described Virtual NE and default identification information file are compared, also comprise: described message is filtered, so that the identification information of the Virtual NE in the message stayed after filter operation and default identification information file are compared.
Second aspect present invention provides a kind of device of analogue network element, comprise: receiver module, for receiving the message that the network equipment sends based on libpcap/winpcap dynamic base, described message comprises the identification information of the described network equipment and the identification information of Virtual NE; Parsing module, the message that the described network equipment sent for receiving described receiver module sends, resolves the identification information obtaining described Virtual NE, and the identification information of described Virtual NE is sent to processing module; Described processing module, for receiving the identification information of the described Virtual NE that described parsing module sends, when comprising the identification information of described Virtual NE in described default identification information file, generate response message, and described response message is sent to sending module, described default virtual identifying file is used for the identification information of storing virtual network element, and described response message comprises the identification information of the described network equipment and the identification information of described Virtual NE; Described sending module, for receiving the described response message that described processing module sends, and according to the identification information of the network equipment described in described response message, described response message is sent to the described network equipment by the described interface based on libpcap/winpcap dynamic base.
According to second aspect, in the implementation that the first is possible, described comparison module is specifically for receiving the identification information of the described Virtual NE of described parsing module transmission; The identification information of described Virtual NE and default identification information file are compared, when comprising the identification information of described Virtual NE in described default identification information file, described message repeating is received message queue to first in first out, and described default virtual identifying file is used for the identification information of storing virtual network element; Detect described first in first out every Preset Time and receive message queue, when detect in described first in first out receiving queue have message time, described response message is generated based on Simple Network Management Protocol SNMP, or generate described response message by Web server, and response message is sent to described sending module, described response message comprises the identification information of the described network equipment and the identification information of described Virtual NE.
In conjunction with second aspect or the first possible implementation, in the implementation that the second is possible, also comprise: sending module, for response message is sent to the described network equipment by the described interface based on libpcap/winpcap dynamic base.
In conjunction with second aspect or the first possible implementation or the second mode in the cards, in the implementation that the third is possible, described sending module specifically for: receive the described response message that described processing module sends; Described response message is forwarded to first in first out and sends message queue; Detect described first in first out every Preset Time and send message queue, when detect described first in first out send in message queue have described response message time, by the identification information of the network equipment described in described response message, described response message is sent to the described network equipment by the described interface based on libpcap/winpcap dynamic base.
In conjunction with second aspect or the first possible implementation or the second mode in the cards or the third mode in the cards, in the 4th kind of possible implementation, also comprise: filtering module, for filtering described message, and the message stayed after filtering is sent to comparison module.
As shown from the above technical solution, the method and apparatus of analogue network element provided by the invention, by the interface message based on libpcap/winpcap dynamic base, only need to receive message, do not need to perform for each network element configuration IP address, the operation safeguarding IP address, so just significantly reduce the burden of this interface, the efficiency ensure that this interface message, E-Packeting, and then the simulation precision that improve whole analogue network element device.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow schematic diagram of analogue network element according to an embodiment of the invention;
Fig. 2 is the method flow schematic diagram of analogue network element according to another embodiment of the present invention;
Fig. 3 is the apparatus structure schematic diagram of analogue network element according to yet another embodiment of the invention;
Fig. 4 is the apparatus structure schematic diagram of the analogue network element according to further embodiment of this invention;
Fig. 5 is the apparatus structure schematic diagram of analogue network element according to yet another embodiment of the invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment one
The present embodiment provides a kind of method of analogue network element.The method is applicable to the device of analogue network element, and the device of this analogue network element has the interface based on libpcap/winpcap dynamic base, and by the message of this interface network equipment transmission and to network equipment transmission message.The executive agent of the present embodiment is the device of analogue network element.
As shown in Figure 1, be the schematic flow sheet of the method for the analogue network element according to the present embodiment.The method comprises:
Step 101, by based on libpcap/winpcap(windowspacketcapture) message that the interface network equipment of dynamic base sends, message comprises the identification information of the network equipment and the identification information of Virtual NE.
Libpcap and wincap is all the network data Packet capturing function bags under unix/linux platform.The device of analogue network element has the interface based on libpcap or wincap dynamic base, and this interface can be specially API(ApplicationProgrammingInterface, application programming interface) interface.Interface based on libpcap/wincap dynamic base is different from the module based on ICP/IP protocol, interface based on this libpcap/wincap dynamic base only needs to receive message and the receiver module being sent to the device of analogue network element, subsequent treatment is carried out again by receiver module, do not need to perform as each network element configuration IP address, the operation safeguarding IP address, so just significantly reduce the burden of this interface.
The identification information of the network equipment can comprise IP address and/or the interface message of this network equipment, can also comprise MAC Address, for finding this network equipment; The identification information of Virtual NE comprises IP address and/or the port information of Virtual NE, can also comprise MAC Address, for finding Virtual NE.
Step 102, resolve the identification information obtaining described Virtual NE, and the identification information of Virtual NE and default identification information file are compared, when comprising the identification information of Virtual NE in default identification information file, generate response message, preset identification information file for storing the identification information of the Virtual NE that can simulate, response message comprises the identification information of the network equipment and the identification information of Virtual NE.
Preset the identification information that identification information file comprises each Virtual NE, this identification information can comprise at least one in following information: virtual network Protocol IP address information and port information.The concrete implementation of this default identification information file can be list.
When finding the identification information of the Virtual NE comprised in message in default identification information file, this Virtual NE of the unit simulation of this Virtual NE being just described, can processing this message, otherwise by this packet loss, disregarding.
Comprise the identification information of the network equipment and the identification information of Virtual NE in response message, the network equipment can be made to think, and this response message is that this Virtual NE processes the response message of rear generation to this message, reaches the effect of analogue network element simultaneously.
Step 103, according to the identification information of the network equipment in response message, by response message by being sent to the network equipment based on the interface of libpcap/winpcap dynamic base.
Response message is sent to the network equipment by the interface stated based on libpcap/winpcap dynamic base by the device of analogue network element, and realization is mutual with the network equipment.
According to the method for the analogue network element of the present embodiment, can analogue network element in enormous quantities, and by the interface message based on libpcap/winpcap dynamic base, only need to receive message, do not need to perform for each network element configuration IP address, the operation safeguarding IP address, so just significantly reduce the burden of this interface, the efficiency ensure that this interface message, E-Packeting, and then the simulation precision that improve whole analogue network element device.
Alternatively, after step 101, and before step 102, also comprise:
Message is filtered.
The interface of the device of analogue network element can receive the message of all this interfaces of arrival, but having in these messages is not much message by the device process of this analogue network element, such as when the device of analogue network element carries out process generation response message based on snmp protocol, can only to UDP(UserDataProtocol, User Datagram Protoco (UDP)) message carries out process and generates response message.Filter now can be adopted to filter message, such as, call pcap filter and message is filtered, filter condition is set and be UDP message and interface number is 161 or 162, the message not meeting this condition is all abandoned.
Embodiment two
The present embodiment provides a kind of method of analogue network element based on embodiment one.As shown in Figure 2, be the schematic flow sheet of the method for the analogue network element according to the present embodiment.
Step 201, by the message sent based on the interface network equipment of libpcap/winpcap dynamic base, message comprises identification information and the Virtual NE IP address information of this network equipment.
This step is concrete consistent with step 101, does not repeat them here.
Step 202, filters the message received.
The device of analogue network element filters the message received according to the filter condition preset.The filter condition preset can be arranged according to the interface of the type of message, reception message.Such as, not will UDP message and the message that interface number is not 161 or 162 all abandons.
Step 203, compares the IP information of the Virtual NE in the message stayed after filter operation and default IP message file, judges whether the IP information of the Virtual NE in message is arranged in default IP message file.When the IP information of the Virtual NE in message is arranged in default IP message file, perform step 204, otherwise, by this packet loss.
It is pointed out that the IP information of this step also can change port information into, like this, presetting identification information file is exactly preset interface message file.
Step 204, forward the packet to first in first out reception message queue, and detect first in first out reception message queue every Preset Time, when detect in first in first out receiving queue have message time, based on SNMP(SimpleNetworkManagementProtocol, Simple Network Management Protocol) generate response message, Web server can also be adopted to generate response message.This Web server can be integrated in the device of analogue network element, and Web is the Framework of Web service.
Step 205, is forwarded to first in first out and sends message queue by response message, and detects every Preset Time the response message whether first in first out transmission message queue has needs transmission.
Step 206, when detect first in first out send in message queue have the response message that need send time, by this response message by being sent to the network equipment based on the interface of libpcap/winpcap dynamic base.
The first in first out of the present embodiment receives message queue and first in first out transmission message queue can store separately in the device of analogue network element.
The setting that first in first out in the present embodiment receives message queue is to ensure that the message arrived first can first be processed, equally, first in first out send message queue setting be to ensure that the response message first generated can first be sent out.
According to the method for the analogue network element of the present embodiment, by the interface message based on libpcap/winpcap dynamic base, only need to receive message, do not need to perform for each network element configuration IP address, safeguard the operation of IP address, so just significantly reduce the burden of this interface, ensure that this interface message, the efficiency E-Packeted, in addition, the setting of message queue and first in first out transmission message queue is received by first in first out, can ensure that the message arrived first is by priority treatment, the response message first generated can preferentially be sent out, thus ensure the normal operation of the device of whole analogue network element further.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Embodiment three
The present embodiment provides a kind of device of analogue network element, for performing the method for the analogue network element of embodiment one.
As shown in Figure 3, be the structural representation of the device 300 of the analogue network element according to the present embodiment.The device 300 of this analogue network element comprises: receiver module 301, parsing module 302, processing module 303 and sending module 304.
Wherein, the message that receiver module 301 sends for receiving the network equipment 310 based on libpcap/winpcap dynamic base, and message is sent to parsing module 302, message comprises the identification information of the network equipment 310 and the identification information of Virtual NE; The message that parsing module 302 sends for the network equipment 310 receiving receiver module 301 transmission, resolves the identification information obtaining Virtual NE, and the identification information of Virtual NE is sent to processing module 303; Processing module 303 is for receiving the identification information of the Virtual NE of parsing module 302 transmission, when comprising the identification information of Virtual NE in default identification information file, generate response message, and response message is sent to sending module 304, preset the identification information that virtual identifying file is used for storing virtual network element, response message comprises the identification information of the network equipment 310 and the identification information of Virtual NE; The response message that sending module 304 sends for receiving processing module 303, and according to the identification information of the network equipment in response message 310, by response message by being sent to the network equipment 310 based on the interface of libpcap/winpcap dynamic base.
Receiver module 301 in the present embodiment is a kind of concrete form based on the port of libpcap/winpcap dynamic base in above-described embodiment, and namely interface can adopt the mode of module.
The concrete operations of the device 300 of the analogue network element of the present embodiment are consistent with embodiment one, do not repeat them here.
According to the device 300 of the analogue network element of the present embodiment, receiver module 301 based on libpcap/winpcap dynamic base only needs to receive message, do not need to perform for each network element configuration IP address, the operation safeguarding IP address, so just significantly reduce the burden of this interface, the efficiency ensure that this interface message, E-Packeting, and then ensure that the normal operation of device 300 of whole analogue network element, further, the device 300 of this analogue network element can large batch of analogue network element.
Alternatively, as shown in Figure 4, the device 300 of the analogue network element of the present embodiment also comprises filtering module 401, and the message stayed after filtering for filtering message, and is sent to parsing module 302 by this filtering module 401.
The interface of the device 300 of analogue network element can receive the message of all this interfaces of arrival, but having in these messages is not much the message processed by the device 300 of this analogue network element, such as when the device 300 of analogue network element processes message based on snmp protocol, can only to UDP(UserDataProtocol, User Datagram Protoco (UDP)) message processes.Filter now can be adopted to filter message, such as, call pcap filter and message is filtered, filter condition is set and be UDP message and interface number is 161 or 162, the message not meeting this condition is all abandoned.
Embodiment four
The device of the present embodiment to the analogue network element of embodiment three does further supplementary notes.
Processing module 303 in the device 300 of this analogue network element specifically for:
Receive the identification information of the Virtual NE that parsing module 302 sends;
The identification information of Virtual NE and default identification information file are compared, when comprising the identification information of Virtual NE in default identification information file, forward the packet and receive message queue to first in first out, preset the identification information that virtual identifying file is used for storing virtual network element;
Detect first in first out every Preset Time and receive message queue, when detect in first in first out receiving queue have message time, response message is generated based on Simple Network Management Protocol SNMP, or generate response message by Web server, and response message is sent to sending module 304, response message comprises the identification information of the network equipment 310 and the identification information of Virtual NE.
Alternatively, sending module 304 specifically for:
The response message that receiving processing module 303 sends;
Response message is forwarded to first in first out and sends message queue;
Detect first in first out every Preset Time and send message queue, when detect first in first out send in message queue have response message time, according to the identification information of the network equipment in response message 310, by response message by being sent to the network equipment 310 based on the interface of libpcap/winpcap dynamic base.
The function of all the other modules of the device 300 of the analogue network element of the present embodiment is all consistent with embodiment three, does not repeat them here.
The concrete operation method of the device 300 of the analogue network element of the present embodiment is consistent with embodiment two, does not repeat them here.
According to the device 300 of the analogue network element of the present embodiment, receiver module 301 based on libpcap/winpcap dynamic base only needs to receive message, do not need to perform for each network element configuration IP address, safeguard the operation of IP address, so just significantly reduce the burden of this interface, ensure that this interface message, the efficiency E-Packeted, in addition, the setting of message queue and first in first out transmission message queue is received by first in first out, can ensure that the message arrived first is by priority treatment, generate response message, the response message first generated can preferentially be sent out, thus ensure the normal operation of the device 300 of whole analogue network element further.
Embodiment five
The present embodiment provides the device of another kind of analogue network element, for performing the method for the analogue network element of embodiment one and embodiment two.
As shown in Figure 5, be the structural representation of the device of the analogue network element according to the present embodiment.The device 500 of this analogue network element comprises at least one processor 501, communication bus 502, memory 503 and at least one communication interface 504.
Wherein, communication bus 502 is for the connection that realizes between said modules and communicate, and communication interface 504 is for being connected with the network equipment and communicating.This bus can be ISA(IndustryStandardArchitecture, industry standard architecture) bus, PCI(PeripheralComponent, peripheral component interconnect) bus or EISA(ExtendedIndustryStandardArchitecture, extended industry-standard architecture) bus etc.Described bus can be one or more physical circuit, can be divided into address bus, data/address bus, control bus etc. when being many physical circuits.
Wherein, memory 503 is for stores executable programs code, and wherein, processor 501 runs the program corresponding with executable program code by reading the executable program code stored in memory 503, for:
By the message sent based on the interface network equipment of libpcap/winpcap dynamic base, message comprises the identification information of the network equipment and the identification information of Virtual NE;
The identification information of Virtual NE and default identification information file are compared, when comprising the identification information of Virtual NE in default identification information file, generate response message, preset identification information file for storing the identification information of the Virtual NE that can simulate, response message comprises the identification information of the network equipment and the identification information of Virtual NE;
According to the identification information of the network equipment in response message, by response message by being sent to the network equipment based on the interface of libpcap/winpcap dynamic base.
Wherein, the identification information of Virtual NE comprises at least one in following information: virtual network Protocol IP address information and port information.
Alternatively, processor 501 is running the program corresponding with executable program code by reading the executable program code stored in memory 503, during for generation response message, specifically can comprise:
Forward the packet to first in first out reception message queue;
Detect first in first out every Preset Time and receive message queue, when detect in first in first out receiving queue have message time, generate response message based on Simple Network Management Protocol SNMP, or generate response message by Web server.
Alternatively, processor 501 is running the program corresponding with executable program code by reading the program code held stored in memory 503, for the identification information according to the network equipment in response message, by response message by before being sent to the network equipment based on the interface of libpcap/winpcap dynamic base, program corresponding to executable program code can also be run by reading the executable program code stored in memory 503, for:
Response message is forwarded to first in first out and sends message queue;
Detect first in first out every Preset Time and send message queue, when detect first in first out send in message queue have response message time, perform the identification information according to the network equipment in response message, by response message by being sent to the operation of the network equipment based on the interface of libpcap/winpcap dynamic base.
Alternatively, processor 501 is running the program corresponding with executable program code by reading the executable program code stored in memory 503, before the identification information of Virtual NE and default identification information file are compared, the executable program code reading storage in memory 503 can also be crossed and run the program corresponding with executable program code, for:
Message is filtered, so that the identification information of the Virtual NE in the message stayed after filter operation and default identification information file are compared.
According to the device 500 of the analogue network element of the present embodiment, only need to receive message, do not need to perform for each network element configuration IP address, the operation safeguarding IP address, so just significantly reduce the burden of this interface, the efficiency ensure that this interface message, E-Packeting, in addition, the setting of message queue and first in first out transmission message queue is received by first in first out, can ensure that the message arrived first is by priority treatment, generate response message, the response message first generated can preferentially be sent out, thus ensures the normal operation of the device of whole analogue network element further.
The present invention program can describe in the general context of computer executable instructions, such as program unit.Usually, program unit comprises the routine, program, object, assembly, data structure etc. that perform particular task or realize particular abstract data type.Also can put into practice the present invention program in a distributed computing environment, in these distributed computing environment (DCE), be executed the task by the remote processing devices be connected by communication network.In a distributed computing environment, program unit can be arranged in the local and remote computer-readable storage medium comprising memory device.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device embodiment, because it is substantially similar to embodiment of the method, so describe fairly simple, relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
It should be noted that, device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.In addition, in device embodiment accompanying drawing provided by the invention, the annexation between module represents to have communication connection between them, specifically can be implemented as one or more communication bus or holding wire.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required common hardware by software and realize, and can certainly comprise application-specific integrated circuit (ASIC), dedicated cpu, private memory, special components and parts etc. realize by specialized hardware.Generally, all functions completed by computer program can realize with corresponding hardware easily, and the particular hardware structure being used for realizing same function also can be diversified, such as analog circuit, digital circuit or special circuit etc.But under more susceptible for the purpose of the present invention condition, software program realizes is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in the storage medium that can read, as the floppy disk of computer, USB flash disk, portable hard drive, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, RandomAccessMemory), magnetic disc or CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform method described in the present invention each embodiment.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (13)

1. a method for analogue network element, is characterized in that, comprising:
By the message sent based on the interface network equipment of libpcap/winpcap dynamic base, described message comprises the identification information of the described network equipment and the identification information of Virtual NE;
Resolve the identification information obtaining described Virtual NE, and the identification information of described Virtual NE and default identification information file are compared, when comprising the identification information of described Virtual NE in described default identification information file, generate response message, described default identification information file is for storing the identification information of the Virtual NE that can simulate, and described response message comprises the identification information of the described network equipment and the identification information of described Virtual NE;
According to the identification information of the network equipment described in described response message, described response message is sent to the described network equipment by the described interface based on libpcap/winpcap dynamic base.
2. the method for analogue network element according to claim 1, is characterized in that, the identification information of described Virtual NE comprises at least one in following information: virtual network Protocol IP address information and port information.
3. the method for analogue network element according to claim 1 and 2, is characterized in that, when the identification information of described Virtual NE is present in default virtual identifying file, generates response message and comprises:
Described message repeating is received message queue to first in first out;
Every Preset Time detect described first in first out receive message queue, when detect in described first in first out receiving queue have described message time, generate described response message based on Simple Network Management Protocol SNMP, or generate described response message by Web server.
4. the method for analogue network element according to claim 1 and 2, it is characterized in that, at the identification information according to the network equipment described in described response message, before described response message is sent to the described network equipment by the described interface based on libpcap/winpcap dynamic base, also comprise:
Described response message is forwarded to first in first out and sends message queue;
Detect described first in first out every Preset Time and send message queue, when detect described first in first out send in message queue have described response message time, perform the identification information according to the network equipment described in described response message, described response message is sent to the operation of the described network equipment by the described interface based on libpcap/winpcap dynamic base.
5. the method for analogue network element according to claim 3, it is characterized in that, at the identification information according to the network equipment described in described response message, before described response message is sent to the described network equipment by the described interface based on libpcap/winpcap dynamic base, also comprise:
Described response message is forwarded to first in first out and sends message queue;
Detect described first in first out every Preset Time and send message queue, when detect described first in first out send in message queue have described response message time, perform the identification information according to the network equipment described in described response message, described response message is sent to the operation of the described network equipment by the described interface based on libpcap/winpcap dynamic base.
6. the method for analogue network element according to claim 1 and 2, is characterized in that, before the identification information of described Virtual NE and default identification information file being compared, also comprises:
Described message is filtered, so that the identification information of the Virtual NE in the message stayed after filter operation and default identification information file are compared.
7. the method for analogue network element according to claim 3, is characterized in that, before the identification information of described Virtual NE and default identification information file being compared, also comprises:
Described message is filtered, so that the identification information of the Virtual NE in the message stayed after filter operation and default identification information file are compared.
8. the method for analogue network element according to claim 4, is characterized in that, before the identification information of described Virtual NE and default identification information file being compared, also comprises:
Described message is filtered, so that the identification information of the Virtual NE in the message stayed after filter operation and default identification information file are compared.
9. a device for analogue network element, is characterized in that, comprising:
Receiver module, for receiving the message that the network equipment sends based on libpcap/winpcap dynamic base, and described message is sent to parsing module, described message comprises the identification information of the described network equipment and the identification information of Virtual NE;
Parsing module, the message that the described network equipment sent for receiving described receiver module sends, resolves the identification information obtaining described Virtual NE, and the identification information of described Virtual NE is sent to processing module;
Described processing module, for receiving the identification information of the described Virtual NE that described parsing module sends, when comprising the identification information of described Virtual NE in default identification information file, generate response message, and described response message is sent to sending module, preset the identification information that virtual identifying file is used for storing virtual network element, described response message comprises the identification information of the described network equipment and the identification information of described Virtual NE;
Described sending module, for receiving the described response message that described processing module sends, and according to the identification information of the network equipment described in described response message, described response message is sent to the described network equipment by the described interface based on libpcap/winpcap dynamic base.
10. the device of analogue network element according to claim 9, is characterized in that, described processing module specifically for:
Receive the identification information of the described Virtual NE that described parsing module sends;
The identification information of described Virtual NE and default identification information file are compared, when comprising the identification information of described Virtual NE in described default identification information file, described message repeating is received message queue to first in first out, and described default virtual identifying file is used for the identification information of storing virtual network element;
Detect described first in first out every Preset Time and receive message queue, when detect in described first in first out receiving queue have message time, described response message is generated based on Simple Network Management Protocol SNMP, or generate described response message by Web server, and described response message is sent to described sending module, described response message comprises the identification information of the described network equipment and the identification information of described Virtual NE.
The device of 11. analogue network elements according to claim 9 or 10, is characterized in that, described sending module specifically for:
Receive the described response message that described processing module sends;
Described response message is forwarded to first in first out and sends message queue;
Detect described first in first out every Preset Time and send message queue, when detect described first in first out send in message queue have described response message time, according to the identification information of the network equipment described in described response message, described response message is sent to the described network equipment by the described interface based on libpcap/winpcap dynamic base.
The device of 12. analogue network elements according to claim 9 or 10, is characterized in that, also comprise:
Filtering module, for filtering described message, and is sent to described processing module by the message stayed after filtering.
The device of 13. analogue network elements according to claim 11, is characterized in that, also comprise:
Filtering module, for filtering described message, and is sent to described processing module by the message stayed after filtering.
CN201210480874.2A 2012-11-23 2012-11-23 The method and apparatus of analogue network element Active CN102946395B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210480874.2A CN102946395B (en) 2012-11-23 2012-11-23 The method and apparatus of analogue network element

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210480874.2A CN102946395B (en) 2012-11-23 2012-11-23 The method and apparatus of analogue network element

Publications (2)

Publication Number Publication Date
CN102946395A CN102946395A (en) 2013-02-27
CN102946395B true CN102946395B (en) 2015-12-02

Family

ID=47729302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210480874.2A Active CN102946395B (en) 2012-11-23 2012-11-23 The method and apparatus of analogue network element

Country Status (1)

Country Link
CN (1) CN102946395B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103281335A (en) * 2013-06-18 2013-09-04 东华大学 Embedded network protocol stack development method based on WinPcap

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1434382A (en) * 2002-04-01 2003-08-06 北京港湾网络有限公司 Test method and system for IEEE 802.1x network insertion equipment
CN1571367A (en) * 2003-07-14 2005-01-26 华为技术有限公司 A method for simulating network equipment
CN1735046A (en) * 2004-08-09 2006-02-15 华为技术有限公司 Goal device service realization testing method and system
CN101719692A (en) * 2009-12-22 2010-06-02 江西省电力科学研究院 Method for acquiring network data and analyzing network performance for digital substation
CN101795173A (en) * 2010-01-21 2010-08-04 福建星网锐捷网络有限公司 Method for transmitting downlink data in wireless network and wireless access equipment
CN102096734A (en) * 2011-01-26 2011-06-15 北京中星微电子有限公司 Method and device for verifying out-of-order transfer of bus
CN102665239A (en) * 2012-05-16 2012-09-12 大唐移动通信设备有限公司 Mobile communication teaching system and PS (Packet Switch) service data processing method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100195538A1 (en) * 2009-02-04 2010-08-05 Merkey Jeffrey V Method and apparatus for network packet capture distributed storage system
US8413248B2 (en) * 2006-03-22 2013-04-02 Michael B. Rash Method for secure single-packet remote authorization

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1434382A (en) * 2002-04-01 2003-08-06 北京港湾网络有限公司 Test method and system for IEEE 802.1x network insertion equipment
CN1571367A (en) * 2003-07-14 2005-01-26 华为技术有限公司 A method for simulating network equipment
CN1735046A (en) * 2004-08-09 2006-02-15 华为技术有限公司 Goal device service realization testing method and system
CN101719692A (en) * 2009-12-22 2010-06-02 江西省电力科学研究院 Method for acquiring network data and analyzing network performance for digital substation
CN101795173A (en) * 2010-01-21 2010-08-04 福建星网锐捷网络有限公司 Method for transmitting downlink data in wireless network and wireless access equipment
CN102096734A (en) * 2011-01-26 2011-06-15 北京中星微电子有限公司 Method and device for verifying out-of-order transfer of bus
CN102665239A (en) * 2012-05-16 2012-09-12 大唐移动通信设备有限公司 Mobile communication teaching system and PS (Packet Switch) service data processing method

Also Published As

Publication number Publication date
CN102946395A (en) 2013-02-27

Similar Documents

Publication Publication Date Title
EP3275140B1 (en) Technique for achieving low latency in data center network environments
CN105721535A (en) Parallel processing of service functions in service function chains
US10715426B2 (en) Processing rule modification method, apparatus and device
CN110266761B (en) Load balancing application creation method and device, computer equipment and storage medium
CN104702560A (en) Method and device for preventing message attack
CN103931162A (en) Method for processing service and network equipment
CN106330951A (en) Network protection method, network protection device and network protection system
CN107766149B (en) Method and device for ZooKeeper cluster configuration based on DUBBO
CN111371608B (en) Method, device and medium for deploying SFC service chain
CN108304272B (en) Data IO request processing method and device
US10375250B2 (en) Gate way device, communication system, communication method, and communication program
CN110912725A (en) Configuration method and configuration device of OpenFlow virtual switch
CN102946395B (en) The method and apparatus of analogue network element
EP3240251A1 (en) Line card determination, determination processing method and device, and line card determination system
US10728171B2 (en) Governing bare metal guests
CN110995542B (en) Network state detection method, system and related equipment
EP3163818A1 (en) Packet processing method and related device for network device
CN106559439B (en) A kind of method for processing business and equipment
CN110365742B (en) Multi-active load balancing application creation method and device, computer equipment and storage medium
CN113904871A (en) Network slice access method, PCF entity, terminal and communication system
CN107454021B (en) Communication method and device
CN107819707B (en) Data processing method and device, physical machine, virtual switch and system
CN111585838A (en) Splitting detection method and device based on VSM system
CN110990117A (en) Method, device and computer readable storage medium for deploying virtual machine
CN112333010B (en) Method and device for supporting automatic configuration of high-availability environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant