[go: up one dir, main page]

CN103312607B - A kind of selection of transmission paths method and device - Google Patents

A kind of selection of transmission paths method and device Download PDF

Info

Publication number
CN103312607B
CN103312607B CN201210061103.XA CN201210061103A CN103312607B CN 103312607 B CN103312607 B CN 103312607B CN 201210061103 A CN201210061103 A CN 201210061103A CN 103312607 B CN103312607 B CN 103312607B
Authority
CN
China
Prior art keywords
packet
detection
sent
transmission path
routing factor
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.)
Expired - Fee Related
Application number
CN201210061103.XA
Other languages
Chinese (zh)
Other versions
CN103312607A (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 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 CN201210061103.XA priority Critical patent/CN103312607B/en
Publication of CN103312607A publication Critical patent/CN103312607A/en
Application granted granted Critical
Publication of CN103312607B publication Critical patent/CN103312607B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供了一种传输路径选择方法及装置,所述方法包括:网络中的第一设备向第一设备与第二设备间的部分或所有传输路径上分别发送包括选路因子、第一探测参数和五元组的探测包,并根据第二设备反馈回的探测响应包选择负载较轻的传输路径的选路因子作为待发送数据包的选路因子。所述方法使得数据总能够避免经由负载重的传输路径传输,从而避免了网络中数据拥塞的问题。

The present invention provides a method and device for selecting a transmission path. The method includes: a first device in the network sends a part or all of the transmission paths between the first device and the second device, including routing factors, first detection parameter and quintuple probe packet, and select the routing factor of the transmission path with light load as the routing factor of the data packet to be sent according to the probe response packet fed back by the second device. The method enables data to always avoid transmission via heavily loaded transmission paths, thereby avoiding the problem of data congestion in the network.

Description

一种传输路径选择方法及装置A transmission path selection method and device

技术领域technical field

本发明涉及通信领域,尤其涉及一种传输路径选择方法及装置。The present invention relates to the communication field, in particular to a transmission path selection method and device.

背景技术Background technique

随着云计算和数据中心的发展,要求网络设备能够提供更大的交换容量,目前,主要通过将多台交换机以胖树(FatTree)的拓扑结构进行级联的方法来实现网络设备交换容量的提升。With the development of cloud computing and data centers, network equipment is required to provide greater switching capacity. At present, the network equipment switching capacity is mainly realized by cascading multiple switches in a fat tree (FatTree) topology. promote.

胖树是一种典型的多级互联的网络结构,例如,在图1所示的胖树网络结构中,每个边缘设备到其它的边缘设备都有4条等价路线,边缘设备发送的数据通过任意一条路线都能到达对端的边缘设备。为了尽量避免网络拥塞的发生,有必要保证每条等价路线的负载均衡,为了实现负载均衡,胖树网络中通常采用基于哈希(HASH)算法的数据路径选择方法,即:分配给每条等价路线数量相同的数据包。但是,由于每个数据包的大小是不同的,所以,现有的数据路径选择方法并不能保证胖树网络结构中的每条等价路线传输的数据流量是均衡的。A fat tree is a typical multi-level interconnected network structure. For example, in the fat tree network structure shown in Figure 1, each edge device has four equivalent routes to other edge devices, and the data sent by the edge device The peer edge device can be reached through any route. In order to avoid the occurrence of network congestion as much as possible, it is necessary to ensure the load balance of each equal-cost route. In order to achieve load balance, the data path selection method based on the hash (HASH) algorithm is usually used in the fat tree network, that is: assigning Packets with the same number of equivalent routes. However, since the size of each data packet is different, the existing data path selection method cannot guarantee that the data traffic transmitted by each equivalent route in the fat tree network structure is balanced.

发明内容Contents of the invention

有鉴于此,本发明提供了一种传输路径选择方法及装置,目的在于解决现有的用于胖树网络结构的路径选择方法不能保证网络中的每条数据传输路径负载均衡的问题。In view of this, the present invention provides a transmission path selection method and device, aiming to solve the problem that the existing path selection method for fat tree network structure cannot guarantee the load balance of each data transmission path in the network.

为实现上述目的,本发明提供了如下技术方案:To achieve the above object, the present invention provides the following technical solutions:

一种传输路径选择方法,包括:A transmission path selection method, comprising:

第一设备依据预设的发送规则向所述第一设备与第二设备间的N条传输路径分别发送探测包k,所述探测包k中包含选路因子k、第一探测参数和五元组,不同传输路径的探测包中的选路因子不同,其中,N为大于1的正整数,k为正整数且k=1、2......M,M为大于或等于N的正整数;The first device sends a detection packet k to the N transmission paths between the first device and the second device according to the preset sending rules, and the detection packet k includes the routing factor k , the first detection parameter and five elements group, the routing factors in the detection packets of different transmission paths are different, wherein, N is a positive integer greater than 1, k is a positive integer and k=1, 2...M, M is greater than or equal to N positive integer;

所述第一设备分别从所述N条传输路径接收所述第二设备响应所述探测包k的探测响应包k,所述探测响应包k中包含选路因子k、第二探测参数和所述五元组;The first device respectively receives a probe response packet k from the second device in response to the probe packet k from the N transmission paths, and the probe response packet k includes a routing factor k , a second probe parameter, and the said five-tuple;

所述第一设备依据所述M个探测响应包,选择待发送数据包的选路因子,并依据所述待发送数据包的选路因子,确定所述待发送数据包的传输路径。The first device selects a routing factor of the data packet to be sent according to the M probe response packets, and determines a transmission path of the data packet to be sent according to the routing factor of the data packet to be sent.

一种路径选择装置,包括:A routing device, comprising:

探测包发送单元,用于依据预设的发送规则向所述第一设备与第二设备间的N条传输路径分别发送探测包k,所述探测包k中包括选路因子k、第一探测参数和五元组,不同传输路径的探测包中的选路因子不同,其中,N为大于1的正整数,k为正整数且k=1、2……M,M为大于或等于N的正整数;A detection packet sending unit, configured to send a detection packet k to the N transmission paths between the first device and the second device according to a preset sending rule, and the detection packet k includes a routing factor k , a first detection Parameters and quintuples, the routing factors in the detection packets of different transmission paths are different, where N is a positive integer greater than 1, k is a positive integer and k=1, 2...M, M is greater than or equal to N positive integer;

探测包接收单元,用于分别从所述N条传输路径接收所述第二设备响应所述探测包k的探测响应包k,所述探测响应包k中包含选路因子k、第二探测参数和所述五元组;A detection packet receiving unit, configured to receive a detection response packet k from the second device in response to the detection packet k from the N transmission paths, and the detection response packet k includes a routing factor k , a second detection parameter and said quintuple;

路径选择单元,用于依据所述M个探测响应包,选择待发送数据包的选路因子,并依据所述待发送数据包的选路因子,确定所述待发送数据包的传输路径。The path selection unit is configured to select a routing factor of the data packet to be sent according to the M probe response packets, and determine a transmission path of the data packet to be sent according to the routing factor of the data packet to be sent.

本发明实施例所述的传输路径选择方法及装置,通过向各个数据传输路径上分别发出探测包,获知各个传输路径上的负载情况,并将负载较轻的传输路径对应的选路因子写入待发送数据包中,以选择此传输路径进行数据包的传输,使得数据包总能够通过选路因子选择负载较轻的传输路径而避免经由负载重的传输路径进行传输,从而实现了网络中传输路径的负载均衡。In the transmission path selection method and device described in the embodiments of the present invention, by sending detection packets to each data transmission path respectively, the load condition on each transmission path is known, and the path selection factor corresponding to the light-loaded transmission path is written into In the data packet to be sent, this transmission path is selected for transmission of the data packet, so that the data packet can always select the transmission path with a lighter load through the routing factor and avoid transmission through the transmission path with a heavy load, thereby realizing transmission in the network Path load balancing.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为胖树结构示意图;Figure 1 is a schematic diagram of a fat tree structure;

图2为本发明实施例应用的网络简化结构的示意图;FIG. 2 is a schematic diagram of a simplified network structure applied in an embodiment of the present invention;

图3为本发明实施例公开的一种传输路径选择方法的流程图;FIG. 3 is a flow chart of a method for selecting a transmission path disclosed in an embodiment of the present invention;

图4为本发明实施例公开的一种传输路径选择方法中第一设备依据预设的发送规则向所述第一设备与第二设备间的N条传输路径上分别发送探测包k的方法的流程图;Fig. 4 is a diagram of a method in which the first device sends detection packets k to the N transmission paths between the first device and the second device according to preset sending rules in a method for selecting a transmission path disclosed in an embodiment of the present invention flow chart;

图5为本发明实施例公开的一种传输路径选择方法中的探测包的结构示意图;FIG. 5 is a schematic structural diagram of a detection packet in a method for selecting a transmission path disclosed in an embodiment of the present invention;

图6为本发明实施例公开的一种传输路径选择装置的结构示意图;FIG. 6 is a schematic structural diagram of a transmission path selection device disclosed in an embodiment of the present invention;

图7为本发明实施例公开的一种传输路径选择装置中探测包发送单元的结构示意图;7 is a schematic structural diagram of a detection packet sending unit in a transmission path selection device disclosed in an embodiment of the present invention;

图8为本发明实施例公开的一种传输路径选择装置中路径选择单元的结构示意图。Fig. 8 is a schematic structural diagram of a path selection unit in a transmission path selection device disclosed in an embodiment of the present invention.

具体实施方式detailed description

本发明公开了一种传输路径选择方法及装置,以解决现有技术中在进行传输路径的选择时,各条传输路径负载不均衡的问题。本发明的总体构思为,网络中的第一设备向第一设备与第二设备间的部分或所有传输路径上分别发送包括选路因子、第一探测参数和五元组的探测包,并根据第二设备反馈回的探测响应包选择负载较轻的传输路径的选路因子作为待发送数据包的选路因子,从而使得待发送数据包在负载较轻的传输路径上进行传输。The invention discloses a transmission path selection method and device to solve the problem in the prior art that the load of each transmission path is unbalanced when selecting the transmission path. The general idea of the present invention is that the first device in the network respectively sends a detection packet including routing factor, first detection parameter and quintuple to some or all transmission paths between the first device and the second device, and according to The probe response packet fed back by the second device selects the routing factor of the transmission path with a lighter load as the routing factor of the data packet to be sent, so that the data packet to be sent is transmitted on the transmission path with a lighter load.

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明公开了一种传输路径选择方法及装置,为叙述方便,下面将结合图2所示的胖树网络,介绍本发明实施例提供的技术方案。需要说明的是,本发明公开的技术方案适用于任何胖树网络,对网络规模不做限定。如图2所示,其中包括终端PC1和PC2、边缘设备S1和S4、中间设备S2和S3,终端PC1和PC2进行数据传输的路径包括S1-S2-S4和S1-S3-S4。The present invention discloses a method and device for selecting a transmission path. For the convenience of description, the technical solutions provided by the embodiments of the present invention will be introduced below in conjunction with the fat tree network shown in FIG. 2 . It should be noted that the technical solutions disclosed in the present invention are applicable to any fat tree network, and the network scale is not limited. As shown in FIG. 2 , it includes terminals PC1 and PC2, edge devices S1 and S4, and intermediate devices S2 and S3. Data transmission paths for terminals PC1 and PC2 include S1-S2-S4 and S1-S3-S4.

本发明公开了一种传输路径选择方法,如图3所示,包括:The invention discloses a transmission path selection method, as shown in Figure 3, comprising:

301:第一设备依据预设的发送规则向所述第一设备与第二设备间的N条传输路径上分别发送探测包k,所述探测包k中包含选路因子k、第一探测参数和五元组,不同的传输路径上的探测包中的选路因子不同;301: The first device sends a detection packet k to the N transmission paths between the first device and the second device according to a preset sending rule, and the detection packet k includes a routing factor k and a first detection parameter And five-tuple, the routing factor in the detection packet on different transmission paths is different;

其中,N为大于1的正整数,k为正整数且k=1、2......M,M为大于或等于N的自然数。Wherein, N is a positive integer greater than 1, k is a positive integer and k=1, 2...M, and M is a natural number greater than or equal to N.

其中,第一设备指的是执行路径选择方法的网络设备,包括路由器,交换机等。第二设备指数据包中指示的目的网络设备,通常是边缘交换机或边缘路由器,例如图2中,从PC1到PC2的传输路径中,第一设备可以为S1、S2或S3,第二设备可以为S4。Wherein, the first device refers to a network device that executes the path selection method, including routers, switches, and the like. The second device refers to the destination network device indicated in the data packet, usually an edge switch or an edge router. For example, in Figure 2, in the transmission path from PC1 to PC2, the first device can be S1, S2 or S3, and the second device can be for S4.

如图2所示,本实施例中,从PC1到PC2的传输路径有两条,则分别向这两条传输路径上发送探测包,即:S1向S1与S4间的两条传输路径上分别发送探测包1和探测包2,探测包1中包括选路因子1、第一探测参数和五元组,探测包2中包括选路因子2、第一探测参数和五元组。需要注意的是,发送到不同传输路径上的探测包中的选路因子是不同的,也就是说,探测包1和探测包2只能被分别发送到不同的路径,而不可能被发送到同一路径上。As shown in Fig. 2, in the present embodiment, there are two transmission paths from PC1 to PC2, and the detection packets are sent to these two transmission paths respectively, that is, S1 sends a detection packet to the two transmission paths between S1 and S4 respectively. Send detection packet 1 and detection packet 2 , detection packet 1 includes routing factor 1 , the first detection parameter and quintuple, and detection packet 2 includes routing factor 2 , the first detection parameter and quintuple. It should be noted that the routing factors in the probe packets sent to different transmission paths are different, that is to say, probe packet 1 and probe packet 2 can only be sent to different paths respectively, and cannot be sent to on the same path.

在实际应用中,第一设备和第二设备间的传输路径可能有多条,可以向全部传输路径都发送探测包,也可以选择一部分发送探测包。探测包的作用为探测通过的传输路径上的各设备的负载情况,发送到一条传输路径的探测包可以为一个,也可以为多个。In practical applications, there may be multiple transmission paths between the first device and the second device, and detection packets may be sent to all transmission paths, or a part of the transmission paths may be selected to send detection packets. The function of the detection packet is to detect the load condition of each device on the passing transmission path, and one or more detection packets can be sent to a transmission path.

如图4所示,第一设备依据预设的发送规则向所述第一设备与第二设备间的N条传输路径上分别发送探测包k的具体过程可以包括:As shown in Figure 4, the specific process of the first device sending the detection packet k to the N transmission paths between the first device and the second device according to the preset sending rule may include:

401:所述第一设备依据预设的发送规则构造所述探测包k,其中包含选路因子k、第一探测参数和五元组;401: The first device constructs the detection packet k according to a preset sending rule, which includes a routing factor k , a first detection parameter, and a five-tuple;

图5为所述探测包k的报文结构示意图。其中:FIG. 5 is a schematic diagram of the message structure of the detection packet k . in:

选路因子可以设置为任何值,例如,图2中,S1到S2间包括两条传输路径,则可以设定两条传输路径的选路因子分别为1和2。The routing factor can be set to any value. For example, in FIG. 2, there are two transmission paths between S1 and S2, and the routing factors of the two transmission paths can be set to 1 and 2 respectively.

第一探测参数,可以是端口负载信息,或端口内存余量,或端口负载信息和端口内存余量;第一探测参数可以是从第一设备的端口获取的,也可以是预设的固定值。The first detection parameter may be port load information, or port memory margin, or port load information and port memory margin; the first detection parameter may be obtained from a port of the first device, or may be a preset fixed value .

五元组,包括源IP地址,源端口,目的IP地址,目的端口,和传输层协议号。例如:192.168.0.110000TCP 121.14.88.7680就构成了一个五元组,其意义是,一个IP地址为192.168.1.1的终端通过端口10000利用TCP协议,和IP地址为121.14.88.76,端口为80的终端进行连接。本实施例中,构造的探测包中可以只包括大流量数据包的五元组。Five-tuple, including source IP address, source port, destination IP address, destination port, and transport layer protocol number. For example: 192.168.0.110000TCP 121.14.88.7680 constitutes a quintuple, which means that a terminal with an IP address of 192.168.1.1 uses the TCP protocol through port 10000, and a terminal with an IP address of 121.14.88.76 and a port of 80 to connect. In this embodiment, the constructed detection packet may only include 5-tuples of large flow data packets.

402:将探测包k中的选路因子k和五元组进行哈希运算,得到探测包k对应的端口地址;402: Perform a hash operation on the routing factor k and the quintuple in the detection packet k to obtain the port address corresponding to the detection packet k ;

探测包发送到哪条传输路径上,是由其中的选路因子和五元组决定的。具体的,将探测包k中的选路因子k和五元组进行哈希运算,得到探测包k对应的端口地址。探测包对应的端口地址确定后,也就确定了选路因子与传输路径的对应关系。对于具有相同五元组的探测包,一个选路因子只对应一条传输路径,而一条传输路径则可以对应多个不同的选路因子。Which transmission path the probe packet is sent to is determined by the routing factor and the five-tuple. Specifically, a hash operation is performed on the routing factor k and the five-tuple in the detection packet k to obtain the port address corresponding to the detection packet k . After the port address corresponding to the detection packet is determined, the corresponding relationship between the routing factor and the transmission path is also determined. For probe packets with the same quintuple, one routing factor corresponds to only one transmission path, and one transmission path may correspond to multiple different routing factors.

403:将所述探测包k发送到所述端口地址对应的传输路径上。403: Send the detection packet k to the transmission path corresponding to the port address.

也就是说,不同的探测包与不同的传输路径建立了对应关系,不同的探测包将对其对应的传输路径进行探测。That is to say, different detection packets have established correspondences with different transmission paths, and different detection packets will detect their corresponding transmission paths.

可以将选路因子k和所述端口地址写入探测包k的转发头(图5未标注)中。The routing factor k and the port address may be written into the forwarding header (not marked in FIG. 5 ) of the detection packet k .

可选地,301中所述预设的发送规则可以为所述第一设备与第二设备间的传输路径满足预设的过载条件,即:只有所述第一设备与第二设备间的传输路径满足预设的过载条件时,第一设备才向第二设备发送探测包。Optionally, the preset sending rule in 301 may be that the transmission path between the first device and the second device satisfies a preset overload condition, that is, only the transmission between the first device and the second device The first device sends a detection packet to the second device only when the path satisfies a preset overload condition.

所述预设的过载条件指的是预先设定的某一条传输路径即将发生过载所满足的条件。因为每条传输路径过载后很容易发生拥塞,传输路径上的数据量负载过大是导致拥塞的根本条件,所以本实施例所述的过载条件,也可以看作是网络即将发生拥塞的条件,根据预设的过载条件对可能发生的拥塞做出判断,而使得网络避免发生拥塞。The preset overload condition refers to a preset condition that a certain transmission path is about to be overloaded. Because congestion is easy to occur after each transmission path is overloaded, and the excessive data volume load on the transmission path is the fundamental condition that causes congestion, so the overload condition described in this embodiment can also be regarded as a condition that the network is about to be congested. According to the preset overload condition, the possible congestion can be judged, so that the network can avoid the congestion.

进一步地,本实施例中可以通过以下方法判断网络中的传输路径是否满足预设的过载条件:Further, in this embodiment, whether the transmission path in the network satisfies the preset overload condition can be judged by the following method:

(1)、第一设备判断单位时间内接收到的数据包的大小是否大于预设的值;(1), the first device judges whether the size of the data packet received per unit time is greater than a preset value;

如果单位时间内接收到的数据包的大小大于预设的值,则确定所述数据包选择的传输路径满足预设的过载条件。If the size of the data packets received per unit time is greater than a preset value, it is determined that the transmission path selected by the data packets satisfies a preset overload condition.

例如,第一设备接收到的数据包流量大于预设的值,例如每秒100M的流量值,则认为所述数据包在进行传输时可能会造成传输路径的过载,所以,确定传输所述数据包的路径满足过载的条件。For example, if the flow of data packets received by the first device is greater than a preset value, such as a flow value of 100M per second, it is considered that the data packets may cause an overload of the transmission path during transmission, so it is determined to transmit the data The path of the package satisfies the overload condition.

本实施例中,可以只针对大流量的数据包进行防过载的路径选择,以便节省网络资源。In this embodiment, the anti-overload path selection can be performed only for data packets with a large flow rate, so as to save network resources.

(2)、通过传输路径上的设备发送的信息判断,包括:(2) Judging by the information sent by the equipment on the transmission path, including:

接收传输路径上的量化拥塞通知(quantized congestion notification,QCN)数据包;receiving a quantized congestion notification (quantized congestion notification, QCN) data packet on the transmission path;

其中,QCN数据包用于通报自身的拥塞情况给数据发送端的设备,便于数据发送端设备调整自身的传输能力,以达到无丢包的效果。Among them, the QCN data packet is used to report its own congestion situation to the device at the data sending end, so as to facilitate the device at the data sending end to adjust its own transmission capability, so as to achieve the effect of no packet loss.

如果所述第一设备接收到QCN数据包,可以说明此传输路径已经过载或即将过载,则确定所述传输路径满足过载条件。If the first device receives the QCN data packet, it may indicate that the transmission path has been overloaded or is about to be overloaded, and then it is determined that the transmission path satisfies the overload condition.

上述第一种方法站在数据包的角度进行判断,第二种方法则从网络设备的角度进行判断,在实际应用中,可以选择以上判断方法之一,也可以使用两种方法同时进行判断,满足其一即认为满足预设的过载条件,或者两者都满足即认为满足预设的过载条件。The above-mentioned first method judges from the perspective of data packets, and the second method judges from the perspective of network equipment. In practical applications, one of the above judgment methods can be selected, or both methods can be used to judge at the same time. Satisfying one of them means meeting the preset overload condition, or satisfying both of them means meeting the preset overload condition.

或者,可选的,所述预设的探测规则也可以是周期性发送。则301具体为,第一设备按照预设的发送周期,周期性地向第一设备和第二设备间的N条传输路径上分别发送探测包kOr, optionally, the preset detection rule may also be sent periodically. Then 301 specifically, the first device periodically sends the detection packet k to the N transmission paths between the first device and the second device according to a preset sending period.

302:所述第一设备分别从所述N条传输路径接收所述第二设备响应所述探测包k的探测响应包k,所述探测响应包k中包含选路因子k、第二探测参数和所述五元组;302: The first device respectively receives a probe response packet k from the second device in response to the probe packet k from the N transmission paths, and the probe response packet k includes a routing factor k and a second probe parameter and said quintuple;

这里所述的探测响应包k为探测包k经过传输路径后,由第二设备经原传输路径返回的。The probe response packet k mentioned here is returned by the second device through the original transmission path after the probe packet k passes through the transmission path.

所述第一探测参数和所述第二探测参数可以是端口负载信息,或者端口内存余量,或者端口负载信息和端口内存余量。The first detection parameter and the second detection parameter may be port load information, or port memory remaining capacity, or port load information and port memory remaining capacity.

其中第二探测参数可能与第一探测参数相同,或者第二探测参数由所述传输路径上的设备根据预设的更新规则对所述第一探测参数更新得到。The second detection parameter may be the same as the first detection parameter, or the second detection parameter may be obtained by updating the first detection parameter by a device on the transmission path according to a preset update rule.

一条传输路径上在第一设备和第二设备间的所有设备,例如中间交换机和核心交换机,都可以对探测包k中的探测参数进行更新,本实施例中,优选以下更新方法:All devices between the first device and the second device on a transmission path, such as intermediate switches and core switches, can update the detection parameters in the detection packet k . In this embodiment, the following update methods are preferred:

当所述探测包k中的第一探测参数,例如端口负载信息,小于所述传输路径上的设备中的本地端口负载信息时,用本地端口负载信息更新探测包中的端口负载信息,得到第二探测参数。例如,预先存储的端口负载信息是额定负载量的60%,而当前交换机的端口负载信息是额定负载的80%,这时则更新探测包中的端口负载信息为额定负载的80%。When the first detection parameter in the detection packet k , such as port load information, is smaller than the local port load information in the device on the transmission path, update the port load information in the detection packet with the local port load information to obtain the first Two detection parameters. For example, if the pre-stored port load information is 60% of the rated load, and the current port load information of the switch is 80% of the rated load, then the port load information in the detection packet is updated to be 80% of the rated load.

如果设备本地的端口负载信息比探测包k中存储的端口负载信息小,则不进行更新,这样,探测包k中最终的端口负载信息反应的就是本条传输路径上负载最重的设备的端口负载情况。If the local port load information of the device is smaller than the port load information stored in the detection packet k , it will not be updated. In this way, the final port load information in the detection packet k reflects the port load of the device with the heaviest load on this transmission path Condition.

需要强调的是,在探测包k传输的过程中,只改变其中的第一探测参数,而其它部分不做变化,探测包k从第一设备经过当前传输路径上第一设备和第二设备间的设备后到达第二设备,第二设备将更新完毕的探测包k,即探测响应包k,经过当前路径返回给第一设备。It should be emphasized that during the transmission of the detection packet k , only the first detection parameter is changed, while other parts are not changed. The detection packet k passes from the first device through the current transmission path between the first device and the second device. After reaching the second device, the second device returns the updated probe packet k , that is, the probe response packet k , to the first device through the current path.

303:所述第一设备依据所述M个探测响应包,选择待发送数据包的选路因子,并依据所述待发送数据包的选路因子,确定所述待发送数据包的传输路径。303: The first device selects a routing factor of the data packet to be sent according to the M probe response packets, and determines a transmission path of the data packet to be sent according to the routing factor of the data packet to be sent.

本实施例中,如图2所示,发起探测的S1会收到两个探测响应包,例如,分别为S1-S2-S4路径上的探测响应包1和S1-S3-S4路径上的探测响应包2。S1在接收到探测响应包1和探测响应包2后,将两个探测响应包中的第二探测参数进行比较,例如,将探测响应包1和探测响应包2中的端口负载信息进行比较,因为端口负载信息最小的探测响应包经过的传输路径的负载最轻,所以通过比较可以确定负载最轻的传输路径上的探测响应包,获取负载最轻的传输路径上的探测响应包中的选路因子,将其作为待发送数据包的选路因子,并将选择出的选路因子写入待发送的数据包中。In this embodiment, as shown in Figure 2, S1 that initiates the probe will receive two probe response packets, for example, the probe response packet 1 on the path S1-S2-S4 and the probe response packet on the path S1-S3-S4 Response packet 2 . After receiving the probe response packet 1 and the probe response packet 2 , S1 compares the second probe parameters in the two probe response packets, for example, compares the port load information in the probe response packet 1 and the probe response packet 2 , Because the load of the transmission path passed by the probe response packet with the smallest port load information is the lightest, the probe response packet on the transmission path with the lightest load can be determined through comparison, and the selection in the probe response packet on the transmission path with the lightest load can be obtained. The routing factor is used as the routing factor of the data packet to be sent, and the selected routing factor is written into the data packet to be sent.

本实施例中,将选择出的选路因子写入待发送的数据包中,可以通过如下两种方法的任意一种实现:In this embodiment, writing the selected routing factor into the data packet to be sent can be realized by any one of the following two methods:

第一、接收到客户端发送的原始数据包时,将其构造为包括默认选路因子的待发送数据包,其中默认的选路因子可以为任意的固定值,例如,可以为0;在选择出待发送数据包的选路因子后,可以将待发送数据包中的默认选路因子更新为所述待发送数据包的选路因子。First, when the original data packet sent by the client is received, it is constructed as a data packet to be sent including the default routing factor, where the default routing factor can be any fixed value, for example, it can be 0; After the routing factor of the data packet to be sent is obtained, the default routing factor in the data packet to be sent may be updated to the routing factor of the data packet to be sent.

例如图2中,通过比较传输路径S1-S2-S4反馈的探测响应包1和S1-S3-S4反馈的探测响应包2中的第二探测参数后,确定探测响应包2的传输路径的负载轻,则将探测响应包2中的选路因子2选择为待发送数据包的选路因子,将待发送数据包中的选路因子0更新为2。For example, in Figure 2, after comparing the second detection parameters in the probe response packet 1 fed back by the transmission path S1-S2-S4 and the probe response packet 2 fed back by S1-S3-S4, the load of the transmission path of the probe response packet 2 is determined If it is light, the routing factor 2 in the probe response packet 2 is selected as the routing factor of the data packet to be sent, and the routing factor 0 in the data packet to be sent is updated to 2.

第二,在选择出待发送数据的选路因子后,构造新的数据包,即将选路因子加入客户终端发送的原始数据包中,构建成包括选择出的待发送数据包的选路因子的新的数据包。Second, after the routing factor of the data to be sent is selected, a new data packet is constructed, that is, the routing factor is added to the original data packet sent by the client terminal, and a new data packet including the selected routing factor of the data packet to be sent is constructed. new packets.

第一设备将待发送数据包的选路因子写入所述待发送数据包中后,再将待发送数据包的选路因子和待发送数据包的五元组进行哈希运算得到待发送数据包的发送端口地址,并确定待发送数据包的发送端口地址对应的传输路径为待发送数据包的传输路径。After the first device writes the routing factor of the data packet to be sent into the data packet to be sent, it performs hash operation on the routing factor of the data packet to be sent and the quintuple of the data packet to be sent to obtain the data to be sent the sending port address of the packet, and determine the transmission path corresponding to the sending port address of the data packet to be sent as the transmission path of the data packet to be sent.

需要强调的是,本实施例中所述的方法如果最终确定出的传输路径仍是客户端发送的数据包中指示的原传输路径,则可以仍然使用此路径进行数据包的传输,或者,也可以暂停数据的传输,向用户发出网络过载提示信息。It should be emphasized that if the final transmission path determined by the method described in this embodiment is still the original transmission path indicated in the data packet sent by the client, this path can still be used for data packet transmission, or, The transmission of data can be suspended, and the network overload prompt information can be issued to the user.

本实施例所述的网络数据路径选择方法,通过向传输路径发送探测包,探测传输路径的负载情况,最终选择负载较轻的传输路径进行数据的传输,从而实现了网络中各传输路径的负载均衡,进一步避免了胖树网络数据传输的阻塞。The network data path selection method described in this embodiment, by sending a detection packet to the transmission path, detects the load of the transmission path, and finally selects a transmission path with a lighter load for data transmission, thereby realizing the load of each transmission path in the network. Balanced, further avoiding the blockage of fat tree network data transmission.

本发明还公开了一种传输路径选择装置,如图6所示,包括:The present invention also discloses a transmission path selection device, as shown in Figure 6, comprising:

探测包发送单元601,用于依据预设的发送规则向所述第一设备与第二设备间的N条传输路径上分别发送包括探测包k,所述探测包k包括选路因子k、第一探测参数和五元组,不同传输路径的探测包中的选路因子不同,其中,N为大于1的正整数,k为正整数且k=1、2......M,M为大于或等于N的正整数;A detection packet sending unit 601, configured to send a detection packet k to each of the N transmission paths between the first device and the second device according to a preset sending rule, and the detection packet k includes a routing factor k , the first A detection parameter and a quintuple, the routing factors in the detection packets of different transmission paths are different, wherein, N is a positive integer greater than 1, k is a positive integer and k=1, 2...M, M is a positive integer greater than or equal to N;

探测包接收单元602,用于分别从所述N条传输路径接收所述第二设备响应所述探测包k的探测响应包k,所述探测响应包k中包含选路因子k、第二探测参数和所述五元组;A probe packet receiving unit 602, configured to respectively receive a probe response packet k from the second device in response to the probe packet k from the N transmission paths, the probe response packet k includes a routing factor k , a second probe parameters and said quintuple;

路径选择单元603,用于依据所述M个探测响应包,选择待发送数据包的选路因子,并依据所述待发送数据包的选路因子,确定所述待发送数据包的传输路径。The path selection unit 603 is configured to select a routing factor of the data packet to be sent according to the M probe response packets, and determine a transmission path of the data packet to be sent according to the routing factor of the data packet to be sent.

本实施例中所述的传输路径选择装置可以设置在网络中的边缘设备,例如边缘交换机,也可以设置在中间设备,例如中间交换机或者核心服务器上,为了详细说明所述传输路径选择装置的路径选择功能,这里优选边缘设备。The transmission path selection device described in this embodiment can be set on an edge device in the network, such as an edge switch, or can be set on an intermediate device, such as an intermediate switch or a core server. In order to describe the path of the transmission path selection device in detail Select the function, here the edge device is preferred.

例如在图2中,所有的边缘设备可以都设置有本实施例所述的传输路径选择装置,当PC1向PC2传递数据时,有两条路径可选,其中S1可以为第一设备,S4可以为第二设备,在S1接收到PC1发送的数据包后,S1在向中间设备S2发送所述数据包前,如果判断出传输路径S1-S2-S4和S1-S3-S4满足过载的条件,则构造探测包1和探测包2,探测包1包括选路因子1、第一探测参数和五元组,探测包2包括选路因子2、所述第一探测参数和所述五元组,探测包1中的选路因子1为1,探测包2中的选路因子2为2,通过哈希计算得到探测包1对应的传输路径为S1-S2-S4,探测包2对应的传输路径为S1-S3-S4,将探测包1和探测包2分别发送到与其对应传输路径上,并接收第二设备S4响应探测包1和探测包的探测响应包1和探测响应包2,探测响应包1包括选路因子1、第二探测参数和所述五元组,探测响应包2包括选路因子2、第二探测参数和所述五元组S1通过比较探测响应包1和探测响应包2中的第二探测参数,得出传输探测响应包1的传输路径的负载较轻,则将此探测响应包1中的选路因子1写入待发送数据包中,从而使得S1通过传输路径S1-S2-S4将待发送数据包发送到PC2。For example, in Figure 2, all edge devices can be provided with the transmission path selection device described in this embodiment. When PC1 transmits data to PC2, there are two optional paths, wherein S1 can be the first device, and S4 can be As the second device, after S1 receives the data packet sent by PC1, before S1 sends the data packet to the intermediate device S2, if it is judged that the transmission paths S1-S2-S4 and S1-S3-S4 meet the overload condition, Then construct detection packet 1 and detection packet 2 , detection packet 1 includes routing factor 1 , the first detection parameter and quintuple, detection packet 2 includes routing factor 2 , the first detection parameter and the quintuple, The routing factor 1 in detection packet 1 is 1, and the routing factor 2 in detection packet 2 is 2. Through hash calculation, the transmission path corresponding to detection packet 1 is S1-S2-S4, and the transmission path corresponding to detection packet 2 is For S1-S3-S4, send the detection packet 1 and the detection packet 2 to the corresponding transmission path respectively, and receive the detection response packet 1 and the detection response packet 2 of the second device S4 in response to the detection packet 1 and the detection packet, and the detection response Packet 1 includes the routing factor 1 , the second probe parameter and the quintuple, and the probe response packet 2 includes the routing factor 2 , the second probe parameter and the quintuple S1 by comparing the probe response packet 1 with the probe response packet 2 , it is found that the load of the transmission path for transmitting the probe response packet 1 is relatively light, then the routing factor 1 in the probe response packet 1 is written into the data packet to be sent, so that S1 passes through the transmission path S1-S2-S4 send the data packets to be sent to PC2.

本实施例所述的装置,通过向不同的传输路径分别发送不同的探测包,选择出负载较轻的传输路径作为数据的传输路径,实现了网络中每条路径的负载均衡,从而能够避免网络拥塞的问题。The device described in this embodiment, by sending different detection packets to different transmission paths, selects the transmission path with lighter load as the data transmission path, and realizes the load balancing of each path in the network, thereby avoiding network Congestion problem.

进一步地,如图7所示,本实施例所述的探测包发送单元包括:Further, as shown in FIG. 7, the detection packet sending unit described in this embodiment includes:

探测包构造子单元701,用于依据预设的发送规则构造包括所述探测包kA detection packet construction subunit 701, configured to construct the detection packet k according to preset sending rules;

计算子单元702,用于将所述探测包k中的选路因子k和所述五元组进行哈希运算,得到所述探测包k对应的端口地址;The calculation subunit 702 is configured to perform a hash operation on the routing factor k in the detection packet k and the quintuple to obtain the port address corresponding to the detection packet k ;

发送子单元703,用于将所述探测包k发送到与所述端口地址对应的传输路径上。The sending subunit 703 is configured to send the detection packet k to the transmission path corresponding to the port address.

进一步地,如图8所示,本实施例所述路径选择单元包括:Further, as shown in FIG. 8, the path selection unit in this embodiment includes:

比较子单元801,用于比较所述M个探测响应包中的第二探测参数,以确定负载最轻路径的探测响应包;A comparing subunit 801, configured to compare the second probe parameters in the M probe response packets to determine the probe response packet of the path with the lightest load;

获取子单元802,用于获取所述负载最轻路径的探测响应包中的选路因子,并将所述负载最轻路径的探测响应包中的选路因子作为待发送数据包的选路因子;The acquiring subunit 802 is configured to acquire the routing factor in the probe response packet of the path with the lightest load, and use the routing factor in the probe response packet of the path with the lightest load as the routing factor of the data packet to be sent ;

写入子单元803,用于将所述待发送数据包的选路因子写入所述待发送数据包中;A writing subunit 803, configured to write the routing factor of the data packet to be sent into the data packet to be sent;

确定子单元804,用于将所述待发送数据包的选路因子和所述五元组进行哈希运算,得到所述待发送数据包的发送端口地址,并确定所述发送端口地址对应的传输路径为所述待发送数据包的传输路径。The determining subunit 804 is configured to perform a hash operation on the routing factor of the data packet to be sent and the quintuple to obtain the sending port address of the data packet to be sent, and determine the address corresponding to the sending port address The transmission path is the transmission path of the data packet to be sent.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other.

对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1.一种传输路径选择方法,其特征在于,包括:1. A method for selecting a transmission path, comprising: 第一设备依据预设的发送规则向所述第一设备与第二设备间的N条传输路径分别发送探测包k,所述探测包k中包含选路因子k、第一探测参数和五元组,不同传输路径的探测包中的选路因子不同,所述选路因子k和所述五元组用于从所述N条传输路径中确定所述探测包k的传输路径,其中,N为大于1的正整数,k为正整数且k=1、2……M,M为大于或等于N的正整数;The first device sends a detection packet k to the N transmission paths between the first device and the second device according to the preset sending rules, and the detection packet k includes the routing factor k , the first detection parameter and five elements The routing factors in the detection packets of different transmission paths are different, and the routing factor k and the quintuple are used to determine the transmission path of the detection packet k from the N transmission paths, where N is a positive integer greater than 1, k is a positive integer and k=1, 2...M, M is a positive integer greater than or equal to N; 所述第一设备分别从所述N条传输路径接收所述第二设备响应所述探测包k的探测响应包k,所述探测响应包k中包含选路因子k、第二探测参数和所述五元组;The first device respectively receives a probe response packet k from the second device in response to the probe packet k from the N transmission paths, and the probe response packet k includes a routing factor k , a second probe parameter, and the said five-tuple; 所述第一设备依据所述M个探测响应包,获取负载最轻的传输路径上的探测响应包中的选路因子,将其作为待发送数据包的选路因子,并依据所述待发送数据包的选路因子,确定所述待发送数据包的传输路径;The first device obtains, according to the M probe response packets, the routing factor in the probe response packet on the transmission path with the lightest load, and uses it as the routing factor of the data packet to be sent, and according to the The routing factor of the data packet determines the transmission path of the data packet to be sent; 所述第一设备依据预设的发送规则向所述第一设备与第二设备间的N条传输路径上分别发送探测包k具体包括:The sending of the detection packet k by the first device to the N transmission paths between the first device and the second device according to a preset sending rule specifically includes: 所述第一设备依据预设的发送规则构造所述探测包kThe first device constructs the detection packet k according to a preset sending rule; 将所述探测包k中的选路因子k和所述五元组进行哈希运算,得到所述探测包k对应的端口地址;Performing a hash operation on the routing factor k in the detection packet k and the five-tuple to obtain the port address corresponding to the detection packet k ; 将所述探测包k发送到所述端口地址对应的传输路径上。Send the detection packet k to the transmission path corresponding to the port address. 2.根据权利要求1所述的方法,其特征在于,所述预设的发送规则包括:2. The method according to claim 1, wherein the preset sending rules include: 所述第一设备与第二设备间的传输路径满足预设的过载条件。The transmission path between the first device and the second device satisfies a preset overload condition. 3.根据权利要求2所述的方法,其特征在于,所述预设的过载条件包括:3. The method according to claim 2, wherein the preset overload condition comprises: 单位时间内接收到的数据包大于预设的值;或者,The data packets received per unit time are greater than the preset value; or, 接收到所述传输路径上的量化拥塞通知数据包;或者,receiving a quantized congestion notification data packet on the transmission path; or, 单位时间内接收到的数据包大于预设的值,且接收到所述传输路径上的量化拥塞通知数据包。The data packets received per unit time are greater than a preset value, and the quantized congestion notification data packets on the transmission path are received. 4.根据权利要求1所述的方法,其特征在于,所述第一探测参数和所述第二探测参数具体为端口负载信息,或者端口内存余量,或者端口负载信息和端口内存余量;4. The method according to claim 1, wherein the first detection parameter and the second detection parameter are specifically port load information, or port memory margin, or port load information and port memory margin; 所述第二探测参数与所述第一探测参数相同,或者,所述第二探测参数由所述传输路径上的设备根据预设的更新规则对所述第一探测参数更新得到。The second detection parameter is the same as the first detection parameter, or the second detection parameter is obtained by updating the first detection parameter by a device on the transmission path according to a preset update rule. 5.根据权利要求1所述的方法,其特征在于,所述第一设备依据所述M个探测响应包,获取负载最轻的传输路径上的探测响应包中的选路因子,将其作为待发送数据包的选路因子,具体包括:5. The method according to claim 1, wherein the first device obtains the routing factor in the probe response packet on the transmission path with the lightest load according to the M probe response packets, and uses it as The routing factor of the data packet to be sent, including: 比较所述M个探测响应包中的第二探测参数,以确定负载最轻路径的探测响应包;comparing the second probe parameters in the M probe response packets to determine the probe response packets of the path with the lightest load; 获取所述负载最轻路径的探测响应包中的选路因子;Obtaining the routing factor in the probe response packet of the path with the lightest load; 将所述负载最轻路径的探测响应包中的选路因子作为待发送数据包的选路因子。The routing factor in the probe response packet of the path with the lightest load is used as the routing factor of the data packet to be sent. 6.根据权利要求1至5任一项所述的方法,其特征在于,所述依据所述待发送数据包的选路因子,确定所述待发送数据包的传输路径包括:6. The method according to any one of claims 1 to 5, wherein the determining the transmission path of the data packet to be sent according to the routing factor of the data packet to be sent comprises: 将所述待发送数据包的选路因子写入所述待发送数据包中;Writing the routing factor of the data packet to be sent into the data packet to be sent; 将所述待发送数据包的选路因子和所述五元组进行哈希运算,得到所述待发送数据包的发送端口地址;Performing a hash operation on the routing factor of the data packet to be sent and the quintuple to obtain the sending port address of the data packet to be sent; 确定所述发送端口地址对应的传输路径为所述待发送数据包的传输路径。Determine the transmission path corresponding to the sending port address as the transmission path of the data packet to be sent. 7.一种路径选择装置,其特征在于,包括:7. A path selection device, characterized in that it comprises: 探测包发送单元,用于依据预设的发送规则向第一设备与第二设备间的N条传输路径分别发送探测包k,所述探测包k中包括选路因子k、第一探测参数和五元组,不同传输路径的探测包中的选路因子不同,所述选路因子k和所述五元组用于从所述N条传输路径中确定所述探测包k的传输路径,其中,N为大于1的正整数,k为正整数且k=1、2……M,M为大于或等于N的正整数;A detection packet sending unit, configured to send a detection packet k to the N transmission paths between the first device and the second device according to a preset sending rule, and the detection packet k includes a routing factor k , a first detection parameter and A five-tuple, the routing factors in the detection packets of different transmission paths are different, and the routing factor k and the five-tuple are used to determine the transmission path of the detection packet k from the N transmission paths, wherein , N is a positive integer greater than 1, k is a positive integer and k=1, 2...M, M is a positive integer greater than or equal to N; 探测包接收单元,用于分别从所述N条传输路径接收所述第二设备响应所述探测包k的探测响应包k,所述探测响应包k中包含选路因子k、第二探测参数和所述五元组;A detection packet receiving unit, configured to receive a detection response packet k from the second device in response to the detection packet k from the N transmission paths, and the detection response packet k includes a routing factor k , a second detection parameter and said quintuple; 路径选择单元,用于依据所述M个探测响应包,获取负载最轻的传输路径上的探测响应包中的选路因子,将其作为待发送数据包的选路因子,并依据所述待发送数据包的选路因子,确定所述待发送数据包的传输路径;The path selection unit is configured to obtain the routing factor in the probe response packet on the transmission path with the lightest load according to the M probe response packets, use it as the routing factor of the data packet to be sent, and obtain the routing factor according to the pending A routing factor for sending data packets to determine the transmission path of the data packets to be sent; 所述探测包发送单元包括:The detection packet sending unit includes: 探测包构造子单元,用于依据预设的发送规则构造包括所述探测包kA detection packet construction subunit, configured to construct the detection packet k according to preset sending rules; 计算子单元,用于将所述探测包k中的选路因子k和所述五元组进行哈希运算,得到所述探测包k对应的端口地址;A calculation subunit, configured to perform a hash operation on the routing factor k in the detection packet k and the five-tuple to obtain the port address corresponding to the detection packet k ; 发送子单元,用于将所述探测包k发送到所述端口地址对应的传输路径上。The sending subunit is configured to send the detection packet k to the transmission path corresponding to the port address. 8.根据权利要求7所述的装置,其特征在于,所述路径选择单元包括:8. The device according to claim 7, wherein the path selection unit comprises: 比较子单元,用于比较所述M个探测响应包中的第二探测参数,以确定负载最轻路径的探测响应包;A comparing subunit, configured to compare the second probe parameters in the M probe response packets to determine the probe response packet of the path with the lightest load; 获取子单元,用于获取所述负载最轻路径的探测响应包中的选路因子,并将所述负载最轻路径的探测响应包中的选路因子作为待发送数据包的选路因子;The acquiring subunit is configured to acquire the routing factor in the probe response packet of the lightest-loaded path, and use the routing factor in the probe response packet of the lightest-loaded path as the routing factor of the data packet to be sent; 写入子单元,用于将所述待发送数据包的选路因子写入所述待发送数据包中;A write subunit, configured to write the routing factor of the data packet to be sent into the data packet to be sent; 确定子单元,用于将所述待发送数据包的选路因子和所述五元组进行哈希运算,得到所述待发送数据包的发送端口地址,并确定所述发送端口地址对应的传输路径为所述待发送数据包的传输路径。A determining subunit, configured to perform a hash operation on the routing factor of the data packet to be sent and the quintuple to obtain the sending port address of the data packet to be sent, and determine the transmission port address corresponding to the sending port address The path is the transmission path of the data packet to be sent.
CN201210061103.XA 2012-03-09 2012-03-09 A kind of selection of transmission paths method and device Expired - Fee Related CN103312607B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210061103.XA CN103312607B (en) 2012-03-09 2012-03-09 A kind of selection of transmission paths method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210061103.XA CN103312607B (en) 2012-03-09 2012-03-09 A kind of selection of transmission paths method and device

Publications (2)

Publication Number Publication Date
CN103312607A CN103312607A (en) 2013-09-18
CN103312607B true CN103312607B (en) 2016-12-21

Family

ID=49137406

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210061103.XA Expired - Fee Related CN103312607B (en) 2012-03-09 2012-03-09 A kind of selection of transmission paths method and device

Country Status (1)

Country Link
CN (1) CN103312607B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10320681B2 (en) * 2016-04-12 2019-06-11 Nicira, Inc. Virtual tunnel endpoints for congestion-aware load balancing
CN106201356B (en) * 2016-07-14 2019-07-19 北京理工大学 A Dynamic Data Scheduling Method Based on Link Available Bandwidth Status
CN107770085B (en) * 2016-08-23 2021-08-31 华为技术有限公司 A network load balancing method, device and system
CN107800579B (en) * 2016-08-31 2020-03-20 华为技术有限公司 Full-path detection method, device and system
CN108390820B (en) * 2018-04-13 2021-09-14 华为技术有限公司 Load balancing method, equipment and system
WO2021244450A1 (en) * 2020-05-30 2021-12-09 华为技术有限公司 Communication method and apparatus
CN113300873B (en) * 2021-02-05 2024-05-24 阿里巴巴集团控股有限公司 Fault detour method and device based on five-tuple hash path
US11889346B2 (en) 2022-03-21 2024-01-30 Vmware, Inc. Quality-aware user data forwarding in mobile communications systems
CN115987841A (en) * 2022-12-14 2023-04-18 苏州盛科通信股份有限公司 A link detection method, device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
多路径传输中乱序与负载均衡研究;陈均华;《万方学位论文数据库》;20100531;正文第4章 *

Also Published As

Publication number Publication date
CN103312607A (en) 2013-09-18

Similar Documents

Publication Publication Date Title
CN103312607B (en) A kind of selection of transmission paths method and device
US11876717B2 (en) Flow-based load balancing
US9942156B1 (en) Flow level dynamic load balancing
US8000239B2 (en) Method and system for bandwidth allocation using router feedback
US9065721B2 (en) Dynamic network load rebalancing
CN105634973B (en) Method for routing and equipment based on load balancing
US10153964B2 (en) Network routing using dynamic virtual paths in an overlay network
US10404584B2 (en) Load sharing method and router device
CN107689919B (en) Dynamic adjustment weight fuzzy routing method for SDN network
CN103685054A (en) Multipath load balancing method based on service awareness
CN108092888A (en) A kind of transmission method based on Overlay networks, gateway and Transmission system
CN102804717B (en) Method and device for adjusting IP network load
US11240140B2 (en) Method and system for interfacing communication networks
WO2021000848A1 (en) Packet forwarding method and packet processing method and apparatus
CN108123878B (en) A routing method, device and data forwarding device
CN104618256A (en) Open shortest path first (OSPF) link load dynamic adjusting method
Du et al. Service information informing in computing aware networking
JP2005057487A (en) Route control device for selecting a plurality of routes, route selection method, program thereof, and recording medium
CN105393597B (en) Method for controlling network congestion and controller
CN107231318B (en) Method, equipment and device for dynamic switching control based on real-time network performance
CN106656807A (en) Message forwarding method and SDN switch
CN115174480A (en) Load balancing method, device, equipment and readable storage medium
WO2019209480A1 (en) Resource reservation and maintenance for preferred path routes in a network
Hertiana et al. Performance analysis of flow-based routing in software-defined networking
Amaral et al. Inter-domain traffic engineering using an as-level multipath routing architecture

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20161221

Termination date: 20180309

CF01 Termination of patent right due to non-payment of annual fee