CN110324202B - Method and device for detecting line quality - Google Patents

Method and device for detecting line quality Download PDF

Info

Publication number
CN110324202B
CN110324202B CN201910470851.5A CN201910470851A CN110324202B CN 110324202 B CN110324202 B CN 110324202B CN 201910470851 A CN201910470851 A CN 201910470851A CN 110324202 B CN110324202 B CN 110324202B
Authority
CN
China
Prior art keywords
network line
detection
address
probe
line
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.)
Active
Application number
CN201910470851.5A
Other languages
Chinese (zh)
Other versions
CN110324202A (en
Inventor
陈凯林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Wangsu Co Ltd
Original Assignee
Xiamen Wangsu Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiamen Wangsu Co Ltd filed Critical Xiamen Wangsu Co Ltd
Priority to CN201910470851.5A priority Critical patent/CN110324202B/en
Publication of CN110324202A publication Critical patent/CN110324202A/en
Application granted granted Critical
Publication of CN110324202B publication Critical patent/CN110324202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results

Landscapes

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

Abstract

The invention discloses a method and a device for detecting line quality, and belongs to the technical field of network communication. The method comprises the following steps: aiming at a target network line between a first communication branch and a second communication branch, a first diversion server of the first communication branch configures a detection destination address, a detection source address and a detection route corresponding to the target network line; the first diversion server periodically generates a detection request based on the detection destination address and the detection source address, and sends the detection request to the second communication branch according to the detection route; and the first diversion server determines the line quality of the target network line according to the response state of the second communication branch to the probe request. By adopting the invention, the line quality of a plurality of network lines between two communication branches can be effectively detected.

Description

Method and device for detecting line quality
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method and an apparatus for detecting line quality.
Background
With the continuous development of network communication technology, the scale of an enterprise is larger and larger, a plurality of communication branches can be generally arranged in the enterprise, and the plurality of communication branches can realize enterprise service through network communication. In order to ensure the quality of service, an enterprise often purchases a dedicated network line from a network operator, and the network operator may provide the enterprise with a network access device deployed on the enterprise side for the enterprise to access the dedicated network line.
Typically, the network management department of the enterprise will assign different internal IP segments to different communication branches, such as 192.168.80.0/24 segment to enterprise communication branch 1 and 192.168.90.0/24 segment to enterprise communication branch 2. Meanwhile, the network management department may set a core switch in each enterprise communication branch, set the core switch as a gateway device of the enterprise device in the communication branch, and set the next hop device to other communication branches as a CE device on the core switch. Specifically, when a user (192.168.80.100) in the enterprise communication branch 1 accesses a server (192.168.90.50) in the enterprise communication branch 2, the specific transmission process of the access request may be as follows: subscriber terminal-core switch of communication branch 1-network access device of communication branch 1-dedicated network line-network access device of communication branch 2-core switch of communication branch 2-server.
In order to avoid the situation that a certain node in a certain network access device or a special network line fails to be interconnected between enterprise communication branches, a diversion server can be added into each original communication branch, and a bridge technology is adopted to establish a standby network line among the communication branches through the diversion server, so that the diversion server can guide data flow to be transmitted through the special network line or the standby network line to ensure interconnection among the communication branches. Therefore, in order to improve the guiding effect of the diversion server on the data traffic, a method for effectively detecting the line quality of the network line between the communication branches is needed, so that the diversion server can guide the data traffic according to the line quality.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for detecting line quality. The technical scheme is as follows:
in a first aspect, a method for detecting line quality is provided, the method comprising:
aiming at a target network line between a first communication branch and a second communication branch, a first diversion server of the first communication branch configures a detection destination address, a detection source address and a detection route corresponding to the target network line;
the first diversion server periodically generates a detection request based on the detection destination address and the detection source address, and sends the detection request to the second communication branch according to the detection route;
and the first diversion server determines the line quality of the target network line according to the response state of the second communication branch to the probe request.
Optionally, before the first diversion server configures the detection destination address, the detection source address, and the detection routing table corresponding to the target network line, the method further includes:
the first diversion server creates a local virtual switch, and the local virtual switch is connected to the private network lines of the first communication branch and the second communication branch;
the first diversion server sets a virtual network card as a connection port with the local virtual switch;
the first diversion server creates at least one backup network leg with a second diversion server of the second communication leg based on network tunneling.
Optionally, the configuring, by the first diversion server, a detection destination address, a detection source address, and a detection route corresponding to the target network line includes:
the first diversion server selects at least one communication device in the second communication branch, and sets the IP address of the at least one communication device as a detection destination address which is exclusively owned by the target network line;
if the target network line is a private network line, the first diversion server sets a detection source address corresponding to the target network line as an IP address of a connection port of the local virtual switch and the first diversion server, and sets a next hop address in the detection route as an IP address of a network access device of the private network line;
if the target network line is a standby network line, the first diversion server sets a detection source address corresponding to the target network line as an IP address of a home-end tunnel port of the standby network line, and sets a next-hop address in the detection route as an IP address of an opposite-end tunnel port of the standby network line.
Optionally, the method further includes:
the second diversion server configures a response guiding rule on a local virtual switch of the second diversion server according to the detection destination address and the detection source address corresponding to all the standby network lines configured by the first diversion server;
when receiving a probe response addressed to the first diversion server, the second diversion server sends the probe response to the first communication branch through the dedicated network line or the backup network line according to the response guidance rule.
Optionally, the method further includes:
the first diversion server configures a target response filtering rule corresponding to the target network line according to a detection destination address and a detection source address corresponding to the target network line;
and when the detection response fed back by the second communication branch is received through the target network line, the first diversion server executes filtering processing on the detection response according to the target response filtering rule.
Optionally, the determining, by the first diversion server, the line quality of the target network line according to the response state of the second communication branch to the probe request includes:
and the first diversion server determines the line quality of the target network line according to all response states of the second communication branch to a plurality of probe requests with different probe destination addresses.
In a second aspect, there is provided an apparatus for detecting line quality, the apparatus comprising:
the detection configuration module is used for configuring a detection destination address, a detection source address and a detection route corresponding to a target network line between a first communication branch and a second communication branch;
a request sending module, configured to periodically generate a probe request based on the probe destination address and the probe source address, and send the probe request to the second communication branch according to the probe route;
and the response processing module is used for determining the line quality of the target network line according to the response state of the second communication branch to the probe request.
Optionally, the apparatus further comprises:
a switch setting module, configured to create a local virtual switch, and access the local virtual switch to the private network lines of the first communication branch and the second communication branch;
the network card setting module is used for setting a virtual network card as a connection port with the local virtual switch;
and the line building module is used for creating at least one standby network line between the network tunnel technology and the second diversion server of the second communication branch.
Optionally, the detection configuration module is specifically configured to:
selecting at least one communication device in the second communication branch, and setting the IP address of the at least one communication device as a detection destination address which is exclusively owned by the target network line;
if the target network line is a private network line, setting a detection source address corresponding to the target network line as an IP address of a connection port of the local virtual switch and the first diversion server, and setting a next hop address in the detection route as an IP address of a network access device of the private network line;
if the target network line is a standby network line, setting a detection source address corresponding to the target network line as an IP address of a local end tunnel port of the standby network line, and setting a next hop address in the detection route as an IP address of an opposite end tunnel port of the standby network line.
Optionally, the detection configuration module is further configured to configure a target response filtering rule corresponding to the target network line according to a detection destination address and a detection source address corresponding to the target network line;
the response processing module is further configured to, when a probe response fed back by the second communication branch is received through the target network line, perform filtering processing on the probe response according to the target response filtering rule.
Optionally, the response processing module is specifically configured to:
and determining the line quality of the target network line according to all response states of the second communication branch to a plurality of probe requests with different probe destination addresses.
In a third aspect, there is provided a flow guiding server comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by the processor to implement the method of detecting line quality according to the first aspect.
In a fourth aspect, there is provided a computer readable storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by a processor to implement the method of probing line quality as described in the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, aiming at a target network line between a first communication branch and a second communication branch, a first diversion server of the first communication branch configures a detection destination address, a detection source address and a detection route corresponding to the target network line; the first diversion server periodically generates a detection request based on the detection destination address and the detection source address, and sends the detection request to the second communication branch according to the detection route; and the first diversion server determines the line quality of the target network line according to the response state of the second communication branch to the detection request. Therefore, for each network line between two communication branches, by binding respective detection parameters, when the line quality of a certain network line needs to be detected, a detection request can be accurately sent to the opposite terminal through the network line, and the line quality of the corresponding network line can be effectively detected according to the response state of the detection request.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for detecting line quality according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for building a plurality of network lines according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a network architecture for detecting line quality according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for detecting line quality according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for detecting line quality according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a flow guidance server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a method for detecting line quality, which can be applied to a network architecture in which a plurality of communication branches are interconnected and is specifically realized by a diversion server deployed at each communication branch side. Each communication branch can contain a plurality of communication devices, the IP addresses of the communication devices in the same communication branch can belong to the same internal IP network segment, and the communication devices in the same communication branch can uniformly perform network communication with the communication devices of other communication branches through the gateway device of the communication branch.
A plurality of network lines may exist between every two communication branches, a diversion server may be deployed at each communication branch side, and the diversion server may be configured to receive data traffic of the communication branch where the diversion server is located, and perform processing such as guided offloading on the data traffic in the plurality of network lines according to a preset rule. Meanwhile, when the diversion server conducts guiding and shunting on data traffic, the diversion server can detect the line quality of a plurality of network lines and can update and adjust rules of guiding and shunting according to detection results.
The diversion server can include a processor, a memory, and a transceiver, wherein the processor can be used for executing the process of detecting the line quality in the following procedures, the memory can be used for storing the data required in the process and the generated data, and the transceiver can be used for receiving and transmitting the relevant data in the process. In the present embodiment, different communication branches of the same enterprise are taken as an example for description, and other scenarios are similar, and will be specifically described as necessary.
The process flow shown in fig. 1 will be described in detail below with reference to specific embodiments, and the contents may be as follows:
step 101, for a target network line between a first communication branch and a second communication branch, a first diversion server of the first communication branch configures a detection destination address, a detection source address and a detection route corresponding to the target network line.
The first communication branch can be any communication branch which needs to be interconnected across branches in an enterprise, and the second communication branch can be any communication branch which needs to be in network communication with the first communication branch.
In implementation, a network manager of an enterprise may deploy a diversion server on each communication branch side of the enterprise, and make specific settings on the diversion server to implement guidance of data traffic through the diversion server. In the process of guiding the data flow, the flow guiding server can detect the line quality of the network line between the two communication branches, and adjust the guiding rule of the data flow in time based on the detection result.
Specifically, taking the first communication branch and the second communication branch as an example, multiple network lines may exist between the first communication branch and the second communication branch, and the multiple network lines may specifically exist between the diversion servers of the two communication branches. For any one of the network lines (e.g., the target network line), the first diversion server may configure a probe destination address, a probe source address, and a probe route corresponding to the target network line. The detection destination address and the detection source address corresponding to the target network line are the destination address and the source address in the detection request sent by the first diversion server when detecting the line quality of the target network line, and similarly, the detection route corresponding to the target network line is the routing rule used when the first diversion server sends the detection request.
And step 102, the first diversion server periodically generates a detection request based on the detection destination address and the detection source address, and sends the detection request to the second communication branch according to the detection route.
In implementation, after configuring the probe destination address, the probe source address and the probe route corresponding to the target network line, the first diversion server may periodically probe the line quality of the target network line based on the configuration content.
In particular, the first diversion server may periodically generate the probe request based on the probe destination address and the probe source address, i.e. the source IP address of the probe request is the probe source address and the destination IP address of the probe request is the probe destination address. Furthermore, the first diversion server may send the probe request to the second communication branch according to the probe route.
It should be noted that the diversion server periodically detects the line quality of each network line, the detection time and the detection cycle duration of each network line may be the same or different, different network lines may correspond to different detection cycle durations, for example, a network line with higher importance, the detection cycle duration may be shorter, for a network line that is nearly idle, the detection cycle duration may be longer, and the detection cycle duration of the same network line may also change, for example, when the network line fluctuation range is larger and the fluctuation frequency is higher, the detection cycle duration may be shortened, and when the network line is in a stable state for a long time, the detection cycle duration may be increased.
And 103, the first diversion server determines the line quality of the target network line according to the response state of the second communication branch to the detection request.
In an implementation, the first diversion server may continuously detect a response status of the second communication branch to the probe request after issuing the probe request to the second communication branch, so that the line quality of the target network line may be determined according to the detected response status.
Specifically, if the first diversion server receives the probe response fed back by the second communication branch, the first diversion server may evaluate the line quality of the target network line according to an interval duration between a sending time of the probe request and a receiving time of the probe response; if no probe response is received, a failure of the target network line may be determined. It is to be understood that the above description only shows an exemplary scheme for evaluating the line quality of the network line, and other schemes for evaluating the line quality according to the response status may also be applied to the present embodiment, and are not limited specifically herein.
Optionally, when detecting the line quality, the line quality of the network line may be determined by the response status of multiple probe requests at the same time, and correspondingly, the processing in step 103 may specifically be as follows: and the first diversion server determines the line quality of the target network line according to all the response states of the second communication branch to a plurality of detection requests with different detection destination addresses.
In implementation, when detecting for a target network line, the first diversion server may send a plurality of probe requests with different probe destination addresses to the second communication branch, and continuously detect a response status of the second communication branch for each probe request. When response messages of all the probe requests are received or a preset waiting time is reached, the first diversion server may determine the line quality of the target network line according to all the response states of the second communication branch to the plurality of probe requests.
Further, if there are a few special response states that do not match the response states of other probe requests in the response states of multiple probe requests, the first diversion server may reject the special response states or resend the probe requests corresponding to the special response states when determining the line quality of the target network line.
Optionally, the diversion server may employ a bridge technology to establish a plurality of network lines between the communication branches, and accordingly, a processing flow shown in fig. 2 may exist before step 101, and detailed descriptions may be as follows:
in step 201, the first diversion server creates a local virtual switch, and accesses the local virtual switch to the private network line of the first communication branch and the second communication branch.
In an implementation, the first diversion server may create a local virtual switch according to the program instruction, where the local virtual switch may be a bridge device implemented by the diversion server through software, such as a general bridge device created by a command "ip link add br0 type bridge" based on the linux system, a bridge device created based on the open source software OpenvSwitch, or a bridge device with link layer switching capability created based on any other software of the linux system.
The flow guidance server may then access the created local virtual switch to the private network line of the first communication branch and the second communication branch. It will be appreciated that if there are other communication branches in network communication with the first communication branch, the diversion server may also switch the local virtual switch to a dedicated network line between the first communication branch and the other communication branches.
Step 202, the first flow guiding server sets a virtual network card as a connection port with the local virtual switch.
In implementation, after the first diversion server creates the local virtual switch, a virtual network card may be created as a connection port with the local virtual switch, and an IP address may be configured for the virtual network card, where the IP address may belong to the same IP network segment as an IP address of the communication device in the first communication branch, so that the local virtual switch may transmit a part of the received data traffic to the diversion server through the virtual network card.
In step 203, the first flow guidance server creates at least one backup network link with a second flow guidance server of the second communication branch based on a network tunneling technique.
In implementation, the first diversion server and the second diversion server may be respectively provided with a tunnel virtual network card, and then, based on a network tunnel technology (such as vxlan and IPSEC technologies), a standby network line between the two diversion servers is created through the tunnel virtual network card, the tunnel virtual network card may serve as ports at two ends of the standby network line to be connected with the diversion servers, and the tunnel virtual network cards on the two diversion servers may be configured with virtual IP addresses of the same network segment. Furthermore, the first diversion server may set a local routing table of the IP layer, so as to determine, after receiving the data traffic output by the local virtual switch through the virtual network card, a standby network line corresponding to the data traffic according to the local routing table. It should be noted that each backup network line corresponds to a pair of tunnel virtual network cards, and if a plurality of backup network lines need to be created, a plurality of pairs of tunnel virtual network cards may be set on two diversion servers, and virtual IP addresses of the same network segment are configured for the two tunnel virtual network cards in each pair.
Fig. 3 schematically shows a network architecture diagram completed based on the processing setup of the above-described steps 201 to 203, in which one spare network line is shown, and a plurality of spare network lines are similar thereto.
Optionally, based on the network architecture in fig. 3, the configuration processing in step 101 may specifically be as follows: the first diversion server selects at least one communication device in the second communication branch, and sets the IP address of the at least one communication device as a detection destination address exclusive to the target network line; if the target network line is a private network line, the first diversion server sets a detection source address of the target network line as an IP address of a connection port of the local virtual switch and the first diversion server, and sets a next hop address in the detection route as an IP address of network access equipment of the private network line; if the target network line is a standby network line, the diversion server sets a detection source address corresponding to the target network line as an IP address of a home port of the standby network line, and sets a next hop address in the detection route as an IP address of an opposite port of the standby network line.
In an implementation, after the first diversion server establishes at least one backup network line with the second diversion server based on the bridge technology, the first diversion server may perform configuration of a probe destination address, a probe source address and a probe route for each network line (including the dedicated network line and the backup network line).
Still taking the target network line as an example, the first diversion server may select at least one communication device in the second communication branch as a probe responder dedicated to the target network line, and set the IP address of the at least one communication device as a probe destination address dedicated to the target network line, where the first diversion server is dedicated to be understood as a probe responder of each communication device only as one network line, that is, the IP address of each communication device is only used as a probe destination address of one network line. Then, if the target network line is a private network line, the first diversion server may set a detection source address corresponding to the target network line as an IP address of a connection port between the local virtual switch and the first diversion server, and set a next hop address in the detection route as an IP address of a network access device of the private network line; if the target network line is the standby network line, the diversion server may set the detection source address corresponding to the target network line as the IP address of the local port of the standby network line, and set the next hop address in the detection route as the IP address of the opposite port of the standby network line.
Optionally, the diversion server may also direct the probe response of the local side according to the probe destination address and the probe source address configured in the opposite-side communication branch, and the corresponding processing may be as follows: and the second diversion server configures a response guide rule on the local virtual switch according to the detection destination address and the detection source address corresponding to all the standby network lines configured by the first diversion server, and when receiving a detection response sent to the first diversion server by the communication equipment in the second communication branch, the second diversion server sends the detection response to the first communication branch through the special network line or the standby network line according to the response guide rule. Similarly, the first diversion server may also configure a response guidance rule on the local virtual switch for the detection destination address and the detection source address corresponding to all the network lines configured by the second diversion server. By responding to the configuration of the guide rule, the probe response can be ensured to return to the request end through the network line with the same probe request, so that the mapping relation between the probe task and the network line is established, and when the probe task is successful, the receiving and sending states of the network line are normal.
In implementation, after the first diversion server completes configuration of the probing destination addresses and the probing source addresses of all the standby network lines, the second diversion server may obtain a relevant configuration result, and then configure a response guidance rule on the local virtual switch according to the configuration result.
Specifically, the response guidance rule may include: and hooking the detection response of the detection source address of the destination IP address belonging to the standby network line to an IP layer for routing processing, and then transmitting the detection response through the corresponding standby network line. Thus, when receiving a detection response sent by the communication device in the second communication branch to the first diversion server, the second diversion server can select to send the detection response to the first communication branch directly through a dedicated network line or to hook the detection response to an IP layer for routing processing according to a response guidance rule configured on the local virtual switch, and then send the detection response to the first communication branch through a corresponding standby network line.
Optionally, the diversion server may further filter the received probe response according to the probe destination address and the probe source address corresponding to each network line, and the corresponding processing may be as follows: and when the detection response fed back by the second communication branch is received through the target network line, the first diversion server executes filtering processing on the detection response according to the target response filtering rule.
In implementation, after the first diversion server configures the detection destination address and the detection source address corresponding to the target network line, the target response filtering rule corresponding to the target network line may be configured according to the detection destination address and the detection source address. Specifically, the target response filtering rule may be: and only the detection response which is received through the target network line, the target IP address belongs to the detection source address corresponding to the target network line, and the source IP address belongs to the detection target address corresponding to the target network line is reserved. Therefore, when the detection response fed back by the second communication branch is received through the target network line, the first diversion server executes filtering processing on the detection response according to the target response filtering rule, so that the detection response which is transmitted by mistake due to line fault or opposite terminal configuration mistake can be filtered, and the accuracy of line quality detection is further improved.
In the embodiment of the invention, aiming at a target network line between a first communication branch and a second communication branch, a first diversion server of the first communication branch configures a detection destination address, a detection source address and a detection route corresponding to the target network line; the first diversion server periodically generates a detection request based on the detection destination address and the detection source address, and sends the detection request to the second communication branch according to the detection route; and the first diversion server determines the line quality of the target network line according to the response state of the second communication branch to the detection request. Therefore, for each network line between two communication branches, by binding respective detection parameters, when the line quality of a certain network line needs to be detected, a detection request can be accurately sent to the opposite terminal through the network line, and the line quality of the corresponding network line can be effectively detected according to the response state of the detection request.
Based on the same technical concept, an embodiment of the present invention further provides an apparatus for detecting line quality, as shown in fig. 4, the apparatus includes:
a probing configuration module 401, configured to configure, for a target network line between a first communication branch and a second communication branch, a probing destination address, a probing source address, and a probing route corresponding to the target network line;
a request sending module 402, configured to periodically generate a probe request based on the probe destination address and the probe source address, and send the probe request to the second communication branch according to the probe route;
a response processing module 403, configured to determine a line quality of the target network line according to a response status of the second communication branch to the probe request.
Optionally, as shown in fig. 5, the apparatus further includes:
a switch setting module 404, configured to create a local virtual switch, and access the local virtual switch to the private network lines of the first communication branch and the second communication branch;
a network card setting module 405, configured to set a virtual network card as a connection port with the local virtual switch;
a line construction module 406, configured to create at least one standby network line with the second diversion server of the second communication branch based on a network tunneling technique.
Optionally, the detection configuration module 401 is specifically configured to:
selecting at least one communication device in the second communication branch, and setting the IP address of the at least one communication device as a detection destination address which is exclusively owned by the target network line;
if the target network line is a private network line, setting a detection source address corresponding to the target network line as an IP address of a connection port of the local virtual switch and the first diversion server, and setting a next hop address in the detection route as an IP address of a network access device of the private network line;
if the target network line is a standby network line, setting a detection source address corresponding to the target network line as an IP address of a local end tunnel port of the standby network line, and setting a next hop address in the detection route as an IP address of an opposite end tunnel port of the standby network line.
Optionally, the probing configuration module 401 is further configured to configure a target response filtering rule corresponding to the target network line according to the probing destination address and the probing source address corresponding to the target network line;
the response processing module 403 is further configured to, when a probe response fed back by the second communication branch is received through the target network line, perform filtering processing on the probe response according to the target response filtering rule.
Optionally, the response processing module 403 is specifically configured to:
and determining the line quality of the target network line according to all response states of the second communication branch to a plurality of probe requests with different probe destination addresses.
In the embodiment of the invention, aiming at a target network line between a first communication branch and a second communication branch, a first diversion server of the first communication branch configures a detection destination address, a detection source address and a detection route corresponding to the target network line; the first diversion server periodically generates a detection request based on the detection destination address and the detection source address, and sends the detection request to the second communication branch according to the detection route; and the first diversion server determines the line quality of the target network line according to the response state of the second communication branch to the detection request. Therefore, for each network line between two communication branches, by binding respective detection parameters, when the line quality of a certain network line needs to be detected, a detection request can be accurately sent to the opposite terminal through the network line, and the line quality of the corresponding network line can be effectively detected according to the response state of the detection request.
It should be noted that: in the apparatus for detecting line quality provided in the foregoing embodiment, when detecting line quality, only the division of each functional module is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules to complete all or part of the above described functions. In addition, the apparatus for detecting line quality and the method for detecting line quality provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 6 is a schematic structural diagram of a diversion server according to an embodiment of the present invention. The diversion server 600, which may vary widely in configuration or performance, may include one or more central processors 622 (e.g., one or more processors) and memory 632, one or more storage media 630 (e.g., one or more mass storage devices) that store applications 642 or data 644. Memory 632 and storage medium 630 may be, among other things, transient or persistent storage. The program stored in the storage medium 630 may include one or more modules (not shown), each of which may include a series of instructions operating on the flow server 600. Still further, the central processor 622 may be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on the diversion server 600.
The diversion Server 600 may also include one or more power supplies 629, one or more wired or wireless network interfaces 650, one or more input-output interfaces 658, one or more keyboards 656, and/or one or more operating systems 641, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.
Diversion server 600 may include memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing the above-described probing of line quality.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (13)

1. A method of detecting line quality, the method comprising:
aiming at any target network line in a plurality of network lines between a first communication branch and a second communication branch, a first diversion server of the first communication branch configures a detection destination address, a detection source address and a detection route corresponding to the target network line;
the first diversion server periodically generates a detection request based on the detection destination address and the detection source address, and sends the detection request to the second communication branch according to the detection route, so that the second diversion server of the second communication branch returns a detection response sent by the second communication branch to the first diversion server through a network line which is the same as the detection request based on a pre-configured response guiding rule;
and the first diversion server determines the line quality of the target network line according to the response state of the second communication branch to the probe request.
2. The method of claim 1, wherein before the first diversion server configures the probe destination address, the probe source address, and the probe route corresponding to the target network line, the method further comprises:
the first diversion server creates a local virtual switch, and the local virtual switch is connected to the private network lines of the first communication branch and the second communication branch;
the first diversion server sets a virtual network card as a connection port with the local virtual switch;
the first diversion server creates at least one backup network leg with a second diversion server of the second communication leg based on network tunneling.
3. The method of claim 2, wherein the configuring, by the first diversion server, the probe destination address, the probe source address, and the probe route corresponding to the target network line comprises:
the first diversion server selects at least one communication device in the second communication branch, and sets the IP address of the at least one communication device as a detection destination address which is exclusively owned by the target network line;
if the target network line is a private network line, the first diversion server sets a detection source address corresponding to the target network line as an IP address of a connection port of the local virtual switch and the first diversion server, and sets a next hop address in the detection route as an IP address of a network access device of the private network line;
if the target network line is a standby network line, the first diversion server sets a detection source address corresponding to the target network line as an IP address of a home-end tunnel port of the standby network line, and sets a next-hop address in the detection route as an IP address of an opposite-end tunnel port of the standby network line.
4. The method of claim 2, further comprising:
the second diversion server configures a response guiding rule on a local virtual switch of the second diversion server according to the detection destination address and the detection source address corresponding to all the standby network lines configured by the first diversion server;
when receiving a probe response addressed to the first diversion server, the second diversion server sends the probe response to the first communication branch through the dedicated network line or the backup network line according to the response guidance rule.
5. The method of claim 1, further comprising:
the first diversion server configures a target response filtering rule corresponding to the target network line according to a detection destination address and a detection source address corresponding to the target network line;
and when the detection response fed back by the second communication branch is received through the target network line, the first diversion server executes filtering processing on the detection response according to the target response filtering rule.
6. The method of claim 1, wherein the determining, by the first diversion server, the line quality of the target network line according to the response status of the second communication branch to the probe request comprises:
and the first diversion server determines the line quality of the target network line according to all response states of the second communication branch to a plurality of probe requests with different probe destination addresses.
7. An apparatus for detecting line quality, the apparatus comprising:
the detection configuration module is used for configuring a detection destination address, a detection source address and a detection route corresponding to a target network line aiming at any target network line in a plurality of network lines between a first communication branch and a second communication branch;
a request sending module, configured to periodically generate a probe request based on the probe destination address and the probe source address, and send the probe request to the second communication branch according to the probe route, so that a second diversion server of the second communication branch returns a probe response sent by the second communication branch to the request sending module through a network line that is the same as the probe request based on a pre-configured response guidance rule;
and the response processing module is used for determining the line quality of the target network line according to the response state of the second communication branch to the probe request.
8. The apparatus of claim 7, further comprising:
a switch setting module, configured to create a local virtual switch, and access the local virtual switch to the private network lines of the first communication branch and the second communication branch;
the network card setting module is used for setting a virtual network card as a connection port with the local virtual switch;
and the line building module is used for creating at least one standby network line between the network tunnel technology and the second diversion server of the second communication branch.
9. The apparatus according to claim 8, wherein the probing configuration module is specifically configured to:
selecting at least one communication device in the second communication branch, and setting the IP address of the at least one communication device as a detection destination address which is exclusively owned by the target network line;
if the target network line is a private network line, setting a detection source address corresponding to the target network line as an IP address of a connection port of the local virtual switch and the request sending module, and setting a next hop address in the detection route as an IP address of a network access device of the private network line;
if the target network line is a standby network line, setting a detection source address corresponding to the target network line as an IP address of a local end tunnel port of the standby network line, and setting a next hop address in the detection route as an IP address of an opposite end tunnel port of the standby network line.
10. The apparatus according to claim 7, wherein the probing configuration module is further configured to configure a target response filtering rule corresponding to the target network line according to a probing destination address and a probing source address corresponding to the target network line;
the response processing module is further configured to, when a probe response fed back by the second communication branch is received through the target network line, perform filtering processing on the probe response according to the target response filtering rule.
11. The apparatus of claim 7, wherein the response processing module is specifically configured to:
and determining the line quality of the target network line according to all response states of the second communication branch to a plurality of probe requests with different probe destination addresses.
12. A diversion server comprising a processor and a memory, said memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, said at least one instruction, said at least one program, said set of codes, or said set of instructions being loaded and executed by said processor to implement a method of probing line quality according to any of claims 1 to 6.
13. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement a method of probing line quality as claimed in any one of claims 1 to 6.
CN201910470851.5A 2019-05-31 2019-05-31 Method and device for detecting line quality Active CN110324202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910470851.5A CN110324202B (en) 2019-05-31 2019-05-31 Method and device for detecting line quality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910470851.5A CN110324202B (en) 2019-05-31 2019-05-31 Method and device for detecting line quality

Publications (2)

Publication Number Publication Date
CN110324202A CN110324202A (en) 2019-10-11
CN110324202B true CN110324202B (en) 2021-06-22

Family

ID=68119337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910470851.5A Active CN110324202B (en) 2019-05-31 2019-05-31 Method and device for detecting line quality

Country Status (1)

Country Link
CN (1) CN110324202B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111600929B (en) * 2020-04-07 2023-05-19 厦门网宿有限公司 Transmission line detection method, routing strategy generation method and proxy server
CN115529255A (en) * 2021-06-25 2022-12-27 华为技术有限公司 Connection detection method, client and server

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257291A (en) * 2017-05-26 2017-10-17 深圳市杉岩数据技术有限公司 A kind of network equipment data interactive method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179451A (en) * 2007-12-13 2008-05-14 杭州华三通信技术有限公司 Transmission path connectivity detecting method, system, head end equipment and tail end equipment
US9629012B2 (en) * 2010-09-20 2017-04-18 Empire Technology Development Llc Dynamic mobile application quality-of-service monitor
CN107465565B (en) * 2016-06-06 2019-08-30 中兴通讯股份有限公司 Link test method and apparatus and system
US10452387B2 (en) * 2016-09-16 2019-10-22 Oracle International Corporation System and method for partition-scoped patching in an application server environment
CN108696428B (en) * 2018-05-17 2020-10-27 北京大米科技有限公司 Tunnel technology-based route detection method, route node and central server
CN109412920B (en) * 2018-12-29 2023-06-16 中电科蓉威电子技术有限公司 Reconfigurable design method and system for rapidIO bus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107257291A (en) * 2017-05-26 2017-10-17 深圳市杉岩数据技术有限公司 A kind of network equipment data interactive method and system

Also Published As

Publication number Publication date
CN110324202A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
US10938710B2 (en) Protection switching method and system, and network device
CN110113441B (en) Computer equipment, system and method for realizing load balance
CN109039788B (en) Port configuration method and device of network equipment and storage medium
CN107948063B (en) Method for establishing aggregation link and access equipment
US20220150154A1 (en) Automatically managing a mesh network based on dynamically self-configuring node devices
CN110324202B (en) Method and device for detecting line quality
CN111614505B (en) Message processing method and gateway equipment
CN109412951A (en) A kind of method and apparatus sending routing iinformation
CN104283780A (en) Method and device for establishing data transmission route
CN114679349B (en) Data communication method and device
CN108900441B (en) Network switching method, first electronic device and readable storage medium
CN110311861B (en) Method and device for guiding data flow
CN109379239B (en) Method and device for configuring access switch in OpenStack environment
WO2022217786A1 (en) Cross-network communicaton method, apparatus, and system for multi-bus network, and storage medium
CN111654559B (en) Container data transmission method and device
CN112751724B (en) Method and device for detecting link state
CN110830598B (en) Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session
US11683228B2 (en) Automatically managing a role of a node device in a mesh network
CN106559439B (en) A kind of method for processing business and equipment
CN115442285A (en) Network testing method, device, equipment and medium based on virtualization configuration
CN112532506B (en) Hybrid networking method, device, server and computer-readable storage medium
CN110224950B (en) Stack system detection system, method, device and computer readable storage medium
CN113691389A (en) Configuration method of load balancer, server and storage medium
CN108111419B (en) Path selection method and device
CN108418709B (en) Port aggregation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant