CN110311861A - A kind of method and apparatus guiding data traffic - Google Patents

A kind of method and apparatus guiding data traffic Download PDF

Info

Publication number
CN110311861A
CN110311861A CN201910470844.5A CN201910470844A CN110311861A CN 110311861 A CN110311861 A CN 110311861A CN 201910470844 A CN201910470844 A CN 201910470844A CN 110311861 A CN110311861 A CN 110311861A
Authority
CN
China
Prior art keywords
water conservancy
conservancy diversion
data traffic
local virtual
communication branches
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910470844.5A
Other languages
Chinese (zh)
Other versions
CN110311861B (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 CN201910470844.5A priority Critical patent/CN110311861B/en
Publication of CN110311861A publication Critical patent/CN110311861A/en
Application granted granted Critical
Publication of CN110311861B publication Critical patent/CN110311861B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/552Prevention, detection or correction of errors by ensuring the integrity of packets received through redundant connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches

Abstract

The invention discloses a kind of method and apparatus for guiding data traffic, belong to network communication technology field.The described method includes: the first water conservancy diversion server of the first communication branches side is equipped with the local virtual interchanger of the dedicated network route of the first communication branches of access and the second communication branches;Creation has at least one backup network route between first water conservancy diversion server and the second water conservancy diversion server of the second communication branches side;First water conservancy diversion server receives the data traffic that the first communication branches are sent to the second communication branches by local virtual interchanger;Traffic filtering rule of the first water conservancy diversion server based on local virtual interchanger sends data traffic to the second communication branches by dedicated network route or backup network route.Using the present invention, the service quality of enterprises service can be improved with the lower cost-effective interconnection guaranteed between enterprise communication branch.

Description

A kind of method and apparatus guiding data traffic
Technical field
The present invention relates to network communication technology field, in particular to a kind of method and apparatus for guiding data traffic.
Background technique
With the continuous development of network communication technology, the scale of enterprise is increasing, and enterprises generally can be set Multiple communication branches, multiple communication branches can realize enterprises service by network communication jointly.In order to guarantee service quality, look forward to Industry often buys the transfer resource in backbone network to network operator to build the dedicated network route between communication branches, net Network operator can then provide for enterprise to be deployed in the network access equipment of enterprise side and accesses its backbone network for enterprise.
Under normal conditions, the network management department of enterprise can distribute different inside IP network sections for different communication branch, for example give Enterprise communication branch 1 distributes 192.168.80.0/24 network segment, distributes 192.168.90.0/24 network segment to enterprise communication branch 2. Meanwhile core switch can also be arranged in each enterprise communication branch in network management department, and core switch is set as communicating The gateway of business equipment in branch, and the next-hop device for going to other communication branches is arranged on core switch For CE equipment.Specifically, some user (192.168.80.100) of enterprise communication branch 1 will access enterprise communication branch 2 Certain server (192.168.90.50), the specific transmission process of access request can be such that user terminal-communication branches 1 Core switch-communication branches 1 network access equipment-network operator backbone network-communication branches 2 network Core switch-server of access device-communication branches 2.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems:
There are biggish single-point risks for the network structure of above-mentioned enterprise communication branch interconnection, if some network access equipment Or some node in the backbone network of network operator breaks down, and will be unable to realize interconnection between enterprise communication branch, In this way, the service quality of enterprises service will be a greater impact, or even it will appear the service paralysis of large area.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of methods and dress for guiding data traffic It sets.The technical solution is as follows:
In a first aspect, in a kind of method of the guidance data traffic provided, the first water conservancy diversion service of the first communication branches side Device is equipped with the local virtual interchanger for accessing the dedicated network route of first communication branches and the second communication branches;Described Creation has at least one backup network line between one water conservancy diversion server and the second water conservancy diversion server of second communication branches side Road;
The first water conservancy diversion server is sent to described by local virtual interchanger reception first communication branches The data traffic of second communication branches;
Traffic filtering rule of the first water conservancy diversion server based on the local virtual interchanger, passes through the private network Winding thread road or the backup network route, the second communication branches of Xiang Suoshu send the data traffic.
Optionally, the method also includes:
The first water conservancy diversion server creates the local virtual interchanger, and by with the net on the dedicated network route First network interface card of network access device connection, and the second Network card setup connecting with the gateway of the first communication branches is described The connectivity port of local virtual interchanger.
Optionally, the method also includes:
The first water conservancy diversion server is created between the second water conservancy diversion server at least based on network tunnel technology One backup network route;
Local routing table is arranged in the first water conservancy diversion server, to determine the local virtual according to the local routing table The corresponding backup network route of data traffic of interchanger output.
Optionally, traffic filtering rule of the first water conservancy diversion server based on the local virtual interchanger, passes through institute Dedicated network route or the backup network route are stated, the second communication branches of Xiang Suoshu send the data traffic, comprising:
The first water conservancy diversion server judges the data flow according to the traffic filtering rule of the local virtual interchanger Whether amount corresponds to the dedicated network route;
It is transmitted if so, the first water conservancy diversion server then passes through the dedicated network route to second communication branches The data traffic;
If it is not, the first water conservancy diversion server then obtains the data flow that the local virtual interchanger redirects Amount, and the corresponding target backup network route of the data traffic is determined according to local routing table, pass through the spare net of the target Second communication branches described in winding thread road direction transmit the data traffic.
Optionally, the method also includes:
The first water conservancy diversion server is sent to described by the second communication branches described in the backup network line receiver The data traffic of one communication branches;
If the first water conservancy diversion server determines that the data traffic is directed toward the local according to the local routing table The data traffic is then imported the local virtual interchanger by virtual switch;
The first water conservancy diversion server passes through the local void according to the traffic filtering rule of the local virtual interchanger The quasi- transmission data traffic of the interchanger to first communication branches.
Optionally, the method also includes:
The first water conservancy diversion server is according to the stream of the dedicated network route and at least one backup network route Transmission state is measured, the traffic filtering rule of the local virtual interchanger is set.
Optionally, the method also includes:
The corresponding service parameter of the first water conservancy diversion server based on data flow, is arranged the local virtual interchanger Traffic filtering rule.
Second aspect provides a kind of device for guiding data traffic, and described device, which is equipped with, accesses first communication point The local virtual interchanger of branch and the dedicated network route of the second communication branches;
Creation has at least one spare net between described device and the second water conservancy diversion server of second communication branches side Winding thread road;
Described device includes:
Data reception module is sent to described for receiving first communication branches by the local virtual interchanger The data traffic of two communication branches;
Flow guiding module passes through the private network for the traffic filtering rule based on the local virtual interchanger Winding thread road or the backup network route, the second communication branches of Xiang Suoshu send the data traffic.
Optionally, described device further include:
Switch configuration module, for creating the local virtual interchanger, and by on the dedicated network route First network interface card of network access equipment connection, and the second Network card setup connecting with the gateway of the first communication branches is institute State the connectivity port of local virtual interchanger.
Optionally, described device further include:
Route builds module, for based at least one between the creation of network tunnel technology and the second water conservancy diversion server Local routing table is arranged in backup network route, to determine that the local virtual interchanger exports according to the local routing table The corresponding backup network route of data traffic.
Optionally, the flow guiding module, is specifically used for:
According to the traffic filtering of local virtual interchanger rule, it is described dedicated to judge whether the data traffic corresponds to Network line;
If it is, transmitting the data traffic to second communication branches by the dedicated network route;
If it is not, then obtaining the data traffic that the local virtual interchanger redirects, and according to local routing Table determines the corresponding target backup network route of the data traffic, logical to described second by the target backup network route Believe data traffic described in multi-branch transport.
Optionally, the flow guiding module, is also used to:
The data flow of first communication branches is sent to by the second communication branches described in the backup network line receiver Amount;
It, will be described if determining that the data traffic is directed toward the local virtual interchanger according to the local routing table Data traffic imports the local virtual interchanger;
According to the traffic filtering of local virtual interchanger rule, by the local virtual interchanger to described first The transmission of the communication branches data traffic.
Optionally, described device further include:
Switch configuration module, for the stream according to the dedicated network route and at least one backup network route Transmission state is measured, the traffic filtering rule of the local virtual interchanger is set.
Optionally, described device further include:
Switch configuration module, for the local virtual interchanger to be arranged according to the corresponding service parameter of data traffic Traffic filtering rule.
The third aspect, provides a kind of water conservancy diversion server, and the water conservancy diversion server includes processor and memory, described to deposit Be stored at least one instruction, at least a Duan Chengxu, code set or instruction set in reservoir, at least one instruction, it is described extremely A few Duan Chengxu, the code set or instruction set are loaded by the processor and are executed to realize guidance as described in relation to the first aspect The method of data traffic.
Fourth aspect provides a kind of computer readable storage medium, at least one finger is stored in the storage medium Enable, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or The method that instruction set is loaded by processor and executed to realize guidance data traffic as described in relation to the first aspect.
5th aspect, provides a kind of network transmission system, and the network transmission system contains at least two communication branches, Each communication branches are provided with water conservancy diversion server, and every water conservancy diversion server is equipped with local virtual interchanger, appoints It anticipates between the water conservancy diversion server of two communication branches there are a dedicated network route and at least one backup network route, Wherein, the water conservancy diversion server is handled the data traffic the communication branches based on method described in first aspect.
Technical solution provided in an embodiment of the present invention has the benefit that
In the embodiment of the present invention, the first water conservancy diversion server of the first communication branches side is equipped with the first communication branches of access and the The local virtual interchanger of the dedicated network route of two communication branches;The second of first water conservancy diversion server and the second communication branches side Creation has at least one backup network route between water conservancy diversion server;First water conservancy diversion server is received by local virtual interchanger First communication branches are sent to the data traffic of the second communication branches;First flow of the water conservancy diversion server based on local virtual interchanger Filtering rule sends data traffic to the second communication branches by dedicated network route or backup network route.In this way, in original Water conservancy diversion server is added in each communication branches having, and water conservancy diversion server is passed through between each communication branches using bridge technology Establish backup network route, in this way, when dedicated network route break down when, water conservancy diversion server data traffic can be guided to The interconnection between communication branches can be effectively ensured in backup network line transmission, improve the service quality of enterprises service.Meanwhile it adopting In fashion described above without carrying out complicated change to former network structure, water conservancy diversion server is only accessed, can be substantially reduced State the cost of implementation of scheme.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of method flow diagram for guiding data traffic provided in an embodiment of the present invention;
Fig. 2 is a kind of system framework schematic diagram for carrying out network communication provided in an embodiment of the present invention;
Fig. 3 is a kind of apparatus structure schematic diagram for guiding data traffic provided in an embodiment of the present invention;
Fig. 4 is a kind of apparatus structure schematic diagram for guiding data traffic provided in an embodiment of the present invention;
Fig. 5 is a kind of apparatus structure schematic diagram for guiding data traffic provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of water conservancy diversion server provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
The embodiment of the invention provides a kind of method for guiding data traffic, this method can be applied in multiple communication branches In the network architecture interconnected, and specifically realized by the water conservancy diversion server for being deployed in each communication branches side.Wherein, Mei Getong It may include multiple communication equipments in letter branch, the IP address of the communication equipment in same communication branches can belong in same Portion's IP network section, communication equipment in same communication branches can communicate point by the way that the gateway of the communication branches is unified with other The communication equipment of branch carries out network communication.At least one dedicated network route can be set between every two communication branches, this is specially The data traffic between two communication branches of transmission can be exclusively used in network line.
Each communication branches side can be deployed with water conservancy diversion server, and water conservancy diversion server can be used for receiving communication where it The data traffic of branch, and the processing such as shunting is guided to data traffic according to default rule.Water conservancy diversion server can wrap Processor, memory, transceiver are included, processor can be used for carrying out executing the processing of guidance data traffic in following processes, deposit Reservoir can be used for storing the data of the data and generation that need in treatment process, and transceiver can be used for sending and receiving place Related data during reason.
Be illustrated by taking the different communication branch in same corporate intranet as an example in the present embodiment, other scenes with etc Seemingly, necessary place will be specifically described.
Below in conjunction with specific embodiment, process flow shown in FIG. 1 is described in detail, content can be as Under:
Step 101, the first water conservancy diversion server receives the first communication branches by local virtual interchanger and is sent to the second communication The data traffic of branch.
Wherein, the first communication branches can be any communication branches for needing to carry out in corporate intranet to interconnect across branch, the Two communication branches can be any communication branches for needing that network communication is carried out with the first communication branches.
In an implementation, the network management personnel of enterprise can affix one's name to water conservancy diversion server in each communication branches side of enterprise, And it is configured on water conservancy diversion server to realize the guidance to data traffic by water conservancy diversion server.
Specifically, can be set on the first water conservancy diversion server of the first communication branches side by taking the first communication branches as an example Access the local virtual interchanger of the dedicated network route between the first communication branches and the second communication branches, local virtual exchange Machine can be a kind of bridge equipment that water conservancy diversion server passes through software realization, such as can be and passes through order based on Linux system The general bridge equipment of " ip link add br0type bridge " creation, is also possible to based on open source software The bridge equipment of OpenvSwitch creation, can also be other any software creations based on Linux system has link layer The bridge equipment of exchange capacity.And first can be between water conservancy diversion server and the second water conservancy diversion server of the second communication branches side Creation has at least one backup network route, for mutual data communication.
When the communication equipment of the first communication branches side needs to carry out data interaction with the communication equipment of the second communication branches side When, the communication equipment of the first communication branches will transfer to data traffic on above-mentioned dedicated network route according to default transmission rule It is transmitted, in turn, the first water conservancy diversion server can be connect by having accessed the local virtual interchanger of above-mentioned dedicated network route Receive the data traffic that the first communication branches are sent to the second communication branches.
If being appreciated that, there is also other communication branches that network communication is carried out with the first communication branches, the first water conservancy diversion clothes Local virtual interchanger on business device can equally access the dedicated network route of the first communication branches Yu other communication branches, with Receive the data traffic that the first communication branches are sent to other communication branches, and the first water conservancy diversion server and other communication branches are led At least one backup network route can also be created between streaming server, for mutual data communication.
Optionally, the processing of water conservancy diversion server configuration local virtual interchanger specifically can be such that the first water conservancy diversion server Create local virtual interchanger, and the first network interface card that will be connect with the network access equipment on dedicated network route, and with the Second Network card setup of the gateway connection of one communication branches is the connectivity port of local virtual interchanger.
In an implementation, by taking the first water conservancy diversion server as an example, the first water conservancy diversion server can create local according to program instruction Virtual switch, the Microsoft Loopback Adapter on local virtual interchanger can be used for realizing the communication connection with the first water conservancy diversion server.It is empty The IP address of quasi- network card configuration can belong to identical IP network section with the IP address of the communication equipment in the first communication branches, make The partial data flow that local virtual interchanger can will receive is obtained, the first water conservancy diversion server is transmitted to by Microsoft Loopback Adapter. Later, the network interface card connecting with the network access equipment on dedicated network route (can be can be described as first by the first water conservancy diversion server Network interface card), and the network interface card (can be described as the second network interface card) that connect with the gateway of the first communication branches is set as local virtual friendship The connectivity port changed planes, to complete the processing of virtual switch access dedicated network route.
If the first water conservancy diversion can be taken again there is also the other communication branches for carrying out network communication with the first communication branches The network interface card that business device is connect with the network access equipment on respective dedicated network route, is set as the connecting pin of local virtual interchanger Mouthful.
Optionally, the processing that water conservancy diversion server builds backup network route specifically can be such that the first water conservancy diversion server base At least one backup network route between the creation of network tunnel technology and the second water conservancy diversion server;First water conservancy diversion server is set Local routing table is set, to determine the corresponding backup network line of data traffic of local virtual interchanger output according to local routing table Road.
In an implementation, tunnel can be respectively set in the first water conservancy diversion server and the second water conservancy diversion server of the second communication branches side Road Microsoft Loopback Adapter is then based on network tunnel technology (such as vxlan, IPSEC technology), creates two by tunnel Microsoft Loopback Adapter Backup network route between water conservancy diversion server, tunnel Microsoft Loopback Adapter can be used as both ends port and the water conservancy diversion of backup network route Server connects, and the tunnel Microsoft Loopback Adapter on two water conservancy diversion servers can be configured with the virtual ip address of same network segment.It needs Illustrate, corresponding a pair of of tunnel Microsoft Loopback Adapter of every backup network route creates a plurality of backup network route, then if necessary Multipair tunnel Microsoft Loopback Adapter can be set on two water conservancy diversion servers, and configure phase for two tunnel Microsoft Loopback Adapters of every centering The virtual ip address of same network segment.Later, IP layers of local routing table can be set in the first water conservancy diversion server, to receive local After the data traffic of virtual switch output, the corresponding backup network route of the data traffic is determined according to local routing table, i.e., The data transmission exchanged between backup network route from local virtual is realized at IP layers.
It is appreciated that can be using the creation local virtual exchange of above-mentioned first water conservancy diversion server on the second water conservancy diversion server Same processing with backup network route is configured.
Above-mentioned network structure can specifically refer to Fig. 2, and wherein dedicated network route can choose the backbone of MPLS operator Network, backup network route can choose the backbone network of sdwan operator.
Step 102, traffic filtering rule of the first water conservancy diversion server based on local virtual interchanger, passes through private network winding thread Road or backup network route send data traffic to the second communication branches.
In an implementation, the first water conservancy diversion server is sent to second receiving the first communication branches by local virtual interchanger After the data traffic of communication branches, dedicated network route can be passed through based on the traffic filtering rule of local virtual interchanger Or backup network route, above-mentioned data traffic is sent to the second communication branches.Wherein, if virtual switch is based on linux system The general bridge equipment of system created by order " ip link add br0type bridge ", then can pass through ebtables Order carries out the configuration of traffic filtering rule, if virtual switch is the bridge equipment based on open source software OpenvSwitch creation, Then the configuration of traffic filtering rule can be realized by configuring openflow rule.It should be noted that local virtual exchanges The particular content of the traffic filtering rule of machine can be set based on practical application request, it can be achieved that by different data traffics Guidance to different network line is transmitted.
Optionally, based on the above-mentioned specific processing for establishing backup network route, the processing of step 102 can be specific as follows: First water conservancy diversion server judges whether data traffic corresponds to private network winding thread according to the traffic filtering rule of local virtual interchanger Road;If so, the first water conservancy diversion server then passes through dedicated network route to the second communication branches transmitting data stream amount;If no It is that the first water conservancy diversion server then obtains the data traffic of local virtual interchanger redirection, and determines number according to local routing table According to the corresponding target backup network route of flow, by target backup network route to the second communication branches transmitting data stream amount.
In an implementation, communication equipment of the communication equipment in the first communication branches into the second communication branches sends data flow After amount, the gateway of the first communication branches can receive above-mentioned data traffic, and data traffic is then transmitted to first and is led Local virtual interchanger on streaming server.The second communication is sent to receiving the first communication branches by local virtual interchanger After the data traffic of branch, the first water conservancy diversion server can judge whether according to the traffic filtering rule of local virtual interchanger It needs to judge whether the data traffic corresponds to dedicated network route by the dedicated network line transmission data traffic.If It is that the first water conservancy diversion server then can transmit the data traffic to the second communication branches by dedicated network route;And if not It is that data traffic can be then redirected to Microsoft Loopback Adapter by local virtual interchanger, is then taken by Microsoft Loopback Adapter into the first water conservancy diversion The IP layer of business device.In this way, can be inquired after the first water conservancy diversion server gets the data traffic of local virtual interchanger redirection IP layers of local routing table determines the corresponding target backup network route of data traffic, and then the first water conservancy diversion server can lead to It crosses target backup network route and transmits above-mentioned data traffic to the second communication branches.
Optionally, based on the above-mentioned specific processing for establishing backup network route, water conservancy diversion server connects for data traffic The specific processing of receipts process can be such that the first water conservancy diversion server is sent to the by the second communication branches of backup network line receiver The data traffic of one communication branches;If the first water conservancy diversion server determines that data traffic is directed toward local virtual according to local routing table Data traffic is then imported local virtual interchanger by interchanger;First water conservancy diversion server is according to the flow of local virtual interchanger Filtering rule, by local virtual interchanger to the first communication branches transmitting data stream amount.
In an implementation, the first water conservancy diversion server is to be sent to first by backup network line receiver to the second communication branches logical After the data traffic for believing branch, the next stage transmission address of the data traffic can be directly determined from IP layers with local routing table. If the Microsoft Loopback Adapter on local virtual interchanger is directed toward in next stage transmission address, the first water conservancy diversion server if, can be by data Flow imports local virtual interchanger by Microsoft Loopback Adapter, then can be regular according to the traffic filtering of local virtual interchanger, Above-mentioned data traffic is transmitted to the first communication branches by local virtual interchanger.Lead in this way, data traffic can reach first Believe the gateway of branch, the communication equipment being then sent to by gateway in the first communication branches.
In an implementation, the second communication branches are sent to the data traffic of the first communication branches, meeting by dedicated network route Connectivity port by above-mentioned setting is directly output to the first water conservancy diversion server from the network access equipment on dedicated network route On local virtual interchanger, and the communication that the data traffic is sent in the first communication branches is set by local virtual interchanger It is standby.
Optionally, the mode of the traffic filtering rule setting of the virtual switch on water conservancy diversion server is varied, as follows Give two kinds of feasible modes:
One: the first water conservancy diversion server of mode is transmitted according to the flow of dedicated network route and at least one backup network route The traffic filtering rule of local virtual interchanger is arranged in state.
In an implementation, the first water conservancy diversion server is carried out to the data traffic between the first communication branches and the second communication branches During guidance, periodically the flow transmission state of dedicated network route and backup network route can be detected.Later, First water conservancy diversion server can be according to the flow transmission state of the dedicated network route and backup network route that detect, to be arranged The traffic filtering rule of local virtual interchanger.Specifically, can set when dedicated network route fault-free, data traffic is logical Dedicated network line transmission is crossed, when dedicated network line fault, data traffic passes through backup network line transmission;It can also set Determine data traffic and preferentially pass through dedicated network line transmission, and draws when dedicated network line load is excessively high, then by data traffic It is directed at backup network transmission etc..
The corresponding service parameter of two: the first water conservancy diversion server based on data flow of mode, setting local virtual interchanger Traffic filtering rule.
In an implementation, the first water conservancy diversion server is carried out to the data traffic between the first communication branches and the second communication branches It, can be according to the corresponding service parameter of data traffic, the traffic filtering rule of local virtual interchanger are arranged during guidance Then.Specifically, the corresponding service parameter of data traffic can be type of service belonging to data traffic, in this way, in view of dedicated Network line usually all has better transmission quality and smaller propagation delay time with respect to backup network route, then can will be crucial The data traffic of type of service is guided to dedicated network route and is transmitted, and the data traffic of non-key type of service is guided It is transmitted to backup network route.Certainly, the first water conservancy diversion server can also be according to other any form of load balancing plans Slightly, regular the traffic filtering of local virtual interchanger is arranged.
In the embodiment of the present invention, the first water conservancy diversion server of the first communication branches side is equipped with the first communication branches of access and the The local virtual interchanger of the dedicated network route of two communication branches;The second of first water conservancy diversion server and the second communication branches side Creation has at least one backup network route between water conservancy diversion server;First water conservancy diversion server is received by local virtual interchanger First communication branches are sent to the data traffic of the second communication branches;First flow of the water conservancy diversion server based on local virtual interchanger Filtering rule sends data traffic to the second communication branches by dedicated network route or backup network route.In this way, in original Water conservancy diversion server is added in each communication branches having, and water conservancy diversion server is passed through between each communication branches using bridge technology Establish backup network route, in this way, when dedicated network route break down when, water conservancy diversion server data traffic can be guided to The interconnection between communication branches can be effectively ensured in backup network line transmission, improve the service quality of enterprises service.Meanwhile it adopting In fashion described above without carrying out complicated change to former network structure, water conservancy diversion server is only accessed, can be substantially reduced State the cost of implementation of scheme.
Based on the same technical idea, the embodiment of the invention also provides a kind of device for guiding data traffic, the dresses Install the local virtual interchanger for accessing the dedicated network route of first communication branches and the second communication branches;The dress Setting the creation between the second water conservancy diversion server of second communication branches side has at least one backup network route;
As shown in figure 3, described device includes:
Data reception module 301 is sent to institute for receiving first communication branches by the local virtual interchanger State the data traffic of the second communication branches;
Flow guiding module 302, for the traffic filtering rule based on the local virtual interchanger, by described dedicated Network line or the backup network route, the second communication branches of Xiang Suoshu send the data traffic.
Optionally, as shown in figure 4, described device further include:
Switch configuration module 303, for creating the local virtual interchanger, and will on the dedicated network route Network access equipment connection the first network interface card, and the second Network card setup connecting with the gateway of the first communication branches is The connectivity port of the local virtual interchanger.
Optionally, as shown in figure 5, described device further include:
Route builds module 304, for being created between the second water conservancy diversion server extremely based on network tunnel technology A few backup network route, is arranged local routing table, to determine the local virtual interchanger according to the local routing table The corresponding backup network route of the data traffic of output.
Optionally, the flow guiding module 302, is specifically used for:
According to the traffic filtering of local virtual interchanger rule, it is described dedicated to judge whether the data traffic corresponds to Network line;
If it is, transmitting the data traffic to second communication branches by the dedicated network route;
If it is not, then obtaining the data traffic that the local virtual interchanger redirects, and according to local routing Table determines the corresponding target backup network route of the data traffic, logical to described second by the target backup network route Believe data traffic described in multi-branch transport.
Optionally, the flow guiding module 302, is also used to:
The data flow of first communication branches is sent to by the second communication branches described in the backup network line receiver Amount;
It, will be described if determining that the data traffic is directed toward the local virtual interchanger according to the local routing table Data traffic imports the local virtual interchanger;
According to the traffic filtering of local virtual interchanger rule, by the local virtual interchanger to described first The transmission of the communication branches data traffic.
Optionally, as shown in figure 4, described device further include:
Switch configuration module 303, for according to the dedicated network route and at least one backup network route Flow transmission state, be arranged the local virtual interchanger traffic filtering rule.
Optionally, as shown in figure 4, described device further include:
Switch configuration module 303, for the local virtual exchange to be arranged according to the corresponding service parameter of data traffic The traffic filtering rule of machine.
In the embodiment of the present invention, the first water conservancy diversion server of the first communication branches side is equipped with the first communication branches of access and the The local virtual interchanger of the dedicated network route of two communication branches;The second of first water conservancy diversion server and the second communication branches side Creation has at least one backup network route between water conservancy diversion server;First water conservancy diversion server is received by local virtual interchanger First communication branches are sent to the data traffic of the second communication branches;First flow of the water conservancy diversion server based on local virtual interchanger Filtering rule sends data traffic to the second communication branches by dedicated network route or backup network route.In this way, in original Water conservancy diversion server is added in each communication branches having, and water conservancy diversion server is passed through between each communication branches using bridge technology Establish backup network route, in this way, when dedicated network route break down when, water conservancy diversion server data traffic can be guided to The interconnection between communication branches can be effectively ensured in backup network line transmission, improve the service quality of enterprises service.Meanwhile it adopting In fashion described above without carrying out complicated change to former network structure, water conservancy diversion server is only accessed, can be substantially reduced State the cost of implementation of scheme.
Based on the same technical idea, the embodiment of the invention also provides a kind of network transmission system, the network transmissions System contains at least two communication branches, and each communication branches are provided with water conservancy diversion server, every water conservancy diversion service Device is equipped with local virtual interchanger, and there are a private network winding threads between the water conservancy diversion server of communication branches described in any two Road and at least one backup network route, wherein the water conservancy diversion server based on the above embodiment the method to described logical Data traffic between letter branch is handled.
It should be understood that it is provided by the above embodiment guidance data traffic device when guiding data traffic, only with The division progress of above-mentioned each functional module can according to need and for example, in practical application by above-mentioned function distribution by not Same functional module is completed, i.e., the internal structure of device is divided into different functional modules, to complete whole described above Or partial function.In addition, the device of guidance data traffic provided by the above embodiment and the method for guidance data traffic are implemented Example belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Fig. 6 is the structural schematic diagram of water conservancy diversion server provided in an embodiment of the present invention.The water conservancy diversion server 600 can be because of configuration Or performance is different and generate bigger difference, may include one or more central processing units 622 (for example, one or More than one processor) and memory 632, the storage medium of one or more storage application programs 642 or data 644 630 (such as one or more mass memory units).Wherein, memory 632 and storage medium 630 can be of short duration storage Or persistent storage.The program for being stored in storage medium 630 may include one or more modules (diagram does not mark), each Module may include to the series of instructions operation in water conservancy diversion server 600.Further, central processing unit 622 can be set It is set to and is communicated with storage medium 630, the series of instructions operation in storage medium 630 is executed on water conservancy diversion server 600.
Water conservancy diversion server 600 can also include one or more power supplys 629, one or more are wired or wireless Network interface 650, one or more input/output interfaces 658, one or more keyboards 656, and/or, one or More than one operating system 641, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD etc..
Water conservancy diversion server 600 may include have memory and one perhaps more than one program one of them or More than one program is stored in memory, and be configured to be executed by one or more than one processor it is one or More than one program includes the instruction for carrying out above-mentioned guidance data traffic.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (17)

1. a kind of method for guiding data traffic, which is characterized in that the first water conservancy diversion server of the first communication branches side is equipped with and connects Enter the local virtual interchanger of the dedicated network route of first communication branches and the second communication branches;The first water conservancy diversion clothes Creation has at least one backup network route between business device and the second water conservancy diversion server of second communication branches side;
The described method includes:
The first water conservancy diversion server receives first communication branches by the local virtual interchanger and is sent to described second The data traffic of communication branches;
Traffic filtering rule of the first water conservancy diversion server based on the local virtual interchanger, passes through the private network winding thread Road or the backup network route, the second communication branches of Xiang Suoshu send the data traffic.
2. the method according to claim 1, wherein the method also includes:
The first water conservancy diversion server creates the local virtual interchanger, and will connect with the network on the dedicated network route Enter the first network interface card of equipment connection, and the second Network card setup connecting with the gateway of the first communication branches is the local The connectivity port of virtual switch.
3. the method according to claim 1, wherein the method also includes:
The first water conservancy diversion server creates at least one between the second water conservancy diversion server based on network tunnel technology Backup network route;
Local routing table is arranged in the first water conservancy diversion server, to determine that the local virtual exchanges according to the local routing table The corresponding backup network route of data traffic of machine output.
4. according to the method described in claim 3, it is characterized in that, the first water conservancy diversion server is handed over based on the local virtual The traffic filtering rule changed planes, passes through the dedicated network route or the backup network route, the second communication branches of Xiang Suoshu Send the data traffic, comprising:
The first water conservancy diversion server judges that the data traffic is according to the traffic filtering rule of the local virtual interchanger The no correspondence dedicated network route;
If so, the first water conservancy diversion server then passes through the dedicated network route to described in second communication branches transmission Data traffic;
If it is not, the first water conservancy diversion server then obtains the data traffic that the local virtual interchanger redirects, And the corresponding target backup network route of the data traffic is determined according to local routing table, pass through the target backup network line Second communication branches described in road direction transmit the data traffic.
5. according to the method described in claim 3, it is characterized in that, the method also includes:
The first water conservancy diversion server is sent to described first by the second communication branches described in the backup network line receiver and leads to Believe the data traffic of branch;
If the first water conservancy diversion server determines that the data traffic is directed toward the local virtual according to the local routing table The data traffic is then imported the local virtual interchanger by interchanger;
The first water conservancy diversion server is handed over according to the traffic filtering rule of the local virtual interchanger by the local virtual The transmission data traffic changed planes to first communication branches.
6. the method according to claim 1, wherein the method also includes:
The first water conservancy diversion server is passed according to the flow of the dedicated network route and at least one backup network route The traffic filtering rule of the local virtual interchanger is arranged in defeated state.
7. the method according to claim 1, wherein the method also includes:
The corresponding service parameter of the first water conservancy diversion server based on data flow, is arranged the flow of the local virtual interchanger Filtering rule.
8. a kind of device for guiding data traffic, which is characterized in that described device, which is equipped with, accesses first communication branches and the The local virtual interchanger of the dedicated network route of two communication branches;
Creation has at least one backup network line between described device and the second water conservancy diversion server of second communication branches side Road;
Described device includes:
Data reception module is logical for being sent to described second by local virtual interchanger reception first communication branches Believe the data traffic of branch;
Flow guiding module passes through the private network winding thread for the traffic filtering rule based on the local virtual interchanger Road or the backup network route, the second communication branches of Xiang Suoshu send the data traffic.
9. device according to claim 8, which is characterized in that described device further include:
Switch configuration module, for creating the local virtual interchanger, and by with the network on the dedicated network route First network interface card of access device connection, and the second Network card setup connecting with the gateway of the first communication branches is described The connectivity port of ground virtual switch.
10. device according to claim 8, which is characterized in that described device further include:
Route builds module, for standby based at least one between the creation of network tunnel technology and the second water conservancy diversion server With network line, local routing table is set, to determine the number of the local virtual interchanger output according to the local routing table According to the corresponding backup network route of flow.
11. device according to claim 10, which is characterized in that the flow guiding module is specifically used for:
According to the traffic filtering of local virtual interchanger rule, judge whether the data traffic corresponds to the dedicated network Route;
If it is, transmitting the data traffic to second communication branches by the dedicated network route;
If it is not, then obtaining the data traffic that the local virtual interchanger redirects, and true according to local routing table Determine the corresponding target backup network route of the data traffic, is divided by the target backup network route to second communication Branch transmits the data traffic.
12. device according to claim 10, which is characterized in that the flow guiding module is also used to:
The data traffic of first communication branches is sent to by the second communication branches described in the backup network line receiver;
If determining that the data traffic is directed toward the local virtual interchanger according to the local routing table, by the data Flow imports the local virtual interchanger;
According to the traffic filtering of local virtual interchanger rule, communicated by the local virtual interchanger to described first The transmission of the branch data traffic.
13. device according to claim 8, which is characterized in that described device further include:
Switch configuration module, for being passed according to the flow of the dedicated network route and at least one backup network route The traffic filtering rule of the local virtual interchanger is arranged in defeated state.
14. device according to claim 8, which is characterized in that described device further include:
Switch configuration module, for the stream of the local virtual interchanger to be arranged according to the corresponding service parameter of data traffic Measure filtering rule.
15. a kind of water conservancy diversion server, which is characterized in that the water conservancy diversion server includes processor and memory, the memory In be stored at least one instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, described at least one Duan Chengxu, the code set or instruction set are loaded by the processor and are executed to realize as described in claim 1 to 7 is any The method for guiding data traffic.
16. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction The method that collection is loaded by processor and executed to realize the guidance data traffic as described in claim 1 to 7 is any.
17. a kind of network transmission system, which is characterized in that the network transmission system contains at least two communication branches, each The communication branches are provided with water conservancy diversion server, and every water conservancy diversion server is equipped with local virtual interchanger, and any two There are a dedicated network route and at least one backup network route between the water conservancy diversion server of a communication branches, In, the water conservancy diversion server is handled the data traffic the communication branches based on method described in claim 1-7.
CN201910470844.5A 2019-05-31 2019-05-31 Method and device for guiding data flow Active CN110311861B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910470844.5A CN110311861B (en) 2019-05-31 2019-05-31 Method and device for guiding data flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910470844.5A CN110311861B (en) 2019-05-31 2019-05-31 Method and device for guiding data flow

Publications (2)

Publication Number Publication Date
CN110311861A true CN110311861A (en) 2019-10-08
CN110311861B CN110311861B (en) 2021-10-22

Family

ID=68075559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910470844.5A Active CN110311861B (en) 2019-05-31 2019-05-31 Method and device for guiding data flow

Country Status (1)

Country Link
CN (1) CN110311861B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112910790A (en) * 2021-02-08 2021-06-04 网宿科技股份有限公司 Diversion system and method thereof
CN112910791A (en) * 2021-02-08 2021-06-04 网宿科技股份有限公司 Diversion system and method thereof

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924626A (en) * 2009-06-09 2010-12-22 中兴通讯股份有限公司 Protection method and system of mixed subnetworks
CN101931520A (en) * 2010-09-02 2010-12-29 中兴通讯股份有限公司 Switching method and system
CN106533884A (en) * 2016-11-28 2017-03-22 迈普通信技术股份有限公司 Message transmission method, convergence device, switch and VRRP system
CN106850387A (en) * 2017-02-21 2017-06-13 无锡华云数据技术服务有限公司 A kind of system and method for the virtual network networking for realizing multiple data centers
US20170280380A1 (en) * 2016-03-24 2017-09-28 Qualcomm Incorporated Method to dynamically switch data subscription in volte + gsm dual sim dual standby device
CN107276784A (en) * 2016-03-30 2017-10-20 丛林网络公司 The fault handling method and PE of movable standby redundancy in EVPN DCI
CN108023802A (en) * 2016-11-01 2018-05-11 中国移动通信集团广东有限公司 Data transmission system and method
CN109039913A (en) * 2018-08-23 2018-12-18 郑州云海信息技术有限公司 Virtual routing device and virtual machine communication system
CN109756431A (en) * 2017-11-06 2019-05-14 阿里巴巴集团控股有限公司 Hybrid network configuration method, device, network structure and electronic equipment
US20190149456A1 (en) * 2017-11-10 2019-05-16 Cisco Technology, Inc. Local Switching for Flexible Cross-Connect VLAN-Aware Based Service

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924626A (en) * 2009-06-09 2010-12-22 中兴通讯股份有限公司 Protection method and system of mixed subnetworks
CN101931520A (en) * 2010-09-02 2010-12-29 中兴通讯股份有限公司 Switching method and system
US20170280380A1 (en) * 2016-03-24 2017-09-28 Qualcomm Incorporated Method to dynamically switch data subscription in volte + gsm dual sim dual standby device
CN107276784A (en) * 2016-03-30 2017-10-20 丛林网络公司 The fault handling method and PE of movable standby redundancy in EVPN DCI
CN108023802A (en) * 2016-11-01 2018-05-11 中国移动通信集团广东有限公司 Data transmission system and method
CN106533884A (en) * 2016-11-28 2017-03-22 迈普通信技术股份有限公司 Message transmission method, convergence device, switch and VRRP system
CN106850387A (en) * 2017-02-21 2017-06-13 无锡华云数据技术服务有限公司 A kind of system and method for the virtual network networking for realizing multiple data centers
CN109756431A (en) * 2017-11-06 2019-05-14 阿里巴巴集团控股有限公司 Hybrid network configuration method, device, network structure and electronic equipment
US20190149456A1 (en) * 2017-11-10 2019-05-16 Cisco Technology, Inc. Local Switching for Flexible Cross-Connect VLAN-Aware Based Service
CN109039913A (en) * 2018-08-23 2018-12-18 郑州云海信息技术有限公司 Virtual routing device and virtual machine communication system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112910790A (en) * 2021-02-08 2021-06-04 网宿科技股份有限公司 Diversion system and method thereof
CN112910791A (en) * 2021-02-08 2021-06-04 网宿科技股份有限公司 Diversion system and method thereof
CN112910790B (en) * 2021-02-08 2023-06-30 网宿科技股份有限公司 Diversion system and method thereof

Also Published As

Publication number Publication date
CN110311861B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN106375214B (en) A kind of Tiered routing determining method of path and device based on SDN
CN102291455B (en) Distributed cluster processing system and message processing method thereof
EP2701342A1 (en) Method and system for implementing elastic network interface and interconnection
CN107948086A (en) A kind of data packet sending method, device and mixed cloud network system
CN104380658A (en) Stream classifier, service routing trigger, and message processing method and system
CN110417665B (en) EVPN networking system and method for multiple Fabric scenes of data center
CN103139075B (en) A kind of message transmitting method and equipment
CN106254176A (en) A kind of traffic mirroring method based on openvswitch
JP7092813B2 (en) Packet transmission method and equipment
CN104283780B (en) The method and apparatus for establishing data transfer path
CN109743370A (en) Mixed cloud connection method and system based on SD-WAN
CN107566196A (en) Network-building method and network device, customer edge and readable storage medium storing program for executing
CN102884762B (en) Network path control method, equipment and system
CN109194578B (en) Method and device for opening private line service
CN108337179A (en) Link flow control method and device
CN109818858A (en) For realizing the methods, devices and systems of topological relation automatic Mosaic between domain
CN106453156A (en) Communication method and apparatus between virtual devices
CN110311861A (en) A kind of method and apparatus guiding data traffic
CN104639437A (en) Forwarding method and apparatus of broadcast messages in stack system
CN116155682A (en) Data packet capturing method and device, electronic equipment and storage medium
CN101692654B (en) Method, system and equipment for HUB-Spoken networking
CN102833161B (en) Tunnel load share method and device
CN109788018A (en) Cross-domain service intercommunication method, the network equipment and storage medium
CN104618157A (en) Network management method, device and system
CN105591786B (en) A kind of management method of business chain, drainage point, controller and value-added service node

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