CN101383737B - Method and system for link quality detection based on link layer discovery protocol - Google Patents
Method and system for link quality detection based on link layer discovery protocol Download PDFInfo
- Publication number
- CN101383737B CN101383737B CN2008102108903A CN200810210890A CN101383737B CN 101383737 B CN101383737 B CN 101383737B CN 2008102108903 A CN2008102108903 A CN 2008102108903A CN 200810210890 A CN200810210890 A CN 200810210890A CN 101383737 B CN101383737 B CN 101383737B
- Authority
- CN
- China
- Prior art keywords
- lldp
- packet
- link
- unit interval
- network equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Reducing energy consumption in communication networks
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to a method and a system for testing the quality of a link based on a link layer discovery protocol. A network device takes a unit time T1 as a period to collect data packet number M1 of the link layer discovery protocol LLDP which are received by each LLDP receiving port in the unit time T1, and saves the LLDP data packet number M1 of each LLDP receiving port in a management information base MIB; when a network managing system tests the quality of each link being tested, the network managing system acquires the information of the LLDP data packet number M1 which is collected at present and is received by the present objective port in the unit time T1 from the MIB of the network device where the link objective port is, and obtains the LLDP data packet number M2 sent by a source port of the link in the unit time T1, and calculates a current packet loss ratio of the link Eta=(1-M1/M2)*100%. The invention does not need to consume additional resources and can be easily implemented.
Description
Technical field
The present invention relates to data product switch field, especially, realize the method and system that link-quality is detected in real time at the Topology Management field of switch.
Background technology
The LLDP agreement is the New Deal that defines among the 802.1ab, it can make equipment send the notice of its state information to other contiguous equipment, and all storing the configuration information of definition oneself on each port of all devices, if desired, can also be to sending updated information with their direct-connected nearby device, neighbour's equipment can be with the information stores received in Simple Network Management Protocol (SNMP) management information bank (MIB) of standard.Network management system can inquire the connection situation of the current second layer from MIB.LLDP can not dispose not yet can Control Network element or flow, and it just reports the configuration of the second layer.802.1ab in another content be the repugnance that the information that makes the network management software utilize LLDP to provide removes to find some second layer.That IEEE uses at present is the existing physical topology of IETF (The Intemet Engineering TaskForce----the Internet engineering duty group), interface and Entity MIBs (entity management information bank).
In brief, LLDP is a kind of contiguous agreement of finding.It is an ethernet network device, has defined a kind of method of standard as switch, router and wireless local network connecting point, make its can be in network the existence of other nodes bulletins self, and preserve the LLDP information of each nearby device.For example details such as equipment disposition and recognition of devices can be announced with this agreement.
LLDP information is periodic transmission, and only keeps in certain time limit.IEEE has defined the transmission frequency of a suggestion, promptly per 30 seconds transmission primarieses.LLDP equipment is after receiving the LLDP information that adjacent network equipment sends, with Simple Network Management Protocol (SNMP) management information bank (MIB of LLDP information stores an IEEE definition, Management Information Base) in, and in certain time limit, remains valid.MIB is the standard of network management data, has stipulated data items, data type that network agent equipment must be preserved in this standard, and allows the operation in each data items.Each network equipment all has same MIB, and the network equipment can generate each data item destination data or claim the MIB value according to oneself state.Webmaster can pass through snmp protocol, obtain or be provided with the MIB value of (when the MIB node definition is could be provided with in the time of can being provided with) each network equipment, obtain all statistical contents of this network equipment, can realize basic network management by analysis-by-synthesis to a plurality of device statistics contents.
All present link-quality detection methods, as application number is the Chinese patent application disclosed " carrying out link detection method when realizing multi-link protocol " of CN200410048222, application number is the Chinese patent application of CN200410091250 disclosed " a kind of maintenance link detects and restoration methods ", application number is that the Chinese patent application of CN200610127707.4 is disclosed " realize carrying out all need additionally increasing data traffic in link when link-quality detects by a kind of method that realizes link detecting, routing policy switching end to end and device etc.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of method and system of carrying out the link-quality detection based on Link Layer Discovery Protocol, need not to consume extra resource, and is easy to realize.
In order to solve the problems of the technologies described above, the invention provides a kind of method of carrying out the link-quality detection based on Link Layer Discovery Protocol, comprising:
The network equipment is with unit interval T
1Be the cycle, gather each LLDP receiving port at unit interval T
1In the Link Layer Discovery Protocol LLDP number-of-packet M that receives
1, and preserve the LLDP number-of-packet M of each LLDP receiving port of current collection at management information bank MIB
1
When network management system is carried out quality testing to each link to be detected, obtain this destination interface of current collection at unit interval T from the MIB of this link destination interface place network equipment
1In the LLDP number-of-packet M that receives
1Information, and the source port that obtains this link is at unit interval T
1The interior LLDP number-of-packet M that sends
2, calculate the current packet loss η=(1-M of this link
1/ M
2) * 100%.
Further, said method also can have following characteristics:
Described source port is at unit interval T
1The interior LLDP number-of-packet M that sends
2Infer in the following manner:
Described network management system is obtained the transmission interval T of this source port LLDP packet of Set For Current from the MIB of the described link source end mouth place network equipment
2Information, from the MIB of the described link destination interface place network equipment, obtain the unit interval T that this destination interface of Set For Current carries out data acquisition
1Information, with T
1/ T
2As the described source port of inferring at unit interval T
1The interior LLDP number-of-packet M that sends
2Perhaps
Described network management system directly reads the unit interval T that described destination interface carries out data acquisition from local configuration information
1Transmission interval T with the LLDP packet of described source port
1, with T
1/ T
2As the described source port of inferring at unit interval T
1The interior LLDP number-of-packet M that sends
2
Further, said method also can have following characteristics:
Described link source end mouth is at unit interval T
1The interior LLDP number-of-packet M that sends
2Directly obtain in the following manner:
The described network equipment is with unit interval T
1For the cycle is gathered each LLDP transmit port at unit interval T
1The LLDP number-of-packet M that sends
2, and with each LLDP transmit port of current collection at unit interval T
1The LLDP number-of-packet M that sends
2Be kept among the MIB;
Described network management system is directly obtained the described source port of current collection at unit interval T from the MIB of the source port place network equipment of described link
1The interior LLDP number-of-packet M that sends
2
Further, said method also can have following characteristics:
When each link to be detected was carried out quality testing, described network management system was obtained information from the described source port place network equipment earlier, comprising described transmission interval T
2Information, the transmission interval T that will newly obtain then
2Transmission interval T with the last time preservation
2Compare,, obtain information from the described destination interface place network equipment again, carry out the calculating of packet loss if both are equal; If both are unequal, upgrade the transmission interval T of preserving
2, finish quality testing this time to this link.
Further, said method also can have following characteristics:
Described network management system is judged the transmission interval T of newly obtaining
2Transmission interval T with the last time preservation
2When unequal, also notify the described link destination interface place network equipment to reset to LLDP number-of-packet M
1Collection; After the described network equipment is received this notice, with the LLDP number-of-packet M of current collection
1Be changed to initial value or invalid value, and restart this destination interface at unit interval T
1In the LLDP number-of-packet M that receives
1Collection;
When described network management system is carried out quality testing to each link to be detected, obtaining LLDP number-of-packet M
1After also judge this LLDP number-of-packet M
1Whether be initial value or invalid value, if not, carry out the calculating of packet loss again, otherwise, quality testing this time directly finished to this link.
Further, said method also can have following characteristics:
The described network equipment is gathered each LLDP receiving port in the following manner at unit interval T
1In the LLDP number-of-packet M that receives
1:
The described network equipment is provided with a first timer for each LLDP receiving port, and its timing equals unit interval T
1, to each LLDP receiving port, after startup is gathered, wait for the time of one section setting earlier, start this first timer then, and handle below carrying out:
A) the LLDP packet that each LLDP receiving port is received is counted;
B) after the timing of described first timer arrives, be the LLDP number-of-packet M of each LLDP receiving port of this collection with current count value
1Write MIB or upgrade original LLDP number-of-packet M among the MIB
1
C) with described count value zero clearing, restart first timer, return the collection that step a) begins next round.
Further, said method also can have following characteristics:
Described network management system is according to the assay intervals time of setting, and all links of supporting the LLDP agreement in the link database and being in connection status are carried out cycle detection, and this assay intervals time is more than or equal to described unit interval T
1
Further, said method also can have following characteristics:
Described LLDP packet receiving port carries out the unit interval T of data acquisition
1The LLDP protocol data bag that is set to corresponding LLDP packet transmit port sends interval T
230 times~50 times.
The system that carries out the link-quality detection based on Link Layer Discovery Protocol provided by the invention comprises the network equipment and network management system, comprises management information bank MIB module in the described network equipment, comprises the link data library module in the described network management system, wherein:
The described network equipment also comprises first data acquisition module, is used for unit interval T
1Be the cycle, gather each LLDP receiving port at unit interval T
1In the Link Layer Discovery Protocol LLDP number-of-packet M that receives
1, and preserve the LLDP number-of-packet M of current collection in the MIB module
1
Described network management system also comprises data statistics module and data computation module, wherein:
Described data statistics module is used for when carrying out the link-quality detection, obtain the information of supporting the LLDP agreement and being in source port, destination interface, the source port place network equipment and the destination interface place network equipment of each link to be detected of connection status from the link data library module, obtain the destination interface of current collection at unit interval T from the MIB of each link destination interface place network equipment
1In the LLDP number-of-packet M that receives
1Information, and obtain each link source end mouth at unit interval T
1The interior LLDP number-of-packet M that sends
2, with M
1And M
2Send described data computation module to;
Described data computation module is used for according to M
1And M
2, calculate the current packet loss η of each link, η=(1-M is arranged
1/ M
2) * 100%.
Further, said system also can have following characteristics: described data statistics module obtains described LLDP number-of-packet M in the following manner
2:
Described data statistics module is obtained the transmission interval T of this source port LLDP packet of Set For Current from the MIB of this source port place network equipment
2Information, from the MIB of the destination interface place network equipment of this link, obtain the unit interval T that this destination interface of Set For Current carries out data acquisition
1Information, with T
1/ T
2As this source port of inferring at unit interval T
1The interior LLDP number-of-packet M that sends
2Perhaps
Described data statistics module directly reads the unit interval T that described destination interface carries out data acquisition from local configuration information
1Transmission interval T with the LLDP packet of described source port
1, with T
1/ T
2As this source port of inferring at unit interval T
1The interior LLDP number-of-packet M that sends
2
Further, said system also can have following characteristics:
The described network equipment also comprises second data acquisition module, is used for unit interval T
1Be the cycle, gather each LLDP transmit port at unit interval T
1The LLDP number-of-packet M that sends
2, and with the LLDP number-of-packet M of current collection
2Be kept among the MIB;
Data statistics module in the described network management system is directly obtained the described source port of current collection at unit interval T from the MIB of the source port place network equipment of described link
1The interior LLDP number-of-packet M that sends
2
Further, said system also can have following characteristics:
When described data statistics module is carried out quality testing to each link to be detected, obtain information from the described source port place network equipment earlier, comprise described transmission interval T
2Information, the transmission interval T that will newly obtain then
2Transmission interval T with the last time preservation
2Compare,, obtain information and M from the described destination interface place network equipment again if both are equal
1And M
2Transmission; If both are unequal, upgrade the transmission interval T of preserving
2, no longer obtain information from the described destination interface place network equipment, also no longer carry out M
1And M
2Transmission.
The method of the invention compared with prior art on the basis that the LLDP agreement starts, can make the user clearly see the packet loss of all links, thereby understand the quality of current network link.This method can not increase extra network burden and facility load, is suitable for and realizes and displaying, can also carry out the monitoring of different accuracy to every link by demand, thereby make the user become simple unusually to the link quality monitoring of network huge, complicated and changeable.Simultaneously, this method has strengthened the function of LLDP agreement, and it can be used widely, thereby is accepted, becomes international standard protocol by each manufacturer easilier.
Description of drawings
Fig. 1 is the module map of first embodiment of the invention system;
Fig. 2 is the flow chart of first embodiment of the invention data acquisition;
Fig. 3 is the flow chart of first embodiment of the invention data processing and condition judgement process.
Embodiment
Standard LLDP agreement working method is: the port of equipment sends a packet to the opposite end at set intervals, and the opposite end neighbours resolve wherein data after receiving this bag, thereby know the existence of this link.In order to guarantee that link exists always, the port of both link ends all needs constantly to send packet, promptly all can have timing, continual LLDP packet transmitting in the network in the link of every existence.And the packet of LLDP agreement is very little, about about 200 bytes, can additionally not increase network burden.
The present invention is according to this characteristic of LLDP agreement, and the packet that utilizes present LLDP agreement to be sent carries out link detecting, counts the packet loss of packet in a period of time, and analyzes the quality of link according to packet loss.
Below in conjunction with accompanying drawing the specific embodiment of the present invention is elaborated.
First embodiment
The link-quality detection system of present embodiment comprises the network management system (also abbreviating webmaster in the literary composition as) and the network equipment, as shown in Figure 1, and wherein:
Comprise data acquisition module and MIB module on the network equipment, wherein:
Data acquisition module is used for unit interval T
1Be the cycle, each LLDP packet receiving port of collection network equipment is at unit interval T
1In the LLDP number-of-packet M that receives
1, and preserve the LLDP number-of-packet M of current collection in the MIB module
1
The MIB module is used to preserve the current state information of the network equipment, comprising each LLDP packet receiving port T in the unit interval of current collection
1The LLDP number-of-packet M that receives
1, unit interval T
1And the transmission interval T of LLDP packet
2Information.
Network management system comprises link data library module, data statistics module, data computation module, condition judgement module, business module and display module, wherein:
The link data library module, be used for managing and preserving the information of each link of network, the source port, destination interface, the source port place network equipment (also abbreviating source port equipment in the literary composition as), the destination interface place network equipment (also abbreviating destination interface equipment in the literary composition as) information that comprise each link, and the make-and-break status information of link etc.This module can adopt the module in the prior art.
Data statistics module, be used for obtaining the information of source port, destination interface, source port equipment and the destination interface equipment of each bar link to be detected, obtain the current LLDP packet of source port from the MIB module of source port equipment and send interval T from the link data library module
2Information, obtain the unit interval T that the destination interface of Set For Current carries out data acquisition from the MIB module of destination interface equipment
1And at unit interval T
1In the LLDP number-of-packet M that receives
1Information, infer source port at unit interval T
1The interior LLDP number-of-packet M that sends
2=T
1/ T
2, and with M
1And M
2Be sent to data computation module.
Alternatively, data statistics module can also be with the transmission interval T of newly obtaining
2Transmission interval T with the last time preservation
2Compare, when both are equal, obtain unit interval T from destination interface equipment again
1With LLDP number-of-packet M
1Information, carry out M
2Infer and M
1And M
2Transmission; When both do not wait, upgrade the transmission interval T of preserving
2, no longer obtain unit interval T from destination interface equipment
1With LLDP number-of-packet M
1Information, also no longer carry out M
2Infer and M
1And M
2Transmission.Alternatively, data statistics module can notify destination interface equipment to restart this destination interface at unit interval T when both do not wait
1The interior LLDP number-of-packet M that receives
1Collection.
Data computation module is used to calculate the current packet loss η of each bar link and sends the condition judgement module to, η=(1-M
1/ M
2) * 100%;
The condition judgement module, be used for judging the quality state of each link such as good, good, difference or the like respectively according to the corresponding relation of the packet loss of the packet loss of each link and setting and link-quality state, and sending each link-quality state to business module and display module, packet loss also can send business module and display module to.
Business module is used for producing corresponding business according to the quality state and/or the packet loss of each link, as the data warehouse-in, produces alarm or other predefine business.Wherein data loading be meant with the packet loss of each link, each link-quality state for time period of difference and the same day all links information such as average quality state be saved in the database of webmaster.
Display module is used for the quality state and/or the packet loss of each link are shown to the user, and preferable usefulness is directly perceived, the graphical interfaces of differentiation is shown to the user.
For the present invention, after data computation module obtains the packet loss of link, can think to have finished link is carried out quality testing.Condition judgement module, business module and display module are optional.
Based on above system, present embodiment link-quality detection method comprises data processing and the condition judgement process of carrying out on the data acquisition carried out on the network equipment and the webmaster.
Data acquisition is with unit interval T
1Be the cycle, each LLDP protocol data bag receiving port is at unit interval T on the collection network equipment
1In the LLDP number-of-packet M that receives
1, and preserve the LLDP number-of-packet M of each receiving port of current collection at MIB
1Particularly, as shown in Figure 2, on the network equipment, each LLDP packet receiving port is carried out following steps:
Step 210 after startup is gathered, is waited for the time of one section setting, starts a first timer, and the timing of this first timer equals unit interval T
1
Can be after the LLDP agreement starts, perhaps receive the corresponding notice of webmaster after, start the collection of each LLDP packet receiving port.After starting collection,,, wait for that data packet flow settles out in the link, restart first timer and count so will wait for a period of time because do not know the time of advent of first bag.Waiting time also can be provided with in MIB by webmaster, as being 3s-20s.
Unit interval T
1Should be greater than the transmission interval T of LLDP packet
2, be preferably and send at interval 30 times~50 times.Webmaster can be with T
1And T
2The MIB that is written to the network equipment finishes this unit interval T
1With the transmission interval T
2Configuration, T
1And T
2Also can make amendment by webmaster.
Step 220 is counted the LLDP packet of receiving;
Step 230 after the timing of first timer arrives, is the LLDP number-of-packet M of this collection with current count value
1Write MIB or upgrade original LLDP number-of-packet M among the MIB
1, with the count value zero clearing, restart first timer then, return the data acquisition of step 220 beginning next round.
In the data processing of present embodiment and the condition judgement process,, obtain the current LLDP packet of source port from the MIB of this link source end jaws equipment and send interval T each bar link to be detected
2Information, obtain the unit interval T that the destination interface of Set For Current carries out data acquisition from the MIB of this link destination interface equipment
1And at unit interval T
1In the LLDP number-of-packet M that receives
1Information, calculate the current packet loss η=(1-M of this link
1* T
2/ T
1) * 100%, and then judge the quality state that this link is current according to the link-quality state of setting and the corresponding relation of packet loss.
Earlier a second timer is set in webmaster, its timing is the assay intervals time, and the present invention does not limit the value of assay intervals time, is preferably more than or equal to unit interval T
1As be T
1Integral multiple.Webmaster carries out cycle detection to all links of supporting LLDP agreements and being in connection status in the link database, certainly the present invention is not limited thereto, also can detect the link of selecting, perhaps detect (not necessarily identical at interval) or the like by the time point of setting by the network management personnel.
Network management system comprises to the concrete handling process of each bar link to be detected as shown in Figure 3:
Step 310 is obtained source port, destination interface, source port equipment and the destination interface facility information of this link from link database;
Step 320 is obtained the current LLDP packet of source port from the MIB of source port equipment and is sent interval T
2Information;
Step 330 is with the transmission interval T of newly obtaining
2Transmission interval T with the last time preservation
2Compare, if both are unequal, execution in step 340, if both are equal, execution in step 350,
T
2Initial value can be set to arbitrarily to send interval T
2Span outside value as being 0.
Step 340 is with the transmission interval T of newly obtaining
2Upgrade the transmission interval T of preserving
2, this inferior quality of this link is detected end;
If the transmission of source port LLDP packet changes at interval to some extent, the data that count of acquisition module may be inaccurate so, so directly finish quality testing this time of this link, also is that this quality testing not have definite result.How to determine that as for the current quality state of this link the present invention does not do qualification, as can continuing to use last testing result, can vacancy, or the like.
In other embodiments, the transmission interval T newly obtained of webmaster
2Transmission interval T with the last time preservation
2When unequal, the LLDP number-of-packet M of this destination interface on the destination interface equipment of can also resetting
1Collection, be about to the count value zero clearing of the LLDP packet of this destination interface, the LLDP number-of-packet M of current collection
1Be changed to initial value or invalid value (as paranormal span), and restart the first timer of this destination interface.Like this can be so that the data acquisition of destination interface is carried out at once again, the LLDP number-of-packet M that reads when avoiding detect next time
1Comprised the transmission interval T
2The LLDP packet that source port sends before unmodified.
Correspondingly, webmaster when certain link is carried out quality testing, the LLDP number-of-packet M that reads from destination interface equipment
1During for initial value or invalid value, no longer carry out the calculating of packet loss and, directly finish quality testing this time of this link the judgement of link-quality state.Because M
1During for initial value or invalid value, the illustration purpose port device does not also collect effective LLDP number-of-packet M
1
But above-mentioned replacement is not to be necessary, influences limited to the result who detects.In addition, when be the twice of unit interval detection time at interval, detect next time and just can guarantee the LLDP number-of-packet M that obtains
1Be effectively.
Step 350 is obtained the unit interval T that the destination interface of Set For Current carries out data acquisition from the MIB of destination interface equipment
1And at unit interval T
1In the LLDP number-of-packet M that receives
1Information;
Step 360 calculates the current packet loss η=(1-M of this link
1/ M
2) * 100%, and judge the state that this link is current according to the packet loss of packet loss that calculates and setting and the corresponding relation of quality state.
The quality state of judging link according to packet loss can adopt existing the whole bag of tricks, as quality state is defined as, well, a plurality of grades (can have here very many dividing mode) such as difference, each grade is corresponding to an interval that is limited by predetermined threshold value, packet loss and preset threshold value are compared, i.e. the current quality state of each link of decidable.The present invention does not limit concrete decision method yet.
Afterwards, can also produce corresponding business, as the data warehouse-in, produce alarm or other predefine business etc., and the packet loss and/or the quality state of each link is shown to the user according to the packet loss and/or the quality state of link.Can be for every kind of link-quality state define a kind of display mode, and show resulting link-quality state in view of the above, make the user get information about this link-quality situation.
Of particular note, though comprise the content of condition judgement in the above-mentioned flow process, but, because packet loss can directly react the quality of link, link-quality of the present invention detects the judgement that not necessarily needs to do according to packet loss the link-quality state, the result that can directly packet loss be detected as link-quality.At this moment, can omit in the above-mentioned flow process related content about condition judgement.
Second embodiment
Present embodiment is compared with first embodiment, and webmaster is directly to obtain the source port of the current collection of source port equipment at unit interval T
1The interior LLDP number-of-packet M that sends
2, but not infer, but realize that relative complex is a bit.In addition, present embodiment does not carry out the judgement of link-quality state.
In the corresponding system, comprise first data acquisition module, second data acquisition module and MIB module on the network equipment, wherein:
First data acquisition module is identical with the data acquisition module of first embodiment, no longer repeats.
Second data acquisition module is used for unit interval T
1Be the cycle, each LLDP packet transmit port of collection network equipment is at unit interval T
1The interior LLDP number-of-packet M that sends
2, and preserve the LLDP number-of-packet M of current collection in the MIB module
2
The state information that the MIB module is preserved is compared with first embodiment, has increased each LLDP packet transmit port T in the unit interval of current collection
1The interior LLDP number-of-packet M that sends
2Information.
The modular structure of present embodiment network management system comprises link data library module, data statistics module and data computation module, and wherein, the link data library module is identical with data computation module with first embodiment.In the present embodiment:
Data statistics module is used for obtaining from the link data library module source port, destination interface, source port equipment and the destination interface information of each bar link to be detected, obtains the source port of current collection at unit interval T from the MIB module of source port equipment
1The interior LLDP number-of-packet M that sends
2Information, obtain the destination interface of current collection at unit interval T from the MIB module of destination interface equipment
1In the LLDP number-of-packet M that receives
1Information, and with M
1And M
2Be sent to data computation module.
Alternatively, data statistics module can also obtained described LLDP number-of-packet M from the MIB module of source port equipment
2Information the time, obtain the transmission interval T of the source port LLDP packet of Set For Current
2, the transmission interval T of preserving with the last time then
2Compare, when both are equal, obtain LLDP number-of-packet M from destination interface equipment again
1Information, with M
1And M
2Be sent to data computation module; When both do not wait, upgrade the transmission interval T of preserving
2, no longer obtain LLDP number-of-packet M from destination interface equipment
1Information, also no longer carry out M
1And M
2Transmission.Alternatively, the LLDP number-of-packet M of destination interface equipment that can reset to this destination interface
1Collection.
Based on above system, present embodiment link-quality detection method comprises the data handling procedure of carrying out on two data gatherer processes carrying out on the network equipment and the webmaster.
A gatherer process is used to gather LLDP protocol data bag receiving port at unit interval T
1In the LLDP number-of-packet M that receives
1, identical with first embodiment, repeat no more.Another gatherer process is used for unit interval T
1Be the cycle, gather LLDP protocol data bag transmit port at unit interval T
1The interior LLDP number-of-packet M that sends
2, and in MIB, preserve the LLDP number-of-packet M of current collection
2Two gatherer processes are very similar, need in the gatherer process of LLDP number-of-packet M2 to use the time to equal the second timer of unit interval T1 when certain, but start or restart this timer after do not need to wait for a period of time, and can directly count.
Present embodiment to each bar link to be detected, obtains this source port of current collection at unit interval T from the MIB of this link source end jaws equipment in data handling procedure
1The interior LLDP number-of-packet M that sends
2Information, obtain this destination interface of current collection at unit interval T from the MIB of this link destination interface equipment
1In the LLDP number-of-packet M that receives
1Information, then according to formula η=(1-M
1/ M
2) * 100% calculates the current packet loss η of this link.
Further, webmaster can obtain the transmission interval T of the source port of Set For Current earlier from the MIB of source port equipment
2With described LLDP number-of-packet M
2Information, and the transmission interval T that will newly obtain
2Transmission interval T with the last time preservation
2Relatively, when both are equal, obtain LLDP number-of-packet M from destination interface equipment again
1Information, carry out the calculating of packet loss, when both do not wait, the transmission interval T of upgrade preserving
2,, finish quality testing this time to this link not in the calculating of carrying out packet loss.And the LLDP number-of-packet M of destination interface equipment that can reset to this destination interface
1Collection.
On the basis of the foregoing description, the present invention can also carry out some modifications and variations.For example, in the transmission interval T of LLDP packet
2Unifying between the configuration or the network equipment and webmaster this parameter is had in real time synchronous when machine-processed by webmaster, also can directly from the local configuration information of webmaster, directly read unit interval T
1With the transmission interval T
1, the source port of inferring outgoing link is at unit interval T
1The interior LLDP number-of-packet M that sends
2
Claims (12)
1. one kind is carried out the method that link-quality detects based on Link Layer Discovery Protocol, comprising:
The network equipment is with unit interval T
1Be the cycle, gather each LLDP receiving port at unit interval T
1In the Link Layer Discovery Protocol LLDP number-of-packet M that receives
1, and preserve the LLDP number-of-packet M of each LLDP receiving port of current collection at management information bank MIB
1
When network management system is carried out quality testing to each link to be detected, obtain this destination interface of current collection at unit interval T from the MIB of this link destination interface place network equipment
1In the LLDP number-of-packet M that receives
1Information, and the source port that obtains this link is at unit interval T
1The interior LLDP number-of-packet M that sends
2, calculate the current packet loss η=(1-M of this link
1/ M
2) * 100%.
2. the method for claim 1 is characterized in that:
Described source port is at unit interval T
1The interior LLDP number-of-packet M that sends
2Infer in the following manner:
Described network management system is obtained the transmission interval T of this source port LLDP packet of Set For Current from the MIB of the described link source end mouth place network equipment
2Information, from the MIB of the described link destination interface place network equipment, obtain the unit interval T that this destination interface of Set For Current carries out data acquisition
1Information, with T
1/ T
2As the described source port of inferring at unit interval T
1The interior LLDP number-of-packet M that sends
2Perhaps
Described network management system directly reads the unit interval T that described destination interface carries out data acquisition from local configuration information
1Transmission interval T with the LLDP packet of described source port
1, with T
1/ T
2As the described source port of inferring at unit interval T
1The interior LLDP number-of-packet M that sends
2
3. the method for claim 1 is characterized in that:
Described link source end mouth is at unit interval T
1The interior LLDP number-of-packet M that sends
2Directly obtain in the following manner:
The described network equipment is with unit interval T
1For the cycle is gathered each LLDP transmit port at unit interval T
1The LLDP number-of-packet M that sends
2, and with each LLDP transmit port of current collection at unit interval T
1The LLDP number-of-packet M that sends
2Be kept among the MIB;
Described network management system is directly obtained the described source port of current collection at unit interval T from the MIB of the source port place network equipment of described link
1The interior LLDP number-of-packet M that sends
2
4. as claim 2 or 3 described methods, it is characterized in that:
When each link to be detected was carried out quality testing, described network management system was obtained information from the described source port place network equipment earlier, comprising described transmission interval T
2Information, the transmission interval T that will newly obtain then
2Transmission interval T with the last time preservation
2Compare,, obtain information from the described destination interface place network equipment again, carry out the calculating of packet loss if both are equal; If both are unequal, upgrade the transmission interval T of preserving
2, finish quality testing this time to this link.
5. method as claimed in claim 4 is characterized in that:
Described network management system is judged the transmission interval T of newly obtaining
2Transmission interval T with the last time preservation
2When unequal, also notify the described link destination interface place network equipment to reset to LLDP number-of-packet M
1Collection; After the described network equipment is received this notice, with the LLDP number-of-packet M of current collection
1Be changed to initial value or invalid value, and restart this destination interface at unit interval T
1In the LLDP number-of-packet M that receives
1Collection;
When described network management system is carried out quality testing to each link to be detected, obtaining LLDP number-of-packet M
1After also judge this LLDP number-of-packet M
1Whether be initial value or invalid value, if not, carry out the calculating of packet loss again, otherwise, quality testing this time directly finished to this link.
6. as claim 1,2,3 or 5 described methods, it is characterized in that:
The described network equipment is gathered each LLDP receiving port in the following manner at unit interval T
1In the LLDP number-of-packet M that receives
1:
The described network equipment is provided with a first timer for each LLDP receiving port, and its timing equals unit interval T
1, to each LLDP receiving port, after startup is gathered, wait for the time of one section setting earlier, start this first timer then, and handle below carrying out:
A) the LLDP packet that each LLDP receiving port is received is counted;
B) after the timing of described first timer arrives, be the LLDP number-of-packet M of each LLDP receiving port of this collection with current count value
1Write MIB or upgrade original LLDP number-of-packet M among the MIB
1
C) with described count value zero clearing, restart first timer, return the collection that step a) begins next round.
7. as claim 1,2,3 or 5 described methods, it is characterized in that:
Described network management system is according to the assay intervals time of setting, and all links of supporting the LLDP agreement in the link database and being in connection status are carried out cycle detection, and this assay intervals time is more than or equal to described unit interval T
1
8. as claim 2 or 3 described methods, it is characterized in that:
Described LLDP packet receiving port carries out the unit interval T of data acquisition
1The LLDP protocol data bag that is set to corresponding LLDP packet transmit port sends interval T
230 times~50 times.
9. a system that carries out the link-quality detection based on Link Layer Discovery Protocol comprises the network equipment and network management system, comprises management information bank MIB module in the described network equipment, comprises the link data library module in the described network management system, it is characterized in that:
The described network equipment also comprises first data acquisition module, is used for unit interval T
1Be the cycle, gather each LLDP receiving port at unit interval T
1In the Link Layer Discovery Protocol LLDP number-of-packet M that receives
1, and preserve the LLDP number-of-packet M of current collection in the MIB module
1
Described network management system also comprises data statistics module and data computation module, wherein:
Described data statistics module is used for when carrying out the link-quality detection, obtain the information of supporting the LLDP agreement and being in source port, destination interface, the source port place network equipment and the destination interface place network equipment of each link to be detected of connection status from the link data library module, obtain the destination interface of current collection at unit interval T from the MIB of each link destination interface place network equipment
1In the LLDP number-of-packet M that receives
1Information, and obtain each link source end mouth at unit interval T
1The interior LLDP number-of-packet M that sends
2, with M
1And M
2Send described data computation module to;
Described data computation module is used for according to M
1And M
2, calculate the current packet loss η of each link, η=(1-M is arranged
1/ M
2) * 100%.
10. system as claimed in claim 9 is characterized in that, described data statistics module obtains described LLDP number-of-packet M in the following manner
2:
Described data statistics module is obtained the transmission interval T of this source port LLDP packet of Set For Current from the MIB of this source port place network equipment
2Information, from the MIB of the destination interface place network equipment of this link, obtain the unit interval T that this destination interface of Set For Current carries out data acquisition
1Information, with T
1/ T
2As this source port of inferring at unit interval T
1The interior LLDP number-of-packet M that sends
2Perhaps
Described data statistics module directly reads the unit interval T that described destination interface carries out data acquisition from local configuration information
1Transmission interval T with the LLDP packet of described source port
1, with T
1/ T
2As this source port of inferring at unit interval T
1The interior LLDP number-of-packet M that sends
2
11. system as claimed in claim 9 is characterized in that:
The described network equipment also comprises second data acquisition module, is used for unit interval T
1Be the cycle, gather each LLDP transmit port at unit interval T
1The LLDP number-of-packet M that sends
2, and with the LLDP number-of-packet M of current collection
2Be kept among the MIB;
Data statistics module in the described network management system is directly obtained the described source port of current collection at unit interval T from the MIB of the source port place network equipment of described link
1The interior LLDP number-of-packet M that sends
2
12., it is characterized in that as claim 10 or 11 described systems:
When described data statistics module is carried out quality testing to each link to be detected, obtain information from the described source port place network equipment earlier, comprise described transmission interval T
2Information, the transmission interval T that will newly obtain then
2Transmission interval T with the last time preservation
2Compare,, obtain information and M from the described destination interface place network equipment again if both are equal
1And M
2Transmission; If both are unequal, upgrade the transmission interval T of preserving
2, no longer obtain information from the described destination interface place network equipment, also no longer carry out M
1And M
2Transmission.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102108903A CN101383737B (en) | 2008-08-25 | 2008-08-25 | Method and system for link quality detection based on link layer discovery protocol |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008102108903A CN101383737B (en) | 2008-08-25 | 2008-08-25 | Method and system for link quality detection based on link layer discovery protocol |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101383737A CN101383737A (en) | 2009-03-11 |
CN101383737B true CN101383737B (en) | 2011-04-20 |
Family
ID=40463373
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008102108903A Expired - Fee Related CN101383737B (en) | 2008-08-25 | 2008-08-25 | Method and system for link quality detection based on link layer discovery protocol |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101383737B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102223312B (en) * | 2011-07-26 | 2014-09-10 | 杭州华三通信技术有限公司 | Flow control method and equipment based on link status |
CN102726091B (en) * | 2012-03-15 | 2014-12-31 | 华为技术有限公司 | Method and device for testing link performance |
CN102946330B (en) | 2012-09-29 | 2017-03-15 | 华为技术有限公司 | network packet loss measuring method, device and system |
CN103067791A (en) * | 2012-12-11 | 2013-04-24 | 深圳市梦网科技发展有限公司 | Network dynamic adaptation monitoring video transmission method |
TWI502930B (en) * | 2013-11-29 | 2015-10-01 | Acer Inc | Communication method and mobile electronic device using the same |
CN105099742B (en) * | 2014-05-20 | 2020-01-14 | 中兴通讯股份有限公司 | Method, device, system and terminal for collecting data |
CN106936651B (en) * | 2015-12-29 | 2020-01-31 | 华为技术有限公司 | Determination method and controller for data streams |
CN106713066B (en) * | 2016-11-30 | 2020-11-10 | 海尔优家智能科技(北京)有限公司 | Method and device for monitoring flow processing system |
CN106789709B (en) * | 2016-12-21 | 2020-03-03 | 迈普通信技术股份有限公司 | Load balancing method and device |
CN107690139A (en) * | 2017-08-28 | 2018-02-13 | 苏州思创源博电子科技有限公司 | A kind of communication means for photovoltaic generation |
EP3637847B1 (en) * | 2017-09-19 | 2024-04-10 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Data packet distribution method, sender device, receiver device, and storage medium |
CN107566222A (en) * | 2017-10-18 | 2018-01-09 | 中国联合网络通信集团有限公司 | A kind of method and device for calculating packet loss |
CN112383937A (en) * | 2020-08-20 | 2021-02-19 | 佳格科技(浙江)股份有限公司 | Wireless communication quality detection method and system |
CN114884839B (en) * | 2022-06-10 | 2023-05-16 | 中煤科工重庆设计研究院(集团)有限公司 | Method for detecting unidirectional link quality |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101170445A (en) * | 2007-11-20 | 2008-04-30 | 中兴通讯股份有限公司 | Topology method and system for IP network management cluster in simple network management |
CN101227336A (en) * | 2008-02-01 | 2008-07-23 | 华为技术有限公司 | Apparatus and method for collocation link layer to discover protocol management address |
-
2008
- 2008-08-25 CN CN2008102108903A patent/CN101383737B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101170445A (en) * | 2007-11-20 | 2008-04-30 | 中兴通讯股份有限公司 | Topology method and system for IP network management cluster in simple network management |
CN101227336A (en) * | 2008-02-01 | 2008-07-23 | 华为技术有限公司 | Apparatus and method for collocation link layer to discover protocol management address |
Non-Patent Citations (1)
Title |
---|
测评认证FAQ.防火墙性能测试FAQ.《国家信息安全测评认证》.2005,(第6期), * |
Also Published As
Publication number | Publication date |
---|---|
CN101383737A (en) | 2009-03-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101383737B (en) | Method and system for link quality detection based on link layer discovery protocol | |
Queiroz et al. | An approach for SDN traffic monitoring based on big data techniques | |
CN113315682B (en) | Method, system and device for generating information transmission performance warning | |
EP1742416B1 (en) | Method, computer readable medium and system for analyzing and management of application traffic on networks | |
CN100394742C (en) | Monitoring and analyzing system for opening shortest path priority route protocol and working method | |
JP4774357B2 (en) | Statistical information collection system and statistical information collection device | |
US8452572B2 (en) | Distributed sample survey technique for data flow reduction in sensor networks | |
KR101123020B1 (en) | High-speed traffic measurement and analysis methodologies and protocols | |
EP1865646A1 (en) | A method for monitoring the packet loss rate | |
WO2008062787A1 (en) | Flow information restricting apparatus and method | |
CN108449210B (en) | Network routing fault monitoring system | |
US9331951B2 (en) | Path discovery in data transport networks based on statistical inference | |
JP2008283621A (en) | Apparatus and method for monitoring network congestion state, and program | |
CN101753639B (en) | Service role recognition method based on flow communication mode | |
CN115733720A (en) | Method, device and system for sending message and receiving message for OAM (operation administration and maintenance) | |
JP2011109587A (en) | Device, method, and system for monitoring bgp traffic variation | |
CN109245940A (en) | A kind of method network equipment discovery and detected | |
JP2016146581A (en) | Device and method for collecting traffic information | |
JP2004086522A (en) | Communication network monitoring system | |
CN107612764A (en) | A kind of transmission network management data acquisition device and method | |
JP4938042B2 (en) | Flow information transmitting apparatus, intermediate apparatus, flow information transmitting method and program | |
JP4871775B2 (en) | Statistical information collection device | |
CN114900426B (en) | Fault positioning method based on active and passive hybrid measurement and related equipment | |
EP3251308B1 (en) | Faster link layer discovery protocol updates | |
CN104518986A (en) | Link load balancing system based on remote site detection and method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110420 Termination date: 20200825 |
|
CF01 | Termination of patent right due to non-payment of annual fee |