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
- main
- router
- network quality
- alarm
- 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
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000001514 detection method Methods 0.000 claims description 153
- 230000000694 effects Effects 0.000 claims description 25
- 239000000523 sample Substances 0.000 claims description 24
- 230000005540 biological transmission Effects 0.000 claims description 20
- 230000003247 decreasing effect Effects 0.000 abstract 1
- 238000004891 communication Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
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 the field of communications technologies, and in particular, to a network quality detection method and device.
Background
The 3G (third generation mobile communication system) has a high access bandwidth and can provide a good quality of service. As 3G networks mature, more and more enterprise branches use 3G links instead of wired links to access the enterprise central office. As shown in fig. 1, in order to improve the stability of the access of the branch office, a main 3G interface and a backup 3G interface are configured on the branch router, a link of the branch router accessing the 3G network through the main 3G interface is a main 3G link, and a link of the branch router accessing the 3G network through the backup 3G interface is a backup 3G link; in addition, the central router and the 3G network can be connected in a wired mode. When the main 3G link does not have a fault, the branch router uses the main 3G link to communicate with the central router; when the main 3G link fails, the branch router is switched to the backup 3G link to communicate with the central router; when the main 3G link failure is recovered, the branch router switches to the main 3G link to communicate with the central router.
In order to timely know whether the main 3G link fails or not, the branch router periodically sends a detection request message to the central router through the main 3G link and observes whether a detection response message returned by the central router can be received or not; and if the detection response message returned by the central router cannot be received within the preset time, the main 3G link is considered to be in fault. And in the process that the branch router uses the backup 3G link to communicate with the central router, continuously sending a detection request message to the central router through the main 3G link, and if a detection response message returned by the central router is received within the preset time, considering that the main 3G link is recovered from the fault.
In the above process, the branch routers transmit the probe request message to the central router by using the same transmission frequency, but it is difficult for the branch routers to accurately determine the transmission frequency of the probe request message. If the sending frequency of the detection request message is too high (such as the second order), when the main 3G link fails, the load of the main 3G link and the load of the central router are increased; if the sending frequency of the probe request message is too low (e.g. in the order of minutes), when the main 3G link fails, the branch router may not sense the failure of the main 3G link for a long time, and then communication interruption of the branch router is caused for a long time.
Disclosure of Invention
Embodiments of the present invention provide a network quality detection method and device, so as to determine a reasonable sending frequency of a detection packet, and detect a link failure in time when a link fails.
In order to achieve the above object, an embodiment of the present invention provides a network quality detection method, where a first router and a second router are connected through a 3G network, the first router includes a main 3G interface and a backup 3G interface, a link that accesses the 3G network through the main 3G interface is a main 3G link, a link that accesses the 3G network through the backup 3G interface is a backup 3G link, and the second router and the 3G network are connected by a wire, where the method includes:
the first router determining a Received Signal Strength Indication (RSSI) value for the primary 3G link;
when the RSSI value is larger than an alarm threshold, the first router determines that the network quality of the main 3G link is normal; when the RSSI value is not greater than the alarm threshold and is greater than an error threshold, the first router determines that the network quality of the main 3G link is a link alarm; when the RSSI value is not greater than the error threshold, the first router determines that the network quality of the main 3G link is a link fault;
when the network quality is link normal, the first router closes the backup 3G interface, sends a detection message to the second router through the main 3G link at a first sending frequency, and sends a data message to the second router through the main 3G link; when the network quality is a link alarm, the first router opens the backup 3G interface, sends a detection message to the second router through the main 3G link at a second sending frequency, and sends a data message to the second router through the main 3G link; when the network quality is a link failure, the first router stops sending a detection message to the second router through the main 3G link, and sends a data message to the second router through the backup 3G link; wherein the first transmission frequency is less than the second transmission frequency.
After the first router sends the probe packet to the second router through the primary 3G link, the method further includes:
the first router determines the network quality parameter of the main 3G link by using a detection message sent to the second router by the first router and a detection response message from the second router received by the first router, and determines the network quality of the main 3G link to be normal link, or link alarm, or link failure by using the network quality parameter of the main 3G link;
if the network quality of the main 3G link determined by the RSSI value is that the link is normal, and when the network quality of the main 3G link determined by the network quality parameter is that the link is normal, the first router determines that the current network quality of the main 3G link is that the link is normal; when the network quality of the main 3G link determined by the network quality parameter is a link alarm, the first router determines that the current network quality of the main 3G link is the link alarm; when the network quality of the main 3G link determined by the network quality parameter is a link fault, the first router determines that the current network quality of the main 3G link is the link fault;
if the network quality of the main 3G link determined by the RSSI value is a link alarm, when the network quality of the main 3G link determined by the network quality parameter is that the link is normal, the first router determines that the current network quality of the main 3G link is a link alarm; when the network quality of the main 3G link determined by the network quality parameter is a link alarm, the first router determines that the current network quality of the main 3G link is the link alarm; and when the network quality of the main 3G link determined by the network quality parameter is the link failure, the first router determines that the current network quality of the main 3G link is the link failure.
After the first router stops sending the probe packet to the second router through the primary 3G link, the method further includes:
when the RSSI value is greater than the alarm threshold, the first router opens the main 3G interface, sends a detection message to the second router through the main 3G link at a first sending frequency, and currently continues to send a data message to the second router through the backup 3G link; the first router determines the network quality parameter of the main 3G link by using a detection message sent to the second router by the first router and a detection response message from the second router received by the first router, and determines the network quality of the main 3G link to be normal link, or link alarm, or link failure by using the network quality parameter of the main 3G link; if the network quality of the main 3G link is that the link is normal, the first router adjusts the network quality of the main 3G link to be that the link is normal; if the network quality of the main 3G link is a link alarm, the first router adjusts the network quality of the main 3G link to be the link alarm; if the network quality of the main 3G link is a link failure, the first router keeps the network quality of the main 3G link as the link failure;
when the RSSI value is not greater than the alarm threshold and is greater than the error threshold, the first router opens the main 3G interface, sends a detection message to the second router through the main 3G link at a second sending frequency, and currently continues to send a data message to the second router through the backup 3G link; the first router determines the network quality parameter of the main 3G link by using a detection message sent to the second router by the first router and a detection response message from the second router received by the first router, and determines the network quality of the main 3G link to be normal link, or link alarm, or link failure by using the network quality parameter of the main 3G link; if the network quality of the main 3G link is that the link is normal, the first router adjusts the network quality of the main 3G link to be a link alarm; if the network quality of the main 3G link is a link alarm, the first router adjusts the network quality of the main 3G link to be the link alarm; and if the network quality of the main 3G link is the link failure, the first router keeps the network quality of the main 3G link as the link failure.
The network quality parameters specifically include the following parameters: jitter from branch to center, jitter from center to branch, round-trip delay of message, packet loss rate;
the first router determines, by using the network quality parameter of the main 3G link, that the network quality of the main 3G link is a process of a normal link, or a link alarm, or a link failure, and specifically includes:
when the jitter of N1 branches to the center is greater than or equal to a preset jitter threshold Tj, the first router determines that the network quality of the main 3G link is a link alarm; or,
when the jitter from the center to the branch of N2 continuous jitter alarm numbers is greater than or equal to a preset jitter threshold Tj, the first router determines the network quality of the main 3G link as a link alarm; or,
when the round-trip delay of N3 continuous delay alarm messages is greater than or equal to a preset delay threshold Td, the first router determines that the network quality of the main 3G link is a link alarm; or,
when the continuous jitter interruption number N4 branches to the center jitter is greater than or equal to a preset jitter threshold Tj, the first router determines the network quality of the main 3G link to be a link fault; or,
when the continuous jitter interruption number N5 from the center to the branch jitter is greater than or equal to a preset jitter threshold Tj, the first router determines the network quality of the main 3G link to be a link fault; or,
when the round-trip delay of N6 continuous delay interruptions is greater than or equal to a preset delay threshold Td, the first router determines that the network quality of the main 3G link is a link fault; or,
when the packet loss rate is greater than or equal to a preset alarm threshold La and less than a preset interruption threshold Ld, the first router determines that the network quality of the main 3G link is a link alarm; or when the packet loss rate is greater than or equal to a preset interruption threshold Ld, the first router determines that the network quality of the main 3G link is a link fault; or, when the packet loss rate is less than a preset alarm threshold La and the network quality of the main 3G link is not determined to be a link alarm or a link fault by using branch-to-center jitter, center-to-branch jitter, and message round-trip delay, the first router determines that the network quality of the main 3G link is a link normal;
wherein the jitter interruption number N4 is greater than the jitter alarm number N1, the jitter interruption number N5 is greater than the jitter alarm number N2, the delay interruption number N6 is greater than the delay alarm number N3, and the preset interruption threshold Ld is greater than the preset alarm threshold La.
In the process that the first router sends the detection message and the data message to the second router, the method further comprises:
the first router is configured with a first service route, a second service route and a policy route, an output interface of the first service route is the main 3G interface, an output interface of the second service route is the backup 3G interface, and the priority of the first service route is superior to that of the second service route; the policy routing is used for enabling the detection message sent to the second router to be routed to the main 3G interface;
when the network quality is link normality, the first router takes effect of a first service route and a strategy route, the taking effect strategy route is used for enabling the first router to send a detection message to the second router through the main 3G link, and the taking effect first service route is used for enabling the first router to send a data message to the second router through the main 3G link; when the network quality is a link alarm, the first router takes effect of a first service route and a strategy route, the taking effect strategy route is used for enabling the first router to send a detection message to the second router through the main 3G link, and the taking effect first service route is used for enabling the first router to send a data message to the second router through the main 3G link; and when the network quality is a link failure, the first router fails a first service route and a strategy route and generates a second service route, the failure strategy route is used for enabling the first router to stop sending detection messages to the second router through the main 3G link, and the failure first service route and the effective second service route are used for enabling the first router to send data messages to the second router through the backup 3G link.
An embodiment of the present invention provides a network device, where a first router and a second router are connected by a 3G network, the first router includes a main 3G interface and a backup 3G interface, a link that accesses the 3G network through the main 3G interface is a main 3G link, a link that accesses the 3G network through the backup 3G interface is a backup 3G link, and the second router and the 3G network are connected by a wire, where the first router includes: the RSSI value determination module is used for determining the RSSI value of the main 3G link;
the network quality determining module is used for determining that the network quality of the main 3G link is normal when the RSSI value is greater than an alarm threshold; when the RSSI value is not greater than the alarm threshold and is greater than an error threshold, determining the network quality of the main 3G link as a link alarm; when the RSSI value is not greater than the error threshold, determining the network quality of the main 3G link as a link fault;
a message sending module, configured to close the backup 3G interface, send a detection message to the second router through the main 3G link at a first sending frequency, and send a data message to the second router through the main 3G link when the network quality is that the link is normal; when the network quality is a link alarm, opening the backup 3G interface, sending a detection message to the second router through the main 3G link at a second sending frequency, and sending a data message to the second router through the main 3G link; when the network quality is a link failure, stopping sending the detection message to the second router through the main 3G link, and sending the data message to the second router through the backup 3G link; wherein the first transmission frequency is less than the second transmission frequency.
The network quality determining module is further configured to determine a network quality parameter of the main 3G link by using a probe packet sent by the first router to the second router and a probe response packet received by the first router from the second router after sending a probe packet to the second router through the main 3G link, and determine that the network quality of the main 3G link is link normal, or link alarm, or link failure by using the network quality parameter of the main 3G link;
if the network quality of the main 3G link determined by the RSSI value is that the link is normal, and if the network quality of the main 3G link determined by the network quality parameter is that the link is normal, determining that the current network quality of the main 3G link is that the link is normal; when the network quality of the main 3G link determined by the network quality parameter is a link alarm, determining the current network quality of the main 3G link as a link alarm; when the network quality of the main 3G link determined by the network quality parameters is a link fault, determining the current network quality of the main 3G link as the link fault; if the network quality of the main 3G link determined by the RSSI value is a link alarm, and when the network quality of the main 3G link determined by the network quality parameter is a link normal, determining the current network quality of the main 3G link to be a link alarm; when the network quality of the main 3G link determined by the network quality parameter is a link alarm, determining the current network quality of the main 3G link as a link alarm; and when the network quality of the main 3G link determined by the network quality parameter is the link failure, determining that the current network quality of the main 3G link is the link failure.
The network quality determination module is further configured to, after stopping sending a detection packet to the second router through the main 3G link, notify the packet sending module to open the main 3G interface when the RSSI value is greater than an alarm threshold, send the detection packet to the second router at the first sending frequency through the main 3G link, and currently continue sending a data packet to the second router through the backup 3G link; determining the network quality parameter of the main 3G link by using the detection message sent by the first router to the second router and the detection response message received by the first router from the second router, and determining the network quality of the main 3G link to be normal link, or link alarm, or link failure by using the network quality parameter of the main 3G link; if the network quality of the main 3G link is that the link is normal, adjusting the network quality of the main 3G link to be that the link is normal; if the network quality of the main 3G link is the link alarm, adjusting the network quality of the main 3G link to be the link alarm; if the network quality of the main 3G link is the link failure, the network quality of the main 3G link is kept to be the link failure;
when the RSSI value is not greater than the alarm threshold and is greater than the error threshold, informing the message sending module to open the main 3G interface, sending a detection message to the second router through the main 3G link at a second sending frequency, and continuously sending a data message to the second router through the backup 3G link at present; determining the network quality parameter of the main 3G link by using the detection message sent by the first router to the second router and the detection response message received by the first router from the second router, and determining the network quality of the main 3G link to be normal link, or link alarm, or link failure by using the network quality parameter of the main 3G link; if the network quality of the main 3G link is that the link is normal, adjusting the network quality of the main 3G link to be a link alarm; if the network quality of the main 3G link is the link alarm, adjusting the network quality of the main 3G link to be the link alarm; and if the network quality of the main 3G link is the link failure, keeping the network quality of the main 3G link as the link failure.
The network quality parameters specifically include the following parameters: jitter from branch to center, jitter from center to branch, round-trip delay of message, packet loss rate; the determining, by using the network quality parameter of the main 3G link, that the network quality of the main 3G link is normal, or link alarm, or link failure specifically includes: when the jitter of N1 branches to the center is larger than or equal to a preset jitter threshold Tj, determining the network quality of the main 3G link as a link alarm; or when the jitter from the center to the branch of N2 continuous jitter alarm numbers is greater than or equal to a preset jitter threshold Tj, determining the network quality of the main 3G link as a link alarm; or when the round-trip delay of the N3 continuous delay alarms is greater than or equal to a preset delay threshold Td, determining the network quality of the main 3G link as a link alarm; or when the continuous jitter interruption number N4 branches to the center jitter is greater than or equal to a preset jitter threshold Tj, determining the network quality of the main 3G link as a link fault; or when the continuous jitter interruption number N5 from the center to the branch is greater than or equal to a preset jitter threshold Tj, determining the network quality of the main 3G link as a link fault; or when the round-trip delay of the N6 continuous delay interruptions is greater than or equal to a preset delay threshold Td, determining the network quality of the main 3G link as a link failure; or when the packet loss rate is greater than or equal to a preset alarm threshold La and less than a preset interruption threshold Ld, determining the network quality of the main 3G link as a link alarm; or when the packet loss rate is greater than or equal to a preset interruption threshold Ld, determining the network quality of the main 3G link as a link fault; or when the packet loss rate is less than a preset alarm threshold La and the network quality of the main 3G link is not determined to be a link alarm or a link fault by using branch-to-center jitter, center-to-branch jitter and message round-trip delay, determining that the network quality of the main 3G link is normal; wherein the jitter interruption number N4 is greater than the jitter alarm number N1, the jitter interruption number N5 is greater than the jitter alarm number N2, the delay interruption number N6 is greater than the delay alarm number N3, and the preset interruption threshold Ld is greater than the preset alarm threshold La.
The sending of the detection packet and the data packet to the second router specifically includes: configuring a first service route, a second service route and a strategy route, wherein an outgoing interface of the first service route is the main 3G interface, an outgoing interface of the second service route is the backup 3G interface, and the priority of the first service route is superior to that of the second service route; the policy routing is used for enabling the detection message sent to the second router to be routed to the main 3G interface; when the network quality is link normality, taking a first service route and a strategy route into effect, wherein the taking-in-effect strategy route is used for enabling the first router to send a detection message to the second router through the main 3G link, and the taking-in-effect first service route is used for enabling the first router to send a data message to the second router through the main 3G link; when the network quality is a link alarm, a first service route and a strategy route are in effect, the effective strategy route is used for enabling the first router to send a detection message to the second router through the main 3G link, and the effective first service route is used for enabling the first router to send a data message to the second router through the main 3G link; and when the network quality is a link failure, disabling the first service route and the strategy route, and generating a second service route, wherein the disabling strategy route is used for enabling the first router to stop sending the detection message to the second router through the main 3G link, and the disabling first service route and the enabling second service route are used for enabling the first router to send the data message to the second router through the backup 3G link.
Compared with the prior art, the embodiment of the invention at least has the following advantages: in the embodiment of the present invention, the first router determines a reasonable sending frequency of the probe packet based on an RSSI (Received Signal Strength Indication) value of the main 3G link. When the link is normal, the first router sends the detection message to the second router at a lower first sending frequency (for example, sending for 1 time in 60 seconds) so as to reduce the sending quantity of the detection message, reduce the influence of the detection message on normal services to the maximum extent and ensure that the link is smooth. When the link gives an alarm, the first router sends a detection message to the second router at a higher second sending frequency (for example, once sending for 5 seconds), and opens the data connection of the backup 3G interface, so that when the main 3G link fails, the failure of the main 3G link can be detected in time by improving the sending frequency of the detection message, and then the link is quickly switched to the backup 3G link, thereby reducing the influence of the link switching on the service.
Drawings
FIG. 1 is a schematic diagram of a prior art connection of a branch router to a central router through a 3G network;
fig. 2 is a schematic flow chart of a network quality detection method provided in an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a network device provided in an embodiment of the present invention.
Detailed Description
To solve the problems in the prior art, an embodiment of the present invention provides a network quality detection method, which is applied to a network including a first router and a second router, where the first router may be a router in an enterprise branch office, the first router may be referred to as a branch router, and the second router may be a router in an enterprise central office, the second router may be referred to as a central router. Fig. 1 is a schematic view of an application scenario of an embodiment of the present invention, a first router and a second router are connected through a 3G network, the first router includes a main 3G interface and a backup 3G interface, a link of the first router accessing the 3G network through the main 3G interface is a main 3G link, a link of the first router accessing the 3G network through the backup 3G interface is a backup 3G link, and the second router and the 3G network may be connected in a wired manner. In a specific application, the number of the main 3G interfaces is 1, the number of the backup 3G interfaces may be 1 or more, and correspondingly, the number of the main 3G links is 1, and the number of the backup 3G links is 1 or more, which is illustrated in fig. 1 by taking 1 main 3G interface and 1 backup 3G interface as an example.
In the above application scenario, as shown in fig. 2, an embodiment of the present application provides a network quality detection method, which includes the following steps:
in step 201, the first router determines the RSSI (received signal strength indication) value of the main 3G link.
The RSSI value is a reference for evaluating the current 3G network (i.e., wireless network) condition; when the RSSI value is higher, it indicates that the signal of the 3G network is better, and the probability of the data service occurring phenomena such as increased transmission delay, packet loss and even communication interruption is lower; when the RSSI value is relatively low, it indicates that the signal of the 3G network is relatively poor, and the probability of the data service occurring phenomena such as increased transmission delay, packet loss and even communication interruption is relatively high. On this basis, in this embodiment, the first router needs to first determine the RSSI value of the main 3G link, and perform correlation processing based on the RSSI value of the main 3G link, which is elaborated in the following steps.
Step 202, when the RSSI value is greater than the alarm threshold, the first router determines that the network quality of the main 3G link is normal; when the RSSI value is not greater than the alarm threshold and is greater than the error threshold, the first router determines that the network quality of the main 3G link is a link alarm; when the RSSI value is not greater than the error threshold, then the first router will determine the network quality of the primary 3G link as a link failure.
The alarm threshold is larger than the error threshold, and the specific values of the alarm threshold and the error threshold can be configured by a user. For example, in a WCDMA (Wideband Code Division Multiple Access) network (the WCDMA network is a 3G network), the alarm threshold may be-85 dBm and the error threshold may be-95 dBm. Further, when the RSSI value of the main 3G link is greater than the alarm threshold, it indicates that the signal of the 3G network is good, the probability of the data service occurring phenomena such as increased transmission delay, packet loss and even communication interruption is low, and the first router determines that the network quality of the main 3G link is normal. When the RSSI value of the main 3G link is not greater than the alarm threshold and is greater than the error threshold, it indicates that the signal of the 3G network is relatively poor and the probability of packet loss, delay and jitter of the data service is relatively high, and at this time, the first router determines that the network quality of the main 3G link is a link alarm. When the RSSI value of the main 3G link is not greater than the error threshold, it indicates that the signal of the 3G network is very poor and the data service cannot be transmitted on the main 3G link, and at this time, the first router determines the network quality of the main 3G link to be a link failure.
Step 203, when the network quality is link normal, the first router closes the backup 3G interface, sends a detection message to the second router through the main 3G link at the first sending frequency, and sends a data message to the second router through the main 3G link; when the network quality is a link alarm, the first router opens a backup 3G interface, sends a detection message to the second router through the main 3G link at a second sending frequency, and sends a data message to the second router through the main 3G link; and when the network quality is a link failure, the first router stops sending the detection message to the second router through the main 3G link and sends the data message to the second router through the backup 3G link. Wherein the first transmission frequency needs to be smaller than the second transmission frequency.
To sum up, in this embodiment, when the network quality of the main 3G link is that the link is normal, the backup 3G interface is in a closed state, the first router sends the data packet to the second router through the main 3G link, and sends the probe packet to the second router through the main 3G link at a first lower sending frequency (for example, sending for 1 time in 60 seconds), so as to reduce the sending number of the probe packet, reduce the influence of the probe packet on the normal service, and ensure that the link is smooth. When the network quality of the main 3G link is a link alarm, the backup 3G interface is in an open state, a data bearing message is prepared at any time, the first router sends the data message to the second router through the main 3G link, and sends a detection message to the second router through the main 3G link at a higher second sending frequency (for example, once every 5 seconds), so that the first router can detect the fault of the main 3G link in time, and then fast switch to the backup 3G link, and the influence of link switching on the service is reduced. When the network quality of the main 3G link is a link fault, the main 3G interface is in a closed state, the first router stops sending the detection message to the second router through the main 3G link and sends the data message to the second router through the backup 3G link, namely, the backup 3G link is switched in time to send the data message to the second router.
In this embodiment, the first router configures a first service route and a second service route, where the first service route and the second service route are two service routes configured for a same destination address (i.e., an address of the second router) and have different priorities, an outgoing interface of the first service route is a main 3G interface, an outgoing interface of the second service route is a backup 3G interface, and a priority of the first service route is higher than a priority of the second service route. In addition, the first router configures a policy route, and the policy route is used for enabling the detection message sent by the first router to the second router to be fixedly routed to the main 3G interface.
In the process that the first router sends the detection message and the data message to the second router, when the network quality of the main 3G link is link normal, the first router takes effect of a first service route and a strategy route, the taking effect strategy route is used for enabling the first router to send the detection message to the second router through the main 3G link, and the taking effect first service route is used for enabling the first router to send the data message to the second router through the main 3G link. And when the network quality of the main 3G link is a link alarm, the first router takes effect on a first service route and a strategy route, the taking effect strategy route is used for enabling the first router to send a detection message to the second router through the main 3G link, and the taking effect first service route is used for enabling the first router to send a data message to the second router through the main 3G link. And when the network quality of the main 3G link is a link failure, the first router fails the first service route and the strategy route, and takes the second service route into effect, the failure strategy route is used for enabling the first router to stop sending the detection message to the second router through the main 3G link, and the failure first service route and the taking the second service route are used for enabling the first router to send the data message to the second router through the backup 3G link.
In an implementation manner of this another embodiment, the network quality of the main 3G link (link is normal, or link is alarmed, or link is failed) determined by using the RSSI value in step 202 is a preliminary network quality, and the first router may further determine the network quality of the main 3G link by using a sending condition of the probe packet and a receiving condition of the probe response packet, and adjust the preliminary network quality by using the further determined network quality of the main 3G link to obtain a current final network quality. Based on this current final network quality, the first router will perform the correlation process in step 203.
The following describes in detail a process of adjusting the preliminary network quality by the first router to obtain the current final network quality in combination with a specific application scenario.
After the first router sends the detection message to the second router through the main 3G link, the first router can also comprehensively evaluate the network quality according to the sending condition of the first router to the detection message and the reply condition of the second router to the detection message, so as to determine the network quality of the main 3G link according to the sending condition of the detection message and the receiving condition of the detection response message. Namely: the first router determines the network quality parameter of the main 3G link by using the detection message sent to the second router by the first router and the detection response message from the second router received by the first router, and determines the network quality of the main 3G link to be normal link, or link alarm, or link failure by using the network quality parameter of the main 3G link.
If the network quality of the main 3G link determined by the RSSI value is that the link is normal (i.e., preliminary network quality), then: when the network quality of the main 3G link determined by the network quality parameter is link normality, the first router determines that the current network quality of the main 3G link is link normality (namely final network quality); when the network quality of the main 3G link determined by the network quality parameter is a link alarm, the first router determines that the current network quality of the main 3G link is a link alarm (namely the final network quality); when the network quality of the primary 3G link determined by the network quality parameter is a link failure, the first router will determine that the current network quality of the primary 3G link is a link failure (i.e., the final network quality).
If the network quality of the main 3G link determined using the RSSI value is a link alarm (i.e., preliminary network quality), then: when the network quality of the main 3G link determined by the network quality parameter is link normal, the first router determines that the current network quality of the main 3G link is link alarm (namely final network quality); when the network quality of the main 3G link determined by the network quality parameter is a link alarm, the first router determines that the current network quality of the main 3G link is a link alarm (namely the final network quality); when the network quality of the primary 3G link determined by the network quality parameter is a link failure, the first router will determine that the current network quality of the primary 3G link is a link failure (i.e., the final network quality).
In a specific implementation manner of this embodiment, a process of determining, by a first router, a network quality parameter of a main 3G link by using a probe packet sent by the first router to a second router and a probe response packet received by the first router from the second router specifically includes:
if the first router receives the detection response message returned by the second router, determining the sending time T1 of the first router to the detection message, the receiving time T2 of the second router to the detection message, the sending time T3 of the second router to the detection response message and the receiving time T4 of the first router to the detection response message; the detection message carries a sending time T1, and the detection response message carries a sending time T1, a receiving time T2 and a sending time T3; thereafter, the first router determines a network quality parameter of the primary 3G link using the transmission time T1, the reception time T2, the transmission time T3, and the reception time T4.
Wherein the network quality parameters include: jitter from branch to center, jitter from center to branch, round-trip delay of message, packet loss rate. The first router determines the network quality parameter of the main 3G link by using the sending time T1, the receiving time T2, the sending time T3 and the receiving time T4, and specifically includes: the first router determines the branch-to-center jitter of the main 3G link by using the sending time T1 and the receiving time T2 in the multiple times of detection message sending processes and detection response message receiving processes; the first router determines the center-to-branch jitter of the main 3G link by using the sending time T3 and the receiving time T4 in the multiple detection message sending process and the detection response message receiving process; the first router determines the message round-trip delay of the main 3G link by using the sending time T1 and the receiving time T4 in the multiple detection message sending process and the detection response message receiving process; the first router determines the packet loss rate of the main 3G link by using the sending number of the detection messages and the receiving number of the detection response messages in the multiple detection message sending processes and the detection response message receiving processes.
Taking the example that the first router uses the relevant information in the two detection message sending processes and the detection response message receiving process as an example, the first router determines that the branch-to-center jitter of the main 3G link is: ((reception time T2 in the second pass-transmission time T1 in the second pass) - (reception time T2 in the first pass-transmission time T1 in the first pass))/(2-1); further, the first router determines the center-to-branch jitter of the primary 3G link as: ((reception time T4 in the second pass-transmission time T3 in the second pass) - (reception time T4 in the first pass-transmission time T3 in the first pass))/(2-1); in addition, the first router determines that the message round-trip delay of the main 3G link is: ((reception time T4-transmission time T1 in the second pass) + (reception time T4-transmission time T1 in the first pass) in the second pass)/2; in addition, the first router determines that the packet loss rate of the main 3G link is: number of probe response message receptions/number of probe message transmissions.
Further, the first router determines, by using the network quality parameter, that the network quality of the main 3G link is normal, or a link alarm, or a link failure, and specifically includes: when the jitter of N1 branches to the center is larger than or equal to a preset jitter threshold Tj, the first router determines the network quality of the main 3G link as a link alarm; or when the jitter from the center to the branch of the N2 continuous jitter alarm numbers is greater than or equal to the preset jitter threshold Tj, the first router determines that the network quality of the main 3G link is a link alarm; or when the round-trip delay of the N3 continuous delay alarms is greater than or equal to a preset delay threshold Td, the first router determines that the network quality of the main 3G link is a link alarm; or when the continuous jitter interruption number N4 branches to the center jitter is greater than or equal to the preset jitter threshold Tj, the first router determines the network quality of the main 3G link to be a link fault; or when the jitter from the center to the branch of the N5 continuous jitter interruption numbers is greater than or equal to the preset jitter threshold Tj, the first router determines that the network quality of the main 3G link is a link failure; or when the round-trip delay of the N6 continuous delay interruptions is greater than or equal to a preset delay threshold Td, the first router determines that the network quality of the main 3G link is a link failure; or when the packet loss rate is greater than or equal to a preset alarm threshold La and less than a preset interruption threshold Ld, the first router determines that the network quality of the main 3G link is a link alarm; or when the packet loss rate is greater than or equal to a preset interruption threshold Ld, the first router determines that the network quality of the main 3G link is a link fault; or when the packet loss rate is less than a preset alarm threshold La and the network quality of the main 3G link is not determined to be a link alarm or a link fault by using branch-to-center jitter, center-to-branch jitter and message round-trip delay, the first router determines that the network quality of the main 3G link is normal. In the above process, the jitter interruption number N4 is greater than the jitter alarm number N1, the jitter interruption number N5 is greater than the jitter alarm number N2, the delay interruption number N6 is greater than the delay alarm number N3, and the preset interruption threshold Ld is greater than the preset alarm threshold La.
In the above processing procedure, the detection message is a UDP (User Datagram Protocol) detection message, and the detection response message is a UDP detection response message. The destination IP address of the UDP detection packet is an interface IP address of the second router, the source IP address of the UDP detection packet is an interface IP address of the first router, and the destination port number and the source port number of the UDP detection packet may be configured by a user. The second router needs to monitor the UDP detection packet, and returns a UDP detection response packet to the first router after receiving the UDP detection packet.
In the embodiment of the present invention, after the network quality is a link failure and the first router stops sending the detection packet to the second router through the main 3G link and sends the data packet to the second router through the backup 3G link, the first router needs to continuously determine the RSSI value of the main 3G link. Based on this RSSI value, then: (1) when the RSSI value is larger than the alarm threshold, the first router opens the main 3G interface, sends a detection message to the second router through the main 3G link at a first sending frequency, and currently continues to send a data message to the second router through the backup 3G link; the first router determines the network quality parameter of the main 3G link by using a detection message sent to the second router by the first router and a detection response message from the second router received by the first router, and determines the network quality of the main 3G link to be normal link, or link alarm, or link fault by using the network quality parameter of the main 3G link; if the network quality of the main 3G link is that the link is normal, the first router adjusts the network quality of the main 3G link to be that the link is normal; if the network quality of the main 3G link is the link alarm, the first router adjusts the network quality of the main 3G link to be the link alarm; if the network quality of the main 3G link is the link failure, the first router continuously keeps the network quality of the main 3G link as the link failure; (2) when the RSSI value is not greater than the alarm threshold and is greater than the error threshold, the first router opens the main 3G interface, sends a detection message to the second router through the main 3G link at a second sending frequency, and currently continues to send a data message to the second router through the backup 3G link; the first router determines the network quality parameter of the main 3G link by using a detection message sent to the second router by the first router and a detection response message from the second router received by the first router, and determines the network quality of the main 3G link to be normal link, or link alarm, or link fault by using the network quality parameter of the main 3G link; if the network quality of the main 3G link is that the link is normal, the first router adjusts the network quality of the main 3G link to be a link alarm; if the network quality of the main 3G link is the link alarm, the first router adjusts the network quality of the main 3G link to be the link alarm; if the network quality of the main 3G link is the link failure, the first router continuously keeps the network quality of the main 3G link as the link failure; (3) and when the RSSI value is not greater than the error threshold, the first router does not need to open the main 3G interface, close the main 3G interface, continue to stop sending the detection message to the second router through the main 3G link, and send the data message to the second router through the backup 3G link.
Based on the same inventive concept as the method described above, another embodiment of the present application further provides a network device, where the first router is connected to the second router through a 3G network, the first router includes a main 3G interface and a backup 3G interface, a link that accesses the 3G network through the main 3G interface is a main 3G link, a link that accesses the 3G network through the backup 3G interface is a backup 3G link, and the second router is connected to the 3G network by using a wire, as shown in fig. 3, where the first router specifically includes:
a received signal strength indicator RSSI value determining module 11, configured to determine an RSSI value of the main 3G link;
a network quality determining module 12, configured to determine, when the RSSI value is greater than the alarm threshold, that the network quality of the main 3G link is normal; when the RSSI value is not greater than the alarm threshold and is greater than an error threshold, determining the network quality of the main 3G link as a link alarm; when the RSSI value is not greater than the error threshold, determining the network quality of the main 3G link as a link fault;
a message sending module 13, configured to close the backup 3G interface, send a detection message to the second router through the main 3G link at a first sending frequency, and send a data message to the second router through the main 3G link when the network quality is that the link is normal; when the network quality is a link alarm, opening the backup 3G interface, sending a detection message to the second router through the main 3G link at a second sending frequency, and sending a data message to the second router through the main 3G link; when the network quality is a link failure, stopping sending the detection message to the second router through the main 3G link, and sending the data message to the second router through the backup 3G link; wherein the first transmission frequency is less than the second transmission frequency.
The network quality determining module 12 is further configured to, after sending a detection packet to the second router through the main 3G link, determine a network quality parameter of the main 3G link by using the detection packet sent by the first router to the second router and a detection response packet received by the first router from the second router, and determine that the network quality of the main 3G link is link normal, or link alarm, or link failure by using the network quality parameter of the main 3G link;
if the network quality of the main 3G link determined by the RSSI value is that the link is normal, and if the network quality of the main 3G link determined by the network quality parameter is that the link is normal, determining that the current network quality of the main 3G link is that the link is normal; when the network quality of the main 3G link determined by the network quality parameter is a link alarm, determining the current network quality of the main 3G link as a link alarm; when the network quality of the main 3G link determined by the network quality parameters is a link fault, determining the current network quality of the main 3G link as the link fault; if the network quality of the main 3G link determined by the RSSI value is a link alarm, and when the network quality of the main 3G link determined by the network quality parameter is a link normal, determining the current network quality of the main 3G link to be a link alarm; when the network quality of the main 3G link determined by the network quality parameter is a link alarm, determining the current network quality of the main 3G link as a link alarm; and when the network quality of the main 3G link determined by the network quality parameter is the link failure, determining that the current network quality of the main 3G link is the link failure.
The network quality determining module 12 is further configured to, after stopping sending the detection packet to the second router through the main 3G link, notify the packet sending module 13 to open the main 3G interface when the RSSI value is greater than the alarm threshold, send the detection packet to the second router at the first sending frequency through the main 3G link, and currently continue sending the data packet to the second router through the backup 3G link; determining the network quality parameter of the main 3G link by using the detection message sent by the first router to the second router and the detection response message received by the first router from the second router, and determining the network quality of the main 3G link to be normal link, or link alarm, or link failure by using the network quality parameter of the main 3G link; if the network quality of the main 3G link is that the link is normal, adjusting the network quality of the main 3G link to be that the link is normal; if the network quality of the main 3G link is the link alarm, adjusting the network quality of the main 3G link to be the link alarm; if the network quality of the main 3G link is the link failure, the network quality of the main 3G link is kept to be the link failure;
when the RSSI value is not greater than the alarm threshold and is greater than the error threshold, notifying the message sending module 13 to open the main 3G interface, sending a detection message to the second router at a second sending frequency through the main 3G link, and currently continuing to send a data message to the second router through the backup 3G link; determining the network quality parameter of the main 3G link by using the detection message sent by the first router to the second router and the detection response message received by the first router from the second router, and determining the network quality of the main 3G link to be normal link, or link alarm, or link failure by using the network quality parameter of the main 3G link; if the network quality of the main 3G link is that the link is normal, adjusting the network quality of the main 3G link to be a link alarm; if the network quality of the main 3G link is the link alarm, adjusting the network quality of the main 3G link to be the link alarm; and if the network quality of the main 3G link is the link failure, keeping the network quality of the main 3G link as the link failure.
The network quality parameters specifically include the following parameters: jitter from branch to center, jitter from center to branch, round-trip delay of message, packet loss rate; the determining, by using the network quality parameter of the main 3G link, that the network quality of the main 3G link is normal, or link alarm, or link failure specifically includes: when the jitter of N1 branches to the center is larger than or equal to a preset jitter threshold Tj, determining the network quality of the main 3G link as a link alarm; or when the jitter from the center to the branch of N2 continuous jitter alarm numbers is greater than or equal to a preset jitter threshold Tj, determining the network quality of the main 3G link as a link alarm; or when the round-trip delay of the N3 continuous delay alarms is greater than or equal to a preset delay threshold Td, determining the network quality of the main 3G link as a link alarm; or when the continuous jitter interruption number N4 branches to the center jitter is greater than or equal to a preset jitter threshold Tj, determining the network quality of the main 3G link as a link fault; or when the continuous jitter interruption number N5 from the center to the branch is greater than or equal to a preset jitter threshold Tj, determining the network quality of the main 3G link as a link fault; or when the round-trip delay of the N6 continuous delay interruptions is greater than or equal to a preset delay threshold Td, determining the network quality of the main 3G link as a link failure; or when the packet loss rate is greater than or equal to a preset alarm threshold La and less than a preset interruption threshold Ld, determining the network quality of the main 3G link as a link alarm; or when the packet loss rate is greater than or equal to a preset interruption threshold Ld, determining the network quality of the main 3G link as a link fault; or when the packet loss rate is less than a preset alarm threshold La and the network quality of the main 3G link is not determined to be a link alarm or a link fault by using branch-to-center jitter, center-to-branch jitter and message round-trip delay, determining that the network quality of the main 3G link is normal; wherein the jitter interruption number N4 is greater than the jitter alarm number N1, the jitter interruption number N5 is greater than the jitter alarm number N2, the delay interruption number N6 is greater than the delay alarm number N3, and the preset interruption threshold Ld is greater than the preset alarm threshold La.
The sending of the detection packet and the data packet to the second router specifically includes: configuring a first service route, a second service route and a strategy route, wherein an outgoing interface of the first service route is the main 3G interface, an outgoing interface of the second service route is the backup 3G interface, and the priority of the first service route is superior to that of the second service route; the policy routing is used for enabling the detection message sent to the second router to be routed to the main 3G interface; when the network quality is link normality, taking a first service route and a strategy route into effect, wherein the taking-in-effect strategy route is used for enabling the first router to send a detection message to the second router through the main 3G link, and the taking-in-effect first service route is used for enabling the first router to send a data message to the second router through the main 3G link; when the network quality is a link alarm, a first service route and a strategy route are in effect, the effective strategy route is used for enabling the first router to send a detection message to the second router through the main 3G link, and the effective first service route is used for enabling the first router to send a data message to the second router through the main 3G link; and when the network quality is a link failure, disabling the first service route and the strategy route, and generating a second service route, wherein the disabling strategy route is used for enabling the first router to stop sending the detection message to the second router through the main 3G link, and the disabling first service route and the enabling second service route are used for enabling the first router to send the data message to the second router through the backup 3G link.
The modules of the device can be integrated into a whole or can be separately deployed. The modules can be combined into one module, and can also be further split into a plurality of sub-modules.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
Those skilled in the art will appreciate that the drawings are merely schematic representations of one preferred embodiment and that the blocks or flow diagrams in the drawings are not necessarily required to practice the present invention.
Those skilled in the art will appreciate that the modules in the devices in the embodiments may be distributed in the devices in the embodiments according to the description of the embodiments, and may be correspondingly changed in one or more devices different from the embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above disclosure is only for a few specific embodiments of the present invention, but the present invention is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present invention.
Claims (10)
1. A network quality detection method, a first router and a second router are connected through a 3G network, the first router comprises a main 3G interface and a backup 3G interface, a link which is accessed to the 3G network through the main 3G interface is a main 3G link, a link which is accessed to the 3G network through the backup 3G interface is a backup 3G link, and the second router and the 3G network are connected through a wire, the method is characterized by comprising the following steps:
the first router determining a Received Signal Strength Indication (RSSI) value for the primary 3G link;
when the RSSI value is larger than an alarm threshold, the first router determines that the network quality of the main 3G link is normal; when the RSSI value is not greater than the alarm threshold and is greater than an error threshold, the first router determines that the network quality of the main 3G link is a link alarm; when the RSSI value is not greater than the error threshold, the first router determines that the network quality of the main 3G link is a link fault;
when the network quality is link normal, the first router closes the backup 3G interface, sends a detection message to the second router through the main 3G link at a first sending frequency, and sends a data message to the second router through the main 3G link; when the network quality is a link alarm, the first router opens the backup 3G interface, sends a detection message to the second router through the main 3G link at a second sending frequency, and sends a data message to the second router through the main 3G link; when the network quality is a link failure, the first router stops sending a detection message to the second router through the main 3G link, and sends a data message to the second router through the backup 3G link; wherein the first transmission frequency is less than the second transmission frequency.
2. The method of claim 1, wherein after the first router sends a probe packet to the second router over the primary 3G link, the method further comprises:
the first router determines the network quality parameter of the main 3G link by using a detection message sent to the second router by the first router and a detection response message from the second router received by the first router, and determines the network quality of the main 3G link to be normal link, or link alarm, or link failure by using the network quality parameter of the main 3G link;
if the network quality of the main 3G link determined by the RSSI value is that the link is normal, and when the network quality of the main 3G link determined by the network quality parameter is that the link is normal, the first router determines that the current network quality of the main 3G link is that the link is normal; when the network quality of the main 3G link determined by the network quality parameter is a link alarm, the first router determines that the current network quality of the main 3G link is the link alarm; when the network quality of the main 3G link determined by the network quality parameter is a link fault, the first router determines that the current network quality of the main 3G link is the link fault;
if the network quality of the main 3G link determined by the RSSI value is a link alarm, when the network quality of the main 3G link determined by the network quality parameter is that the link is normal, the first router determines that the current network quality of the main 3G link is a link alarm; when the network quality of the main 3G link determined by the network quality parameter is a link alarm, the first router determines that the current network quality of the main 3G link is the link alarm; and when the network quality of the main 3G link determined by the network quality parameter is the link failure, the first router determines that the current network quality of the main 3G link is the link failure.
3. The method of claim 2, wherein after the first router stops sending probe packets to the second router over the primary 3G link, the method further comprises:
when the RSSI value is greater than the alarm threshold, the first router opens the main 3G interface, sends a detection message to the second router through the main 3G link at a first sending frequency, and currently continues to send a data message to the second router through the backup 3G link; the first router determines the network quality parameter of the main 3G link by using a detection message sent to the second router by the first router and a detection response message from the second router received by the first router, and determines the network quality of the main 3G link to be normal link, or link alarm, or link failure by using the network quality parameter of the main 3G link; if the network quality of the main 3G link is that the link is normal, the first router adjusts the network quality of the main 3G link to be that the link is normal; if the network quality of the main 3G link is a link alarm, the first router adjusts the network quality of the main 3G link to be the link alarm; if the network quality of the main 3G link is a link failure, the first router keeps the network quality of the main 3G link as the link failure;
when the RSSI value is not greater than the alarm threshold and is greater than the error threshold, the first router opens the main 3G interface, sends a detection message to the second router through the main 3G link at a second sending frequency, and currently continues to send a data message to the second router through the backup 3G link; the first router determines the network quality parameter of the main 3G link by using a detection message sent to the second router by the first router and a detection response message from the second router received by the first router, and determines the network quality of the main 3G link to be normal link, or link alarm, or link failure by using the network quality parameter of the main 3G link; if the network quality of the main 3G link is that the link is normal, the first router adjusts the network quality of the main 3G link to be a link alarm; if the network quality of the main 3G link is a link alarm, the first router adjusts the network quality of the main 3G link to be the link alarm; and if the network quality of the main 3G link is the link failure, the first router keeps the network quality of the main 3G link as the link failure.
4. The method according to claim 2 or 3, wherein the network quality parameters specifically comprise the following parameters: jitter from branch to center, jitter from center to branch, round-trip delay of message, packet loss rate;
the first router determines, by using the network quality parameter of the main 3G link, that the network quality of the main 3G link is a process of a normal link, or a link alarm, or a link failure, and specifically includes:
when the jitter of N1 branches to the center is greater than or equal to a preset jitter threshold Tj, the first router determines that the network quality of the main 3G link is a link alarm; or,
when the jitter from the center to the branch of N2 continuous jitter alarm numbers is greater than or equal to a preset jitter threshold Tj, the first router determines the network quality of the main 3G link as a link alarm; or,
when the round-trip delay of N3 continuous delay alarm messages is greater than or equal to a preset delay threshold Td, the first router determines that the network quality of the main 3G link is a link alarm; or,
when the continuous jitter interruption number N4 branches to the center jitter is greater than or equal to a preset jitter threshold Tj, the first router determines the network quality of the main 3G link to be a link fault; or,
when the continuous jitter interruption number N5 from the center to the branch jitter is greater than or equal to a preset jitter threshold Tj, the first router determines the network quality of the main 3G link to be a link fault; or,
when the round-trip delay of N6 continuous delay interruptions is greater than or equal to a preset delay threshold Td, the first router determines that the network quality of the main 3G link is a link fault; or,
when the packet loss rate is greater than or equal to a preset alarm threshold La and less than a preset interruption threshold Ld, the first router determines that the network quality of the main 3G link is a link alarm; or when the packet loss rate is greater than or equal to a preset interruption threshold Ld, the first router determines that the network quality of the main 3G link is a link fault; or, when the packet loss rate is less than a preset alarm threshold La and the network quality of the main 3G link is not determined to be a link alarm or a link fault by using branch-to-center jitter, center-to-branch jitter, and message round-trip delay, the first router determines that the network quality of the main 3G link is a link normal;
wherein the jitter interruption number N4 is greater than the jitter alarm number N1, the jitter interruption number N5 is greater than the jitter alarm number N2, the delay interruption number N6 is greater than the delay alarm number N3, and the preset interruption threshold Ld is greater than the preset alarm threshold La.
5. The method of claim 1, wherein during the process of the first router sending a probe packet and a data packet to the second router, the method further comprises:
the first router is configured with a first service route, a second service route and a policy route, an output interface of the first service route is the main 3G interface, an output interface of the second service route is the backup 3G interface, and the priority of the first service route is superior to that of the second service route; the policy routing is used for enabling the detection message sent to the second router to be routed to the main 3G interface;
when the network quality is link normality, the first router takes effect of a first service route and a strategy route, the taking effect strategy route is used for enabling the first router to send a detection message to the second router through the main 3G link, and the taking effect first service route is used for enabling the first router to send a data message to the second router through the main 3G link; when the network quality is a link alarm, the first router takes effect of a first service route and a strategy route, the taking effect strategy route is used for enabling the first router to send a detection message to the second router through the main 3G link, and the taking effect first service route is used for enabling the first router to send a data message to the second router through the main 3G link; and when the network quality is a link failure, the first router fails a first service route and a strategy route and generates a second service route, the failure strategy route is used for enabling the first router to stop sending detection messages to the second router through the main 3G link, and the failure first service route and the effective second service route are used for enabling the first router to send data messages to the second router through the backup 3G link.
6. A network device, as a first router connected with a second router through a 3G network, the first router includes a main 3G interface and a backup 3G interface, a link accessed to the 3G network through the main 3G interface is a main 3G link, a link accessed to the 3G network through the backup 3G interface is a backup 3G link, and the second router is connected with the 3G network by a wire, the first router includes:
the RSSI value determination module is used for determining the RSSI value of the main 3G link;
the network quality determining module is used for determining that the network quality of the main 3G link is normal when the RSSI value is greater than an alarm threshold; when the RSSI value is not greater than the alarm threshold and is greater than an error threshold, determining the network quality of the main 3G link as a link alarm; when the RSSI value is not greater than the error threshold, determining the network quality of the main 3G link as a link fault;
a message sending module, configured to close the backup 3G interface, send a detection message to the second router through the main 3G link at a first sending frequency, and send a data message to the second router through the main 3G link when the network quality is that the link is normal; when the network quality is a link alarm, opening the backup 3G interface, sending a detection message to the second router through the main 3G link at a second sending frequency, and sending a data message to the second router through the main 3G link; when the network quality is a link failure, stopping sending the detection message to the second router through the main 3G link, and sending the data message to the second router through the backup 3G link; wherein the first transmission frequency is less than the second transmission frequency.
7. The network device of claim 6,
the network quality determining module is further configured to determine a network quality parameter of the main 3G link by using a probe packet sent by the first router to the second router and a probe response packet received by the first router from the second router after sending a probe packet to the second router through the main 3G link, and determine that the network quality of the main 3G link is link normal, or link alarm, or link failure by using the network quality parameter of the main 3G link;
if the network quality of the main 3G link determined by the RSSI value is that the link is normal, and if the network quality of the main 3G link determined by the network quality parameter is that the link is normal, determining that the current network quality of the main 3G link is that the link is normal; when the network quality of the main 3G link determined by the network quality parameter is a link alarm, determining the current network quality of the main 3G link as a link alarm; when the network quality of the main 3G link determined by the network quality parameters is a link fault, determining the current network quality of the main 3G link as the link fault; if the network quality of the main 3G link determined by the RSSI value is a link alarm, and when the network quality of the main 3G link determined by the network quality parameter is a link normal, determining the current network quality of the main 3G link to be a link alarm; when the network quality of the main 3G link determined by the network quality parameter is a link alarm, determining the current network quality of the main 3G link as a link alarm; and when the network quality of the main 3G link determined by the network quality parameter is the link failure, determining that the current network quality of the main 3G link is the link failure.
8. The network device of claim 7,
the network quality determination module is further configured to, after stopping sending a detection packet to the second router through the main 3G link, notify the packet sending module to open the main 3G interface when the RSSI value is greater than an alarm threshold, send the detection packet to the second router at the first sending frequency through the main 3G link, and currently continue sending a data packet to the second router through the backup 3G link; determining the network quality parameter of the main 3G link by using the detection message sent by the first router to the second router and the detection response message received by the first router from the second router, and determining the network quality of the main 3G link to be normal link, or link alarm, or link failure by using the network quality parameter of the main 3G link; if the network quality of the main 3G link is that the link is normal, adjusting the network quality of the main 3G link to be that the link is normal; if the network quality of the main 3G link is the link alarm, adjusting the network quality of the main 3G link to be the link alarm; if the network quality of the main 3G link is the link failure, the network quality of the main 3G link is kept to be the link failure;
when the RSSI value is not greater than the alarm threshold and is greater than the error threshold, informing the message sending module to open the main 3G interface, sending a detection message to the second router through the main 3G link at a second sending frequency, and continuously sending a data message to the second router through the backup 3G link at present; determining the network quality parameter of the main 3G link by using the detection message sent by the first router to the second router and the detection response message received by the first router from the second router, and determining the network quality of the main 3G link to be normal link, or link alarm, or link failure by using the network quality parameter of the main 3G link; if the network quality of the main 3G link is that the link is normal, adjusting the network quality of the main 3G link to be a link alarm; if the network quality of the main 3G link is the link alarm, adjusting the network quality of the main 3G link to be the link alarm; and if the network quality of the main 3G link is the link failure, keeping the network quality of the main 3G link as the link failure.
9. The network device according to claim 7 or 8, wherein the network quality parameters specifically include the following parameters: jitter from branch to center, jitter from center to branch, round-trip delay of message, packet loss rate; the determining, by using the network quality parameter of the main 3G link, that the network quality of the main 3G link is normal, or link alarm, or link failure specifically includes:
when the jitter of N1 branches to the center is larger than or equal to a preset jitter threshold Tj, determining the network quality of the main 3G link as a link alarm; or when the jitter from the center to the branch of N2 continuous jitter alarm numbers is greater than or equal to a preset jitter threshold Tj, determining the network quality of the main 3G link as a link alarm; or when the round-trip delay of the N3 continuous delay alarms is greater than or equal to a preset delay threshold Td, determining the network quality of the main 3G link as a link alarm; or when the continuous jitter interruption number N4 branches to the center jitter is greater than or equal to a preset jitter threshold Tj, determining the network quality of the main 3G link as a link fault; or when the continuous jitter interruption number N5 from the center to the branch is greater than or equal to a preset jitter threshold Tj, determining the network quality of the main 3G link as a link fault; or when the round-trip delay of the N6 continuous delay interruptions is greater than or equal to a preset delay threshold Td, determining the network quality of the main 3G link as a link failure; or when the packet loss rate is greater than or equal to a preset alarm threshold La and less than a preset interruption threshold Ld, determining the network quality of the main 3G link as a link alarm; or when the packet loss rate is greater than or equal to a preset interruption threshold Ld, determining the network quality of the main 3G link as a link fault; or when the packet loss rate is less than a preset alarm threshold La and the network quality of the main 3G link is not determined to be a link alarm or a link fault by using branch-to-center jitter, center-to-branch jitter and message round-trip delay, determining that the network quality of the main 3G link is normal; wherein the jitter interruption number N4 is greater than the jitter alarm number N1, the jitter interruption number N5 is greater than the jitter alarm number N2, the delay interruption number N6 is greater than the delay alarm number N3, and the preset interruption threshold Ld is greater than the preset alarm threshold La.
10. The network device of claim 6,
the sending of the detection packet and the data packet to the second router specifically includes: configuring a first service route, a second service route and a strategy route, wherein an outgoing interface of the first service route is the main 3G interface, an outgoing interface of the second service route is the backup 3G interface, and the priority of the first service route is superior to that of the second service route; the policy routing is used for enabling the detection message sent to the second router to be routed to the main 3G interface; when the network quality is link normality, taking a first service route and a strategy route into effect, wherein the taking-in-effect strategy route is used for enabling the first router to send a detection message to the second router through the main 3G link, and the taking-in-effect first service route is used for enabling the first router to send a data message to the second router through the main 3G link; when the network quality is a link alarm, a first service route and a strategy route are in effect, the effective strategy route is used for enabling the first router to send a detection message to the second router through the main 3G link, and the effective first service route is used for enabling the first router to send a data message to the second router through the main 3G link; and when the network quality is a link failure, disabling the first service route and the strategy route, and generating a second service route, wherein the disabling strategy route is used for enabling the first router to stop sending the detection message to the second router through the main 3G link, and the disabling first service route and the enabling second service route are used for enabling the first router to send the data message to the second router through the backup 3G link.
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 |
---|---|---|
CN103957538B (en) | A kind of network quality detection method and equipment | |
US11362951B2 (en) | Routing method and apparatus | |
US10310944B2 (en) | Phased network formation for power restoration | |
KR102434884B1 (en) | Redundant links for reliable communication | |
CN103001799B (en) | Method and node for achieving redundancy on basis of chain network | |
US20040139179A1 (en) | Method and system for router misconfiguration autodetection | |
US10771363B2 (en) | Devices for analyzing and mitigating dropped packets | |
EP2621135B1 (en) | A method and a system for providing a flexible secondary data path | |
EP2797354B1 (en) | Base station, communication system, and method for controlling base station | |
WO2016090978A1 (en) | Traffic switching method and device | |
US8520534B2 (en) | In-service throughput testing in distributed router/switch architectures | |
CN101695036A (en) | Method and device for detecting IRF links | |
EP2685678A1 (en) | Method, system, and switch for adding bridge in mstp to domain | |
CN103490921B (en) | Network protection method, device, lower link point and system | |
US20160352801A1 (en) | System and method for determining deterioration in call quality between one or more wireless end-users based on codec characteristics | |
US8467286B2 (en) | Load balancing and fault protection in aggregation networks | |
CN107948000B (en) | Method, device and system for switching main channel and standby channel | |
US10164823B2 (en) | Protection method and system for multi-domain network, and node | |
US11350386B2 (en) | Point-to-point radio apparatus, mobile backhaul system, and communication control method | |
US9256416B1 (en) | Methods and apparatus for automatic session validation for distributed access points | |
US10887207B2 (en) | System and method for determining branch gateway device availability in computer networks | |
CN103618630B (en) | A kind of data safe transmission method and equipment based on double up-links | |
US10498591B1 (en) | Isolating service faults using loopbacks | |
Sato et al. | Performance evaluation of software defined and cognitive wireless network based disaster resilient system | |
CN101931560B (en) | Method and device for acquiring connection relationship between network equipment |
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 |