Summary of the invention
Embodiments provide method, the Apparatus and system of the management of a kind of link status information of low-speed link, to realize in the network equipment comprising low speed chain circuit link status information of low-speed link in LA Management Room transmission, and then realize effective management to link status information of low-speed link.
Embodiments provide the method for a kind of link status information of low-speed link management, be applied to first network equipment and second network equipment by the direct-connected scene of low speed chain circuit, the method comprises:
Described first network equipment and described second network equipment do not run Link Layer Discovery Protocol LLDP, run point-to-point protocol PPP or high-level data link control procedure agreement HDLC and communicate;
Described first network equipment receives the first notification packet that described second network equipment is sent by low speed chain circuit, and described first notification packet is HDLC protocol massages or the ppp protocol message of the link-state information of the described low speed chain circuit carrying described second network equipment side; Protocol fields in described HDLC protocol massages or ppp protocol message frame form is link-state identification field, identifies described HDLC protocol massages or ppp protocol message for transmitting low speed chain circuit state information; Described low speed chain circuit state information is included in the information field in described HDLC protocol massages or ppp protocol message;
Described first network equipment is resolved described first notification packet, obtain the link-state information of the described low speed chain circuit of described second network equipment side, and the link-state information of the described low speed chain circuit of described second network equipment side is stored into management information bank.
Embodiments provide the device of a kind of link status information of low-speed link management, be deployed on first network equipment, it is direct-connected that described first network equipment and second network equipment pass through low speed chain circuit, described first network equipment and described second network equipment do not run Link Layer Discovery Protocol LLDP, run point-to-point protocol PPP or high-level data link control procedure agreement HDLC and communicate; Described device comprises:
Receiving element, for the first notification packet that first network equipment reception second network equipment is sent by low speed chain circuit, described first notification packet is HDLC protocol massages or the ppp protocol message of the link-state information of the described low speed chain circuit carrying described second network equipment side; Protocol fields in described HDLC protocol massages or ppp protocol message frame form is link-state identification field, identifies described HDLC protocol massages or ppp protocol message for transmitting low speed chain circuit state information; Described low speed chain circuit state information is included in the information field in described HDLC protocol massages or ppp protocol message;
Memory cell, for described first network equipment, described first notification packet is resolved, obtain the link-state information of the described low speed chain circuit of described second network equipment side, and the link-state information of the described low speed chain circuit of described second network equipment side is stored into management information bank.
Embodiments provide the system of a kind of link status information of low-speed link management, the direct-connected scene of low speed chain circuit is passed through for first network equipment and second network equipment, described first network equipment and described second network equipment do not run Link Layer Discovery Protocol LLDP, run point-to-point protocol PPP or high-level data link control procedure agreement HDLC and communicate; Described system comprises the device of a kind of link status information of low-speed link management that the embodiment of the present invention provides.
By method, Apparatus and system that the embodiment of the present invention provides a kind of link status information of low-speed link to manage, link status information of low-speed link can be realized in LA Management Room transmission in the network equipment comprising low speed chain circuit, and then the storage administration that can realize link status information of low-speed link, there is provided Informational support for network management system forms complete network topology structure to the network equipment comprising low speed chain circuit, favorable network management system carries out management and maintenance to the network comprising low speed chain circuit.
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:
Embodiments provide the method for a kind of link status information of low-speed link management, see the method flow schematic diagram of a kind of link status information of low-speed link management that Fig. 1, Fig. 1 provide for the embodiment of the present invention, the method comprises:
102, first network equipment receives the first notification packet that second network equipment is sent by low speed chain circuit, and described first notification packet is HDLC protocol massages or the ppp protocol message of the link-state information of the described low speed chain circuit carrying described second network equipment side;
The link layer that LLDP agreement provides a kind of standard finds mode, the neighboring net-work device direct-connected with this local terminal network equipment can be given, for network management system inquiry and the communication conditions judging link by Information issued such as the management address of the local terminal network equipment, device identification, interface identifier.The present inventor finds for low speed chain circuit through research, as: ATM, E1/T1 link, MAC Address can not be encapsulated because message on these low speed chain circuits sends, LLDP agreement is caused to run, low speed chain circuit state information between the low speed chain circuit network equipment cannot be realized in LA Management Room transmission, and then the low speed chain circuit state information that cannot obtain between these low speed chain circuit network equipments each other, low speed chain circuit topology of networks cannot be formed, be not easy to network management.Due to low speed chain circuit all can run point-to-point protocol (Point-to-Point Protocol, or high-level data link control procedure agreement (High Level Data Link Control PPP), HDLC), HDLC is a kind of at Synchronization Network transmitting data, data link layer protocol towards position, network layer data bag can be encapsulated, be in the second layer of transmission control protocol/Internet Protocol (Transmission Control Protocol/Internet Protocol, TCP/IP).HDLC is bit-oriented synchronous communications protocol, is mainly the data transparency that full duplex point-to-point operation provides complete, is easy to expand.Inventor, through research, can carry low speed chain circuit state information by HDLC or ppp protocol message.Due to HDLC and ppp protocol message frame form similar, the embodiment of the present invention is described for HDLC agreement.Comprise in the network of low speed chain circuit network equipment in existence, first network equipment receives the first notification packet that second network equipment is sent by low speed chain circuit, this first notification packet is HDLC protocol massages or the ppp protocol message of the link-state information of this low speed chain circuit carrying this second network equipment side, preferably, can also comprise before or after this first network equipment receives this first notification packet that this second network equipment sent by this low speed chain circuit: this first network equipment sends the second notification packet by this low speed chain circuit to this second network equipment, this second notification packet is high-level data link control procedure agreement HDLC message or the point-to-point protocol PPP message of the link-state information of this low speed chain circuit carrying this first network equipment side.It is direct-connected that this first network equipment and this second network equipment pass through this low speed chain circuit.This low speed chain circuit state information at least comprises device identification, port-mark, one in the link-state information time-to-live or its combination, this device identification is used for marked network equipment, this port-mark is for identifying this low speed chain circuit port, this link-state information time-to-live is for identifying the time of this low speed chain circuit state information survival, when this time-to-live is to after date, this link-state information is invalid.In prior art, HDLC message frame form as shown in Figure 2, wherein information field is used for the data message that identifying user transmits, protocol type field is used for the protocol type of the data message that identifying user transmits, this low speed chain circuit state information is carried in the information field of PPP message or HDLC message frame form, carrying mode can combine (Type-Length-Value for type-length-value, TLV) mode of mode or other user's self-definings, the embodiment of the present invention is not done and is forced restriction.Protocol fields in this HDLC protocol massages or ppp protocol message is defined as link-state identification field in embodiments of the present invention, for identifying described first notification packet and described second notification packet for transmitting low speed chain circuit state information, this low speed chain circuit state information field value is arbitrary not by value that other agreements use, alternatively, the embodiment of the present invention is defined as 254.Such as, when this first network equipment receives the first notification packet that this second network equipment sent by this low speed chain circuit, by judging that the link-state identification field of this first notification packet is 254, then think that described second network equipment is sending the message comprising low speed chain circuit state information, described first network equipment needs to store this low speed chain circuit state information.
Alternatively, described low speed chain circuit state information is carried at can with Link Layer Discovery Protocol data cell (Link Layer Discovery Protocol Data Unit in the information field in HDLC message frame form, LLDPDU) form realizes, specific implementation adopts type-length-value combination (Type-Length-Value, TLV) mode encapsulates realization, device identification is comprised with link-state information, port-mark, the link-state information time-to-live is example, specific implementation as shown in Figure 3, Class1-length 1-information 1 field is used for marking equipment mark, type 2-length 2-information 2 field is used for identification port mark, type 3-length 3-information 3 field is for identifying the time-to-live of link-state information, correspondingly, link-state identification field is LLDP protocol type, wherein described in each, between link-state information, the order embodiment of the present invention does not do pressure restriction, as long as the described link-state information that can realize any sequential system correctly transmits all within the scope of the message of the embodiment of the present invention.Due to information field in PPP with HDLC protocol massages frame format and protocol fields meaning similar, this low speed chain circuit state information to be carried in PPP message frame form form and to be carried in HDLC message similar, is not repeated at this.
104, described first network equipment is resolved described first notification packet, obtain the link-state information of the described low speed chain circuit of described second network equipment side, and the link-state information of the described low speed chain circuit of described second network equipment side is stored into management information bank.
When this first network equipment receives this first notification packet, according to 102, the carrying mode of low speed chain circuit state information in PPP or HDLC described in 104 steps, by resolving the link status information of low-speed link that can obtain this second network equipment, this first network equipment is stored in the described link status information of low-speed link obtained in management information bank, and carry out unified management, so that network manager utilizes network management system to inquire about, described management information bank can be local management information bank, also can be the management information bank of far-end server.
Visible, by a kind of method that the embodiment of the present invention provides link status information of low-speed link to manage, link status information of low-speed link can be realized in LA Management Room transmission in the network equipment comprising low speed chain circuit, by the storage administration of management information bank to link status information of low-speed link, provide Informational support for network management system forms complete network topology structure to the low speed chain circuit network equipment.
Embodiment two:
Embodiments provide the device of a kind of link status information of low-speed link management, see the device schematic diagram of a kind of link status information of low-speed link management that Fig. 4, Fig. 4 provide for the embodiment of the present invention, this device comprises, this device comprises receiving element 402, memory cell 404.
Receiving element 402, for the first notification packet that first network equipment reception second network equipment is sent by low speed chain circuit, described first notification packet is HDLC protocol massages or the ppp protocol message of the link-state information of the described low speed chain circuit carrying described second network equipment side;
The link layer that LLDP agreement provides a kind of standard finds mode, the neighboring net-work device direct-connected with this local terminal network equipment can be given, for network management system inquiry and the communication conditions judging link by Information issued such as the management address of the local terminal network equipment, device identification, interface identifier.The present inventor finds for low speed chain circuit through research, as: ATM, E1/T1 link, MAC Address can not be encapsulated because message on these low speed chain circuits sends, LLDP agreement is caused to run, low speed chain circuit state information between the low speed chain circuit network equipment cannot be realized in LA Management Room transmission, and then the low speed chain circuit state information that cannot obtain between these low speed chain circuit network equipments each other, low speed chain circuit topology of networks cannot be formed, be not easy to network management.Due to low speed chain circuit all can run point-to-point protocol (Point-to-Point Protocol, or high-level data link control procedure agreement (High Level Data Link Control PPP), HDLC), HDLC is a kind of at Synchronization Network transmitting data, data link layer protocol towards position, network layer data bag can be encapsulated, be in the second layer of transmission control protocol/Internet Protocol (Transmission Control Protocol/Internet Protocol, TCP/IP).HDLC is bit-oriented synchronous communications protocol, is mainly the data transparency that full duplex point-to-point operation provides complete, is easy to expand.Inventor, through research, can carry low speed chain circuit state information by HDLC or ppp protocol message.Due to HDLC and ppp protocol message frame form similar, the embodiment of the present invention is described for HDLC agreement.Comprise in the network of low speed chain circuit network equipment in existence, first network equipment receiving element 402 receives the first notification packet that second network equipment is sent by low speed chain circuit, and this first notification packet is HDLC protocol massages or the ppp protocol message of the link-state information of this low speed chain circuit carrying this second network equipment side.This low speed chain circuit state information at least comprises device identification, port-mark, one in the link-state information time-to-live or its combination, this device identification is used for marked network equipment, this port-mark is for identifying this low speed chain circuit port, this link-state information time-to-live is for identifying the time of this low speed chain circuit state information survival, when this time-to-live is to after date, this link-state information is invalid.In prior art, HDLC message frame form as shown in Figure 2, wherein information field is used for the data message that identifying user transmits, protocol type field is used for the protocol type of the data message that identifying user transmits, this low speed chain circuit state information is carried in the information field of PPP message or HDLC message frame form, carrying mode can combine (Type-Length-Value for type-length-value, TLV) mode of mode or other user's self-definings, the embodiment of the present invention is not done and is forced restriction.Protocol fields in this HDLC protocol massages or ppp protocol message is defined as link-state identification field in embodiments of the present invention, for identifying described first notification packet and described second notification packet for transmitting low speed chain circuit state information, this low speed chain circuit state information field value is arbitrary not by value that other agreements use, alternatively, the embodiment of the present invention is defined as 254.Such as, when this first network equipment receiving element 402 receives the first notification packet that this second network equipment sent by this low speed chain circuit, by judging that the link-state identification field of this first notification packet is 254, then think that described second network equipment is sending the message comprising low speed chain circuit state information, described first network equipment needs to store this low speed chain circuit state information.
Alternatively, described low speed chain circuit state information is carried at can with Link Layer Discovery Protocol data cell (Link Layer Discovery Protocol Data Unit in the information field in HDLC message frame form, LLDPDU) form realizes, specific implementation adopts type-length-value combination (Type-Length-Value, TLV) mode encapsulates realization, device identification is comprised with link-state information, port-mark, the link-state information time-to-live is example, specific implementation as shown in Figure 3, Class1-length 1-information 1 field is used for marking equipment mark, type 2-length 2-information 2 field is used for identification port mark, type 3-length 3-information 3 field is for identifying the time-to-live of link-state information, correspondingly, link-state identification field is LLDP protocol type, wherein described in each, between link-state information, the order embodiment of the present invention does not do pressure restriction, as long as the described link-state information that can realize any sequential system correctly transmits all within the scope of the message of the embodiment of the present invention.Due to information field in PPP with HDLC protocol massages frame format and protocol fields meaning similar, this low speed chain circuit state information to be carried in PPP message frame form form and to be carried in HDLC message similar, is not repeated at this.
Memory cell 404, resolves described second notification packet for described first network equipment, obtains the link-state information of described second low speed chain circuit, and the link-state information of described second low speed chain circuit is stored into management information bank.
When this receiving element 402 receives this first notification packet, according to the carrying mode of low speed chain circuit state information in PPP or HDLC described in receiving element 402, this memory cell 404 is by resolving the link status information of low-speed link that can obtain this second network equipment, and the described link status information of low-speed link obtained is stored in management information bank, and carry out unified management, so that network manager utilizes network management system to inquire about, described management information bank can be local management information bank, also can be the management information bank of far-end server.
Preferably, this device can also comprise transmitting element 502 further, as shown in Figure 5.
Transmitting element 502, send second notification packet by described low speed chain circuit to second network equipment for described first network equipment, described second notification packet is high-level data link control procedure agreement HDLC message or the point-to-point protocol PPP message of the link-state information of the described low speed chain circuit carrying described first network equipment side.
This transmitting element 502 can perform before receiving element 402, also can perform after receiving element 402, and it is direct-connected that this first network equipment and this second network equipment pass through this low speed chain circuit.
Visible, by the device that the embodiment of the present invention provides a kind of link status information of low-speed link to manage, link status information of low-speed link can be realized in LA Management Room transmission in the network equipment comprising low speed chain circuit, by the storage administration of management information bank to link status information of low-speed link, provide Informational support for network management system forms complete network topology structure to the low speed chain circuit network equipment.
Embodiment three:
Embodiments provide the system of a kind of link status information of low-speed link management, described system comprises the device of a kind of link status information of low-speed link management that the embodiment of the present invention two provides.
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, foregoing routine 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.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.