CN103957538A - Method and device for detecting network quality - Google Patents
Method and device for detecting network quality Download PDFInfo
- Publication number
- CN103957538A CN103957538A CN201410135805.7A CN201410135805A CN103957538A CN 103957538 A CN103957538 A CN 103957538A CN 201410135805 A CN201410135805 A CN 201410135805A CN 103957538 A CN103957538 A CN 103957538A
- Authority
- CN
- China
- Prior art keywords
- link
- router
- network quality
- main
- described main
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method and device for detecting the network quality. The method includes the steps that an RSSI value of a main 3G link is determined through a first router; when the RSSI value is larger than an alarm threshold, the network quality of the main 3G link is determined to be link normality; when the RSSI value is smaller than or equal to the alarm threshold and larger than an error threshold, the network quality of the main 3G link is determined to be link alarming; when the network quality is link normality, a backup 3G interface is closed, and detecting messages are sent to a second router with the first sending frequency through the main 3G link; when the network quality is link alarming, the backup 3G interface is opened, and the detecting messages are sent to the second router with the second sending frequency through the main 3G link, wherein the first sending frequency is smaller than the second sending frequency. By means of the method and device, when link normality exists, the number of the sent detecting messages can be decreased; when link alarming exists, faults of the main 3G link can be detected in time, and then a backup 3G link can be rapidly started in a switched mode.
Description
Technical field
The present invention relates to communication technical field, relate in particular to a kind of network quality detection method and equipment.
Background technology
3G(3-G (Generation Three mobile communication system)) there is higher access bandwidth, and good service quality can be provided.Along with the maturation of 3G network, increasing enterprise branch office is used 3G link to substitute wire link access enterprise central authority.As shown in Figure 1, in order to improve the stability of branch's access, in branch office router, dispose main 3G interface and backup 3G interface, branch office router is main 3G link by the link of main 3G interface access 3G network, is backup 3G link by the link of backup 3G interface access 3G network; In addition, between center router and 3G network, can adopt wired mode to be connected.In the time that main 3G link does not break down, branch office router is used main 3G link and center router to communicate; In the time of main 3G link occurs fault, branch office router is switched to backup 3G link and center router communicates; In the time of main 3G link failure recovery, branch office router is switched to main 3G link and center router communicates.
In order to know in time whether main 3G link breaks down, branch office router regularly sends probe requests thereby message by main 3G chain road direction center router, and observes whether can receive the detection response message that center router returns; If cannot receive the detection response message that center router returns in Preset Time, think main 3G link occurs fault.Use in the process that backup 3G link and center router communicate in branch office router, continue to send probe requests thereby message by main 3G chain road direction center router, if receive the detection response message that center router returns in Preset Time, think main 3G link failure recovery.
In said process, branch office router adopts identical transmission frequency to send probe requests thereby message to center router, but branch office router is difficult to determine accurately the transmission frequency of probe requests thereby message.If the transmission frequency of probe requests thereby message too high (as second-time),, in the time that main 3G link does not break down, can increase the burden of main 3G link and the burden of center router; If the transmission frequency of probe requests thereby message too low (as a minute magnitude),, in the time of main 3G link occurs fault, can cause branch office router just can perceive main 3G link occurs fault through the long period, then cause the branch office router communication disruption long period.
Summary of the invention
The embodiment of the present invention provides a kind of network quality detection method and equipment, to determine the transmission frequency of rational probe messages, and in the time of link occurs fault, detects timely the situation of link failure.
In order to achieve the above object, the embodiment of the present invention provides a kind of network quality detection method, between the first router and the second router, be connected by 3G network, in the first router, comprise main 3G interface and backup 3G interface, its link by main 3G interface access 3G network is main 3G link, link by backup 3G interface access 3G network is backup 3G link, adopts wired connection between the second router and 3G network, and described method comprises:
Described the first router is determined the received signal strength indicator RSSI value of described main 3G link;
In the time that described RSSI value is greater than alarming threshold, described the first router determines that the network quality of main 3G link is that link is normal; When described RSSI value is not more than described alarming threshold, and while being greater than error thresholds, described the first router determines that the network quality of main 3G link is chain circuit alarming; In the time that described RSSI value is not more than described error thresholds, described the first router determines that the network quality of main 3G link is link failure;
Be that link is when normal in network quality, described the first router is closed described backup 3G interface, send probe messages with the first transmission frequency to described the second router by described main 3G link, and send datagram by the second router described in described main 3G chain road direction; In the time that network quality is chain circuit alarming, described the first router is opened described backup 3G interface, send probe messages with the second transmission frequency to described the second router by described main 3G link, and send datagram by the second router described in described main 3G chain road direction; In the time that network quality is link failure, described the first router stops sending probe messages by the second router described in described main 3G chain road direction, and sends datagram by the second router described in described backup 3G chain road direction; Wherein, described the first transmission frequency is less than described the second transmission frequency.
After described the first router sends probe messages by the second router described in described main 3G chain road direction, described method further comprises:
The detection response message from described the second router that described the first router utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure;
If utilize RSSI value determine main 3G link network quality for link normal, when the network quality of the main 3G link that utilizes network quality parameters to determine is for link is when normal, described the first router determines that the current network quality of described main 3G link is that link is normal; When the network quality of main 3G link of utilizing network quality parameters to determine is during for chain circuit alarming, described the first router determines that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for link failure, described the first router determines that the current network quality of described main 3G link is link failure;
If utilizing the network quality of the definite main 3G link of RSSI value is chain circuit alarming, when the network quality of the main 3G link that utilizes network quality parameters to determine is for link is when normal, described the first router determines that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for chain circuit alarming, described the first router determines that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for link failure, described the first router determines that the current network quality of described main 3G link is link failure.
After described the first router stops sending probe messages by the second router described in described main 3G chain road direction, described method further comprises:
In the time that described RSSI value is greater than alarming threshold, described the first router is opened described main 3G interface, and send probe messages with the first transmission frequency to described the second router by described main 3G link, and current continuation sends datagram by the second router described in described backup 3G chain road direction; The detection response message from described the second router that described the first router utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure; If the network quality of described main 3G link is that link is normal, the network quality of the described main 3G link of described the first router adjustment is that link is normal; If the network quality of described main 3G link is chain circuit alarming, the network quality of the described main 3G link of described the first router adjustment is chain circuit alarming; If the network quality of described main 3G link is link failure, the network quality of the described main 3G link of described the first router maintenance is link failure;
When described RSSI value is not more than alarming threshold, and while being greater than error thresholds, described the first router is opened described main 3G interface, and send probe messages with the second transmission frequency to described the second router by described main 3G link, and current continuation sends datagram by the second router described in described backup 3G chain road direction; The detection response message from described the second router that described the first router utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure; If the network quality of described main 3G link is that link is normal, the network quality of the described main 3G link of the first router adjustment is chain circuit alarming; If the network quality of described main 3G link is chain circuit alarming, the network quality of the described main 3G link of the first router adjustment is chain circuit alarming; If the network quality of described main 3G link is link failure, the network quality of the described main 3G link of the first router maintenance is link failure.
Described network quality parameters specifically comprises following parameter: be branched off into center shake, center to branch shake, message round trip delay time, packet loss;
The process of network quality that described the first router utilizes the network quality parameters of described main 3G link to determine described main 3G link or chain circuit alarming or link failure normal for link, specifically comprises:
In the time that continuous shake alarm quantity N1 is branched off into center shake and is more than or equal to default dithering threshold Tj, described the first router determines that the network quality of described main 3G link is chain circuit alarming; Or,
Shake while being more than or equal to default dithering threshold Tj to branch when continuous shake alarm quantity N2Ge center, described the first router determines that the network quality of described main 3G link is chain circuit alarming; Or,
In the time that N3 message round trip delay time of continuous Delayed Alarm quantity is more than or equal to default delay threshold Td, described the first router determines that the network quality of described main 3G link is chain circuit alarming; Or,
In the time that continuous shake number of interruptions N4 is branched off into center shake and is more than or equal to default dithering threshold Tj, described the first router determines that the network quality of described main 3G link is link failure; Or,
Shake while being more than or equal to default dithering threshold Tj to branch when continuous shake number of interruptions N5Ge center, described the first router determines that the network quality of described main 3G link is link failure; Or,
In the time that N6 message round trip delay time of continuous time delay number of interruptions is more than or equal to default delay threshold Td, described the first router determines that the network quality of described main 3G link is link failure; Or,
When packet loss is more than or equal to default alarm threshold La, while being less than default outage threshold Ld, described the first router determines that the network quality of described main 3G link is chain circuit alarming; Or in the time that packet loss is more than or equal to default outage threshold Ld, described the first router determines that the network quality of described main 3G link is link failure; Or, when packet loss is less than default alarm threshold La, and utilize and be branched off into center shake, center to branch shakes, message round trip delay time is not determined described main 3G link network quality during for chain circuit alarming or link failure, described the first router determines that the network quality of described main 3G link is that link is normal;
Wherein, described shake number of interruptions N4 is greater than described shake alarm quantity N1, and described shake number of interruptions N5 is greater than described shake alarm quantity N2, and described time delay number of interruptions N6 is greater than described Delayed Alarm quantity N3, and described default outage threshold Ld is greater than described default alarm threshold La.
Described the first router sends in the process of probe messages and data message to described the second router, and described method further comprises:
Described the first router configures the first business route, the second business route and tactful route, the outgoing interface of described the first business route is described main 3G interface, the outgoing interface of described the second business route is described backup 3G interface, and the priority of described the first business route is better than the priority of described the second business route; Described tactful route is for making the probe messages sending to the second router be routed to described main 3G interface;
Be that link is when normal in network quality, described the first router come into force the first business route and tactful route, the tactful route that comes into force is for making described the first router send probe messages by described main 3G chain road direction the second router, and the first business route that comes into force is for making described the first router send datagram by described main 3G chain road direction the second router; In the time that network quality is chain circuit alarming, described the first router come into force the first business route and tactful route, the tactful route that comes into force is for making described the first router send probe messages by the second router described in described main 3G chain road direction, and the first business route that comes into force is for making described the first router send datagram by the second router described in described main 3G chain road direction; In the time that network quality is link failure, described the first router lost efficacy the first business route and tactful route, and the second business route that comes into force, expiration policy route is used for making described the first router to stop sending probe messages by the second router described in described main 3G chain road direction, and the first business route that lost efficacy and the second business route that comes into force are for making described the first router send datagram by the second router described in described backup 3G chain road direction.
The embodiment of the present invention provides a kind of network equipment, as being connected by 3G network between the first router and the second router, in the first router, comprise main 3G interface and backup 3G interface, its link by main 3G interface access 3G network is main 3G link, be backup 3G link by the link of backup 3G interface access 3G network, between the second router and 3G network, adopt wired connection, this the first router comprises: received signal strength indicator RSSI value determination module, for determining the RSSI value of main 3G link;
Network quality determination module, in the time that described RSSI value is greater than alarming threshold, the network quality of determining described main 3G link is that link is normal; When described RSSI value is not more than described alarming threshold, and while being greater than error thresholds, the network quality of determining described main 3G link is chain circuit alarming; In the time that described RSSI value is not more than described error thresholds, the network quality of determining described main 3G link is link failure;
Message sending module, for being that link is when normal in described network quality, close described backup 3G interface, and send probe messages with the first transmission frequency to described the second router by described main 3G link, and send datagram by the second router described in described main 3G chain road direction; In the time that described network quality is chain circuit alarming, opens described backup 3G interface, and send probe messages with the second transmission frequency to described the second router by described main 3G link, and send datagram by the second router described in described main 3G chain road direction; In the time that described network quality is link failure, stops sending probe messages by the second router described in described main 3G chain road direction, and send datagram by the second router described in described backup 3G chain road direction; Wherein, described the first transmission frequency is less than described the second transmission frequency.
Described network quality determination module, also for after sending probe messages by the second router described in described main 3G chain road direction, the detection response message from described the second router that utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure;
If the network quality of utilizing the main 3G link that RSSI value determines for link normal, when the network quality of the main 3G link that utilizes network quality parameters to determine is for link is when normal, determine that the current network quality of described main 3G link is that link is normal; When the network quality of main 3G link of utilizing network quality parameters to determine is during for chain circuit alarming, determine that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for link failure, determine that the current network quality of described main 3G link is link failure; If the network quality of main 3G link of utilizing RSSI value to determine is chain circuit alarming, when the network quality of the main 3G link that utilizes network quality parameters to determine is for link is when normal, determine that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for chain circuit alarming, determine that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for link failure, determine that the current network quality of described main 3G link is link failure.
Described network quality determination module, also for after stopping sending probe messages by the second router described in described main 3G chain road direction, in the time that described RSSI value is greater than alarming threshold, notify described message sending module to open described main 3G interface, and send probe messages with the first transmission frequency to described the second router by described main 3G link, and current continuation sends datagram by the second router described in described backup 3G chain road direction; And, the detection response message from described the second router that utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure; If the network quality of described main 3G link is that link is normal, the network quality of adjusting described main 3G link is that link is normal; If the network quality of described main 3G link is chain circuit alarming, the network quality of adjusting described main 3G link is chain circuit alarming; If the network quality of described main 3G link is link failure, the network quality that keeps described main 3G link is link failure;
When described RSSI value is not more than alarming threshold, and while being greater than error thresholds, notify described message sending module to open described main 3G interface, and send probe messages with the second transmission frequency to described the second router by described main 3G link, and current continuation sends datagram by the second router described in described backup 3G chain road direction; And, the detection response message from described the second router that utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure; If the network quality of described main 3G link is that link is normal, the network quality of adjusting described main 3G link is chain circuit alarming; If the network quality of described main 3G link is chain circuit alarming, the network quality of adjusting described main 3G link is chain circuit alarming; If the network quality of described main 3G link is link failure, the network quality that keeps described main 3G link is link failure.
Described network quality parameters specifically comprises following parameter: be branched off into center shake, center to branch shake, message round trip delay time, packet loss; The described network quality parameters of utilizing described main 3G link determines that the network quality of described main 3G link is for link is normal or chain circuit alarming or link failure, specifically comprise: in the time that continuous shake alarm quantity N1 is branched off into center shake and is more than or equal to default dithering threshold Tj, the network quality of determining described main 3G link is chain circuit alarming; Or, to shake while being more than or equal to default dithering threshold Tj to branch when continuous shake alarm quantity N2Ge center, the network quality of determining described main 3G link is chain circuit alarming; Or in the time that N3 message round trip delay time of continuous Delayed Alarm quantity is more than or equal to default delay threshold Td, the network quality of determining described main 3G link is chain circuit alarming; Or in the time that continuous shake number of interruptions N4 is branched off into center shake and is more than or equal to default dithering threshold Tj, the network quality of determining described main 3G link is link failure; Or, to shake while being more than or equal to default dithering threshold Tj to branch when continuous shake number of interruptions N5Ge center, the network quality of determining described main 3G link is link failure; Or in the time that N6 message round trip delay time of continuous time delay number of interruptions is more than or equal to default delay threshold Td, the network quality of determining described main 3G link is link failure; Or when packet loss is more than or equal to default alarm threshold La, while being less than default outage threshold Ld, the network quality of determining described main 3G link is chain circuit alarming; Or in the time that packet loss is more than or equal to default outage threshold Ld, the network quality of determining described main 3G link is link failure; Or, when packet loss is less than default alarm threshold La, and utilize and be branched off into center shake, center to branch shakes, message round trip delay time is not determined described main 3G link network quality during for chain circuit alarming or link failure, the network quality of determining described main 3G link is that link is normal; Wherein, described shake number of interruptions N4 is greater than described shake alarm quantity N1, and described shake number of interruptions N5 is greater than described shake alarm quantity N2, and described time delay number of interruptions N6 is greater than described Delayed Alarm quantity N3, and described default outage threshold Ld is greater than described default alarm threshold La.
Described to described the second router transmission probe messages and data message, specifically comprise: configuration the first business route, the second business route and tactful route, the outgoing interface of described the first business route is described main 3G interface, the outgoing interface of described the second business route is described backup 3G interface, and the priority of described the first business route is better than the priority of described the second business route; Described tactful route is for making the probe messages sending to the second router be routed to described main 3G interface; Be that link is when normal in network quality, the first business route and tactful route come into force, the tactful route that comes into force is for making described the first router send probe messages by described main 3G chain road direction the second router, and the first business route that comes into force is for making described the first router send datagram by described main 3G chain road direction the second router; In the time that network quality is chain circuit alarming, the first business route and tactful route come into force, the tactful route that comes into force is for making described the first router send probe messages by the second router described in described main 3G chain road direction, and the first business route that comes into force is for making described the first router send datagram by the second router described in described main 3G chain road direction; In the time that network quality is link failure, the first business route and tactful route lost efficacy, and the second business route that comes into force, expiration policy route is used for making described the first router to stop sending probe messages by the second router described in described main 3G chain road direction, and the first business route that lost efficacy and the second business route that comes into force are for making described the first router send datagram by the second router described in described backup 3G chain road direction.
Compared with prior art, the embodiment of the present invention at least has the following advantages: in the embodiment of the present invention, the RSSI(Received Signal Strength Indication of the first router based on main 3G link, received signal strength indicator) value determines rational probe messages transmission frequency.In the time that link is normal, the first router sends probe messages with the first lower transmission frequency (as transmission in 60 seconds 1 time) to the second router, to reduce the quantity forwarded of probe messages, at utmost reduce the impact of probe messages on regular traffic, and ensure that link is unimpeded.In the time of chain circuit alarming, the first router with the second higher transmission frequency (as 5 seconds send once) to the second router send probe messages, and the data of opening backup 3G interface connect, by improving the transmission frequency of probe messages, with when the main 3G link occurs fault, can detect in time main 3G link failure, then be switched to fast backup 3G link, reduce the impact of link switching on business.
Brief description of the drawings
Fig. 1 is the schematic diagram that in prior art, branch office router is connected with center router by 3G network;
Fig. 2 is a kind of network quality detection method schematic flow sheet providing in the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of network equipment of providing in the embodiment of the present invention.
Embodiment
For problems of the prior art, the embodiment of the present invention provides a kind of network quality detection method, the method is applied in the network that comprises the first router and the second router, the first router can be the router in enterprise branch office, this the first router can be called branch office router, the second router can be the router in enterprise's central authority, and this second router can be called center router.Application scenarios schematic diagram taking Fig. 1 as the embodiment of the present invention, between the first router and the second router, be connected by 3G network, in the first router, comprise main 3G interface and backup 3G interface, the first router is main 3G link by the link of main 3G interface access 3G network, the first router is backup 3G link by the link of backup 3G interface access 3G network, and between the second router and 3G network, can adopt wired mode to be connected.In concrete application, the quantity of main 3G interface is 1, and the quantity of backup 3G interface can be one or more, correspondingly, the quantity of main 3G link is 1, and the quantity of backup 3G link be one or more, backs up 3G interface describe as example in Fig. 1 taking 1 main 3G interface and 1.
Under above-mentioned application scenarios, as shown in Figure 2, the application one embodiment has proposed a kind of network quality detection method and has comprised the following steps:
Step 201, the first router is determined the RSSI(received signal strength indicator of main 3G link) value.
RSSI value is to evaluate the reference of current 3G network (being wireless network) situation; In the time that RSSI value is higher, illustrate that the signal of 3G network is relatively good, data service occurs that transmission delay increases, even the probability of the phenomenon such as communication disruption is lower for packet loss; In the time that RSSI value is lower, illustrate that the signal of 3G network is poor, data service occurs that transmission delay increases, even the probability of the phenomenon such as communication disruption is higher for packet loss.On this basis, in the present embodiment, first the first router need to determine the RSSI value of main 3G link, and RSSI value based on main 3G link carries out relevant treatment, and this processing procedure is set forth in detail in subsequent step.
Step 202, in the time that RSSI value is greater than alarming threshold, the first router is that link is normal by the network quality of determining main 3G link; When RSSI value is not more than this alarming threshold, and while being greater than error thresholds, the first router is chain circuit alarming by the network quality of determining main 3G link; In the time that RSSI value is not more than this error thresholds, the first router is link failure by the network quality of determining main 3G link.
Wherein, alarming threshold is greater than error thresholds, and the concrete value of alarming threshold and error thresholds can be configured by user.For example,, in WCDMA(Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)) in network (WCDMA network is a kind of 3G network), alarming threshold can be-85dBm that error thresholds can be-95dBm.Further, in the time that the RSSI of main 3G link value is greater than alarming threshold, represent that the signal of 3G network is relatively good, data service occurs that transmission delay increases, even the probability of the phenomenon such as communication disruption is lower for packet loss, and the first router is that link is normal by the network quality of determining main 3G link.When the RSSI of main 3G link value is not more than alarming threshold, and while being greater than error thresholds, the signal that represents 3G network is poor, and data service occurs that the probability of packet loss, delay and jitter is larger, and now the first router is chain circuit alarming by the network quality of determining main 3G link.In the time that the RSSI of main 3G link value is not more than error thresholds, represent that the signal of 3G network is very poor, data service can not have been transmitted on main 3G link, and now the first router is link failure by the network quality of determining main 3G link.
Step 203, is link when normal in network quality, and the first router is closed backup 3G interface, sends probe messages, and send datagram by main 3G chain road direction the second router by main 3G link with the first transmission frequency to the second router; In the time that network quality is chain circuit alarming, the first router is opened backup 3G interface, sends probe messages, and send datagram by main 3G chain road direction the second router by main 3G link with the second transmission frequency to the second router; In the time that network quality is link failure, the first router stops sending probe messages by main 3G chain road direction the second router, and sends datagram by backup 3G chain road direction the second router.Wherein, the first transmission frequency need to be less than the second transmission frequency.
In sum, in the present embodiment, be that link is when normal in the network quality of main 3G link, backup 3G interface is in closed condition, the first router sends datagram by main 3G chain road direction the second router, and sends probe messages with the first lower transmission frequency (as transmission in 60 seconds 1 time) to the second router by main 3G link, to reduce the quantity forwarded of probe messages, reduce the impact of probe messages on regular traffic, ensure that link is unimpeded.In the time that the network quality of main 3G link is chain circuit alarming, backup 3G interface is in open mode, prepare at any time carrying data message, the first router sends datagram by main 3G chain road direction the second router, and by main 3G link with the second higher transmission frequency (as 5 seconds send once) to the second router send probe messages, so that the first router can detect main 3G link failure in time, be then switched to fast backup 3G link, reduce the impact of link switching on business.In the time that the network quality of main 3G link is link failure, main 3G interface is in closed condition, the first router stops sending probe messages by main 3G chain road direction the second router, and send datagram by backup 3G chain road direction the second router, be switched in time backup 3G chain road direction the second router and send datagram.
In the present embodiment, the first router configures the first business route and the second business route, this the first business route is the different business route of two priority for same destination address (being the address of the second router) configuration with the second business route, the outgoing interface of this first business route is main 3G interface, the outgoing interface of this second business route is backup 3G interface, and the priority of this first business route is better than the priority of this second business route.In addition, a tactful route of the first router configuration, this strategy route is for making the first router arrive main 3G interface to the probe messages fixed route of the second router transmission.
The first router sends to the second router in the process of probe messages and data message, be that link is when normal in the network quality of main 3G link, the first router come into force the first business route and tactful route, the tactful route that comes into force is for making the first router send probe messages by main 3G chain road direction the second router, and the first business route that comes into force is for making the first router send datagram by main 3G chain road direction the second router.In the time that the network quality of main 3G link is chain circuit alarming, the first router come into force the first business route and tactful route, the tactful route that comes into force is for making the first router send probe messages by main 3G chain road direction the second router, and the first business route that comes into force is for making the first router send datagram by main 3G chain road direction the second router.In the time that the network quality of main 3G link is link failure, the first router lost efficacy the first business route and tactful route, the second business route comes into force, expiration policy route is used for making the first router to stop sending probe messages by main 3G chain road direction the second router, and the first business route that lost efficacy and the second business route that comes into force are for making the first router send datagram by backup 3G chain road direction the second router.
In the execution mode of this another embodiment, in above-mentioned steps 202, utilizing the network quality (link normal or chain circuit alarming or link failure) of the main 3G link that RSSI value determines is preliminary network quality, the first router can also utilize the transmission situation of probe messages and the reception condition of detection response message further to determine the network quality of main 3G link, and utilize the network quality of the main 3G link of further determining to adjust above-mentioned preliminary network quality, to obtain current final network quality.Based on this current final network quality, the first router is by the relevant treatment in execution step 203.
Below in conjunction with concrete application scenarios, the first router is adjusted preliminary network quality, be elaborated with the process that obtains current final network quality.
The first router is sending after probe messages by main 3G chain road direction the second router, the first router can also be according to the first router the transmission situation to probe messages and the second router the reply situation of probe messages is carried out to overall merit to network quality, determine the network quality of main 3G link with the reception condition of the transmission situation by probe messages and detection response message.That is: the first router is utilized the detection response message from the second router that this first router is received to probe messages and this first router of the second router transmission, determine the network quality parameters of main 3G link, and utilize network quality that the network quality parameters of this main 3G link determines main 3G link for link is normal or chain circuit alarming or link failure.
If utilizing the network quality of the definite main 3G link of RSSI value is link normal (being preliminary network quality),: when the network quality of the main 3G link that utilizes network quality parameters to determine is for link is when normal, the first router is normally (being final network quality) of link by definite current network quality of main 3G link; When the network quality of main 3G link of utilizing network quality parameters to determine is during for chain circuit alarming, the first router is chain circuit alarming (being final network quality) by definite current network quality of main 3G link; When the network quality of main 3G link of utilizing network quality parameters to determine is during for link failure, the first router is link failure (being final network quality) by definite current network quality of main 3G link.
If utilizing the network quality of the definite main 3G link of RSSI value is chain circuit alarming (being preliminary network quality),: when the network quality of the main 3G link that utilizes network quality parameters to determine is for link is when normal, the first router is chain circuit alarming (being final network quality) by definite current network quality of main 3G link; When the network quality of main 3G link of utilizing network quality parameters to determine is during for chain circuit alarming, the first router is chain circuit alarming (being final network quality) by definite current network quality of main 3G link; When the network quality of main 3G link of utilizing network quality parameters to determine is during for link failure, the first router is link failure (being final network quality) by definite current network quality of main 3G link.
In a kind of specific implementation of the present embodiment, the detection response message from the second router that the first router utilizes this first router to receive to probe messages and this first router of the second router transmission, the process of determining the network quality parameters of main 3G link, specifically comprises:
If the first router is received the detection response message that the second router is returned, determine transmitting time T1, the second router time of reception T2, the second router transmitting time T3, the first router time of reception T4 to detection response message to detection response message to probe messages of the first router to probe messages; Wherein, in probe messages, carry transmitting time T1, in detection response message, carry transmitting time T1, time of reception T2, transmitting time T3; Afterwards, the first router utilizes transmitting time T1, time of reception T2, transmitting time T3 and time of reception T4 to determine the network quality parameters of main 3G link.
Wherein, network quality parameters comprises: be branched off into center shake, center to branch shake, message round trip delay time, packet loss.The first router utilizes transmitting time T1, time of reception T2, transmitting time T3 and time of reception T4 to determine the network quality parameters of main 3G link, specifically comprises: the first router utilizes repeatedly transmitting time T1 in probe messages process of transmitting and detection response message receiving course and time of reception T2 to determine the center that the is branched off into shake of main 3G link; The first router utilizes repeatedly transmitting time T3 in probe messages process of transmitting and detection response message receiving course and time of reception T4 to determine that the center of main 3G link shakes to branch; The first router utilizes repeatedly transmitting time T1 in probe messages process of transmitting and detection response message receiving course and time of reception T4 to determine the message round trip delay time of main 3G link; The first router utilizes repeatedly probe messages quantity forwarded in probe messages process of transmitting and detection response message receiving course and detection response message received quantity to determine the packet loss of main 3G link.
Utilize relevant information in twice probe messages process of transmitting and detection response message receiving course to describe as example taking the first router, the first router determines that the center that is branched off into of main 3G link is dithered as: ((the transmitting time T1 in process for the second time of the time of reception T2-in process for the second time)-(the transmitting time T1 in process for the first time of the time of reception T2-in process for the first time))/and (2-1); In addition, the first router determines that the center of main 3G link is dithered as to branch: ((the transmitting time T3 in process for the second time of the time of reception T4-in process for the second time)-(the transmitting time T3 in process for the first time of the time of reception T4-in process for the first time))/and (2-1); In addition, the first router determines that the message round trip delay time of main 3G link is: ((the transmitting time T1 in process for the second time of the time of reception T4-in process for the second time)+(the transmitting time T1 in process for the first time of the time of reception T4-in process for the first time))/2; In addition, the first router determines that the packet loss of main 3G link is: detection response message received quantity/probe messages quantity forwarded.
Further, the first router utilizes network quality that network quality parameters determines main 3G link for link is normal or chain circuit alarming or link failure, specifically comprise: in the time that continuous shake alarm quantity N1 is branched off into center shake and is more than or equal to default dithering threshold Tj, the first router determines that the network quality of main 3G link is chain circuit alarming; Or, to shake while being more than or equal to default dithering threshold Tj to branch when continuous shake alarm quantity N2Ge center, the first router determines that the network quality of main 3G link is chain circuit alarming; Or in the time that N3 message round trip delay time of continuous Delayed Alarm quantity is more than or equal to default delay threshold Td, the first router determines that the network quality of main 3G link is chain circuit alarming; Or in the time that continuous shake number of interruptions N4 is branched off into center shake and is more than or equal to default dithering threshold Tj, the first router determines that the network quality of main 3G link is link failure; Or, to shake while being more than or equal to default dithering threshold Tj to branch when continuous shake number of interruptions N5Ge center, the first router determines that the network quality of main 3G link is link failure; Or in the time that N6 message round trip delay time of continuous time delay number of interruptions is more than or equal to default delay threshold Td, the first router determines that the network quality of main 3G link is link failure; Or when packet loss is more than or equal to default alarm threshold La, while being less than default outage threshold Ld, the first router determines that the network quality of main 3G link is chain circuit alarming; Or in the time that packet loss is more than or equal to default outage threshold Ld, the first router determines that the network quality of main 3G link is link failure; Or, when packet loss is less than default alarm threshold La, and utilize and be branched off into center shake, center to branch shakes, message round trip delay time is not determined main 3G link network quality during for chain circuit alarming or link failure, the first router determines that the network quality of main 3G link is that link is normal.In said process, shake number of interruptions N4 is greater than shake alarm quantity N1, and shake number of interruptions N5 is greater than shake alarm quantity N2, and time delay number of interruptions N6 is greater than Delayed Alarm quantity N3, and default outage threshold Ld is greater than default alarm threshold La.
In above-mentioned processing procedure, probe messages is UDP(User Datagram Protocol, User Datagram Protoco (UDP)) probe messages, detection response message is UDP detection response message.Wherein, certain interface IP address that the object IP address of this UDP probe messages is the second router, the source IP address of this UDP probe messages is certain interface IP address of the first router, and destination slogan and the source port number of this UDP probe messages can be configured by user.The second router need to be monitored UDP probe messages, and after receiving UDP probe messages, returns to UDP detection response message to the first router.
In the embodiment of the present invention, be link failure in network quality, and the first router stops sending probe messages by main 3G chain road direction the second router, and after sending datagram by backup 3G chain road direction the second router, the first router also needs to continue to determine the RSSI value of main 3G link.Based on this RSSI value,: (1) is in the time that RSSI value is greater than alarming threshold, the first router is opened main 3G interface, and sends probe messages with the first transmission frequency to the second router by main 3G link, and current continuation sends datagram by backup 3G chain road direction the second router; The detection response message from the second router that the first router utilizes the first router to receive to probe messages and the first router of the second router transmission, determine the network quality parameters of main 3G link, and utilize network quality that the network quality parameters of main 3G link determines main 3G link for link is normal or chain circuit alarming or link failure; If the network quality of main 3G link is that link is normal, to adjust the network quality of main 3G link be that link is normal to the first router; If the network quality of main 3G link is chain circuit alarming, to adjust the network quality of main 3G link be chain circuit alarming to the first router; If the network quality of main 3G link is link failure, the network quality of the main 3G link of the first router continuation maintenance is link failure; (2) when RSSI value is not more than alarming threshold, and while being greater than error thresholds, the first router is opened main 3G interface, and sends probe messages with the second transmission frequency to the second router by main 3G link, and current continuation sends datagram by backup 3G chain road direction the second router; The detection response message from the second router that the first router utilizes the first router to receive to probe messages and the first router of the second router transmission, determine the network quality parameters of main 3G link, and utilize network quality that the network quality parameters of main 3G link determines main 3G link for link is normal or chain circuit alarming or link failure; If the network quality of main 3G link is that link is normal, to adjust the network quality of main 3G link be chain circuit alarming to the first router; If the network quality of main 3G link is chain circuit alarming, to adjust the network quality of main 3G link be chain circuit alarming to the first router; If the network quality of main 3G link is link failure, the network quality of the main 3G link of the first router continuation maintenance is link failure; (3) in the time that RSSI value is not more than error thresholds, the first router does not need to open main 3G interface, closes main 3G interface, continues to stop to send probe messages by main 3G chain road direction the second router, and sends datagram by backup 3G chain road direction the second router.
Based on the inventive concept same with said method, in another embodiment of the application, also provide a kind of network equipment, as being connected by 3G network between the first router and the second router, in the first router, comprise main 3G interface and backup 3G interface, its link by main 3G interface access 3G network is main 3G link, be backup 3G link by the link of backup 3G interface access 3G network, between the second router and 3G network, adopt wired connection, as shown in Figure 3, described the first router specifically comprises:
Received signal strength indicator RSSI value determination module 11, for determining the RSSI value of main 3G link;
Network quality determination module 12, in the time that described RSSI value is greater than alarming threshold, the network quality of determining described main 3G link is that link is normal; When described RSSI value is not more than described alarming threshold, and while being greater than error thresholds, the network quality of determining described main 3G link is chain circuit alarming; In the time that described RSSI value is not more than described error thresholds, the network quality of determining described main 3G link is link failure;
Message sending module 13, for being that link is when normal in described network quality, close described backup 3G interface, and send probe messages with the first transmission frequency to described the second router by described main 3G link, and send datagram by the second router described in described main 3G chain road direction; In the time that described network quality is chain circuit alarming, opens described backup 3G interface, and send probe messages with the second transmission frequency to described the second router by described main 3G link, and send datagram by the second router described in described main 3G chain road direction; In the time that described network quality is link failure, stops sending probe messages by the second router described in described main 3G chain road direction, and send datagram by the second router described in described backup 3G chain road direction; Wherein, described the first transmission frequency is less than described the second transmission frequency.
Described network quality determination module 12, also for after sending probe messages by the second router described in described main 3G chain road direction, the detection response message from described the second router that utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure;
If the network quality of utilizing the main 3G link that RSSI value determines for link normal, when the network quality of the main 3G link that utilizes network quality parameters to determine is for link is when normal, determine that the current network quality of described main 3G link is that link is normal; When the network quality of main 3G link of utilizing network quality parameters to determine is during for chain circuit alarming, determine that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for link failure, determine that the current network quality of described main 3G link is link failure; If the network quality of main 3G link of utilizing RSSI value to determine is chain circuit alarming, when the network quality of the main 3G link that utilizes network quality parameters to determine is for link is when normal, determine that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for chain circuit alarming, determine that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for link failure, determine that the current network quality of described main 3G link is link failure.
Described network quality determination module 12, also for after stopping sending probe messages by the second router described in described main 3G chain road direction, in the time that described RSSI value is greater than alarming threshold, notify described message sending module 13 to open described main 3G interface, and send probe messages with the first transmission frequency to described the second router by described main 3G link, and current continuation sends datagram by the second router described in described backup 3G chain road direction; And, the detection response message from described the second router that utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure; If the network quality of described main 3G link is that link is normal, the network quality of adjusting described main 3G link is that link is normal; If the network quality of described main 3G link is chain circuit alarming, the network quality of adjusting described main 3G link is chain circuit alarming; If the network quality of described main 3G link is link failure, the network quality that keeps described main 3G link is link failure;
When described RSSI value is not more than alarming threshold, and while being greater than error thresholds, notify described message sending module 13 to open described main 3G interface, and send probe messages with the second transmission frequency to described the second router by described main 3G link, and current continuation sends datagram by the second router described in described backup 3G chain road direction; And, the detection response message from described the second router that utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure; If the network quality of described main 3G link is that link is normal, the network quality of adjusting described main 3G link is chain circuit alarming; If the network quality of described main 3G link is chain circuit alarming, the network quality of adjusting described main 3G link is chain circuit alarming; If the network quality of described main 3G link is link failure, the network quality that keeps described main 3G link is link failure.
Described network quality parameters specifically comprises following parameter: be branched off into center shake, center to branch shake, message round trip delay time, packet loss; The described network quality parameters of utilizing described main 3G link determines that the network quality of described main 3G link is for link is normal or chain circuit alarming or link failure, specifically comprise: in the time that continuous shake alarm quantity N1 is branched off into center shake and is more than or equal to default dithering threshold Tj, the network quality of determining described main 3G link is chain circuit alarming; Or, to shake while being more than or equal to default dithering threshold Tj to branch when continuous shake alarm quantity N2Ge center, the network quality of determining described main 3G link is chain circuit alarming; Or in the time that N3 message round trip delay time of continuous Delayed Alarm quantity is more than or equal to default delay threshold Td, the network quality of determining described main 3G link is chain circuit alarming; Or in the time that continuous shake number of interruptions N4 is branched off into center shake and is more than or equal to default dithering threshold Tj, the network quality of determining described main 3G link is link failure; Or, to shake while being more than or equal to default dithering threshold Tj to branch when continuous shake number of interruptions N5Ge center, the network quality of determining described main 3G link is link failure; Or in the time that N6 message round trip delay time of continuous time delay number of interruptions is more than or equal to default delay threshold Td, the network quality of determining described main 3G link is link failure; Or when packet loss is more than or equal to default alarm threshold La, while being less than default outage threshold Ld, the network quality of determining described main 3G link is chain circuit alarming; Or in the time that packet loss is more than or equal to default outage threshold Ld, the network quality of determining described main 3G link is link failure; Or, when packet loss is less than default alarm threshold La, and utilize and be branched off into center shake, center to branch shakes, message round trip delay time is not determined described main 3G link network quality during for chain circuit alarming or link failure, the network quality of determining described main 3G link is that link is normal; Wherein, described shake number of interruptions N4 is greater than described shake alarm quantity N1, and described shake number of interruptions N5 is greater than described shake alarm quantity N2, and described time delay number of interruptions N6 is greater than described Delayed Alarm quantity N3, and described default outage threshold Ld is greater than described default alarm threshold La.
Described to described the second router transmission probe messages and data message, specifically comprise: configuration the first business route, the second business route and tactful route, the outgoing interface of described the first business route is described main 3G interface, the outgoing interface of described the second business route is described backup 3G interface, and the priority of described the first business route is better than the priority of described the second business route; Described tactful route is for making the probe messages sending to the second router be routed to described main 3G interface; Be that link is when normal in network quality, the first business route and tactful route come into force, the tactful route that comes into force is for making described the first router send probe messages by described main 3G chain road direction the second router, and the first business route that comes into force is for making described the first router send datagram by described main 3G chain road direction the second router; In the time that network quality is chain circuit alarming, the first business route and tactful route come into force, the tactful route that comes into force is for making described the first router send probe messages by the second router described in described main 3G chain road direction, and the first business route that comes into force is for making described the first router send datagram by the second router described in described main 3G chain road direction; In the time that network quality is link failure, the first business route and tactful route lost efficacy, and the second business route that comes into force, expiration policy route is used for making described the first router to stop sending probe messages by the second router described in described main 3G chain road direction, and the first business route that lost efficacy and the second business route that comes into force are for making described the first router send datagram by the second router described in described backup 3G chain road direction.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into multiple submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into multiple submodules.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Disclosed is above only several specific embodiment of the present invention, and still, the present invention is not limited thereto, and the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.
Claims (10)
1. a network quality detection method, between the first router and the second router, be connected by 3G network, in the first router, comprise main 3G interface and backup 3G interface, its link by main 3G interface access 3G network is main 3G link, be backup 3G link by the link of backup 3G interface access 3G network, between the second router and 3G network, adopt wired connection, it is characterized in that, described method comprises:
Described the first router is determined the received signal strength indicator RSSI value of described main 3G link;
In the time that described RSSI value is greater than alarming threshold, described the first router determines that the network quality of main 3G link is that link is normal; When described RSSI value is not more than described alarming threshold, and while being greater than error thresholds, described the first router determines that the network quality of main 3G link is chain circuit alarming; In the time that described RSSI value is not more than described error thresholds, described the first router determines that the network quality of main 3G link is link failure;
Be that link is when normal in network quality, described the first router is closed described backup 3G interface, send probe messages with the first transmission frequency to described the second router by described main 3G link, and send datagram by the second router described in described main 3G chain road direction; In the time that network quality is chain circuit alarming, described the first router is opened described backup 3G interface, send probe messages with the second transmission frequency to described the second router by described main 3G link, and send datagram by the second router described in described main 3G chain road direction; In the time that network quality is link failure, described the first router stops sending probe messages by the second router described in described main 3G chain road direction, and sends datagram by the second router described in described backup 3G chain road direction; Wherein, described the first transmission frequency is less than described the second transmission frequency.
2. the method for claim 1, is characterized in that, after described the first router sends probe messages by the second router described in described main 3G chain road direction, described method further comprises:
The detection response message from described the second router that described the first router utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure;
If utilize RSSI value determine main 3G link network quality for link normal, when the network quality of the main 3G link that utilizes network quality parameters to determine is for link is when normal, described the first router determines that the current network quality of described main 3G link is that link is normal; When the network quality of main 3G link of utilizing network quality parameters to determine is during for chain circuit alarming, described the first router determines that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for link failure, described the first router determines that the current network quality of described main 3G link is link failure;
If utilizing the network quality of the definite main 3G link of RSSI value is chain circuit alarming, when the network quality of the main 3G link that utilizes network quality parameters to determine is for link is when normal, described the first router determines that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for chain circuit alarming, described the first router determines that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for link failure, described the first router determines that the current network quality of described main 3G link is link failure.
3. method as claimed in claim 2, is characterized in that, after described the first router stops sending probe messages by the second router described in described main 3G chain road direction, described method further comprises:
In the time that described RSSI value is greater than alarming threshold, described the first router is opened described main 3G interface, and send probe messages with the first transmission frequency to described the second router by described main 3G link, and current continuation sends datagram by the second router described in described backup 3G chain road direction; The detection response message from described the second router that described the first router utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure; If the network quality of described main 3G link is that link is normal, the network quality of the described main 3G link of described the first router adjustment is that link is normal; If the network quality of described main 3G link is chain circuit alarming, the network quality of the described main 3G link of described the first router adjustment is chain circuit alarming; If the network quality of described main 3G link is link failure, the network quality of the described main 3G link of described the first router maintenance is link failure;
When described RSSI value is not more than alarming threshold, and while being greater than error thresholds, described the first router is opened described main 3G interface, and send probe messages with the second transmission frequency to described the second router by described main 3G link, and current continuation sends datagram by the second router described in described backup 3G chain road direction; The detection response message from described the second router that described the first router utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure; If the network quality of described main 3G link is that link is normal, the network quality of the described main 3G link of the first router adjustment is chain circuit alarming; If the network quality of described main 3G link is chain circuit alarming, the network quality of the described main 3G link of the first router adjustment is chain circuit alarming; If the network quality of described main 3G link is link failure, the network quality of the described main 3G link of the first router maintenance is link failure.
4. method as claimed in claim 2 or claim 3, is characterized in that, described network quality parameters specifically comprises following parameter: be branched off into center shake, center to branch shake, message round trip delay time, packet loss;
The process of network quality that described the first router utilizes the network quality parameters of described main 3G link to determine described main 3G link or chain circuit alarming or link failure normal for link, specifically comprises:
In the time that continuous shake alarm quantity N1 is branched off into center shake and is more than or equal to default dithering threshold Tj, described the first router determines that the network quality of described main 3G link is chain circuit alarming; Or,
Shake while being more than or equal to default dithering threshold Tj to branch when continuous shake alarm quantity N2Ge center, described the first router determines that the network quality of described main 3G link is chain circuit alarming; Or,
In the time that N3 message round trip delay time of continuous Delayed Alarm quantity is more than or equal to default delay threshold Td, described the first router determines that the network quality of described main 3G link is chain circuit alarming; Or,
In the time that continuous shake number of interruptions N4 is branched off into center shake and is more than or equal to default dithering threshold Tj, described the first router determines that the network quality of described main 3G link is link failure; Or,
Shake while being more than or equal to default dithering threshold Tj to branch when continuous shake number of interruptions N5Ge center, described the first router determines that the network quality of described main 3G link is link failure; Or,
In the time that N6 message round trip delay time of continuous time delay number of interruptions is more than or equal to default delay threshold Td, described the first router determines that the network quality of described main 3G link is link failure; Or,
When packet loss is more than or equal to default alarm threshold La, while being less than default outage threshold Ld, described the first router determines that the network quality of described main 3G link is chain circuit alarming; Or in the time that packet loss is more than or equal to default outage threshold Ld, described the first router determines that the network quality of described main 3G link is link failure; Or, when packet loss is less than default alarm threshold La, and utilize and be branched off into center shake, center to branch shakes, message round trip delay time is not determined described main 3G link network quality during for chain circuit alarming or link failure, described the first router determines that the network quality of described main 3G link is that link is normal;
Wherein, described shake number of interruptions N4 is greater than described shake alarm quantity N1, and described shake number of interruptions N5 is greater than described shake alarm quantity N2, and described time delay number of interruptions N6 is greater than described Delayed Alarm quantity N3, and described default outage threshold Ld is greater than described default alarm threshold La.
5. the method for claim 1, is characterized in that, described the first router sends in the process of probe messages and data message to described the second router, and described method further comprises:
Described the first router configures the first business route, the second business route and tactful route, the outgoing interface of described the first business route is described main 3G interface, the outgoing interface of described the second business route is described backup 3G interface, and the priority of described the first business route is better than the priority of described the second business route; Described tactful route is for making the probe messages sending to the second router be routed to described main 3G interface;
Be that link is when normal in network quality, described the first router come into force the first business route and tactful route, the tactful route that comes into force is for making described the first router send probe messages by described main 3G chain road direction the second router, and the first business route that comes into force is for making described the first router send datagram by described main 3G chain road direction the second router; In the time that network quality is chain circuit alarming, described the first router come into force the first business route and tactful route, the tactful route that comes into force is for making described the first router send probe messages by the second router described in described main 3G chain road direction, and the first business route that comes into force is for making described the first router send datagram by the second router described in described main 3G chain road direction; In the time that network quality is link failure, described the first router lost efficacy the first business route and tactful route, and the second business route that comes into force, expiration policy route is used for making described the first router to stop sending probe messages by the second router described in described main 3G chain road direction, and the first business route that lost efficacy and the second business route that comes into force are for making described the first router send datagram by the second router described in described backup 3G chain road direction.
6. a network equipment, as being connected by 3G network between the first router and the second router, in the first router, comprise main 3G interface and backup 3G interface, its link by main 3G interface access 3G network is main 3G link, be backup 3G link by the link of backup 3G interface access 3G network, between the second router and 3G network, adopt wired connection, it is characterized in that, described the first router comprises:
Received signal strength indicator RSSI value determination module, for determining the RSSI value of main 3G link;
Network quality determination module, in the time that described RSSI value is greater than alarming threshold, the network quality of determining described main 3G link is that link is normal; When described RSSI value is not more than described alarming threshold, and while being greater than error thresholds, the network quality of determining described main 3G link is chain circuit alarming; In the time that described RSSI value is not more than described error thresholds, the network quality of determining described main 3G link is link failure;
Message sending module, for being that link is when normal in described network quality, close described backup 3G interface, and send probe messages with the first transmission frequency to described the second router by described main 3G link, and send datagram by the second router described in described main 3G chain road direction; In the time that described network quality is chain circuit alarming, opens described backup 3G interface, and send probe messages with the second transmission frequency to described the second router by described main 3G link, and send datagram by the second router described in described main 3G chain road direction; In the time that described network quality is link failure, stops sending probe messages by the second router described in described main 3G chain road direction, and send datagram by the second router described in described backup 3G chain road direction; Wherein, described the first transmission frequency is less than described the second transmission frequency.
7. the network equipment as claimed in claim 6, is characterized in that,
Described network quality determination module, also for after sending probe messages by the second router described in described main 3G chain road direction, the detection response message from described the second router that utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure;
If the network quality of utilizing the main 3G link that RSSI value determines for link normal, when the network quality of the main 3G link that utilizes network quality parameters to determine is for link is when normal, determine that the current network quality of described main 3G link is that link is normal; When the network quality of main 3G link of utilizing network quality parameters to determine is during for chain circuit alarming, determine that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for link failure, determine that the current network quality of described main 3G link is link failure; If the network quality of main 3G link of utilizing RSSI value to determine is chain circuit alarming, when the network quality of the main 3G link that utilizes network quality parameters to determine is for link is when normal, determine that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for chain circuit alarming, determine that the current network quality of described main 3G link is chain circuit alarming; When the network quality of main 3G link of utilizing network quality parameters to determine is during for link failure, determine that the current network quality of described main 3G link is link failure.
8. the network equipment as claimed in claim 7, is characterized in that,
Described network quality determination module, also for after stopping sending probe messages by the second router described in described main 3G chain road direction, in the time that described RSSI value is greater than alarming threshold, notify described message sending module to open described main 3G interface, and send probe messages with the first transmission frequency to described the second router by described main 3G link, and current continuation sends datagram by the second router described in described backup 3G chain road direction; And, the detection response message from described the second router that utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure; If the network quality of described main 3G link is that link is normal, the network quality of adjusting described main 3G link is that link is normal; If the network quality of described main 3G link is chain circuit alarming, the network quality of adjusting described main 3G link is chain circuit alarming; If the network quality of described main 3G link is link failure, the network quality that keeps described main 3G link is link failure;
When described RSSI value is not more than alarming threshold, and while being greater than error thresholds, notify described message sending module to open described main 3G interface, and send probe messages with the second transmission frequency to described the second router by described main 3G link, and current continuation sends datagram by the second router described in described backup 3G chain road direction; And, the detection response message from described the second router that utilizes described the first router to receive to probe messages and the described the first router of described the second router transmission, determine the network quality parameters of described main 3G link, and utilize network quality that the network quality parameters of described main 3G link determines described main 3G link for link is normal or chain circuit alarming or link failure; If the network quality of described main 3G link is that link is normal, the network quality of adjusting described main 3G link is chain circuit alarming; If the network quality of described main 3G link is chain circuit alarming, the network quality of adjusting described main 3G link is chain circuit alarming; If the network quality of described main 3G link is link failure, the network quality that keeps described main 3G link is link failure.
9. the network equipment as claimed in claim 7 or 8, is characterized in that, described network quality parameters specifically comprises following parameter: be branched off into center shake, center to branch shake, message round trip delay time, packet loss; The described network quality parameters of utilizing described main 3G link determines that the network quality of described main 3G link, for link is normal or chain circuit alarming or link failure, specifically comprises:
In the time that continuous shake alarm quantity N1 is branched off into center shake and is more than or equal to default dithering threshold Tj, the network quality of determining described main 3G link is chain circuit alarming; Or, to shake while being more than or equal to default dithering threshold Tj to branch when continuous shake alarm quantity N2Ge center, the network quality of determining described main 3G link is chain circuit alarming; Or in the time that N3 message round trip delay time of continuous Delayed Alarm quantity is more than or equal to default delay threshold Td, the network quality of determining described main 3G link is chain circuit alarming; Or in the time that continuous shake number of interruptions N4 is branched off into center shake and is more than or equal to default dithering threshold Tj, the network quality of determining described main 3G link is link failure; Or, to shake while being more than or equal to default dithering threshold Tj to branch when continuous shake number of interruptions N5Ge center, the network quality of determining described main 3G link is link failure; Or in the time that N6 message round trip delay time of continuous time delay number of interruptions is more than or equal to default delay threshold Td, the network quality of determining described main 3G link is link failure; Or when packet loss is more than or equal to default alarm threshold La, while being less than default outage threshold Ld, the network quality of determining described main 3G link is chain circuit alarming; Or in the time that packet loss is more than or equal to default outage threshold Ld, the network quality of determining described main 3G link is link failure; Or, when packet loss is less than default alarm threshold La, and utilize and be branched off into center shake, center to branch shakes, message round trip delay time is not determined described main 3G link network quality during for chain circuit alarming or link failure, the network quality of determining described main 3G link is that link is normal; Wherein, described shake number of interruptions N4 is greater than described shake alarm quantity N1, and described shake number of interruptions N5 is greater than described shake alarm quantity N2, and described time delay number of interruptions N6 is greater than described Delayed Alarm quantity N3, and described default outage threshold Ld is greater than described default alarm threshold La.
10. the network equipment as claimed in claim 6, is characterized in that,
Described to described the second router transmission probe messages and data message, specifically comprise: configuration the first business route, the second business route and tactful route, the outgoing interface of described the first business route is described main 3G interface, the outgoing interface of described the second business route is described backup 3G interface, and the priority of described the first business route is better than the priority of described the second business route; Described tactful route is for making the probe messages sending to the second router be routed to described main 3G interface; Be that link is when normal in network quality, the first business route and tactful route come into force, the tactful route that comes into force is for making described the first router send probe messages by described main 3G chain road direction the second router, and the first business route that comes into force is for making described the first router send datagram by described main 3G chain road direction the second router; In the time that network quality is chain circuit alarming, the first business route and tactful route come into force, the tactful route that comes into force is for making described the first router send probe messages by the second router described in described main 3G chain road direction, and the first business route that comes into force is for making described the first router send datagram by the second router described in described main 3G chain road direction; In the time that network quality is link failure, the first business route and tactful route lost efficacy, and the second business route that comes into force, expiration policy route is used for making described the first router to stop sending probe messages by the second router described in described main 3G chain road direction, and the first business route that lost efficacy and the second business route that comes into force are for making described the first router send datagram by the second router described in described backup 3G chain road direction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410135805.7A CN103957538B (en) | 2014-04-04 | 2014-04-04 | A kind of network quality detection method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410135805.7A CN103957538B (en) | 2014-04-04 | 2014-04-04 | A kind of network quality detection method and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103957538A true CN103957538A (en) | 2014-07-30 |
CN103957538B CN103957538B (en) | 2017-11-28 |
Family
ID=51334741
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410135805.7A Active CN103957538B (en) | 2014-04-04 | 2014-04-04 | A kind of network quality detection method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103957538B (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104602264A (en) * | 2015-01-05 | 2015-05-06 | 华为技术有限公司 | Method, device and system for promoting control point to find device |
CN104640122A (en) * | 2015-03-09 | 2015-05-20 | 北京极科极客科技有限公司 | Wireless networking method of router and trunk equipment |
CN104883298A (en) * | 2015-06-12 | 2015-09-02 | 中国通信建设集团设计院有限公司 | Business quality detection method and router |
CN105187228A (en) * | 2015-06-12 | 2015-12-23 | 中国通信建设集团设计院有限公司 | Network quality detection method and router |
CN108075934A (en) * | 2016-11-15 | 2018-05-25 | 腾讯科技(深圳)有限公司 | A kind of network quality monitoring method, apparatus and system |
CN108234219A (en) * | 2018-01-28 | 2018-06-29 | 厦门四信通信科技有限公司 | It is a kind of to realize that three links automatically switch the method for online in router gateway |
CN109548124A (en) * | 2019-01-11 | 2019-03-29 | 普联技术有限公司 | Wireless router Poewr control method, device, storage medium and wireless router |
CN109756555A (en) * | 2018-11-13 | 2019-05-14 | 北京码牛科技有限公司 | Big data processing method and processing device based on Internet of Things |
CN113114519A (en) * | 2020-01-09 | 2021-07-13 | 厦门网宿有限公司 | Network quality detection method and device |
CN114158069A (en) * | 2021-11-26 | 2022-03-08 | 中国联合网络通信集团有限公司 | Method and device for data transmission in private network |
WO2022067796A1 (en) * | 2020-09-30 | 2022-04-07 | 华为技术有限公司 | Communication method and apparatus, and computer-readable storage medium |
CN114615178A (en) * | 2022-03-16 | 2022-06-10 | 北京轻网科技有限公司 | Link quality detection method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1925429A (en) * | 2006-09-30 | 2007-03-07 | 杭州华为三康技术有限公司 | Method and equipment for realizing fast detection |
CN101127675A (en) * | 2007-09-25 | 2008-02-20 | 中兴通讯股份有限公司 | Initialization method for main nodes of Ethernet loop network system |
US20080096560A1 (en) * | 2006-10-24 | 2008-04-24 | Nortel Networks Limited | System and method for ensuring handoffs across heterogeneous networks |
-
2014
- 2014-04-04 CN CN201410135805.7A patent/CN103957538B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1925429A (en) * | 2006-09-30 | 2007-03-07 | 杭州华为三康技术有限公司 | Method and equipment for realizing fast detection |
US20080096560A1 (en) * | 2006-10-24 | 2008-04-24 | Nortel Networks Limited | System and method for ensuring handoffs across heterogeneous networks |
CN101127675A (en) * | 2007-09-25 | 2008-02-20 | 中兴通讯股份有限公司 | Initialization method for main nodes of Ethernet loop network system |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104602264A (en) * | 2015-01-05 | 2015-05-06 | 华为技术有限公司 | Method, device and system for promoting control point to find device |
CN104602264B (en) * | 2015-01-05 | 2018-01-16 | 华为技术有限公司 | A kind of method, apparatus and system for promoting control point discovering device |
CN104640122A (en) * | 2015-03-09 | 2015-05-20 | 北京极科极客科技有限公司 | Wireless networking method of router and trunk equipment |
CN104883298A (en) * | 2015-06-12 | 2015-09-02 | 中国通信建设集团设计院有限公司 | Business quality detection method and router |
CN105187228A (en) * | 2015-06-12 | 2015-12-23 | 中国通信建设集团设计院有限公司 | Network quality detection method and router |
CN108075934A (en) * | 2016-11-15 | 2018-05-25 | 腾讯科技(深圳)有限公司 | A kind of network quality monitoring method, apparatus and system |
CN108075934B (en) * | 2016-11-15 | 2021-05-25 | 腾讯科技(深圳)有限公司 | Network quality monitoring method, device and system |
CN108234219A (en) * | 2018-01-28 | 2018-06-29 | 厦门四信通信科技有限公司 | It is a kind of to realize that three links automatically switch the method for online in router gateway |
CN109756555A (en) * | 2018-11-13 | 2019-05-14 | 北京码牛科技有限公司 | Big data processing method and processing device based on Internet of Things |
CN109548124A (en) * | 2019-01-11 | 2019-03-29 | 普联技术有限公司 | Wireless router Poewr control method, device, storage medium and wireless router |
CN109548124B (en) * | 2019-01-11 | 2021-11-12 | 普联技术有限公司 | Wireless router power control method, device, storage medium and wireless router |
CN113114519A (en) * | 2020-01-09 | 2021-07-13 | 厦门网宿有限公司 | Network quality detection method and device |
WO2022067796A1 (en) * | 2020-09-30 | 2022-04-07 | 华为技术有限公司 | Communication method and apparatus, and computer-readable storage medium |
CN114158069A (en) * | 2021-11-26 | 2022-03-08 | 中国联合网络通信集团有限公司 | Method and device for data transmission in private network |
CN114158069B (en) * | 2021-11-26 | 2023-12-01 | 中国联合网络通信集团有限公司 | Method and device for data transmission in private network |
CN114615178A (en) * | 2022-03-16 | 2022-06-10 | 北京轻网科技有限公司 | Link quality detection method and device |
CN114615178B (en) * | 2022-03-16 | 2024-02-13 | 北京轻网科技股份有限公司 | Link quality detection method and device |
Also Published As
Publication number | Publication date |
---|---|
CN103957538B (en) | 2017-11-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103957538A (en) | Method and device for detecting network quality | |
US7921224B2 (en) | Method of maintaining traffic services through congestion caused by network failovers | |
RU2511219C2 (en) | Data transmission method and system | |
US8934337B2 (en) | Method for transmitting real-time data packets in convergent networks | |
US8953440B2 (en) | Dynamic bandwidth adjustment in packet transport network | |
US9270560B2 (en) | Session layer for monitoring utility application traffic | |
US10560371B2 (en) | Method, apparatus, terminal device, and system for adjusting working status of aggregated link | |
EP2509260A1 (en) | Method, apparatus and communication system for protecting signaling transmission | |
CN102064981A (en) | Bidirectional forwarding detection (BFD) method and system | |
WO2016090978A1 (en) | Traffic switching method and device | |
CN103490921B (en) | Network protection method, device, lower link point and system | |
CN109728967A (en) | Communication quality detection method, communication equipment and system | |
JPWO2013065477A1 (en) | Communications system | |
US9716739B2 (en) | System and method for determining deterioration in call quality between one or more wireless end-users based on codec characteristics | |
CN103491555A (en) | Method, equipment and system for positioning IP link fault based on service information | |
CN115378844B (en) | Fault detection method and device for network link | |
CN105591960B (en) | The method and apparatus for adjusting tunnel load | |
CN105637817A (en) | Control device and system and transmission channel control method in software-defined networking | |
CN117294536B (en) | KNX-based building management security communication method | |
WO2015180265A1 (en) | Multi-link protection switching method and device | |
CN102025437B (en) | Method, system and device for protection switching | |
CN112583650B (en) | SR-BE tunnel link detection method and system in SPN | |
CN104683233A (en) | Method for shortening switching time of master/spare routers | |
CN102447569B (en) | Protection method for point-to-multipoint multicast service and network equipment | |
WO2016061992A1 (en) | Service transmission method and device |
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 |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |