CN105610619B - A kind of network element managing method and apparatus - Google Patents

A kind of network element managing method and apparatus Download PDF

Info

Publication number
CN105610619B
CN105610619B CN201511025755.8A CN201511025755A CN105610619B CN 105610619 B CN105610619 B CN 105610619B CN 201511025755 A CN201511025755 A CN 201511025755A CN 105610619 B CN105610619 B CN 105610619B
Authority
CN
China
Prior art keywords
network element
address
network
snmp
management system
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
CN201511025755.8A
Other languages
Chinese (zh)
Other versions
CN105610619A (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.)
GELIN WEIER SCI-TECH DEVELOPMENT Co Ltd BEIJING
Gw Delight Technology Co Ltd
Original Assignee
GELIN WEIER SCI-TECH DEVELOPMENT Co Ltd BEIJING
Gw Delight Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GELIN WEIER SCI-TECH DEVELOPMENT Co Ltd BEIJING, Gw Delight Technology Co Ltd filed Critical GELIN WEIER SCI-TECH DEVELOPMENT Co Ltd BEIJING
Priority to CN201511025755.8A priority Critical patent/CN105610619B/en
Publication of CN105610619A publication Critical patent/CN105610619A/en
Application granted granted Critical
Publication of CN105610619B publication Critical patent/CN105610619B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2514Translation of Internet protocol [IP] addresses between local and global IP addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/256NAT traversal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of network element managing method and apparatus, technical solution are as follows: receiving purpose IP address, destination slogan that network management system is sent is respectively the public network IP address of Gateway Network Element and the SNMP message of the corresponding first end slogan of any interior network element, the purpose IP address of SNMP message, destination slogan are respectively modified as to the private network IP address and snmp management port numbers of the interior network element, send the interior network element for modified SNMP message;The SNMP response message that the interior network element returns is received, the purpose IP address of SNMP response message, destination slogan are respectively modified as to source IP address, the source port number of SNMP message, modified SNMP response message is sent back into network management system.The present invention can reduce the waste of public ip address.

Description

A kind of network element managing method and apparatus
Technical field
This application involves field of communication technology, in particular to a kind of network element managing method and apparatus.
Background technique
Simple Network Management Protocol (SNMP) is widely used in communication network and carrys out management equipment, the equipment for being managed, Other than needing support snmp protocol, a prerequisite is just the need for an independent IP address, with network management system into Row communication.This equipment for possessing separate tP address is known as network element device.
When managing network elements by network management system equipment, the SNMP message of standard can be sent to managed element by UDP mode and set It is standby, after managed element equipment receives the request message, corresponding SNMP response message is organized to send back to network management system, completes pipe Manage the transmission of information.The communication of this SNMP message is to need to communicate double based on the application layer communication on the basis of three layers of IP address The IP address of side is reachable.Network element device quantity in network is more, it is necessary to the more IP address of distribution.Due to public ip address Resource is limited, all distributes a public ip address if it is each network element device, will result in the big of public ip address resource Amount consumption.
In existing network, generally pass through network address translation (Network Address Translation, NAT) skill Art solves the problems, such as publicly-owned IP inadequate resource.Choosing a network element device in network is Gateway Network Element, only for its distribution One public network IP address, and interior network element all uses private IP address, the access of the internal network element of network management system all passes through gateway Network element is forwarded, and not only realizes network management requirement to reach, but also saves the purpose of publicly-owned IP resource.
However in existing network, there are many more many equipment of early stage, or since its chip does not support nat feature, Or due to cost etc. of hardware redevelopment, do not have the ability of gateway NAT, can only continue to use public network have IP address into The management of row network element device, cause public ip address resource carrys out more significant wastage.
Summary of the invention
In view of this, can be reduced publicly-owned the purpose of the present invention is to provide a kind of network element managing method and apparatus The waste of IP address.
To achieve the above object, technical solution provided by the invention are as follows:
A kind of network element managing method is applied to Gateway Network Element, the private of each interior network element is stored in Gateway Network Element Net IP address, the corresponding first end slogan of the interior network element and second end slogan set, it is every in the second end slogan set A second end slogan is associated with a network management system, this method comprises:
Receive a network management system transmission purpose IP address, destination slogan be respectively Gateway Network Element public network IP address and The SNMP message of the corresponding first end slogan of any interior network element distinguishes the purpose IP address of SNMP message, destination slogan It is revised as the private network IP address and snmp management port numbers of the interior network element, sends the Intranet net for modified SNMP message Member;
Receive private network IP address that purpose IP address, the destination slogan that the interior network element returns are respectively Gateway Network Element and The SNMP response message of the corresponding second end slogan for being associated with the network management system of the interior network element, by the mesh of SNMP response message IP address, destination slogan be respectively modified as the source IP address of SNMP message, source port number, by modified SNMP response report Text sends back the network management system.
A kind of network element managing device, is applied to Gateway Network Element, which includes: storage unit, receiving unit, processing Unit, transmission unit;
The storage unit, for storing private network IP address, the corresponding first end of the interior network element of each interior network element Slogan and second end slogan set, each second end slogan in the second end slogan set are associated with a network management system;
The receiving unit, for receiving the purpose IP address of network management system transmission, destination slogan is respectively gateway The SNMP message of the public network IP address of network element and the corresponding first end slogan of any interior network element;It is returned for receiving the interior network element Purpose IP address, the destination slogan returned are respectively that interior network element is corresponding is associated with this with this for the private network IP address of Gateway Network Element The SNMP response message of the second end slogan of network management system;
The processing unit, for receiving unit to be received to purpose IP address, the destination port of network management system transmission Number be respectively Gateway Network Element public network IP address and the corresponding first end slogan of any interior network element SNMP message after, by SNMP Purpose IP address, the destination slogan of message are respectively modified as the private network IP address and snmp management port numbers of the interior network element, And transmission unit is notified to send the interior network element for modified SNMP message;The interior network element is received for receiving unit Purpose IP address, the destination slogan of return are respectively that interior network element is corresponding is associated with this for the private network IP address of Gateway Network Element After the SNMP response message of the second end slogan of the network management system, by the purpose IP address of SNMP response message, destination slogan It is respectively modified as source IP address, the source port number of SNMP message, and transmission unit is notified to send out modified SNMP response message Send the network management system back to.
In conclusion the first end slogan for each interior network element of making an appointment is corresponding with the interior network element in the present invention The second end slogan for being associated with each network management system, purpose IP address is arranged in the SNMP message that any network management system issues For the public ip address of Gateway Network Element, destination slogan is arranged as the corresponding first end slogan of purpose Intranet network element, to make SNMP message can be normally received by public ip address and be found according to the destination slogan of message by obtaining Gateway Network Element Target Intranet network element is wanted, and then using the private network IP address of network element in target, snmp management port numbers replace the SNMP message Purpose IP address and destination slogan so that interior network element thought oneself to receive is exactly a normal SNMP message, SNMP response message, which is generated, hence into snmp stack is sent to Gateway Network Element.Network management system can be to not having in the present invention The management of the interior network element of public network IP address, it is thus possible to effectively reduce the public ip address wasting of resources, alleviate public ip address The pressure of resource anxiety.
Detailed description of the invention
Fig. 1 is the networking schematic diagram of managing network elements by network management system equipment of the embodiment of the present invention;
Fig. 2 is communication process schematic diagram of the network management system of the embodiment of the present invention to interior network element;
Fig. 3 be in the embodiment of the present invention network element to the communication process schematic diagram of network management system;
Fig. 4 is network element managing method flow diagram of the embodiment of the present invention;
Fig. 5 is the structural schematic diagram of network element managing device of the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention more comprehensible, right hereinafter, referring to the drawings and the embodiments, Scheme of the present invention is described in further detail.
It is the networking schematic diagram of managing network elements by network management system equipment of the embodiment of the present invention referring to Fig. 1, Fig. 1, as shown in Figure 1, Network element A and network element B, network element C, network element D, network management system 1, network management system 2 are respectively connected with, wherein network element A is Gateway Network Element, tool There are public network IP address 201.0.0.1, private network IP address 192.168.0.1, network element B, network element C, network element D are interior network element, only With private network IP address, private network IP address is respectively 192.168.0.2,192.168.0.3,192.168.0.4;Network management system 1 has public network IP address 200.0.0.1, and network management system 2 has public network IP address 200.0.0.2.
Below in conjunction with Fig. 1, to network management system of the present invention to interior network element (the network element B, network element under Gateway Network Element (network element A) C, network element D) principle that is managed is illustrated.
The first step, configuration
The corresponding first end slogan of each Intranet network element configuration can be directed to by Gateway Network Element (network element A) or other equipment, Meanwhile the corresponding second end slogan for being associated with each network management system of each interior network element of configuration.Assuming that configuration result is as follows:
It is respectively as follows: 2161,3161,4161 for the first end slogan of network element B, network element C, network element D configuration;
The corresponding second end slogan for being associated with network management system 1 of network element B is 2161, and network element B is corresponding to be associated with network management system The second end slogan of system 2 is 2162;Therefore, the corresponding second end slogan set of network element B is { 2161,2162 };
The corresponding second end slogan for being associated with network management system 1 of network element C is 3161, and network element C is corresponding to be associated with network management system The second end slogan of system 2 is 3162;Therefore, the corresponding second end slogan set of network element C is { 3161,3162 };
The corresponding second end slogan for being associated with network management system 1 of network element D is 4161, and network element C is corresponding to be associated with network management system The second end slogan of system 2 is 4162;Therefore, the corresponding second end slogan set of network element C is { 4161,4162 };
Gateway Network Element A is notified above-mentioned for the corresponding first end slogan of each Intranet network element configuration to all network management systems System, comprising: notify network element B, network element C, the corresponding first end slogan of network element D to network management system 1 and network management system 2.
In the present invention, private network IP address, a first end slogan etc. comprising interior network element can be used in Gateway Network Element The table of content indicates the corresponding relationship of interior network element and first end slogan;Using a private network IP comprising interior network element The table of the contents such as location, the public network IP address of network management system, second end slogan, to indicate interior network element, network management system, second port Related incidence relation between number.
Second step generates socket
Gateway Network Element (network element A) generates socket for interior network element B:
Gateway Network Element is generated based on itself public network IP address 201.0.0.1, the corresponding first end slogan 2161 of network element B The socket (the first socket) of the corresponding public network side network element B;
For Gateway Network Element based on itself private network IP address 192.168.0.1, network element B is corresponding to be associated with network management system 1 Second end slogan 2161 generates the socket (the 2nd socket) of the corresponding private network side for being associated with network management system 1 of network element B;Base In the private network IP address 192.168.0.1 of itself, the corresponding second end slogan 2162 for being associated with network management system 2 of network element B is generated The socket (the 2nd socket) of the corresponding private network side for being associated with network management system 2 of network element B.
Gateway Network Element (network element A) generates socket for interior network element C:
Gateway Network Element is generated based on itself public network IP address 201.0.0.1, the corresponding first end slogan 3161 of network element C The socket (the first socket) of the corresponding public network side network element C;
For Gateway Network Element based on itself private network IP address 192.168.0.1, network element C is corresponding to be associated with network management system 1 Second end slogan 3161 generates the corresponding socket (the 2nd socket) for being associated with 1 private network side of network management system of network element C;It is based on The corresponding second end slogan 3162 for being associated with network management system 2 of the private network IP address 192.168.0.1 of itself, network element C generates net The socket (the 2nd socket) of the corresponding private network side for being associated with network management system 2 of first C.
Gateway Network Element (network element A) generates socket for interior network element D:
Gateway Network Element is generated based on itself public network IP address 201.0.0.1, the corresponding first end slogan 4161 of network element D The socket (the first socket) of the corresponding public network side network element D;
For Gateway Network Element based on itself private network IP address 192.168.0.1, network element D is corresponding to be associated with network management system 1 Second end slogan 4161 generates the socket (the 2nd socket) of the corresponding private network side for being associated with network management system 1 of network element D;Base In the private network IP address 192.168.0.1 of itself, the corresponding second end slogan 4162 for being associated with network management system 2 of network element D is generated The socket (the 2nd socket) of the corresponding private network side for being associated with network management system 2 of network element D.
Third step, communication
By taking 1 managed network element B of network management system as an example, communication process is as follows:
The process of SNMP message transmissions to the network element B of network management system 1 are as shown in Figure 2:
1) network management system 1 sends SNMP message, the source IP address of SNMP message are as follows: 200.0.0.1, source port number 161, Purpose IP address is 201.0.0.1, destination slogan are as follows: 2161.
2) corresponding first socket (201.0.0.1:2161) of network element B will receive the SNMP message in Gateway Network Element, will The source IP address and source port number of SNMP message are recorded as the IP address and port numbers of network management system 1;Then according to SNMP message Destination slogan (2161) can determine that target network element is network element B, therefore by the purpose IP address of SNMP message, destination slogan The private network IP address (192.168.0.2) and snmp management port numbers (161 ports of SNMP) of network element B, source IP are replaced with respectively Address, source port number replace with the private network IP address (192.168.0.1) of Gateway Network Element respectively and network element B is corresponding is associated with net The second end slogan (2161) of guard system 1;Then modified SNMP message is sent.Here, record SNMP source IP address and Source port number is the IP address and port numbers of network management system 1, when being the SNMP response message in order to receive network element B return, energy It is reversely replaced according to this source IP address and source port number, so that SNMP response message is correctly sent back network management system 1.
3) network element B receives SNMP message, executes corresponding management operation.
The process of SNMP response message transmissions to the network management system of network element B is as shown in Figure 3:
4) when network element B executes corresponding management operation according to SNMP, it can also generate SNMP response message and send, Source IP address, the source port number of SNMP response message are respectively the private network IP address (192.168.0.2) and snmp management of network element B Port numbers (161), purpose IP address, destination slogan are respectively the private network IP address (192.168.0.1) and net of Gateway Network Element The corresponding second end slogan (2161) for being associated with network management system 1 of first B.
5) corresponding 2nd socket (192.168.0.1:2161) of network element B will receive the SNMP response report in Gateway Network Element Then text determines that the destination slogan (2161) of SNMP response message is associated with network management according to the source IP address of SNMP response message System 1, therefore with replacing with the public network IP of network management system 1 respectively by the purpose IP address of SNMP response message, destination slogan Location (200.0.0.1) and port numbers (161), source IP address, source port number replace with the public network IP address of Gateway Network Element respectively The corresponding first end slogan (2161) of (201.0.0.1) and network element B;Then modified SNMP response message is sent.
6) network management system 1 receives SNMP response message, according to the port numbers 2161 in the source address of SNMP response message Network element B can be found, to know that SNMP response message is to send back to from network element B, and do corresponding processing.
So far, primary complete SNMP NMS packet communication has been completed.Network management system 1 completes primary internal network element The management of B.
In the present invention, when network management system managing intranet network element, other than the communication of the above SNMP message, there are also support The trap of SNMP is communicated.When interior network element generates alarm, alarm is sent to gateway net by interior network element in the form of trap message Member, and network management system is transmitted to by Gateway Network Element.
In order to enable Gateway Network Element that the SNMP trap message that interior network element is sent correctly is forwarded to network management system, this In invention, alerting port numbers by private network IP address, the SNMP on Gateway Network Element based on Gateway Network Element, (SNMP alerts port numbers For the socket (referred to as the 3rd socket) for 162) generating private network side, the 3rd socket is for monitoring and receiving any network element hair The SNMP trap message sent, and the interior network element for sending the message is determined according to the source IP address of SNMP trap message, in turn Determine the corresponding first end slogan of the interior network element;Then Gateway Network Element can be directed to each network management system, replicate one SNMP message, with being respectively modified as the IP of network management system by purpose IP address, the destination slogan of the SNMP trap message of duplication Location and SNMP alert port numbers, and the source IP address of SNMP trap message, source port number are respectively modified as to the public network of Gateway Network Element IP address first end slogan corresponding with the interior network element, then sends modified SNMP trap message to the network management system.
For example, network element B produces alarm, the purpose IP address and destination port in SNMP trap message of this alarm Number be respectively 192.168.0.1 and 162, SNMP trap message can be sent to Gateway Network Element A generation the 3rd socket on.Net After pass network element receives the SNMP trap message by the 3rd socket, determined according to the source IP address (192.168.0.2) of message Be network element B it is message sender, at this moment, each network management system can be directed to, the source IP address of message and source port number are distinguished Replace with the corresponding first end slogan 2161 of public network address 201.0.0.1 and network element B of Gateway Network Element, purpose IP address and purpose Port numbers replace with respectively the network management system public network IP address (200.0.0.1 of network management system 1 or network management system 2 200.0.0.2) and SNMP alerts port numbers (162), and modified trap message is sent to the network management system.The network management system After receiving the SNMP trap message, from the port numbers 2161 of source address, network element B can be found, to know the SNMP Trap message is to issue from interior network element B, and execute respective handling based on the warning content in SNMP trap message.
It should be noted that the Gateway Network Element that the present invention mentions is when sending message, it is using the source IP based on message What the socket that location, source port generate was sent.Such as in above-mentioned 1 managed network element B of network management system, Gateway Network Element will have modified source IP, source port, destination IP, destination port SNMP message when, be by based on source IP address (192.168.0.1), source port (2161) socket generated is sent.
In addition, Gateway Network Element can also be purged operation to not used socket for a long time, such as creating When socket, for the socket create a corresponding timer, if in timer time by the socket into Row communication (including sending and receiving message), then remove the socket and timer, if by being somebody's turn to do in timer time Socket is communicated, then resets the timer in communication.A large amount of free time socket can be avoided the occurrence of in this way occupies money The case where source.
The principle of managing network elements by network management system equipment of the embodiment of the present invention is described in detail above, is based on above-mentioned original Rationality explanation, The present invention gives a kind of network element managing method and a kind of network element managing device, below with reference to Fig. 4 and Fig. 5 is described in detail.
Referring to fig. 4, Fig. 4 is network element managing method flow diagram of the embodiment of the present invention, and this method is applied to Gateway Network Element, The private network IP address, the corresponding first end slogan of the interior network element and second port of each interior network element are stored in Gateway Network Element Number set, each second end slogan in the second end slogan set is associated with a network management system, as shown in figure 4, this method The following steps are included:
Step 401, the purpose IP address for receiving network management system transmission, corresponding destination slogan are respectively Gateway Network Element The SNMP message of public network IP address and the corresponding first end slogan of any interior network element, by the purpose IP address of SNMP message, mesh Port numbers be respectively modified as the private network IP address and snmp management port numbers of the interior network element, modified SNMP message is sent out It is sent to the interior network element;
Step 402 receives the private network that purpose IP address, the destination slogan that the interior network element returns are respectively Gateway Network Element The SNMP response message of the IP address second end slogan for being associated with the network management system corresponding with the interior network element, by SNMP response Purpose IP address, the destination slogan of message are respectively modified as the source IP address of SNMP message, source port number, will be modified SNMP response message sends back the network management system.
In method shown in Fig. 4,
Receive a network management system transmission purpose IP address, destination slogan be respectively Gateway Network Element public network IP address and After the SNMP message of any interior network element first port number, further comprise: by the source IP address and source port of SNMP message Number it is recorded as the IP address and port numbers of the network management system;
The purpose IP address of SNMP response message, destination slogan are respectively modified as to source IP address, the source of SNMP message The method of port numbers are as follows: the associated network management of SNMP response message destination slogan is determined according to the source IP address of SNMP response message The purpose IP address of SNMP response message, destination slogan are respectively modified as IP address and the port of the network management system by system Number.
Method shown in Fig. 4 further comprises:
Public network IP address based on Gateway Network Element, that the corresponding first end slogan of the interior network element generates the interior network element is corresponding First set section word socket, by the first socket monitor and receive the network management system transmission purpose IP address, purpose Port numbers are respectively the SNMP message of the public network IP address first end slogan corresponding with the interior network element of Gateway Network Element;
By the purpose IP address of SNMP message, destination slogan be respectively modified as the interior network element private network IP address and When snmp management port numbers, the source IP address of SNMP message, source port number are further respectively modified as to the private network of Gateway Network Element The IP address second end slogan for being associated with the network management system corresponding with the interior network element;
Private network IP address, the corresponding second port being associated in the network management system of the interior network element based on Gateway Network Element Number the corresponding second set of section word socket for being associated with the network management system of the interior network element is generated, passes through the 2nd socket and monitor It is respectively the private network IP address and the Intranet of Gateway Network Element with purpose IP address, the destination slogan for receiving interior network element transmission The SNMP response message of the corresponding second end slogan for being associated with the network management system of network element;
The purpose IP address of SNMP response message, destination slogan are respectively modified as to source IP address, the source of SNMP message When port numbers, the source IP address of SNMP response message, source port number are further respectively modified as to the public network IP of Gateway Network Element Location and the interior network element first port number.
Method shown in Fig. 4 further comprises:
Private network IP address, SNMP alarm port numbers based on Gateway Network Element generate the 3rd socket;
Monitoring and receive purpose IP address, destination slogan that any interior network element is sent by the 3rd socket is respectively The SNMP trap message of private network IP address and SNMP the alarm port numbers of Gateway Network Element, according to the source IP of SNMP trap message Location determines the corresponding first end slogan of the interior network element;For each network management system, by the destination IP of SNMP trap message Location, destination slogan are respectively modified as the IP address and SNMP alarm port numbers of network management system, by the source IP of SNMP trap message Address, source port number are respectively modified as the public network IP address of Gateway Network Element first end slogan corresponding with the interior network element, will repair SNMP trap message after changing is sent to the network management system.
In method shown in Fig. 4,
Gateway Network Element is directed to the corresponding first end slogan of each Intranet network element configuration, and is associated with for the Intranet network element configuration In the second end slogan of each network management system;
Gateway Network Element is directed to after the corresponding first end slogan of each Intranet network element configuration, further comprises: by the Intranet The corresponding first end slogan of network element is notified to all network management systems.
It is the structural schematic diagram of network element managing device of the embodiment of the present invention referring to Fig. 5, Fig. 5, which is applied to net Network element is closed, as shown in figure 5, the device includes: storage unit 501, receiving unit 502, processing unit 503, transmission unit 504; Wherein,
Storage unit 501, for storing private network IP address, the corresponding first port of the interior network element of each interior network element Number and second end slogan set, each second end slogan in the second end slogan set be associated with a network management system;
Receiving unit 502, for receiving the purpose IP address of network management system transmission, destination slogan is respectively gateway net The public network IP address of member and the SNMP message of the corresponding first end slogan of any interior network element;It is returned for receiving the interior network element Purpose IP address, destination slogan be respectively that the private network IP address of Gateway Network Element corresponding with the interior network element is associated with the net The SNMP response message of the second end slogan of guard system;
Processing unit 503, for receiving unit 502 to be received to purpose IP address, the destination of network management system transmission Slogan is respectively general after the public network IP address of Gateway Network Element and the SNMP message of the corresponding first end slogan of any interior network element Purpose IP address, the destination slogan of SNMP message are respectively modified as private network IP address and the snmp management port of the interior network element Number, and transmission unit 504 is notified to send the interior network element for modified SNMP message;It is received for receiving unit 502 Purpose IP address, the destination slogan that the interior network element returns are respectively the private network IP address and the interior network element pair of Gateway Network Element After the SNMP response message for the second end slogan for being associated with the network management system answered, by the purpose IP address of SNMP response message, Destination slogan is respectively modified as the source IP address of SNMP message, source port number, and notifies transmission unit 504 will be modified SNMP response message sends back the network management system.
In Fig. 5 shown device,
The processing unit 503 receives purpose IP address, the destination of network management system transmission in receiving unit 502 After slogan is respectively the public network IP address of Gateway Network Element and the SNMP message of the corresponding first end slogan of any interior network element, into One step is used for: the source IP address of SNMP message and source port number are recorded as to the IP address and port numbers of the network management system;
The purpose IP address of SNMP response message, destination slogan are respectively modified as SNMP report by the processing unit 503 Text source IP address, source port number when, be used for: determining the purpose of SNMP response message according to the source IP address of SNMP response message The purpose IP address of SNMP response message, destination slogan are respectively modified as the network management system by the associated network management system of port numbers The IP address and port numbers of system.
In Fig. 5 shown device,
Public network IP address of the processing unit 503 based on Gateway Network Element, the corresponding first end slogan of the interior network element are raw At the corresponding first set section word socket of the interior network element;
Network management system transmission is monitored and received to the receiving unit 502 by corresponding first socket of the Gateway Network Element Purpose IP address, destination slogan be respectively Gateway Network Element public network IP address first end slogan corresponding with the interior network element SNMP message;
The purpose IP address of SNMP message, destination slogan are respectively modified as the interior network element by the processing unit 503 Private network IP address and when snmp management port numbers, further the source IP address of SNMP message, source port number are respectively modified as The private network IP address of the Gateway Network Element second end slogan for being associated with the network management system corresponding with the interior network element;
Private network IP address of the processing unit 503 based on Gateway Network Element, the interior network element is corresponding is associated with the network management The second end slogan of system generates the corresponding second set of section word socket for being associated with the network management system of the interior network element;
The receiving unit 502 monitor and receive by the 2nd socket the purpose IP address that the interior network element sends, Destination slogan, which is respectively that the private network IP address of Gateway Network Element is corresponding with the interior network element, is associated with the second of the network management system The SNMP response message of port numbers;
The purpose IP address of SNMP response message, destination slogan are respectively modified as SNMP report by the processing unit 503 Text source IP address, source port number when, the source IP address of SNMP response message, source port number are further respectively modified as gateway The public network IP address of network element first end slogan corresponding with the interior network element.
In Fig. 5 shown device,
The processing unit 503, is further used for: private network IP address, SNMP alarm port numbers based on Gateway Network Element are raw At the 3rd socket;
The receiving unit 502, the destination IP sent for monitoring and receiving any interior network element by the 3rd socket Address, destination slogan are respectively the private network IP address of Gateway Network Element and the SNMP trap message of SNMP alarm port numbers;
The processing unit 503 is monitored and is received any interior network element by the 3rd socket for receiving unit 502 Purpose IP address, the destination slogan of transmission are respectively the private network IP address of Gateway Network Element and the SNMP of SNMP alarm port numbers After trap message, the corresponding first end slogan of the interior network element is determined according to the source IP address of SNMP trap message;For each Network management system, by the purpose IP address of SNMP trap message, destination slogan be respectively modified as the network management system IP address and SNMP alerts port numbers, with being respectively modified as the public network IP of Gateway Network Element by the source IP address of SNMP trap message, source port number Location first end slogan corresponding with the interior network element, and transmission unit 504 is notified to send modified SNMP trap message to The network management system.
In Fig. 5 shown device,
The corresponding first end slogan of each interior network element stored in Gateway Network Element, is by network management system for the Intranet net First wife postpones notice to Gateway Network Element;
Alternatively,
The processing unit 503 is directed to the corresponding first end slogan of each Intranet network element configuration, and configures the interior network element The corresponding second end slogan for being associated with each network management system;
The processing unit 503 is directed to after the corresponding first port of each Intranet network element configuration, is further used for: by this The corresponding first end slogan of interior network element is notified to all network management systems.
In conclusion by the first end slogan for the network element in each of making an appointment, the network element is corresponding is associated with it is each The second end slogan of network management system, with setting purpose IP address in the SNMP message issued the publicly-owned IP of Gateway Network Element Location sets destination slogan to the first end slogan of target network element, so that Gateway Network Element can pass through public ip address The SNMP message of network management system is normally received, and the target network element to be managed can be found according to the destination slogan of message, To be somebody's turn to do using the private network IP address of target network element, the corresponding second end slogan replacement for being associated with the network management system of target network element The purpose IP address and destination slogan of SNMP message, so that interior network element thought oneself to receive is exactly one normal SNMP message generates SNMP response message hence into snmp stack and is sent to Gateway Network Element, and should by Gateway Network Element SNMP response message, which is forwarded back to, changes network management system, to normally complete snmp management communication.As can be seen that being communicated above-mentioned Cheng Zhong, it is only necessary to distribute a public ip address for Gateway Network Element, there is public network IP address without interior network element, so that it may Snmp management communication is normally completed, so that network element can be obtained using unrestricted private IP address resource in a large amount of To management, it is thus possible to greatly save public ip address resource, alleviate the pressure of public ip address resource anxiety.In addition, this In invention, same to IP address, different port number are generated in pairs for network element, network management system in difference on Gateway Network Element Socket, the visit by this more socket mechanism, when can effectively improve multiple network management system while access network element in difference Efficiency is asked, to effectively avoid bottleneck of the Gateway Network Element as access efficiency.Finally, with the application of the invention, only needing to gateway The software of network element is upgraded, and is not had to internal network element and carried out any modification, and the cost of network upgrade can be made to be preferably minimized, Influence in line service is preferably minimized.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent replacement, improvement and so on should be included in protection of the invention Within the scope of.

Claims (10)

1. a kind of network element managing method is applied to Gateway Network Element, which is characterized in that be stored with each Intranet in Gateway Network Element The private network IP address of network element, the corresponding first end slogan of the interior network element and second end slogan set, the second end slogan collection Each second end slogan in conjunction is associated with a network management system, this method comprises:
Receive the purpose IP address of network management system transmission, destination slogan is respectively the public network IP address of Gateway Network Element and any The SNMP message of the corresponding first end slogan of interior network element, the purpose IP address of SNMP message, destination slogan are respectively modified For the private network IP address and snmp management port numbers of the interior network element, the source IP address of SNMP message, source port number are repaired respectively It is changed to the private network IP address second end slogan for being associated with the network management system corresponding with the interior network element of Gateway Network Element, will be modified SNMP message afterwards is sent to the interior network element;
It receives private network IP address that purpose IP address, the destination slogan that the interior network element returns are respectively Gateway Network Element and this is interior The SNMP response message of the corresponding second end slogan for being associated with the network management system of network element, by the destination IP of SNMP response message Address, destination slogan are respectively modified as the source IP address of SNMP message, source port number, by the source IP of SNMP response message Location, source port number are respectively modified as the public network IP address of Gateway Network Element first end slogan corresponding with the interior network element, will modify SNMP response message afterwards sends back the network management system.
2. the method according to claim 1, wherein
Receive the purpose IP address of network management system transmission, destination slogan is respectively the public network IP address of Gateway Network Element and any After the SNMP message of the corresponding first end slogan of interior network element, further comprise: by the source IP address and source of SNMP message Slogan is recorded as the IP address and port numbers of the network management system;
The purpose IP address of SNMP response message, destination slogan are respectively modified as to source IP address, the source port of SNMP message Number method are as follows: the associated network management system of destination slogan of SNMP response message is determined according to the source IP address of SNMP response message The purpose IP address of SNMP response message, destination slogan, are respectively modified as the IP address and port numbers of the network management system by system.
3. according to the method described in claim 2, it is characterized in that, this method further comprises:
Public network IP address based on Gateway Network Element, the corresponding first end slogan of the interior network element generate the interior network element corresponding A set of section word socket is monitored and is received purpose IP address, the destination port of network management system transmission by the first socket It number is respectively the SNMP message of the public network IP address first end slogan corresponding with the interior network element of Gateway Network Element;
The corresponding second end slogan being associated in the network management system of private network IP address, the interior network element based on Gateway Network Element is raw At the corresponding second set of section word socket for being associated with the network management system of the interior network element, monitors and connect by the 2nd socket Receive the private network IP address and the interior network element that purpose IP address, the destination slogan that the interior network element is sent are respectively Gateway Network Element The SNMP response message of the corresponding second end slogan for being associated with the network management system.
4. according to the method described in claim 3, it is characterized in that, this method further comprises:
Private network IP address, SNMP alarm port numbers based on Gateway Network Element generate the 3rd socket;
Monitoring and receive purpose IP address, destination slogan that any interior network element is sent by the 3rd socket is respectively gateway The SNMP trap message of private network IP address and SNMP the alarm port numbers of network element, the source IP address according to SNMP trap message are true The corresponding first end slogan of the fixed interior network element;For each network management system, by the purpose IP address of SNMP trap message, mesh Port numbers be respectively modified as network management system IP address and SNMP alarm port numbers, by the source IP address of SNMP trap message, Source port number is respectively modified as the public network IP address of Gateway Network Element first end slogan corresponding with the interior network element, will be modified SNMP trap message is sent to the network management system.
5. method described in -4 any claims according to claim 1, which is characterized in that
Gateway Network Element is directed to the corresponding first end slogan of each Intranet network element configuration, and is associated with respectively for the Intranet network element configuration The second end slogan of network management system;
Gateway Network Element is directed to after the corresponding first end slogan of each Intranet network element configuration, further comprises: by the interior network element Corresponding first end slogan is notified to all network management systems.
6. a kind of network element managing device is applied to Gateway Network Element, which is characterized in that the device includes: storage unit, is received Unit, processing unit, transmission unit;
The storage unit, for storing private network IP address, the corresponding first end slogan of the interior network element of each interior network element And second end slogan set, each second end slogan in the second end slogan set are associated with a network management system;
The receiving unit, for receiving the purpose IP address of network management system transmission, destination slogan is respectively Gateway Network Element Public network IP address and the corresponding first end slogan of any interior network element SNMP message;It is returned for receiving the interior network element Purpose IP address, destination slogan, which are respectively that the private network IP address of Gateway Network Element is corresponding with the interior network element, is associated with the network management The SNMP response message of the second end slogan of system;
The processing unit, for receiving unit to be received to purpose IP address, the destination slogan point of network management system transmission It Wei not be after the public network IP address of Gateway Network Element and the SNMP message of the corresponding first end slogan of any interior network element, by SNMP message Purpose IP address, destination slogan be respectively modified as the private network IP address and snmp management port numbers of the interior network element, will Source IP address, the source port number of SNMP message are respectively modified as the private network IP address of Gateway Network Element pass corresponding with the interior network element It is coupled to the second end slogan of the network management system, and transmission unit is notified to send the interior network element for modified SNMP message; The private network IP that purpose IP address, the destination slogan that the interior network element returns are respectively Gateway Network Element is received for receiving unit After the SNMP response message of the address second end slogan for being associated with the network management system corresponding with the interior network element, by SNMP response Purpose IP address, the destination slogan of message are respectively modified as the source IP address of SNMP message, source port number, by SNMP response report Source IP address, the source port number of text are respectively modified as the public network IP address of Gateway Network Element first port corresponding with the interior network element Number, and notify transmission unit that modified SNMP response message is sent back the network management system.
7. device according to claim 6, which is characterized in that
The processing unit, receiving purpose IP address, the destination slogan that a network management system is sent in receiving unit is respectively After the SNMP message of the public network IP address of Gateway Network Element and the corresponding first end slogan of any interior network element, it is further used for: The source IP address of SNMP message and source port number are recorded as to the IP address and port numbers of the network management system;
The purpose IP address of SNMP response message, destination slogan are respectively modified as the source of SNMP message by the processing unit It when IP address, source port number, is used for: determining that SNMP response message destination slogan is closed according to the source IP address of SNMP response message The network management system of connection, with being respectively modified as the IP of the network management system by the purpose IP address of SNMP response message, destination slogan Location and port numbers.
8. device according to claim 7, which is characterized in that
Public network IP address of the processing unit based on Gateway Network Element, the corresponding first end slogan of the interior network element generate the Intranet The corresponding first set section word socket of network element;
The receiving unit is monitored and is received the purpose of network management system transmission by corresponding first socket of the Gateway Network Element IP address, destination slogan are respectively the SNMP of the public network IP address first end slogan corresponding with the interior network element of Gateway Network Element Message;
Private network IP address, interior network element based on Gateway Network Element of the processing unit are corresponding to be associated with the of the network management system Two-port netwerk number generates the corresponding second set of section word socket for being associated with the network management system of the interior network element;
The receiving unit is monitored and is received purpose IP address, the destination port that the interior network element is sent by the 2nd socket It number is respectively the private network IP address second end slogan for being associated with the network management system corresponding with the interior network element of Gateway Network Element SNMP response message.
9. device according to claim 8, which is characterized in that
The processing unit, is further used for: private network IP address, SNMP alarm port numbers based on Gateway Network Element generate third socket;
The receiving unit, for monitoring and receiving purpose IP address, the mesh that any interior network element is sent by the 3rd socket Port numbers be respectively Gateway Network Element private network IP address and SNMP alarm port numbers SNMP trap message;
The processing unit is monitored and is received the purpose of any interior network element transmission by the 3rd socket for receiving unit IP address, destination slogan be respectively Gateway Network Element private network IP address and SNMP alarm port numbers SNMP trap message after, The corresponding first end slogan of the interior network element is determined according to the source IP address of SNMP trap message;It, will for each network management system Purpose IP address, the destination slogan of SNMP trap message are respectively modified as IP address and the SNMP alarm end of the network management system The source IP address of SNMP trap message, source port number are respectively modified as the public network IP address and the Intranet of Gateway Network Element by slogan The corresponding first end slogan of network element, and transmission unit is notified to send the network management system for modified SNMP trap message.
10. according to device described in any claim of claim 6-9, which is characterized in that
The corresponding first end slogan of each interior network element stored in Gateway Network Element is to be matched by network management system for the interior network element Notice is postponed to Gateway Network Element;
Alternatively,
The processing unit is directed to the corresponding first end slogan of each Intranet network element configuration, and configures the corresponding pass of the interior network element It is coupled to the second end slogan of each network management system;
After the processing unit is directed to after the corresponding first port of each Intranet network element configuration, it is further used for: by the Intranet The corresponding first end slogan of network element is notified to all network management systems.
CN201511025755.8A 2015-12-31 2015-12-31 A kind of network element managing method and apparatus Active CN105610619B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511025755.8A CN105610619B (en) 2015-12-31 2015-12-31 A kind of network element managing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511025755.8A CN105610619B (en) 2015-12-31 2015-12-31 A kind of network element managing method and apparatus

Publications (2)

Publication Number Publication Date
CN105610619A CN105610619A (en) 2016-05-25
CN105610619B true CN105610619B (en) 2019-04-16

Family

ID=55990165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511025755.8A Active CN105610619B (en) 2015-12-31 2015-12-31 A kind of network element managing method and apparatus

Country Status (1)

Country Link
CN (1) CN105610619B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213076A (en) * 2019-04-18 2019-09-06 广州市高科通信技术股份有限公司 A kind of processing method and processing device of comprehensive network management multilevel device automatic wire charging
CN111917621B (en) * 2019-05-10 2021-09-07 烽火通信科技股份有限公司 Communication method and system for network management server and network element of communication equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6725264B1 (en) * 2000-02-17 2004-04-20 Cisco Technology, Inc. Apparatus and method for redirection of network management messages in a cluster of network devices
CN1885858A (en) * 2005-06-24 2006-12-27 中国长城计算机深圳股份有限公司 Method for carrying out cluster management on network equipment based on SNMP protocol
CN102308523A (en) * 2011-07-27 2012-01-04 华为技术有限公司 Data communication network configuration method, gateway network element and data communication system
CN102571394A (en) * 2010-12-14 2012-07-11 方正宽带网络服务股份有限公司 Simple network management protocol (SNMP) network managing method and system
CN102857382A (en) * 2012-09-28 2013-01-02 瑞斯康达科技发展股份有限公司 Network management equipment, access convergent equipment, access terminal equipment, and management method and system for access terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6725264B1 (en) * 2000-02-17 2004-04-20 Cisco Technology, Inc. Apparatus and method for redirection of network management messages in a cluster of network devices
CN1885858A (en) * 2005-06-24 2006-12-27 中国长城计算机深圳股份有限公司 Method for carrying out cluster management on network equipment based on SNMP protocol
CN102571394A (en) * 2010-12-14 2012-07-11 方正宽带网络服务股份有限公司 Simple network management protocol (SNMP) network managing method and system
CN102308523A (en) * 2011-07-27 2012-01-04 华为技术有限公司 Data communication network configuration method, gateway network element and data communication system
CN102857382A (en) * 2012-09-28 2013-01-02 瑞斯康达科技发展股份有限公司 Network management equipment, access convergent equipment, access terminal equipment, and management method and system for access terminal equipment

Also Published As

Publication number Publication date
CN105610619A (en) 2016-05-25

Similar Documents

Publication Publication Date Title
CN108134764B (en) Distributed data sharing and exchanging method and system
CN106789323A (en) A kind of communication network management method and its device
CN102355366B (en) Member-stacking device and method for managing member-stacking device at split stacking moment
CN101588265B (en) Method and device for obtaining network information
CN104980293B (en) A kind of OAM message is quickly sent and the method and device of detection processing
CN107809336B (en) A kind of fault detection method, the device of IP RAN network
CN107517282A (en) A kind of method for assigning address to indoor unit, storage medium and multiple on-line system
CN104539689B (en) A kind of resource monitoring method under cloud platform
WO2017080161A1 (en) Alarm information processing method and device in cloud computing
WO2015149625A1 (en) Method and system for network element access with multi-instance parallelism
CN109194525A (en) A kind of network node configuration method and management node
CN105610619B (en) A kind of network element managing method and apparatus
CN106464516A (en) Event processing in a network management system
CN104579729B (en) The notification method and device of CGN single board default
CN107547301A (en) A kind of master/slave device switching method and device
WO2016101600A1 (en) Line card determination, determination processing method and device, and line card determination system
CN104618148A (en) Firewall device and backup method thereof
CN108833129A (en) A kind of method for discovering network topology and device
CN104022910B (en) A kind of parameter consultation method and its device
CN102904739A (en) Method for realizing event transmission and common information model (CIM) server
CN102752144A (en) Method and device for processing topology change in soft restart in-service software upgrade process
US9100302B2 (en) Methods and systems for monitoring multicast availability
JP2011159127A (en) Management device, management system, management method, program, and recording medium
CN104079685B (en) Configure method, CPE and the system of URL
WO2016082368A1 (en) Data consistency maintaining method, device and ptn transmission apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant