CN106027326A - Link health detection method and link health detection apparatus - Google Patents

Link health detection method and link health detection apparatus Download PDF

Info

Publication number
CN106027326A
CN106027326A CN201610304982.2A CN201610304982A CN106027326A CN 106027326 A CN106027326 A CN 106027326A CN 201610304982 A CN201610304982 A CN 201610304982A CN 106027326 A CN106027326 A CN 106027326A
Authority
CN
China
Prior art keywords
outgoing interface
detection target
session
management server
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.)
Granted
Application number
CN201610304982.2A
Other languages
Chinese (zh)
Other versions
CN106027326B (en
Inventor
徐林
王金威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201610304982.2A priority Critical patent/CN106027326B/en
Publication of CN106027326A publication Critical patent/CN106027326A/en
Application granted granted Critical
Publication of CN106027326B publication Critical patent/CN106027326B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Landscapes

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

Abstract

The invention provides a link health detection method and a link health detection apparatus. The method is applied to a session management server, and comprises the following steps: receiving a detection message which is sent by a network device and carries a detection target and an exit interface; determining a proportion of abnormal state sessions through a session log corresponding to the detection target and the exit interface; according to the proportion, judging whether accessing the detection target through the exit interface is healthy; and if not, sending information about that accessing the detection target through the exit interface is not healthy to the network device, thereby enabling the network device to adjust the exit interface for accessing the detection target. By application of the embodiment of the invention, the session management server performs statistics on the proportion of abnormal state sessions in the session log corresponding to the detection target and the exit interface, thus, whether accessing to the detection target through the exit interface is healthy can be judged, memory usage of the network device can be reduced, forwarding performance of the network device is improved, and the obtained judgment result is more accurate.

Description

Link healthprobe method and device
Technical field
The application relates to network communication technology field, particularly relates to a kind of link healthprobe method and device.
Background technology
Along with the development of network application, user's internet access speed constantly promotes, and user is to business Sustainable requests also improves constantly.Strengthen availability and the stability of outgoing interface, make user obtain optimal leading to Letter circuit, just can ensure that user obtains optimal internet access and experiences.Utilize link healthprobe technology, In the case of can be implemented in the interruption of certain outgoing interface, still may provide the user with backup outgoing interface.
Existing link healthprobe mode is: issue many for outgoing interface to the network equipment (such as fire wall) Individual detection target, then the network equipment sends probe messages by this outgoing interface to multiple different detection targets, And make the statistics of delay, packet loss according to the response message received, and then utilize the delay and packet loss obtained Rate judges that this outgoing interface is the most healthy.But, if the negligible amounts of detection target, then the delay obtained, lose The error in datas such as bag rate are big, if the quantity of detection target is more, can take again a large amount of internal memories of the network equipment, Thus reduce the forwarding performance of the network equipment.
Summary of the invention
In view of this, the application provides a kind of link healthprobe method and device, to solve existing link The problem that healthprobe mode can reduce the forwarding performance of the network equipment.
First aspect according to the embodiment of the present application, it is provided that a kind of link healthprobe method, described method should For session management server, described method includes:
Receiving the probe messages that the network equipment sends, described probe messages includes detecting target and outgoing interface;
The session log utilizing described detection target corresponding with described outgoing interface determines the ratio of abnormality session;
Described ratio is utilized to judge to access described detection target by described outgoing interface the most healthy;
It is sent to described if it is not, then the described unsound information of detection target will be accessed by described outgoing interface The network equipment, so that the described network equipment adjusts the outgoing interface accessing described detection target.
Second aspect according to the embodiment of the present application, it is provided that a kind of link healthprobe method, described method should For the network equipment, described method includes:
Send to session management server and carry detection target and the probe messages of outgoing interface, so that described meeting The session log detecting target corresponding with described outgoing interface described in words management server by utilizing determines abnormality meeting The ratio of words, and it is the most healthy to utilize described ratio to judge to access described detection target by described outgoing interface;
If receive the return of described session management server accesses described detection target not by described outgoing interface Healthy information, then adjust the outgoing interface accessing described detection target.
The third aspect according to the embodiment of the present application, it is provided that a kind of link healthprobe device, described device should For session management server, described device includes:
Receiving unit, for receiving the probe messages that the network equipment sends, described probe messages includes detecting mesh Mark and outgoing interface;
Determine unit, determine exception for the session log utilizing described detection target corresponding with described outgoing interface The ratio of state session;
First judging unit, is used for utilizing described ratio to judge by described outgoing interface and accesses described detection target The most healthy;
Transmitting element, for when judged result is no, will access described detection target by described outgoing interface Unsound information is sent to the described network equipment, so that the described network equipment adjusts accesses described detection target Outgoing interface.
Fourth aspect according to the embodiment of the present application, it is provided that a kind of link healthprobe device, described device should For the network equipment, described device includes:
First transmitting element, carries detection target and the spy of outgoing interface for sending to session management server Observe and predict literary composition, so that described session management server utilizes the session that described detection target is corresponding with described outgoing interface Daily record determines the ratio of abnormality session, and it is described to utilize described ratio to judge by the access of described outgoing interface Detection target is the most healthy;
Adjustment unit, if for receiving being accessed by described outgoing interface of described session management server return The described unsound information of detection target, then adjust the outgoing interface accessing described detection target.
Application the embodiment of the present application, session management server receive the network equipment send carry detection During the probe messages of target and outgoing interface, utilize the session log that described detection target is corresponding with described outgoing interface Determine the ratio of abnormality session, and utilize described ratio to judge by the described detection of access of described outgoing interface Target is the most healthy, if it is not, then the described unsound information of detection target will be accessed by described outgoing interface It is sent to the network equipment, so that the described network equipment adjusts the outgoing interface accessing described detection target.
Based on above-mentioned implementation, owing to the network equipment is to obtain detection target from data message, just for Detect outgoing interface corresponding to target to go detect whether health rather than gone by a large amount of detection targets received Judging that a certain outgoing interface is the most healthy, so, whether health is more targeted to detect interface, and by Probe messages is then sent to session management server go to make a decision, visits without sending to detection target Observe and predict literary composition, then add up delay and the packet loss of response message, therefore can reduce the EMS memory occupation of the network equipment, Improve the forwarding performance of the network equipment.Additionally, due to session management server be by statistics detection target and In all session log that outgoing interface is corresponding, the session log of abnormality session accounts for all session days of correspondence The ratio of will, to judge the most healthy by described outgoing interface access detection target rather than to be rung by statistics Delay and the packet loss of answering message judge, so, will not produce erroneous judgement due to the unstable factor in network, Therefore, the judged result obtained by the ratio of abnormality session in statistics session log is more accurate.
Accompanying drawing explanation
Fig. 1 is that the application is according to a kind of link healthprobe method and device shown in an exemplary embodiment Application scenarios schematic diagram;
Fig. 2 is the application embodiment according to a kind of link healthprobe method shown in an exemplary embodiment Flow chart;
Fig. 3 is the application enforcement according to the another kind of link healthprobe method shown in an exemplary embodiment Example flow chart;
Fig. 4 is the application enforcement according to the another kind of link healthprobe method shown in an exemplary embodiment Example flow chart;
Fig. 5 is the application hardware configuration according to a kind of session management server shown in an exemplary embodiment Figure;
Fig. 6 is the application embodiment according to a kind of link healthprobe device shown in an exemplary embodiment Structure chart;
Fig. 7 is the application hardware structure diagram according to a kind of network equipment shown in an exemplary embodiment;
Fig. 8 is the application enforcement according to the another kind of link healthprobe device shown in an exemplary embodiment Example structure chart.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following retouches Stating when relating to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element. Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the application Formula.On the contrary, they only with describe in detail in appended claims, the application some in terms of mutually one The example of the apparatus and method caused.
It is only merely for describing the purpose of specific embodiment at term used in this application, and is not intended to be limiting this Application." a kind of ", " described " of singulative used in the application and appended claims " it is somebody's turn to do " be also intended to include most form, unless context clearly shows that other implications.It is also understood that Term "and/or" used herein refer to and comprise any of one or more project of listing being associated or Likely combine.
Although should be appreciated that may use term first, second, third, etc. to describe various letter in the application Breath, but these information should not necessarily be limited by these terms.These terms are only used for same type of information district each other Separately.Such as, in the case of without departing from the application scope, the first information can also be referred to as the second information, Similarly, the second information can also be referred to as the first information.Depend on linguistic context, word as used in this " if " can be construed to " ... time " or " when ... time " or " in response to determining ".
Shown in Figure 1, for the application according to a kind of link healthprobe side shown in an exemplary embodiment The application scenarios schematic diagram of method and device, including: the network equipment, session management server.Wherein, described The network equipment is used for forwarding data packets, can be the equipment such as switch, router, fire wall;Described meeting Words management server is monitored management for the session log sending the network equipment.
Shown in Figure 2, for the application according to a kind of link healthprobe side shown in an exemplary embodiment The embodiment flow chart of method, this embodiment is applied on session management server, comprises the following steps:
Step 201: receive network equipment transmission carries detection target and the probe messages of outgoing interface.
Generally, in enterprise, company or organization network, in order to ensure some business (such as Internet video industry Business, speculation in stocks business etc.) persistence run and stability, can the network equipment in exit dispose multiple go out Interface, such as outgoing interface 1, outgoing interface 2 etc..The network equipment needs periodically or according to other strategies, for belonging to Data message in these business detects the health status of corresponding outgoing interface, to avoid occurring interrupting in business Time, just go to judge the health problem of interface.Such as, the network equipment can be pre-configured with and there is a need to carry out chain The service feature of road healthprobe, in preset time period, the network equipment when receiving data message, Judge whether the service feature that data message carries exists the described service feature needing to carry out link healthprobe In;The most then obtain the detection target that data message carries, and from routing table, obtain described detection target Corresponding outgoing interface, then adds to the detection target got and outgoing interface in probe messages, and will Probe messages is sent to session management server.Therefore, session management server can receive the network equipment Send carries detection target and the probe messages of outgoing interface.
Wherein, detect the health status of the link that the health status of interface i.e. represents that this outgoing interface is corresponding, Described detection target refers to the purpose IP address of record in routing table, and described outgoing interface refers to routing table The outgoing interface of the network equipment of middle record, the outgoing interface that the most described purpose IP address is corresponding.
Step 202: the session log utilizing described detection target corresponding with described outgoing interface determines abnormality meeting The ratio of words.
The network equipment, when receiving the data message that other network equipments send, can utilize data message to carry Five-tuple information (including source IP address, source port, purpose IP address, destination interface and protocol number) Set up session, and ageing timer is set for described session, after described ageing timer time-out, if not Receiving the response message for described data message, the network equipment then utilizes described conversation establishing session log, And delete described session, and the status indicator arranging described session log is abnormality mark;Described always Before changing timer expiry, if receiving the response message for described data message, the network equipment then utilizes Described conversation establishing session log, and the status indicator that described session log is set be normal condition mark, and Described session log is sent to session management server.
Wherein, if the network equipment is after ageing timer time-out, described data message still it is not received for Response message, then be likely to be due to unstable networks factor, the data message sent by described outgoing interface is not had Have and arrive the equipment that described purpose IP address is pointed to, cause described session abnormal, therefore, it can described meeting Words are deleted, to save the EMS memory occupation of the network equipment.Due to time of sending datagram from the network equipment to The time receiving corresponding response message is the shortest, so described ageing timer can include but not limited to it is 5 Millisecond.Meanwhile, the status indicator of the session log of establishment is set to abnormality mark, and will Words daily record is sent to session management server, in order to whether follow-up judgement accesses detection target by outgoing interface Health, this judge process is follow-up to be discussed in detail.Additionally, the network equipment is when utilizing conversation establishing session log, Outside five-tuple information in session being added in session log, also can add corresponding outgoing interface to meeting In words daily record.
In the embodiment of the present application, determine in the session log utilizing described detection target corresponding with described outgoing interface During the ratio of abnormality session, session management server can first obtain the spy that probe messages is carried Survey target and outgoing interface, then count all session log that described detection target is corresponding with described outgoing interface The first quantity, and count from the session log of the first quantity status indicator be abnormality mark meeting Second quantity of words daily record, finally utilizes the first quantity and the second quantity to calculate the ratio of described abnormality session Example.
Wherein, owing to recording five-tuple information and outgoing interface in session log, described five-tuple information includes Purpose IP address, i.e. detects target, and therefore session management server can get detection target and outgoing interface First quantity of corresponding all session log, again due in session log also record have status indicator, therefore The of the session log that status indicator is abnormality mark can be counted from the session log of the first quantity Two quantity.Described status indicator can include but not limited to it is character or numerical value, such as, and mark 1 expression Abnormality identifies, mark 2 expression normal condition mark.Or, mark 2 can represent normal condition mark Knowing, mark 1 can represent that abnormality identifies.
Understand based on foregoing description, owing to the network equipment is to obtain detection target from data message, and only The outgoing interface corresponding for detection target goes detect whether health rather than detect target in a large number by receiving Going to judge that a certain outgoing interface is the most healthy, so, whether health is more targeted to detect interface, and Owing to being probe messages to be sent to session management server go to make a decision, send without to detection target Probe messages, then add up delay and the packet loss of response message, the internal memory that therefore can reduce the network equipment accounts for With, improve the forwarding performance of the network equipment.
Step 203: utilize described ratio to judge to access described detection target by described outgoing interface the most healthy, If it is, perform step 204, if it is not, then perform step 205.
In this step, session management server judges whether described ratio exceedes predetermined threshold value, if it is not, the most true Fixed healthy by the described outgoing interface described detection target of access, the link that the most described outgoing interface is corresponding is healthy, holds Row step 204;If, it is determined that by described outgoing interface access described detection target unhealthy, i.e. described in go out The link that interface is corresponding is unhealthy, performs step 205.
Wherein, predetermined threshold value arbitrarily can select according to practical experience, such as 80%, if described ratio exceedes pre- If threshold value, then it represents that when accessing described detection target by described outgoing interface, major part does not receive response report Literary composition, described outgoing interface interrupts, if described ratio is less than predetermined threshold value, then it represents that visited by described outgoing interface When asking described detection target, only small part does not receive response message, and this it may be the case that due to net Network unstable factor causes rather than outgoing interface interrupts.
Therefore, session management server determines different by the session log utilizing detection target corresponding with outgoing interface The often ratio of state session, the most healthy rather than logical to judge by described outgoing interface access detection target Delay and the packet loss of crossing statistics response message judge.So, will not be due to the unstable factor in network And produce erroneous judgement, therefore, the judged result utilizing the ratio of abnormality session to obtain is more accurate.
Step 204: the information accessing described detection target healthy by described outgoing interface is sent to described network Equipment.
If the network equipment receive session management server send by described outgoing interface access described detection mesh The information that mark is healthy, then terminate current process.
Step 205: the described unsound information of detection target will be accessed by described outgoing interface and be sent to described net Network equipment, so that the described network equipment adjusts the outgoing interface accessing described detection target.
If the network equipment receive session management server send by described outgoing interface access described detection mesh Mark unsound information, then utilize new outgoing interface to update described in routing table and detect the outgoing interface that target is corresponding.
Described in above-described embodiment, owing to the network equipment is to obtain detection target from data message, just for Detect outgoing interface corresponding to target to go detect whether health rather than gone by a large amount of detection targets received Judging that interface is the most healthy, so, whether health is more targeted to detect interface, and owing to being Probe messages is sent to session management server go to make a decision, sends detection report without to detection target Literary composition, then add up delay and the packet loss of response message, therefore can reduce the EMS memory occupation of the network equipment, carry The forwarding performance of the high network equipment.Additionally, due to session management server is by statistics detection target and to go out In all session log that interface is corresponding, the session log of abnormality session accounts for all session log of correspondence Ratio, whether healthy rather than responded by statistics to judge to access detection target by described outgoing interface Delay and the packet loss of message judge, so, will not produce erroneous judgement due to the unstable factor in network, Therefore, the judged result obtained by the ratio of abnormality session in statistics session log is more accurate.
Shown in Figure 3, for the application according to the another kind of link healthprobe shown in an exemplary embodiment The embodiment flow chart of method, this embodiment is applied on the network equipment, comprises the following steps:
Step 301: send to session management server and carry detection target and the probe messages of outgoing interface, So that the session log that described session management server utilizes described detection target corresponding with described outgoing interface determines The ratio of abnormality session, and utilize described ratio to judge by the described outgoing interface described detection target of access The most healthy.
As depicted at step 201, generally, in enterprise, company or organization network, in order to ensure some business Persistence that (such as network video service, speculation in stocks business etc.) is run and stability, can be in network equipment portion Affixing one's name to multiple outgoing interface, therefore, the network equipment needs periodically or according to other strategies, for belonging to these business The health status of outgoing interface corresponding to data message detection, to avoid when interrupting occurs in business, just go to sentence The health problem of disconnected outgoing interface.Such as, the network equipment can be pre-configured with and there is a need to carry out link healthprobe Service feature, in preset time period, the network equipment can be when the data message received, it is judged that Whether the service feature that data message carries exists in the described service feature needing to carry out link healthprobe; The most then obtain the detection target that data message carries, and it is corresponding to obtain described detection target from routing table Outgoing interface, then the detection target got and outgoing interface are added in probe messages, and will detection Message is sent to session management server.
Wherein, detect the health status of the link that the health status of interface i.e. represents that this outgoing interface is corresponding, Described detection target refers to the purpose IP address of record in routing table, and described outgoing interface refers to routing table The outgoing interface of the network equipment of middle record, the outgoing interface that the most described purpose IP address is corresponding.
Additionally, as described in step 202, the network equipment is receiving the datagram that other network equipments send Wen Shi, the five-tuple information that data message can be utilized to carry sets up session, and arrange for described session aging fixed Time device, after described ageing timer time-out, if being not received for the response message of described data message, Then utilize described conversation establishing session log, and delete described session, and the state of described session log is set It is designated abnormality mark;Before described ageing timer time-out, if receiving for described datagram The response message of literary composition, then utilize described conversation establishing session log, and arrange the state mark of described session log Know and identify for normal condition, and described session log is sent to session management server.
Wherein, if the network equipment is after ageing timer time-out, described data message still it is not received for Response message, then be likely to be due to unstable networks factor, the data message sent by described outgoing interface is not had Have and arrive the equipment that described purpose IP address is pointed to, cause described session abnormal, therefore, it can described meeting Words are deleted, to save the EMS memory occupation of the network equipment.Due to from the network equipment send data message time Between the shortest to the time receiving corresponding response message, so described ageing timer can include but not limit Then 5 milliseconds.Meanwhile, the status indicator of the session log of establishment is set to abnormality mark, And session log is sent to session management server, in order to follow-up judgement accesses detection mesh by outgoing interface Mark is the most healthy.Additionally, the network equipment is when utilizing conversation establishing session log, it will the five-tuple in words Outside information is added in session log, also corresponding outgoing interface can be added in session log.
Judge to access, by described outgoing interface, the mistake that described detection target is the most healthy for session management server Journey, as described in step 202 and step 203, does not repeats them here.
Understand based on foregoing description, owing to the network equipment is to obtain detection target from data message, just for Detect outgoing interface corresponding to target to go detect whether health rather than go to sentence by receiving a large amount of detection target Disconnected outgoing interface is the most healthy, so, detects interface whether health more targeted, and due to be by Probe messages is sent to session management server and goes to make a decision, and sends probe messages without to detection target, Add up delay and the packet loss of response message again, therefore can reduce the EMS memory occupation of the network equipment, improve net The forwarding performance of network equipment.
Additionally, due to session management server is all sessions corresponding with outgoing interface by statistics detection target In daily record, the session log of abnormality session accounts for the ratio of all session log of correspondence, to judge to pass through Described outgoing interface accesses whether healthy detection target rather than the delay by statistics response message and packet loss Judge.So, erroneous judgement will not be produced due to the unstable factor in network, therefore, by statistics meeting The judged result that in words daily record, the ratio of abnormality session obtains is more accurate.
Step 302: if receive described session management server return by described outgoing interface access described spy Survey the unsound information of target, then adjust the outgoing interface accessing described detection target.
If the network equipment receive session management server send by described outgoing interface access described detection mesh Mark unsound information, then adjust the outgoing interface accessing described detection target.
For adjusting the process of outgoing interface accessing described detection target, the network equipment can utilize and new go out to connect The outgoing interface that target is corresponding is detected described in oral replacement routing table.
If additionally, the network equipment receives the described by the access of described outgoing interface of session management server transmission The information that detection target is healthy, then terminate current process.
Described in above-described embodiment, owing to the network equipment is to obtain detection target, a pin from data message Go the outgoing interface that detection target is corresponding detect whether health rather than detect mesh in a large number by receive Mark goes to judge that a certain outgoing interface is the most healthy, and so, whether health is more targeted to detect interface, And owing to being probe messages to be sent to session management server go to make a decision, without to detection mesh Mark transmission probe messages, then add up delay and the packet loss of response message, therefore can reduce the network equipment EMS memory occupation, improve the network equipment forwarding performance.Additionally, due to session management server is to pass through In all session log that statistics detection target is corresponding with outgoing interface, the session log of abnormality session accounts for The ratio of corresponding all session log, the most healthy to judge by described outgoing interface access detection target, Rather than the delay and packet loss by statistics response message judges, so, will not be due in network Unstable factor produces erroneous judgement, therefore, is obtained by the ratio of abnormality session in statistics session log Judged result more accurate.
Shown in Figure 4, for the application according to the another kind of link healthprobe shown in an exemplary embodiment The embodiment flow chart of method, this embodiment combines the application scenarios of Fig. 1 and is described in detail, including following Step:
Step 401: the network equipment receives data message.
Owing to the network equipment is for forwarding data packets, therefore, the number that other network equipments send can be received According to message.
Step 402: the network equipment utilizes the five-tuple information creating session that described data message carries.
Step 403: the network equipment creates session log, and described session log is sent to session management service Device.
The network equipment (includes source IP address, source port, mesh in the five-tuple information utilizing data message to carry IP address, destination interface and protocol number) set up session after, aging timing can be set for described session Device, after described ageing timer time-out, if being not received for the response message of described data message, The network equipment then utilizes described conversation establishing session log, and deletes described session, and arranges described session day The status indicator of will is abnormality mark;Before described ageing timer time-out, if receiving for institute Stating the response message of data message, the network equipment then utilizes described conversation establishing session log, and arranges described The status indicator of session log is normal condition mark, and described session log is sent to session management service Device.
Wherein, if the network equipment is after ageing timer time-out, described data message still it is not received for Response message, then be likely to be due to unstable networks factor, the data message sent by described outgoing interface is not had Have and arrive the equipment that described purpose IP address is pointed to, cause described session abnormal, therefore, it can described meeting Words are deleted, to save the EMS memory occupation of the network equipment.Due to from the network equipment send data message time Between the shortest to the time receiving corresponding response message, so described ageing timer can include but not limit Then 5 milliseconds.Meanwhile, the status indicator of the session log of establishment is set to abnormality mark, And session log is sent to session management server, in order to follow-up judgement accesses detection mesh by outgoing interface Mark is the most healthy, and this judge process is follow-up to be discussed in detail.Additionally, the network equipment is utilizing conversation establishing session During daily record, outside the five-tuple information in session being added in session log, also can be by described purpose IP The outgoing interface of address correspondence in the routing table adds in session log.
Step 404: session management server preserves the session log received.
Step 405: the network equipment needs the service feature carrying out link healthprobe from connecing according to be pre-configured with In the data message received obtain detection target, and obtain from routing table described detection target corresponding go out to connect Mouthful.
For obtaining detection target and the detailed process of outgoing interface, as depicted at step 201, do not repeat them here.
Understand based on foregoing description, owing to the network equipment is to obtain detection target from data message, and only The outgoing interface corresponding for detection target goes detect whether health rather than detect target in a large number by receiving Going to judge that interface is the most healthy, so, whether health is more targeted to detect interface.
Step 406: the network equipment sends to session management server and carries described detection target and described go out to connect The probe messages of mouth.
Understand based on foregoing description, owing to the network equipment is probe messages to be sent to session management server go Make a decision, send probe messages without to detection target, then add up delay and the packet loss of response message, Therefore can reduce the EMS memory occupation of the network equipment, improve the forwarding performance of the network equipment.
Step 407: it is the most healthy that session management server judges to access described detection target by described outgoing interface.
For, it is judged that access, by described outgoing interface, the process that described detection target is the most healthy, such as step 202 With described in step 203, repeat no more.
Understand based on foregoing description, owing to session management server is by statistics detection target and outgoing interface pair In all session log answered, the session log of abnormality session accounts for the ratio of all session log of correspondence, To judge rather than prolonging by statistics response message the most healthy by described outgoing interface access detection target Judge with packet loss late.So, erroneous judgement will not be produced due to the unstable factor in network, therefore, The judged result obtained by the ratio of abnormality session in statistics session log is more accurate.
Step 408: result of detection information is sent to the network equipment by session management server.
Step 409: the network equipment adjusts the outgoing interface accessing detection target according to result of detection information.
If the network equipment receive session management server send by described outgoing interface access described detection mesh Mark unsound information, then utilize new outgoing interface to update described in routing table and detect the outgoing interface that target is corresponding; If receiving the information being accessed described detection target health by described outgoing interface that session management server sends, Then terminate current process.
Described in above-described embodiment, owing to the network equipment is to obtain detection target from data message, and only Go detect whether health rather than detect mesh in a large number by receive for the outgoing interface that detection target is corresponding Mark goes to judge that a certain outgoing interface is the most healthy, and so, whether health is more targeted to detect interface, and And owing to being probe messages to be sent to session management server go to make a decision, send out without to detection target Send probe messages, then add up delay and the packet loss of response message, therefore can reduce the internal memory of the network equipment Take, improve the forwarding performance of the network equipment.Additionally, due to session management server is to be detected by statistics In all session log that target is corresponding with outgoing interface, the session log of abnormality session accounts for all of correspondence The ratio of session log, to judge the most healthy by described outgoing interface access detection target rather than to pass through Delay and the packet loss of statistics response message judge, so, will not produce due to the unstable factor in network Raw erroneous judgement, therefore, the judged result obtained by the ratio of abnormality session in statistics session log is more Accurately.
Corresponding with the embodiment of aforementioned link healthprobe method, present invention also provides link healthprobe The embodiment of device.
The embodiment of the application link healthprobe device can be applied on session management server.Device is real Execute example to be realized by software, it is also possible to realize by the way of hardware or software and hardware combining.With software As a example by realization, as the device on a logical meaning, it is that the processor by its place equipment is by non-volatile Property memorizer in corresponding computer program instructions read internal memory runs and formed.For hardware view, As it is shown in figure 5, be a kind of hardware structure diagram of the application link healthprobe device place equipment, except Fig. 5 Outside shown processor, internal memory, network interface and nonvolatile memory, device institute in embodiment Equipment generally according to the actual functional capability of this equipment, it is also possible to include other hardware, this repeated no more.
Shown in Figure 6, fill according to a kind of link healthprobe shown in an exemplary embodiment for the application The example structure figure put, this embodiment is applied on session management server, and this embodiment includes: receive Unit 610, determine unit the 620, first judging unit 630, transmitting element 640.
Wherein, described reception unit 610, for receiving the probe messages that the network equipment sends, described detection report Literary composition includes detecting target and outgoing interface;
Described determine unit 620, true for the session log utilizing described detection target corresponding with described outgoing interface Determine the ratio of abnormality session;
Described first judging unit 630, is used for utilizing described ratio to judge by described outgoing interface and accesses described spy Survey target the most healthy;
Described transmitting element 640, for when judged result is no, will access described spy by described outgoing interface Survey the unsound information of target and be sent to the described network equipment, so that the described network equipment adjusts accesses described spy Survey the outgoing interface of target.
In an optional implementation, described determine unit 620, specifically for obtaining described probe messages The detection target carried and outgoing interface;Count all sessions that described detection target is corresponding with described outgoing interface First quantity of daily record;Counting status indicator from the session log of described first quantity is abnormality mark Second quantity of the session log known;Described first quantity and described second quantity is utilized to calculate described abnormal shape The ratio of state session.
In another optional implementation, described first judging unit 630, specifically for judging described ratio Whether example exceedes predetermined threshold value;If, it is determined that access described detection target by described outgoing interface unhealthy; If not, it is determined that access described detection target by described outgoing interface healthy.
The embodiment of the application link healthprobe device can be applied on the network equipment.As it is shown in fig. 7, For the another kind of hardware structure diagram of the application link healthprobe device place equipment, except the place shown in Fig. 7 Outside reason device, internal memory, network interface and nonvolatile memory, the equipment at device place in embodiment Actual functional capability generally according to this equipment, it is also possible to include other hardware, this is repeated no more.
Shown in Figure 8, for the application according to the another kind of link healthprobe shown in an exemplary embodiment The example structure figure of device, this embodiment is applied on the network equipment, and this embodiment includes: first sends Unit 810, adjustment unit 820.
Wherein, described first transmitting element 810, carry detection target for sending to session management server With the probe messages of outgoing interface so that described session management server utilizes described detection target and described goes out to connect Mouthful corresponding session log determines the ratio of abnormality session, and utilize described ratio judge by described go out Target is detected the most healthy described in interface accessing;
Described adjustment unit 820, if for receive described session management server return pass through described in go out to connect Mouth accesses the described unsound information of detection target, then adjust the outgoing interface accessing described detection target.
In an optional implementation, the described network equipment is configured with and needs to carry out link healthprobe Service feature, described device also includes (not shown in Fig. 8):
Receive unit, for carrying detection mesh at described first transmitting element to session management server transmission Before the probe messages of mark and outgoing interface, receive data message;
Second judging unit, for judging whether the service feature that described data message carries exists described needs Carry out in the service feature of link healthprobe;
Acquiring unit, for when judged result is for being, obtains the detection target that described data message carries, And from routing table, obtain the outgoing interface that described detection target is corresponding, and perform to send to session management server Carry the process of the probe messages of detection target and outgoing interface.
In another optional implementation, described device also includes (not shown in Fig. 8):
Session log creating unit, utilizes described data after receiving data message at described reception unit The five-tuple information that message carries sets up session, and arranges ageing timer for described session;Described aging After timer expiry, if being not received for the response message of described data message, then utilize described session Create session log, and the status indicator arranging described session log is abnormality mark, in described time-out Before time time-out, if receiving the response message for described data message, then utilize described conversation establishing Session log, and the status indicator that described session log is set be normal condition mark;Wherein, described session In daily record, record has detection target and the corresponding relation of outgoing interface;
Second transmitting element, for being sent to session management server by described session log.
In said apparatus, the function of unit and the process that realizes of effect specifically refer to corresponding step in said method Rapid realizes process, does not repeats them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees The part of embodiment of the method illustrates.Device embodiment described above is only schematically, wherein The described unit illustrated as separating component can be or may not be physically separate, as unit The parts of display can be or may not be physical location, i.e. may be located at a place, or also may be used To be distributed on multiple NE.Some or all of module therein can be selected according to the actual needs Realize the purpose of the application scheme.Those of ordinary skill in the art in the case of not paying creative work, I.e. it is appreciated that and implements.
Described in above-described embodiment, owing to the network equipment is to obtain detection target from data message, just for Detect outgoing interface corresponding to target to go detect whether health rather than gone by a large amount of detection targets received Judging that a certain outgoing interface is the most healthy, so, whether health is more targeted to detect interface, and by Probe messages is then sent to session management server go to make a decision, visits without sending to detection target Observe and predict literary composition, then add up delay and the packet loss of response message, therefore can reduce the EMS memory occupation of the network equipment, Improve the forwarding performance of the network equipment.Additionally, due to session management server be by statistics detection target and In all session log that outgoing interface is corresponding, the session log of abnormality session accounts for all session days of correspondence The ratio of will, to judge the most healthy by described outgoing interface access detection target rather than to be rung by statistics Delay and the packet loss of answering message judge, so, will not produce erroneous judgement due to the unstable factor in network, Therefore, the judged result obtained by the ratio of abnormality session in statistics session log is more accurate.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all in this Shen Within spirit please and principle, any modification, equivalent substitution and improvement etc. done, should be included in this Shen Within the scope of please protecting.

Claims (12)

1. a link healthprobe method, it is characterised in that described method is applied to session management server On, described method includes:
Receiving the probe messages that the network equipment sends, described probe messages includes detecting target and outgoing interface;
The session log utilizing described detection target corresponding with described outgoing interface determines the ratio of abnormality session;
Described ratio is utilized to judge to access described detection target by described outgoing interface the most healthy;
It is sent to described if it is not, then the described unsound information of detection target will be accessed by described outgoing interface The network equipment, so that the described network equipment adjusts the outgoing interface accessing described detection target.
Method the most according to claim 1, it is characterised in that described utilize described detection target and institute State session log corresponding to outgoing interface and determine the ratio of abnormality session, including:
Obtain detection target and outgoing interface that described probe messages is carried;
Count the first quantity of the described detection target all session log corresponding with described outgoing interface;
The session log that status indicator is abnormality mark is counted from the session log of described first quantity The second quantity;
Described first quantity and described second quantity is utilized to calculate the ratio of described abnormality session.
Method the most according to claim 1, it is characterised in that described utilize described ratio judge pass through It is the most healthy that described outgoing interface accesses described detection target, including:
Judge whether described ratio exceedes predetermined threshold value;
If, it is determined that access described detection target by described outgoing interface unhealthy;
If not, it is determined that access described detection target by described outgoing interface healthy.
4. a link healthprobe method, it is characterised in that described method is applied on the network equipment, institute The method of stating includes:
Send to session management server and carry detection target and the probe messages of outgoing interface, so that described meeting The session log detecting target corresponding with described outgoing interface described in words management server by utilizing determines abnormality meeting The ratio of words, and it is the most healthy to utilize described ratio to judge to access described detection target by described outgoing interface;
If receive the return of described session management server accesses described detection target not by described outgoing interface Healthy information, then adjust the outgoing interface accessing described detection target.
Method the most according to claim 4, it is characterised in that be configured with needs in the described network equipment Carry out the service feature of link healthprobe, described send to session management server carry detection target and Before the probe messages of outgoing interface, described method also includes:
Receive data message;
Judge whether the service feature that described data message carries exists described needs and carry out link healthprobe In service feature;
The most then obtain the detection target that described data message carries, and from routing table, obtain described detection Outgoing interface that target is corresponding, and perform to send to session management server to carry detection target and outgoing interface The process of probe messages.
Method the most according to claim 5, it is characterised in that after described reception data message, institute Method of stating also includes:
The five-tuple information utilizing described data message to carry sets up session, and arrange for described session aging fixed Time device;After described ageing timer time-out, if being not received for the response message of described data message, Then utilize described conversation establishing session log, and the status indicator arranging described session log is abnormality mark Know, before described time-out time time-out, if receiving the response message for described data message, then profit By described conversation establishing session log, and the status indicator arranging described session log is normal condition mark; Wherein, in described session log, record has detection target and the corresponding relation of outgoing interface;
Described session log is sent to session management server.
7. a link healthprobe device, it is characterised in that described device is applied to session management server On, described device includes:
Receiving unit, for receiving the probe messages that the network equipment sends, described probe messages includes detecting mesh Mark and outgoing interface;
Determine unit, determine exception for the session log utilizing described detection target corresponding with described outgoing interface The ratio of state session;
First judging unit, is used for utilizing described ratio to judge by described outgoing interface and accesses described detection target The most healthy;
Transmitting element, for when judged result is no, will access described detection target by described outgoing interface Unsound information is sent to the described network equipment, so that the described network equipment adjusts accesses described detection target Outgoing interface.
Device the most according to claim 7, it is characterised in that described determine unit, specifically for obtaining Take detection target and outgoing interface that described probe messages is carried;Count described detection target and described outgoing interface First quantity of corresponding all session log;State mark is counted from the session log of described first quantity Know the second quantity of the session log identified for abnormality;Utilize described first quantity and described second quantity Calculate the ratio of described abnormality session.
Device the most according to claim 7, it is characterised in that described first judging unit, specifically uses In judging whether described ratio exceedes predetermined threshold value;If, it is determined that access described spy by described outgoing interface Survey target is unhealthy;If not, it is determined that access described detection target by described outgoing interface healthy.
10. a link healthprobe device, it is characterised in that described device is applied on the network equipment, Described device includes:
First transmitting element, carries detection target and the spy of outgoing interface for sending to session management server Observe and predict literary composition, so that described session management server utilizes the session that described detection target is corresponding with described outgoing interface Daily record determines the ratio of abnormality session, and it is described to utilize described ratio to judge by the access of described outgoing interface Detection target is the most healthy;
Adjustment unit, if for receiving being accessed by described outgoing interface of described session management server return The described unsound information of detection target, then adjust the outgoing interface accessing described detection target.
11. devices according to claim 10, it is characterised in that be configured with in the described network equipment and need The service feature of link healthprobe to be carried out, described device also includes:
Receive unit, for carrying detection mesh at described first transmitting element to session management server transmission Before the probe messages of mark and outgoing interface, receive data message;
Second judging unit, for judging whether the service feature that described data message carries exists described needs Carry out in the service feature of link healthprobe;
Acquiring unit, for when judged result is for being, obtains the detection target that described data message carries, And from routing table, obtain the outgoing interface that described detection target is corresponding, and perform to send to session management server Carry the process of the probe messages of detection target and outgoing interface.
12. devices according to claim 10, it is characterised in that described device also includes:
Session log creating unit, utilizes described data after receiving data message at described reception unit The five-tuple information that message carries sets up session, and arranges ageing timer for described session;Described aging After timer expiry, if being not received for the response message of described data message, then utilize described session Create session log, and the status indicator arranging described session log is abnormality mark, in described time-out Before time time-out, if receiving the response message for described data message, then utilize described conversation establishing Session log, and the status indicator that described session log is set be normal condition mark;Wherein, described session In daily record, record has detection target and the corresponding relation of outgoing interface;
Second transmitting element, for being sent to session management server by described session log.
CN201610304982.2A 2016-05-10 2016-05-10 Link healthprobe method and device Active CN106027326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610304982.2A CN106027326B (en) 2016-05-10 2016-05-10 Link healthprobe method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610304982.2A CN106027326B (en) 2016-05-10 2016-05-10 Link healthprobe method and device

Publications (2)

Publication Number Publication Date
CN106027326A true CN106027326A (en) 2016-10-12
CN106027326B CN106027326B (en) 2019-06-07

Family

ID=57099837

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610304982.2A Active CN106027326B (en) 2016-05-10 2016-05-10 Link healthprobe method and device

Country Status (1)

Country Link
CN (1) CN106027326B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109921948A (en) * 2019-03-27 2019-06-21 新华三技术有限公司 Fault detection method, device and the gateway of data plane
CN110224885A (en) * 2019-05-31 2019-09-10 东软集团股份有限公司 Alarm method, device, storage medium and the electronic equipment of monitoring of tools
CN111181812A (en) * 2020-01-03 2020-05-19 四川新网银行股份有限公司 Link fault detection method based on network flow
CN111245666A (en) * 2018-11-29 2020-06-05 华为技术有限公司 Data transmission method, device and system
CN111371791A (en) * 2020-03-06 2020-07-03 深信服科技股份有限公司 Access relation determining method, device, equipment and medium
CN111711544A (en) * 2020-05-15 2020-09-25 北京奇艺世纪科技有限公司 Link dial testing method and device, electronic equipment and storage medium
CN112260903A (en) * 2020-10-29 2021-01-22 杭州迪普科技股份有限公司 Link monitoring method and device
CN112527610A (en) * 2019-09-17 2021-03-19 北京国双科技有限公司 Method and device for monitoring operation state of equipment
CN115633076A (en) * 2022-12-19 2023-01-20 亿海蓝(北京)数据技术股份公司 Session management method and system, readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752141A (en) * 2012-06-29 2012-10-24 杭州迪普科技有限公司 Method and device for detecting accessibility of IP (internet protocol) address
CN103124290A (en) * 2012-12-11 2013-05-29 广东电网公司电力调度控制中心 Load balancing method based on combined application of reverse isolation devices and isolation gateway
CN104394009A (en) * 2014-10-29 2015-03-04 中国建设银行股份有限公司 Fault information processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752141A (en) * 2012-06-29 2012-10-24 杭州迪普科技有限公司 Method and device for detecting accessibility of IP (internet protocol) address
CN103124290A (en) * 2012-12-11 2013-05-29 广东电网公司电力调度控制中心 Load balancing method based on combined application of reverse isolation devices and isolation gateway
CN104394009A (en) * 2014-10-29 2015-03-04 中国建设银行股份有限公司 Fault information processing method and device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245666A (en) * 2018-11-29 2020-06-05 华为技术有限公司 Data transmission method, device and system
CN111245666B (en) * 2018-11-29 2022-12-06 华为技术有限公司 Data transmission method, device and system
CN109921948B (en) * 2019-03-27 2022-07-29 新华三技术有限公司 Fault detection method and device for data plane and gateway equipment
CN109921948A (en) * 2019-03-27 2019-06-21 新华三技术有限公司 Fault detection method, device and the gateway of data plane
CN110224885A (en) * 2019-05-31 2019-09-10 东软集团股份有限公司 Alarm method, device, storage medium and the electronic equipment of monitoring of tools
CN110224885B (en) * 2019-05-31 2021-09-17 东软集团股份有限公司 Equipment monitoring alarm method and device, storage medium and electronic equipment
CN112527610A (en) * 2019-09-17 2021-03-19 北京国双科技有限公司 Method and device for monitoring operation state of equipment
CN111181812A (en) * 2020-01-03 2020-05-19 四川新网银行股份有限公司 Link fault detection method based on network flow
CN111371791A (en) * 2020-03-06 2020-07-03 深信服科技股份有限公司 Access relation determining method, device, equipment and medium
CN111711544A (en) * 2020-05-15 2020-09-25 北京奇艺世纪科技有限公司 Link dial testing method and device, electronic equipment and storage medium
CN112260903A (en) * 2020-10-29 2021-01-22 杭州迪普科技股份有限公司 Link monitoring method and device
CN112260903B (en) * 2020-10-29 2022-03-25 杭州迪普科技股份有限公司 Link monitoring method and device
CN115633076A (en) * 2022-12-19 2023-01-20 亿海蓝(北京)数据技术股份公司 Session management method and system, readable storage medium
CN115633076B (en) * 2022-12-19 2023-03-14 亿海蓝(北京)数据技术股份公司 Session management method and system, readable storage medium

Also Published As

Publication number Publication date
CN106027326B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN106027326A (en) Link health detection method and link health detection apparatus
US6816464B1 (en) Method, system, and computer program product for route quality checking and management
CN101404599B (en) Network fault detection method, primary device, slave device, control terminal and system
CN101166122B (en) A method for locating network failure between communication terminals
CN106998263B (en) System and method for maintaining network service level
CN102340451B (en) Trace route testing method, system, device and equipment
US10411972B2 (en) Determining impact of network failures
CN106067854B (en) A kind of network quality detection method and equipment
US20060190620A1 (en) Device, method, and program for estimating quality-deteriorated area of network
CN101442450B (en) Method, system and apparatus for detecting sharing access terminal quantity
CN102055626A (en) Internet protocol (IP) network quality detecting method and system
CN105991347A (en) Redirection method of DNS request message and device
US20070237155A1 (en) Determination of SIP transport to reduce call setup delays
CN108092853A (en) Method, apparatus, system, electronic equipment and the storage medium of monitoring server link state
CN101808021A (en) Fault detection method, device and system, message statistical method and node equipment
CN106411629A (en) Method used for monitoring state of CDN node and equipment thereof
CN104836743A (en) Congestion control method and device
US20230055046A1 (en) Telemetry distribution in an overlay network
US7742413B1 (en) Utilizing a null jitter buffer to monitor session traffic
CN105959129B (en) The method and device of monitoring network failure
CN102685014B (en) Method for measuring performance index of service flow and sending terminal equipment
US11743110B2 (en) Using network connection health data, taken from multiple sources, to determine whether to switch a network connection on redundant IP networks
Hussain et al. Supporting multimedia applications through network redesign
CN111901237A (en) Source routing method and system, related device and computer readable storage medium
CN105704057B (en) The method and apparatus for determining the type of service of burst port congestion packet loss

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant after: Hangzhou Dipu Polytron Technologies Inc

Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant before: Hangzhou Dipu Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant