A kind of network management system and communication means thereof
Technical field
The present invention relates to communication technical field, particularly a kind of network management system and communication means thereof.
Background technology
Development along with computer networking technology, the rapid expansion of the scale of computer network and range of application, the task that network is born is more and more heavy, therefore a series of special NMPs have appearred, by network management, make great efforts to improve utilance, performance, service quality and the fail safe of the network equipment.
At present, mainly contain following several NMP: the ITU-T of telecommunication standardization sector of International Telecommunications Union (the former telegram telephone counseling CCITT of the committee) proposed specially at telecommunication network management telecommunication management network (Telecommunications Management Network, TMN); International Standards Organization (International Organization for Standardization, ISO) also for network management worked out CMIP (Common Management Information Protocol, CMIP); International Internet organizes then and has worked out Simple Network Management Protocol (SNMP) for network management.
Above-mentioned several NMP has different separately starting points, and wherein: TMN designs at telecommunication network management; CMIP be for the inventionthe open systems interconnection reference model (Open SystemInterconnection, 7 layer models OSI) design; SNMP then is based on the NMP of TCP/IP net, is from early stage simple gateway monitoring protocol (Simple Gateway ManagementProtocol, SGMP) development.In these standards, the function of CMIP is the most powerful, but it realizes that difficulty is also maximum, and this has just hindered its application, and the product of therefore present support CMIP seldom; SNMP is then because therefore it simple and easy to operate be widely used and the standard on having come true.
As shown in Figure 1, be the structural representation of the network management architecture of using snmp protocol.This architecture mainly comprises: and the management information bank of managing process (Manager) unit, administration agent (Agent) unit, Managed Object (Managed Object) and description Managed Object state (ManagementInformation Base, MIB).Wherein: the managing process unit is the control centre of whole network management system, and it is monitored and control the various device in the network, facility and resource by each administration agent unit, and finishes various management functions.In addition, the managing process unit is furnished with man-machine interface usually, and the information and the data of the Managed Object collected are filed, analyzed and handle.The managing process unit operates on the management server, and the administration agent unit operates on the network equipment.
Communicate by the snmp management agreement between managing process unit and the administration agent unit.In snmp protocol, defined 4 class bookkeeping: Get operation; Get Next operation; The Set operation; Trap (trap) operation.Managing process unit by using Get and Get Next operate the information of extracting each management information bank, and then obtain the current comprehensive state information of network.Where necessary, the managing process unit can be by indirect some information that is provided with or revises in the management information bank of Set operation, to reach the purpose of control.When serious anomalous event took place network, active was just operated to managing process unit reporting event by Trap in the administration agent unit, thereby had improved the aging performance of network management greatly.
As shown in Figure 2, be the SNMP message information form schematic diagram of various version.The SNMP message information comprises: version number, community name and protocol Data Unit.Wherein: Version is the version number of snmp protocol, and managing process unit and administration agent unit must use the snmp protocol of identical version; Community is a community name, is used for before managing process unit access administration agent unit the managing process unit being authenticated; PDU is a protocol Data Unit, wherein comprises concrete message content.
SNMP is a kind of application protocol, is encapsulated in the User Datagram Protoco (UDP) (UDP).Because udp protocol not be used between client and the server and connects, and do not have mechanism such as overtime repeating transmission before datagram, so transmission speed is very fast.But, udp protocol is the transition layer protocol of a simple datagram-oriented, the datagram of just application program being passed to the IP layer sends, but can not guarantee that these datagrams can arrive the destination, and SNMP is encapsulated among the UDP, whether receive the alarm Trap information of the network equipment so can't confirm management server, and when the network communication between the management server and the network equipment was broken down, the network equipment can not obtain returning of " alarm sending failure " yet.In the network management system of reality, losing of significant alarm information can bring serious negative effect to the stability and the maintainability of system's operation.
Summary of the invention
The objective of the invention is to, a kind of communication means of network management system is provided, can at network recovery just often warning message be retransmitted.
Another object of the present invention is to, a kind of network management system is provided, can at network recovery just often warning message be retransmitted.
The communication means of network management system of the present invention comprises the following steps:
Step a: sign that network equipment side is confirmed in the request that is provided with in the warning message that the management server side sends and ID number of described message, and ID number of described message and message content stored;
Step b: after the management server side is received the warning message that network equipment side sends, parse ID number of described message, and the instruction of the Set by the Simple Network Management Protocol snmp protocol is arranged to the corresponding source ID of network equipment side number described ID number, and the informing network equipment side has been received described message; And, when the network communication of the network equipment and management server takes place to interrupt, the management server side is set to zero by the Set instruction of Simple Network Management Protocol snmp protocol with the corresponding source ID of network equipment side number, and the informing network equipment side is retransmitted all messages of current storage.
Wherein, in described step a, when network equipment side structure warning message, be that the sign of request affirmation and ID number of described message are set in the community name field of described warning message.
In addition, in step b, parse in described management server side before ID number of described message, may further include the following step:
The message that described management server side is sent network equipment side is resolved, and judges whether comprise the sign that request is confirmed in the message, if, execution in step b then; Otherwise, continue to judge.
In addition, after described step b, may further include the following step:
Step c: network equipment side judges whether exist in the network equipment side storage area and source ID number that is complementary for described ID number, if exist, then notify the management server side to confirm successfully after receiving ID number that the management server side is sent; Otherwise, continue to search, up to network equipment side storage area end, notify the management server side not find relative recording then.
In addition, in described step c, network equipment side may further include the following step when notice management server side is confirmed successfully:
Step c1: delete the stored record of the warning message of described ID correspondence, and the deletion record of notice management server side.
Wherein, behind described step b, may further include the following step:
Step b2: network equipment side receives to be for message ID number its storage chained list of Set instruction back inquiry of zero, will every record stresses to management server as the Trap message successively.
Network management system of the present invention comprises the network equipment and management equipment, wherein:
The described network equipment is used at the warning message that sends to described management equipment sign that request confirms and ID number of described message being set, and ID number of described message and message content are stored;
Described management equipment, after being used to receive the warning message that the described network equipment sends, parse ID number of described message, and the instruction of the Set by the Simple Network Management Protocol snmp protocol is arranged to the corresponding source ID of the described network equipment number described ID number, notifies the described network equipment to receive described message; And, when the network communication of the network equipment and management server takes place to interrupt, management server is set to zero by the Set instruction of Simple Network Management Protocol snmp protocol with the corresponding source ID of the network equipment number, and informing network equipment is retransmitted all messages of current storage.
Wherein, the sign of described request affirmation and ID number of described message are to be provided with in the community name field of described warning message.
Wherein: described management equipment, before message ID number of can be further used for sending at the described network equipment of parsing, the sign that the request of being resolved to is confirmed.
The described network equipment can be further used for analyzing ID number that described management equipment is sent, and judges whether exist in the network equipment storage chained list and source ID number that is complementary for this ID number, if exist, then send to described management equipment and confirm successful message; Otherwise, send the message that does not find relative recording to described management equipment.
In addition, the described network equipment can be further used for deleting the Trap message accounting of this ID correspondence when notifying described management equipment to confirm successfully.
The described network equipment can be further used for receiving that described management equipment sends is for message ID number zero Set instruction back requester network device storage chained list, and every record of storage is retransmitted to described management equipment as the Trap message successively.
The invention has the beneficial effects as follows: according to network management system of the present invention and communication means thereof, network equipment side is provided with the sign of request affirmation and ID number of this message in the warning message that sends to the management server side, the management server side is after receiving warning message, the informing network equipment side has been received this ID number message, prevent alarm information loss, improved the stable and maintainable of system's operation; When the network communication of network equipment side and management server side takes place to interrupt,, therefore just often, the Trap message can be retransmitted at network recovery owing in the network equipment, the Trap message that has sent is stored; And, when the message of storing has reached storage limit, cover a oldest message with the Trap message of up-to-date generation in the network equipment, make that the message of storing on the network all is up-to-date warning information.
Description of drawings
Fig. 1 is for using the network management architecture schematic diagram of snmp protocol;
Fig. 2 is the message information form schematic diagram of SNMP;
Fig. 3 is the communication means flow chart of network management system of the present invention;
Fig. 4 is the flow chart that Trap message of the present invention sends and stores;
Fig. 5 is the flow chart that Trap message of the present invention is confirmed;
Fig. 6 is that Trap message of the present invention is retransmitted flow chart.
Embodiment
Below, 3~6 describe network management system of the present invention and communication means thereof in detail in conjunction with the accompanying drawings.
As shown in Figure 3, the flow chart for the communication means of network management system of the present invention comprises the following steps:
Step 100: sign that network equipment side is confirmed in the request that is provided with in the warning message that the management server side sends and ID number of described message, and ID number of described message and message content stored;
Step 200: after the management server side is received the warning message that network equipment side sends, parse ID number of described message, and described ID number is arranged to the corresponding source ID of network equipment side number, the informing network equipment side has been received described message.
Wherein, in the step 100, " confirmation request " character string and this message ID number is set in the community of this Trap message field.
Wherein, in step 200, after the management server side parses ID number of this message, this ID number is arranged to the corresponding source ID of network equipment side number by the Set instruction of snmp protocol.
In addition, in step 200, parse in the management server side before ID number of this message, further comprise the following steps:
The message that the management server side is sent network equipment side is resolved, and judges the character string that whether comprises " confirmation request " in this message, if then execution in step 200; Otherwise, continue to judge.
In addition, ID number of also needing the management server side is sent of network equipment side confirms that the mistake of avoiding causing because of the misoperation in the communication process is confirmed.
Therefore, based on as previously mentioned, after step 200, may further include the following step:
Step 300: network equipment side judges that whether its storage exists in chained list and source ID number that is complementary for this ID number, if exist, then notifies the management server side to confirm successfully after receiving ID number that the management server side is sent; Otherwise, continue to search, up to the end of its record chained list, notify the management server side not find relative recording then.
Wherein, in step 300, network equipment side may further include the following step when notice management server side is confirmed successfully: network equipment side is deleted the Trap message accounting of this ID correspondence in its storage chained list, and returns the result of deletion record to the management server side.Specifically can be with reference to shown in Figure 5.
As shown in Figure 4, because this storage chained list is created when the network equipment starts, after alarm produces, whether comprise " confirmation request " word string in the community field of network equipment inspection Trap message, if, then, again whole piece Trap message is sent adding the afterbody of community for a non-zero ID who adds up number to; After the transmission, whole piece Trap message is added the afterbody of this chained list as a new element.If chained list length reaches the upper limit of memory space, then deletion is positioned at the element of linked list head portion, a promptly the oldest Trap record.
When the network communication of the network equipment and management server takes place to interrupt, network equipment side can't be received the warning message affirmation instruction that the management server side is sent, when the network communication of network equipment side and management server side recovers just often, need confirm again warning message.
Therefore, based on as previously mentioned, as shown in Figure 6, described step 200 further comprises the following steps:
Step 200 ': management server is set to zero by the Set instruction of snmp protocol with the corresponding source ID of network equipment side number, with the informing network equipment side all messages of current storage is retransmitted.
Because corresponding warning message still remains with backup in the storage chained list of network equipment side, therefore, in step 200 ' afterwards, comprise the following steps:
Step 300 ': network equipment side receives to be for message ID number its storage chained list of Set instruction back inquiry of zero, will every record stresses to management server as the Trap message successively.
Below, describe network management system of the present invention in detail.This network management system comprises the network equipment and management equipment.Wherein, the network equipment is used for sending the Trap message to the management equipment of management server side, and the character string of " confirmation request " and ID number of this message is set in this message, and stores ID number and this message content of this message in its storage chained list; Management equipment is used for parsing ID number of this message after receiving the Trap message that the network equipment sends, and this ID number is arranged to the corresponding ID of the network equipment number, returns to the network equipment with this ID number then, notifies it to receive this warning message.Here, the network equipment needs to dispose in advance the management server IP of a community for " confirmation request " thereon.
Wherein, the network equipment is that the sign of request affirmation and ID number of described message are set in the community name field of described warning message when the structure warning message.
Wherein, management equipment is arranged to the corresponding source ID of the described network equipment number described ID number by the Set instruction of Simple Network Management Protocol SNMP.
In addition, management equipment, before message ID number of can be further used for sending at the described network equipment of parsing, the sign that the request of being resolved to is confirmed.
In addition, the network equipment, ID number of being further used for that analysis management equipment sends, and judge whether exist in its storage chained list and source ID number that is complementary for this ID number,, then send and confirm successful message to management equipment if exist; Otherwise, send the relative recording information that do not find to management equipment.
In addition, this network equipment is further used for deleting the Trap message accounting of this ID correspondence, and returning the result of deletion record to management equipment when the notice management equipment is confirmed successfully.
As previously mentioned, this storage chained list is created when the network equipment starts, after alarm produces, whether comprise " confirmation request " word string in the community field of network equipment inspection Trap message, if, then, again whole piece Trap message is sent adding the afterbody of community for a non-zero ID who adds up number to; After the transmission, whole piece Trap message is added the afterbody of this chained list as a new element.If chained list length reaches the upper limit of memory space, then deletion is positioned at the element of linked list head portion, a promptly the oldest Trap record.
When the network communication of the network equipment and management equipment took place to interrupt, management equipment was further used for being set to zero by the Set instruction of snmp protocol with the corresponding source ID of the network equipment number, with informing network equipment all messages of current storage is retransmitted; The network equipment, be further used for receiving message ID number be its storage chained list of Set instruction back inquiry of zero, every record is retransmitted to management equipment as the Trap message successively.
When specific implementation, the aforesaid network equipment can comprise as shown in Figure 1 administration agent unit and management information bank; Aforesaid management equipment can be managing process unit as shown in Figure 1.
In sum, communication means and equipment according to network management system of the present invention, by the network equipment side sign of request affirmation and ID number of this message are set in the warning message that sends to the management server side, the management server side is after receiving warning message, the informing network equipment side has been received this ID number message, transmitting-receiving to every Trap message is confirmed, can prevent alarm information loss, has improved the stable and maintainable of system's operation; When the network communication of network equipment side and management server side takes place to interrupt,, therefore just often, the Trap message can be retransmitted at network recovery owing in the network equipment, the Trap message that has sent is stored; And, when the message of storing has reached storage limit, cover a oldest message with the Trap message of up-to-date generation in the network equipment, make that the message of storing on the network all is up-to-date warning information.
More than be in order to make those of ordinary skills understand the present invention; and to detailed description that the present invention carried out; but can expect; in the scope that does not break away from claim of the present invention and contained, can also make other variation and modification, these variations and revising all in protection scope of the present invention.