CN104283780B - The method and apparatus for establishing data transfer path - Google Patents

The method and apparatus for establishing data transfer path Download PDF

Info

Publication number
CN104283780B
CN104283780B CN201410505880.8A CN201410505880A CN104283780B CN 104283780 B CN104283780 B CN 104283780B CN 201410505880 A CN201410505880 A CN 201410505880A CN 104283780 B CN104283780 B CN 104283780B
Authority
CN
China
Prior art keywords
path
data transmission
data
data transfer
routing iinformation
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
CN201410505880.8A
Other languages
Chinese (zh)
Other versions
CN104283780A (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410505880.8A priority Critical patent/CN104283780B/en
Publication of CN104283780A publication Critical patent/CN104283780A/en
Application granted granted Critical
Publication of CN104283780B publication Critical patent/CN104283780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method and apparatus for establishing data transfer path, belong to network technique field.Methods described includes:It is determined that the routing iinformation of at least two data transmission paths of the local target exit port for reaching convergence switch, according to the routing iinformation in first data transmission path at least two data transmission paths, establish first data transmission path, when detecting that first data transmission path is broken down, in at least two data transmission paths, choose the second data transfer path in addition to first data transmission path, obtain the routing iinformation of the second data transfer path, according to the routing iinformation of the second data transfer path, the second data transfer path is established.Using the present invention, it is possible to reduce the delay of data transfer.

Description

The method and apparatus for establishing data transfer path
Technical field
The present invention relates to network technique field, more particularly to a kind of method and apparatus for establishing data transfer path.
Background technology
With the continuous development of network technology, it is increasing by the data volume of the Internet transmission, thus to Netowrk tape Wide requirement more and more higher, in order to meet the needs of network bandwidth, many data centers use and are based on IB (InfiniBand, nothing Limit bandwidth) framework network interconnection technology, server can by its installation openSM (open Subnet Manager, are opened The subnet management put) application program is managed to the data transfer of whole network.
In IB network architectures, the port of server is connected with access switch, and access switch connects with convergence switch Connect, each exit port of convergence switch can be with data storage device or analytical equipment (for carrying out the storage of data and dividing Analysis) connection.Server is by port to access switch, convergence switch sending port data collection request, access switch The transmission state information such as the message transmission rate of its each port, Packet Error Rate and packet loss is sent to service with convergence switch Device, server is according to above- mentioned information, by calculating the data for determining to reach convergence switch exit port (i.e. target exit port) The routing iinformation of transmission path, the routing iinformation can include the route that the routing iinformation locally used and access switch use Information, then, a data transmission path of the target exit port of convergence switch is established to according to the routing iinformation, when need When certain data in server are sent into target port, server can be by the data transfer path of foundation by the data It is sent to target exit port.Server can be periodically detected to the data transfer path, if detecting that the data pass Some port in defeated path is broken down, and server, which will recalculate, determines that a new data for reaching target exit port pass The routing iinformation in defeated path, new data transfer path is set up according to the routing iinformation, so as to which corresponding data are led to Cross the data transfer path and be transferred to target exit port.
During the present invention is realized, inventor has found that prior art at least has problems with:
In the handoff procedure of data transfer path, server needs to recalculate the data transfer for reaching target exit port Path, when recalculating data transfer path, if there is the data for needing to transmit to target exit port, then it can cause data The delay of transmission.
The content of the invention
In order to solve problem of the prior art, the embodiments of the invention provide a kind of method for establishing data transfer path and Device.The technical scheme is as follows:
First aspect, there is provided a kind of method for establishing data transfer path, methods described include:
It is determined that the routing iinformation of at least two data transmission paths of the local target exit port for reaching convergence switch;
According to the routing iinformation in first data transmission path at least two data transmission paths, described first is established Data transfer path;
When detecting that the first data transmission path is broken down, at least two data transmission paths, The second data transfer path in addition to the first data transmission path is chosen, obtains the route of second data transfer path Information;
According to the routing iinformation of second data transfer path, second data transfer path is established.
It is described when detecting first number with reference in a first aspect, in the first possible implementation of first aspect When being broken down according to transmission path, at least two data transmission paths, selection removes the first data transmission path The second outer data transfer path, the routing iinformation of second data transfer path is obtained, including:
When reaching predetermined period, the transmission state information of each port in the first data transmission path is obtained;
If determine transmission state to be present in the first data transmission path according to the transmission state information abnormal Port, then judge that the first data transmission path is broken down, at least two data transmission paths, selection removes The second data transfer path outside the first data transmission path, obtain the routing iinformation of second data transfer path.
With reference in a first aspect, may be in implementation at second of first aspect, at least two numbers described in the basis According to the routing iinformation in first data transmission path in transmission path, establish after the first data transmission path, methods described Also include:
When reaching predetermined period, the transmission state information of each port at least two data transmission paths described in acquisition;
If the 3rd data transmission route in addition to the first data transmission path is determined according to the transmission state information The abnormal port of transmission state in footpath be present, then cancel the 3rd data transfer path, delete the 3rd data transfer The routing iinformation in path.
With reference in a first aspect, in the third possible implementation of first aspect, the routing iinformation includes the first via By information and secondary route information;
The routing iinformation according to second data transfer path, second data transfer path is established, including:
Access switch into second data transfer path, which is sent, carries second data transfer path Message is established in the path of first routing iinformation, and/or the routing iinformation of local is replaced with into the secondary route information.
With reference in a first aspect, in the 4th kind of possible implementation of first aspect, at least two numbers described in the basis According to the routing iinformation in first data transmission path in transmission path, the first data transmission path is established, including:
The transmission state information of each port at least two data transmission paths, at least two numbers The first data transmission path optimal according to port transmission state in transmission path, is determined;
According to the routing iinformation in the first data transmission path, the first data transmission path is established.
Second aspect, there is provided a kind of device for establishing data transfer path, described device include:
Determining module, for determining at least two data transmission paths of the local target exit port for reaching convergence switch Routing iinformation;
Module is established, the route letter for first data transmission path at least two data transmission paths according to Breath, establishes the first data transmission path;
Acquisition module, for when detecting that the first data transmission path is broken down, at least two numbers According to the second data transfer path in transmission path, chosen in addition to the first data transmission path, second data are obtained The routing iinformation of transmission path;
It is described to establish module, the routing iinformation according to second data transfer path is additionally operable to, establishes second number According to transmission path.
With reference to second aspect, in the first possible implementation of second aspect, the acquisition module, it is used for:
When reaching predetermined period, the transmission state information of each port in the first data transmission path is obtained;
If determine transmission state to be present in the first data transmission path according to the transmission state information abnormal Port, then judge that the first data transmission path is broken down, at least two data transmission paths, selection removes The second data transfer path outside the first data transmission path, obtain the routing iinformation of second data transfer path.
With reference to second aspect, in second of possible implementation of second aspect, described device also includes removing module, For:
When reaching predetermined period, the transmission state information of each port at least two data transmission paths described in acquisition;
If the 3rd data transmission route in addition to the first data transmission path is determined according to the transmission state information The abnormal port of transmission state in footpath be present, then cancel the 3rd data transfer path, delete the 3rd data transfer The routing iinformation in path.
With reference to second aspect, in the third possible implementation of second aspect, the routing iinformation includes the first via By information and secondary route information;
It is described to establish module, it is used for:
Access switch into second data transfer path, which is sent, carries second data transfer path Message is established in the path of first routing iinformation, and/or the routing iinformation of local is replaced with into the secondary route information.
It is described to establish module in the 4th kind of possible implementation of second aspect with reference to second aspect, it is used for:
The transmission state information of each port at least two data transmission paths, at least two numbers The first data transmission path optimal according to port transmission state in transmission path, is determined;
According to the routing iinformation in the first data transmission path, the first data transmission path is established.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
In the embodiment of the present invention, it is determined that at least two datas transmission road of the local target exit port for reaching convergence switch The routing iinformation in footpath, according to the routing iinformation in first data transmission path at least two data transmission paths, establish the first number According to transmission path, when detecting that first data transmission path is broken down, at least two data transmission paths, selection removes The second data transfer path outside first data transmission path, the routing iinformation of the second data transfer path is obtained, according to second The routing iinformation of data transfer path, the second data transfer path is established, so, server can establish at least two datas biography Defeated path, in the handoff procedure of data transfer path, server can be chosen at least two data transmission paths except The second data transfer path outside the first data transmission path of foundation, and can be passed by the second data transfer path of foundation Transmission of data, it is thus possible to reduce the delay of data transfer.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of method flow diagram for establishing data transfer path provided in an embodiment of the present invention;
Fig. 2 is a kind of connection diagram of system provided in an embodiment of the present invention;
Fig. 3 is a kind of method flow diagram for establishing data transfer path provided in an embodiment of the present invention;
Fig. 4 is a kind of apparatus structure schematic diagram for establishing data transfer path provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of server provided in an embodiment of the present invention.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Embodiment one
The embodiments of the invention provide a kind of method for establishing data transfer path, as shown in figure 1, the processing stream of this method Journey can include the steps:
Step 101, it is determined that the road of at least two data transmission paths of the local target exit port for reaching convergence switch By information.
Step 102, according to the routing iinformation in first data transmission path at least two data transmission paths, first is established Data transfer path.
Step 103, when detecting that first data transmission path is broken down, at least two data transmission paths, The second data transfer path in addition to first data transmission path is chosen, obtains the routing iinformation of the second data transfer path.
Step 104, according to the routing iinformation of the second data transfer path, the second data transfer path is established.
In the embodiment of the present invention, it is determined that at least two datas transmission road of the local target exit port for reaching convergence switch The routing iinformation in footpath, according to the routing iinformation in first data transmission path at least two data transmission paths, establish the first number According to transmission path, when detecting that first data transmission path is broken down, at least two data transmission paths, selection removes The second data transfer path outside first data transmission path, the routing iinformation of the second data transfer path is obtained, according to second The routing iinformation of data transfer path, the second data transfer path is established, so, server can establish at least two datas biography Defeated path, in the handoff procedure of data transfer path, server can be chosen at least two data transmission paths except The second data transfer path outside the first data transmission path of foundation, and can be passed by the second data transfer path of foundation Transmission of data, it is thus possible to reduce the delay of data transfer.
Embodiment two
The embodiments of the invention provide a kind of method for establishing data transfer path, the executive agent of this method is service Device.Wherein, server can be the server for being provided with openSM application programs, and be risen in subnet of the server where it Control action.
Below in conjunction with embodiment, the handling process shown in Fig. 1 is described in detail, content can be as Under:
Step 101, it is determined that the road of at least two data transmission paths of the local target exit port for reaching convergence switch By information.
In force, IB networks are a networks with unified interconnection architecture, are mainly used in large-scale or small-sized Data center, IB networks can provide high bandwidth, the data transfer of low latency in relatively short distance, can be wrapped in IB networks Include convergence switch, multiple servers and multiple access switch, each server in multiple servers can be provided with OpenSM application programs, wherein, openSM application programs are to realize the basis based on IB network interconnections, mainly realize opening up for network The functions such as discovery, the calculating of data transfer path and the generation of routing iinformation are flutterred, wherein, there can only be a master in a subnet OpenSM, for being managed to whole subnet, the openSM in other servers can be backup openSM, furthermore, it is possible to Backup openSM startup number is determined by main openSM.In IB networks, in order to ensure to transmit the data in server in time To target exit port, the annexation between the server in IB networks, access switch and convergence switch can be carried out Set, you can so that each port of server to be connected from different access switch, in order to ensure the reliability of data transfer, The exit port of at least two access switch can be connected with convergence switch, as shown in Fig. 2 convergence switch be provided with it is more Individual exit port, convergence switch can be connected by exit port with storage device or for the analytical equipment of data analysis, can be with The data transfer of the exit port of convergence switch be will be transmitted into the storage device or analytical equipment, storage device or analysis are set It is standby the operation such as obtained data to be stored or be analyzed.Connection server, access switch and remittance through the above way After poly- interchanger, it may be determined that the data transmission route of some exit port (i.e. target exit port) of server to convergence switch Footpath, specifically, main openSM server can ask to access switch and convergence switch sending port transmission state, connect Enter after interchanger receives port transmission status request, message transmission rate, Packet Error Rate and the packet loss of each port can be obtained Etc. information, and the transmission state information of each port is generated by above- mentioned information, be sent to server, similarly, convergence switch The transmission state information of obtained each port can be sent to, server receives each port by server by said process Transmission state information after, can by calculate, it is determined that reach target exit port at least two data transmission paths, by extremely Few two data transmission paths, generate the routing iinformation per data transmission path, the routing iinformation can be stored in service In device.For example, as shown in Fig. 2 server includes two source ports, i.e., 1 and 2, it is connected respectively with an access switch, wherein Two exit ports 5 and 6 of one access switch are connected with the port 11 and 12 of convergence switch respectively, and another access exchanges Two exit ports 9 and 10 of machine are connected with the port 13 and 14 of convergence switch respectively, can be true by above-mentioned connection server Surely four data transmission paths of convergence switch target exit port 15 are arrived, it is then possible to by the connection status of each port, it is raw Into the routing iinformation of every data transmission path, and store.
Step 102, according to the routing iinformation in first data transmission path at least two data transmission paths, first is established Data transfer path.
Wherein, routing iinformation can be the mark of each port in data transfer path, such as port numbers.
In force, can be in above-mentioned data transfer path after server determines at least two data transmission paths Any selection a data transmission path (i.e. first data transmission path), server can pass at least two datas of storage In the routing iinformation in defeated path, the routing iinformation in first data transmission path is found, the routing iinformation found can be sent out Access switch is sent to, server can also delete currently used routing iinformation, by the phase in first data transmission path Routing iinformation is answered to be arranged to arrive at the routing iinformation of target exit port, such server, access switch have obtained corresponding The routing iinformation of one data transfer path, the data transfer path that server reaches target exit port are established.Wherein, the of foundation One data transfer path is referred to as master data transfer path, first data transmission road being removed at least two data transmission paths Other data transfer paths outside footpath are properly termed as preliminary data transmission path.
Alternatively, server establish the processing mode in first data transmission path can be with varied, one kind presented below Optional processing mode, specifically may comprise steps of:
Step 1, the transmission state information of each port at least two data transmission paths, at least two numbers The first data transmission path optimal according to port transmission state in transmission path, is determined.
In force, each port at least two data transmission paths that server can be got by step 101 Transmission state information, message transmission rate, Packet Error Rate and packet loss of the transmission state information including port etc., server will The transmission state information of the port of same type equipment is contrasted in any two datas transmission path, record transmission state compared with The mark of good port, the rest may be inferred, it may be determined that the optimal a data transmission path of exit port transmission state (the i.e. first number According to transmission path).For example, the example based on step 101, server can pass through above-mentioned side from four data transmission paths Formula determines the optimal a data transmission path of port transmission state (i.e. first data transmission path), such as data transfer path 1→4→5→11→15。
Step 2, according to the routing iinformation in first data transmission path, establish first data transmission path.
In force, server can find at least routing iinformation of two data transmission paths of storage The routing iinformation of one data transfer path, and corresponding routing iinformation is notified to server and access switch, so as to establish Server is to the first data transmission path of target exit port.
Alternatively, server can will appear from other data transfer paths in addition to first data transmission path of failure and take Disappear, specifically may comprise steps of:
Step 1, when reaching predetermined period, obtain the transmission state letter of each port at least two data transmission paths Breath.
In force, server can pre-set a cycle, for judging each port in each data transfer path Transmission state it is whether normal, when reaching predetermined period, server can obtain respectively to be held at least two data transmission paths The mark of mouth, and then port transmission status request is generated, it is sent to access switch and convergence switch, access switch and remittance Poly- interchanger can obtain the information such as message transmission rate, Packet Error Rate and the packet loss of corresponding port, and be given birth to by above- mentioned information Into the transmission state information of port, server is sent to.
Step 2, if determining the 3rd data transfer path in addition to first data transmission path according to transmission state information In the abnormal port of transmission state be present, then cancel the 3rd data transfer path, delete the 3rd data transfer path route Information.
Wherein, the 3rd data transfer path can be at least two data transmission paths, except first data transmission path Outer any data transmission path.
In force, server can determine at least two data transfer paths by the transmission state information received In each port it is whether normal, for example, can be by the message transmission rate of certain port and the default message transmission rate in the port Compare, if the message transmission rate is less than default message transmission rate, judge that the port is normal, otherwise, the port is not Normally, if server is judged in certain data transmission path (i.e. the 3rd data transfer path) in addition to first data transmission path The abnormal port of transmission state be present, server can cancel the 3rd data transfer path, will can be stored in server The routing iinformation of 3rd data transfer path is deleted.
It should be noted that server can be by the local target exit port for reaching convergence switch determined at least The routing iinformation of two data transmission paths is sent to access switch, can be by way of priority to master data transfer road Footpath is configured, and specifically, server can determine that a data passes by the routing iinformation of at least two data transmission paths Defeated path (i.e. first data transmission path) is used as master data transfer path, and is notified to access switch transmitting path, so that The priority of the corresponding routing iinformation in first data transmission path is arranged to highest by access switch, so as to establish the first data Transmission path.
Step 103, when detecting that first data transmission path is broken down, at least two data transmission paths, The second data transfer path in addition to first data transmission path is chosen, obtains the routing iinformation of the second data transfer path.
In force, server can detect to the transmission state of at least two data transmission paths of its determination, The detection process can periodically be carried out, for example, server is often through after an hour just at least two data transmission paths Transmission state detected, to determine whether the transmission state of each data transfer path good, if detecting the first data Transmission path breaks down, such as some port damage in the first transmission path, and now, server can pass through the first data The mark of the source port of transmission path and the mark of target exit port, find at least two datas transmission road corresponding thereto Footpath, and the second data transfer path in addition to first data transmission path is selected wherein, select the second data transfer path Process can be in other data transfer paths in addition to first data transmission path arbitrarily choose a data transfer Path can also be chosen, such as determined from other data transfer paths by other means as the second data transfer path The optimal data transfer path of a data transmission state, as the second data transfer path, then, server can be by this Data transfer path, finds the server corresponding with the data transfer path in the routing iinformation of storage and access exchanges The routing iinformation of machine.
Alternatively, the processing mode that whether server detection first data transmission path breaks down can with varied, A kind of optional processing mode presented below, specifically may comprise steps of:
Step 1, when reaching predetermined period, obtain the transmission state information of each port in first data transmission path.
The processing procedure of above-mentioned steps one may refer to above-mentioned related content, will not be repeated here.
Step 2, if determining transmission state to be present in first data transmission path according to transmission state information abnormal Port, then judge that first data transmission path is broken down, at least two data transmission paths, choose except the first data pass The second data transfer path outside defeated path, obtain the routing iinformation of the second data transfer path.
Whether break down and obtain the second data transfer path in judgement first data transmission path in above-mentioned steps two The processing procedure of routing iinformation may refer to above-mentioned related content, will not be repeated here.
Step 104, according to the routing iinformation of the second data transfer path, the second data transfer path is established.
In force, server can be established by routing iinformation to access switch and convergence switch transmitting path Corresponding port can be set ID of trace route path by notice, access switch and convergence switch, so as to establish server to target Second data transfer path of exit port.
Alternatively, routing iinformation can include the first routing iinformation and secondary route information, then corresponding above-mentioned steps 104 Processing procedure can include herein below:Access switch into the second data transfer path, which is sent, carries the second data Message is established in the path of first routing iinformation of transmission path, and/or the routing iinformation of local is replaced with into secondary route information.
In force, routing iinformation can include the first routing iinformation and secondary route information, wherein, the first routing iinformation The exit port mark of mark including source port, the mark of target exit port and access switch, secondary route information include source The currently used routing iinformation of server can be used secondary route by mark, the mark of target exit port of port, server Information is replaced, and the first routing iinformation is sent into access switch, when access switch receives the first routing iinformation, by it Routing iinformation corresponding to the source port of current storage, target exit port replaces with the first routing iinformation, so as to which server is established and arrived Second data transfer path of target exit port.
In the embodiment of the present invention, it is determined that at least two datas transmission road of the local target exit port for reaching convergence switch The routing iinformation in footpath, according to the routing iinformation in first data transmission path at least two data transmission paths, establish the first number According to transmission path, when detecting that first data transmission path is broken down, at least two data transmission paths, selection removes The second data transfer path outside first data transmission path, the routing iinformation of the second data transfer path is obtained, according to second The routing iinformation of data transfer path, the second data transfer path is established, so, server can establish at least two datas biography Defeated path, in the handoff procedure of data transfer path, server can be chosen at least two data transmission paths except The second data transfer path outside the first data transmission path of foundation, and can be passed by the second data transfer path of foundation Transmission of data, it is thus possible to reduce the delay of data transfer.
Embodiment three
Below in conjunction with specific application scenarios, the method for establishing data transfer path provided the embodiment of the present invention It is described in detail, server can be the server for being provided with openSM application programs, and based on the openSM in server openSM.As shown in figure 3, following processing step can be included:
Step 301, server determines at least two datas transmission road of the local target exit port for reaching convergence switch The routing iinformation in footpath.
Step 302, server is asked to access switch and convergence switch sending port transmission state.
Step 303, interchanger and convergence switch obtain the transmission state information of each port, and are sent respectively to service Device.
Step 304, the transmission state information of each port of the server at least two data transmission paths, at least In two data transmission paths, the optimal first data transmission path of port transmission state is determined.
Step 305, server notice access switch and local, first data transmission is replaced with by respective routing iinformation Corresponding routing iinformation in path.
Step 306, when reaching predetermined period, server sends at least two numbers to access switch and convergence switch Asked according to the transmission state of each port in transmission path.
Step 307, interchanger and convergence switch obtain the transmission state information of corresponding port, and are sent respectively to service Device.
Step 308, if determine that first data transmission path is broken down according to transmission state information, at least two In data transfer path, the second data transfer path in addition to first data transmission path is chosen, obtains the second data transmission route The routing iinformation in footpath.
Step 309, the access switch into the second data transfer path sends and carries the second data transfer path Message is established in the path of first routing iinformation, and/or the routing iinformation of local is replaced with into secondary route information.
Step 310, if determining the 3rd data transmission route in addition to first data transmission path according to transmission state information The abnormal port of transmission state in footpath be present, then server cancels the 3rd data transfer path, deletes the 3rd data transmission route The routing iinformation in footpath.
Above-mentioned steps 301-310 specific processing mode is referred to the related content in embodiment two, no longer superfluous herein State.
In the embodiment of the present invention, it is determined that at least two datas transmission road of the local target exit port for reaching convergence switch The routing iinformation in footpath, according to the routing iinformation in first data transmission path at least two data transmission paths, establish the first number According to transmission path, when detecting that first data transmission path is broken down, at least two data transmission paths, selection removes The second data transfer path outside first data transmission path, the routing iinformation of the second data transfer path is obtained, according to second The routing iinformation of data transfer path, the second data transfer path is established, so, server can establish at least two datas biography Defeated path, in the handoff procedure of data transfer path, server can be chosen at least two data transmission paths except The second data transfer path outside the first data transmission path of foundation, and can be passed by the second data transfer path of foundation Transmission of data, it is thus possible to reduce the delay of data transfer.
Example IV
Based on identical technical concept, the embodiment of the present invention additionally provides a kind of device for establishing data transfer path, such as Shown in Fig. 4, the device includes:
Determining module 410, for determining at least two datas transmission of the local target exit port for reaching convergence switch The routing iinformation in path;
Module 420 is established, for the routing iinformation according to first data transmission path at least two data transmission paths, Establish first data transmission path;
Acquisition module 430, for when detecting that first data transmission path is broken down, being transmitted at least two datas In path, the second data transfer path in addition to first data transmission path is chosen, obtains the route of the second data transfer path Information;
Module 420 is established, is additionally operable to the routing iinformation according to the second data transfer path, establishes the second data transmission route Footpath.
Alternatively, acquisition module 430, it is used for:
When reaching predetermined period, the transmission state information of each port in first data transmission path is obtained;
If determining the abnormal port of transmission state in first data transmission path be present according to transmission state information, Judge that first data transmission path is broken down, at least two data transmission paths, selection removes first data transmission path The second outer data transfer path, obtain the routing iinformation of the second data transfer path.
Alternatively, the device also includes removing module, is used for:
When reaching predetermined period, the transmission state information of each port at least two data transmission paths is obtained;
If determine exist in the 3rd data transfer path in addition to first data transmission path according to transmission state information The abnormal port of transmission state, then cancel the 3rd data transfer path, delete the routing iinformation of the 3rd data transfer path.
Alternatively, routing iinformation includes the first routing iinformation and secondary route information;
Module 420 is established, is used for:
Access switch into the second data transfer path send carry the first via of the second data transfer path by Message is established in the path of information, and/or the routing iinformation of local is replaced with into secondary route information.
Alternatively, module 420 is established, is used for:
The transmission state information of each port at least two data transmission paths, road is transmitted at least two datas In footpath, the optimal first data transmission path of port transmission state is determined;
According to the routing iinformation in first data transmission path, first data transmission path is established.
In the embodiment of the present invention, it is determined that at least two datas transmission road of the local target exit port for reaching convergence switch The routing iinformation in footpath, according to the routing iinformation in first data transmission path at least two data transmission paths, establish the first number According to transmission path, when detecting that first data transmission path is broken down, at least two data transmission paths, selection removes The second data transfer path outside first data transmission path, the routing iinformation of the second data transfer path is obtained, according to second The routing iinformation of data transfer path, the second data transfer path is established, so, server can establish at least two datas biography Defeated path, in the handoff procedure of data transfer path, server can be chosen at least two data transmission paths except The second data transfer path outside the first data transmission path of foundation, and can be passed by the second data transfer path of foundation Transmission of data, it is thus possible to reduce the delay of data transfer.
It should be noted that:The device for establishing data transfer path of above-described embodiment offer is establishing data transfer path When, only with the division progress of above-mentioned each functional module for example, in practical application, above-mentioned function can be divided as needed With by different functional module completions, i.e., the internal structure of server is divided into different functional modules, to complete to retouch above The all or part of function of stating.In addition, the device for establishing data transfer path that above-described embodiment provides is with establishing data biography The embodiment of the method in defeated path belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
Embodiment five
Fig. 5 is refer to, it illustrates the structural representation of the server involved by the embodiment of the present invention, the server can be with For the method for establishing data transfer path for implementing to provide in above-described embodiment.Specifically:
Server 1000 can produce bigger difference because configuration or performance are different, can include one or more Central processing unit (central processing units, CPU) 1022 (for example, one or more processors) and storage The storage medium 1030 (such as one or one of device 1032, one or more storage application programs 1042 or data 1044 Above mass memory unit).Wherein, memory 1032 and storage medium 1030 can be of short duration storage or persistently storage.Storage One or more modules (diagram is not shown) can be included in the program of storage medium 1030, each module can include pair Series of instructions operation in server.Further, central processing unit 1022 could be arranged to logical with storage medium 1030 Letter, the series of instructions operation in storage medium 1030 is performed on server 1000.Server 1000 can also include one Or more than one power supply 1026, one or more wired or wireless network interfaces 1050, one or more inputs are defeated Outgoing interface 1058, one or more keyboards 1056, and/or, one or more operating systems 1041, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..Specifically in the present embodiment, clothes Business device includes memory, and one or more program, and one of them or more than one program storage is in storage In device, and one or more than one program can include one or more modules, and each module can be included to clothes The series of instructions operation being engaged in device, and be configured to by one either more than one computing device this or one with Upper program bag contains the instruction for being used for being operated below:
It is determined that the routing iinformation of at least two data transmission paths of the local target exit port for reaching convergence switch;
According to the routing iinformation in first data transmission path at least two data transmission paths, first data transmission is established Path;
When detecting that first data transmission path is broken down, at least two data transmission paths, choose except the The second data transfer path outside one data transfer path, obtain the routing iinformation of the second data transfer path;
According to the routing iinformation of the second data transfer path, the second data transfer path is established.
Alternatively, when detecting that first data transmission path is broken down, at least two data transmission paths, choosing The second data transfer path outside first data transmission path is removed, obtains the routing iinformation of the second data transfer path, including:
When reaching predetermined period, the transmission state information of each port in first data transmission path is obtained;
If determining the abnormal port of transmission state in first data transmission path be present according to transmission state information, Judge that first data transmission path is broken down, at least two data transmission paths, selection removes first data transmission path The second outer data transfer path, obtain the routing iinformation of the second data transfer path.
Alternatively, according to the routing iinformation in first data transmission path at least two data transmission paths, first is established After data transfer path, this method also includes:
When reaching predetermined period, the transmission state information of each port at least two data transmission paths is obtained;
If determine exist in the 3rd data transfer path in addition to first data transmission path according to transmission state information The abnormal port of transmission state, then cancel the 3rd data transfer path, delete the routing iinformation of the 3rd data transfer path.
Alternatively, routing iinformation includes the first routing iinformation and secondary route information;
According to the routing iinformation of the second data transfer path, the second data transfer path is established, including:
Access switch into the second data transfer path send carry the first via of the second data transfer path by Message is established in the path of information, and/or the routing iinformation of local is replaced with into secondary route information.
Alternatively, according to the routing iinformation in first data transmission path at least two data transmission paths, first is established Data transfer path, including:
The transmission state information of each port at least two data transmission paths, road is transmitted at least two datas In footpath, the optimal first data transmission path of port transmission state is determined;
According to the routing iinformation in first data transmission path, first data transmission path is established.
During the present invention is implemented, it is determined that at least two data transmission paths of the local target exit port for reaching convergence switch Routing iinformation, according to the routing iinformation in first data transmission path at least two data transmission paths, establish the first data Transmission path, when detecting that first data transmission path is broken down, at least two data transmission paths, choose except the The second data transfer path outside one data transfer path, the routing iinformation of the second data transfer path is obtained, according to the second number According to the routing iinformation of transmission path, the second data transfer path is established, so, server can establish the transmission of at least two datas Path, in the handoff procedure of data transfer path, server can be chosen at least two data transmission paths remove it is built The second data transfer path outside vertical first data transmission path, and can be transmitted by the second data transfer path of foundation Data, it is thus possible to reduce the delay of data transfer.
One of ordinary skill in the art will appreciate that hardware can be passed through by realizing all or part of step of above-described embodiment To complete, by program the hardware of correlation can also be instructed to complete, described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent substitution and improvements made etc., it should be included in the scope of the protection.

Claims (8)

  1. A kind of 1. method for establishing data transfer path, it is characterised in that methods described includes:
    It is determined that the routing iinformation of at least two data transmission paths of the local target exit port for reaching convergence switch;
    According to the routing iinformation in first data transmission path at least two data transmission paths, first data are established Transmission path;
    When reaching predetermined period, the transmission state information of each port, described at least two data transmission paths described in acquisition Transmission state information is generated according to the message transmission rate of each port, Packet Error Rate and packet loss information;
    If determined according to the transmission state information in the 3rd data transfer path in addition to the first data transmission path The abnormal port of transmission state be present, then cancel the 3rd data transfer path, delete the 3rd data transfer path Routing iinformation;
    When detecting that the first data transmission path is broken down, at least two data transmission paths, choose The second data transfer path of data transmission state most preferably in addition to the first data transmission path, obtains second data The routing iinformation of transmission path;
    According to the routing iinformation of second data transfer path, second data transfer path is established.
  2. 2. according to the method for claim 1, it is characterised in that described to detect that the first data transmission path occurs During failure, at least two data transmission paths, the data transfer shape in addition to the first data transmission path is chosen The second optimal data transfer path of state, the routing iinformation of second data transfer path is obtained, including:
    When reaching predetermined period, the transmission state information of each port in the first data transmission path is obtained;
    If determine the abnormal end of transmission state in the first data transmission path be present according to the transmission state information Mouthful, then judge that the first data transmission path is broken down, at least two data transmission paths, choose except described The second data transfer path of data transmission state most preferably outside first data transmission path, obtains second data transmission route The routing iinformation in footpath.
  3. 3. according to the method for claim 1, it is characterised in that the routing iinformation includes the first routing iinformation and the second tunnel By information;
    The routing iinformation according to second data transfer path, second data transfer path is established, including:
    Access switch into second data transfer path, which is sent, carries the first of second data transfer path Message is established in the path of routing iinformation, and/or the routing iinformation of local is replaced with into the secondary route information.
  4. 4. according to the method for claim 1, it is characterised in that the at least two data transmission paths described in the basis The routing iinformation of one data transfer path, the first data transmission path is established, including:
    The transmission state information of each port at least two data transmission paths, passed at least two datas In defeated path, the optimal first data transmission path of port transmission state is determined;
    According to the routing iinformation in the first data transmission path, the first data transmission path is established.
  5. 5. a kind of device for establishing data transfer path, it is characterised in that described device includes:
    Determining module, the road of at least two data transmission paths for determining the local target exit port for reaching convergence switch By information;
    Module is established, for the routing iinformation in first data transmission path at least two data transmission paths according to, is built Stand the first data transmission path;
    Removing module, for when reaching predetermined period, obtain described at least two data transmission paths each port transmission Status information, the transmission state information are generated according to the message transmission rate of each port, Packet Error Rate and packet loss information; If determine exist in the 3rd data transfer path in addition to the first data transmission path according to the transmission state information The abnormal port of transmission state, then cancel the 3rd data transfer path, delete the road of the 3rd data transfer path By information;
    Acquisition module, for when detecting that the first data transmission path is broken down, being passed at least two datas In defeated path, the second data transfer path of data transmission state most preferably in addition to the first data transmission path is chosen, is obtained Take the routing iinformation of second data transfer path;
    It is described to establish module, the routing iinformation according to second data transfer path is additionally operable to, second data is established and passes Defeated path.
  6. 6. device according to claim 5, it is characterised in that the acquisition module, be used for:
    When reaching predetermined period, the transmission state information of each port in the first data transmission path is obtained;
    If determine the abnormal end of transmission state in the first data transmission path be present according to the transmission state information Mouthful, then judge that the first data transmission path is broken down, at least two data transmission paths, choose except described The second data transfer path of data transmission state most preferably outside first data transmission path, obtains second data transmission route The routing iinformation in footpath.
  7. 7. device according to claim 5, it is characterised in that the routing iinformation includes the first routing iinformation and the second tunnel By information;
    It is described to establish module, it is used for:
    Access switch into second data transfer path, which is sent, carries the first of second data transfer path Message is established in the path of routing iinformation, and/or the routing iinformation of local is replaced with into the secondary route information.
  8. 8. device according to claim 5, it is characterised in that it is described to establish module, it is used for:
    The transmission state information of each port at least two data transmission paths, passed at least two datas In defeated path, the optimal first data transmission path of port transmission state is determined;
    According to the routing iinformation in the first data transmission path, the first data transmission path is established.
CN201410505880.8A 2014-09-26 2014-09-26 The method and apparatus for establishing data transfer path Active CN104283780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410505880.8A CN104283780B (en) 2014-09-26 2014-09-26 The method and apparatus for establishing data transfer path

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410505880.8A CN104283780B (en) 2014-09-26 2014-09-26 The method and apparatus for establishing data transfer path

Publications (2)

Publication Number Publication Date
CN104283780A CN104283780A (en) 2015-01-14
CN104283780B true CN104283780B (en) 2018-03-13

Family

ID=52258278

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410505880.8A Active CN104283780B (en) 2014-09-26 2014-09-26 The method and apparatus for establishing data transfer path

Country Status (1)

Country Link
CN (1) CN104283780B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9722694B2 (en) * 2015-09-11 2017-08-01 Microsoft Technology Licensing, Llc Backup communications scheme in computer networks
CN105897615A (en) * 2015-09-14 2016-08-24 乐视云计算有限公司 Data transmission method and device
US11102690B2 (en) 2016-12-28 2021-08-24 Huawei Technologies Co., Ltd. Data sending method, data receiving method, data transmit end, and data receive end
CN112039772B (en) * 2017-06-29 2024-04-09 华为技术有限公司 Transmission path determining method and node
CN109951738B (en) * 2017-12-21 2022-02-01 腾讯数码(天津)有限公司 Transmission path acquisition method, first electronic device, and readable storage medium
CN111064591B (en) * 2018-10-16 2021-03-26 杭州海康威视数字技术股份有限公司 Data aggregation method, device, equipment, storage medium and system
CN111817955B (en) * 2019-04-12 2022-10-21 阿里巴巴集团控股有限公司 Data transmission system, method, device and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281200A (en) * 2011-08-24 2011-12-14 华为技术有限公司 Method for selecting current backup route and router
CN102594667A (en) * 2012-02-03 2012-07-18 中兴通讯股份有限公司 Method and device for realizing fast heavy route redundancy protection

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100486216C (en) * 2005-07-15 2009-05-06 华为技术有限公司 Method for improving transmission reliability in virtual exchange system
CN101227371B (en) * 2008-02-18 2011-06-22 中兴通讯股份有限公司 Method and apparatus of backup switch among same level switch equipments
CN103647710A (en) * 2013-11-01 2014-03-19 华为技术有限公司 Path configuration method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281200A (en) * 2011-08-24 2011-12-14 华为技术有限公司 Method for selecting current backup route and router
CN102594667A (en) * 2012-02-03 2012-07-18 中兴通讯股份有限公司 Method and device for realizing fast heavy route redundancy protection

Also Published As

Publication number Publication date
CN104283780A (en) 2015-01-14

Similar Documents

Publication Publication Date Title
CN104283780B (en) The method and apparatus for establishing data transfer path
US10917322B2 (en) Network traffic tracking using encapsulation protocol
US8438307B2 (en) Method and device of load-sharing in IRF stack
CN104301321B (en) A kind of method and system for realizing distributed network security protection
CN104796298B (en) A kind of method and device of SDN network accident analysis
CN103581062B (en) Method and system for handling unknown unicast data packets
CN105610710A (en) Methods and apparatus for standard protocol validation mechanisms deployed over switch fabric system
CN103618646B (en) Network performance, packet loss, time delay measuring method and network edge node equipment
CN105516292A (en) Hot standby method of cloud platform of intelligent substation
CN104243239B (en) The condition detection method and device of controller in a kind of SDN clusters
CN105227393B (en) A kind of bidirectional forwarding detection (BFD) method
CN107508753A (en) A kind of realization device of things-internet gateway
EP3520325B1 (en) Dynamically identifying criticality of services and data sources
CN106850304B (en) SDN framework-based gateway group method and system
CN106878194A (en) A kind of message processing method and device
CN106603261A (en) Hot backup method, first master device, backup device and communication system
CN103262046A (en) Server management apparatus, server management method, and program
CN113568711B (en) EBPF architecture-based load balancing method and device used in K8S
CN107465611A (en) The pretection switch method and device of SDN controllers and Switch control link
CN105516658B (en) A kind of monitoring device control method and device
CN108449228A (en) Message processing method and the network equipment
CN104639437A (en) Forwarding method and apparatus of broadcast messages in stack system
CN109039959A (en) A kind of the consistency judgment method and relevant apparatus of SDN network rule
CN103220189B (en) Multi-active detection (MAD) backup method and equipment
CN104954165A (en) Link analysis method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160726

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant after: Huawei Technologies Co., Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Applicant before: Shenzhen Huawei Technologies Co., Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220217

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.