CN105262696B - A kind of method and relevant device of multipath shunting - Google Patents

A kind of method and relevant device of multipath shunting Download PDF

Info

Publication number
CN105262696B
CN105262696B CN201510552614.5A CN201510552614A CN105262696B CN 105262696 B CN105262696 B CN 105262696B CN 201510552614 A CN201510552614 A CN 201510552614A CN 105262696 B CN105262696 B CN 105262696B
Authority
CN
China
Prior art keywords
channel
port
ratio
physical port
logic port
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
CN201510552614.5A
Other languages
Chinese (zh)
Other versions
CN105262696A (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.)
Shanghai Huawei Technologies Co Ltd
Original Assignee
Shanghai 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 Shanghai Huawei Technologies Co Ltd filed Critical Shanghai Huawei Technologies Co Ltd
Priority to CN201510552614.5A priority Critical patent/CN105262696B/en
Publication of CN105262696A publication Critical patent/CN105262696A/en
Application granted granted Critical
Publication of CN105262696B publication Critical patent/CN105262696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of methods that multipath shunts, the method comprise the steps that obtaining a desired target flow ratio first, physical port corresponding to two or more channel is respectively directed to the logic port of respective number according to desired target flow score, by preset algorithm to logic port packet distribution, in this way, data packet then can target flow desirably than being distributed to physical port corresponding to logic port, the actual flow ratio that statistic unit counts physical port is obtained again, after getting actual flow ratio, physical port mapped logical port number is increased and decreased to adjust the flow of physical port actual transmissions again, so that the difference of the ratio of the ratio and target flow ratio of actual flow ratio is less than preset threshold, to realize that multipath accurately shunts, data in network are improved to pass Defeated efficiency.

Description

A kind of method and relevant device of multipath shunting
Technical field
A kind of method and relevant device shunted the present invention relates to the communications field more particularly to multipath.
Background technique
Requirement due to people to web experience is higher and higher, so also requiring network transmission can be with faster transmission speed Rate.Due to demands such as bandwidth expansion needs and transmission reliabilities, a network equipment needs a plurality of transmission path to work at the same time.
Present multi-path transmission technology generally uses two layers of TRUNK or three layer of equivalent route mode to realize. TRUNK, which refers to, bundles multiple physical ports, becomes a bilaminar logic port, but TRUNK needs multipath Medium is identical, and rate-matched also requires equally, just to can be carried out multipath shunting, it is different that TRUNK does not adapt to link medium The different multi-path transmission of sample, transmission priority.
And equivalent route carries out in the method for multipath shunting, equivalent route is that the routing weights of multipath are set as equivalence , it in general include that packet-by-packet distribution and valley-fill distribute two kinds of implementations.But traditional equivalent route cannot be controlled accurately Make the assignment of traffic on different paths.
Summary of the invention
A kind of method and relevant device shunted the embodiment of the invention provides multipath is, it can be achieved that multipath accurately divides Stream improves network transmission efficiency.
First aspect of the embodiment of the present invention provides a kind of routing device, comprising:
First acquisition unit, for obtaining target flow ratio, the target flow is than the channel for two or more Flow-rate ratio;
Allocation unit, for being respectively directed to described two with the logic port of respective number according to the target flow score Or physical port corresponding to two or more channels;
Dispatching Unit, for passing through preset algorithm to the logic port packet distribution;
Second acquisition unit, the actual flow ratio that the physical port is counted for obtaining statistic unit;
Adjustment unit, for the number according to the actual flow than adjusting the physical port mapped logic port Amount, so that the difference of the ratio of the ratio of actual flow ratio and target flow ratio is less than preset threshold.
In conjunction with the embodiment of the present invention in a first aspect, in the first implementation of first aspect of the embodiment of the present invention, institute Stating second acquisition unit includes:
Second obtains subelement, for obtaining the reality that statistic unit counts the physical port according to predetermined period Flow-rate ratio.
In conjunction with the first implementation of first aspect of the embodiment of the present invention or first aspect, in the embodiment of the present invention first In second of implementation of aspect, the first acquisition unit is specifically included:
Evaluation unit, for it is described two or more channel carry out bandwidth estimation, obtain estimation result;
Computing unit, for according to the estimation result and preset rules be calculated it is described two or more The actual bandwidth capabilities might in channel;
Target stream is arranged in setting unit, the actual bandwidth capabilities might for two or more the channel according to Amount ratio.
In conjunction with the first implementation of first aspect of the embodiment of the present invention, first aspect and second of first aspect Any one in implementation, in the third implementation of first aspect of the embodiment of the present invention, the preset algorithm includes: Hash HASH algorithm.
In conjunction with the first implementation of first aspect of the embodiment of the present invention, first aspect, second of first aspect it is real The third implementation of existing mode and first aspect, in the 4th kind of implementation of first aspect of the embodiment of the present invention, The equipment further include:
Third acquiring unit, for the Dispatching Unit by preset algorithm to the logic port packet distribution it Before, the transmission priority in two or more channel described in acquisition;
4th acquiring unit, for obtaining the priority of transmission services.
In conjunction with the 4th kind of implementation of first aspect of the embodiment of the present invention, the 5th of first aspect of the embodiment of the present invention the In kind implementation, the equipment further include:
Designating unit, for it is described be averaged packet distribution to the logic port before, specified one or one with On high priority differentiated services code points DSCP wandering column to the logical bit of specified one or more on, it is one Or more than one logical bit is high priority logical bit, the high priority logical bit is directed toward the logic port of corresponding number, The corresponding logic port of the high priority logical bit is preferentially directed toward transmission priority in two or more the channel Physical port corresponding to high channel.
In conjunction with the 5th kind of implementation of first aspect of the embodiment of the present invention, the 6th of first aspect of the embodiment of the present invention the In kind implementation, the adjustment unit is specifically included:
Subelement is adjusted, for according to the actual flow ratio, when needing to reduce the high channel institute of the transmission priority When corresponding physical port mapped logic port number, finally adjusts the corresponding logic port of the high priority logical bit and refer to Physical port corresponding to the channel low to transmission priority;
When needing to increase physical port mapped logic port number corresponding to the high channel of the transmission priority, It preferentially adjusts the corresponding logic port of the high priority logical bit and is directed toward physics end corresponding to the high channel of transmission priority Mouthful.
Second aspect of the embodiment of the present invention provides a kind of method that multipath shunts, comprising:
Obtain target flow ratio, flow-rate ratio of the target flow than the channel for two or more;
According to the target flow score with the logic port of respective number be respectively directed to it is described two or more Physical port corresponding to channel;
By preset algorithm to the logic port packet distribution;
Obtain the actual flow ratio that statistic unit counts the physical port;
Quantity according to the actual flow than adjusting the physical port mapped logic port, so that the reality The difference of the ratio of the ratio of flow-rate ratio and target flow ratio is less than preset threshold.
In conjunction with second aspect of the embodiment of the present invention, in the first implementation of second aspect of the embodiment of the present invention, institute Stating the actual flow ratio that acquisition statistic unit counts the physical port includes:
The actual flow ratio that statistic unit counts the physical port is obtained according to predetermined period.
In conjunction with the first implementation of second aspect of the embodiment of the present invention or second aspect, in the embodiment of the present invention second In second of implementation of aspect, specifically included obtaining the target flow ratio:
To it is described two or more channel carry out bandwidth estimation, obtain bandwidth estimation as a result, and estimating according to described Calculate result and preset rules be calculated it is described two or more channel actual bandwidth capabilities might;
According to the actual bandwidth capabilities might, target flow ratio is set.
In conjunction with the first implementation of second aspect of the embodiment of the present invention, second aspect and second of second aspect Any one in implementation, in the third implementation of second aspect of the embodiment of the present invention, the preset algorithm includes: Hash HASH algorithm.
In conjunction with the first implementation of second aspect of the embodiment of the present invention, second aspect, second of second aspect it is real The third implementation of existing mode and second aspect, in the 4th kind of implementation of second aspect of the embodiment of the present invention, It is described by preset algorithm to before the logic port packet distribution, the method also includes:
The transmission priority in two or more channel described in obtaining;
Obtain the priority of transmission services.
In conjunction with the 4th kind of implementation of second aspect of the embodiment of the present invention, the 5th of second aspect of the embodiment of the present invention the In kind of implementation, it is described by preset algorithm to before the logic port packet distribution, the method also includes:
Specify the wandering column of the differentiated services code points DSCP of one or more high priority to specified one Or in above logical bit, one or more than one logical bit is high priority logical bit, the high priority logic The logic port of corresponding number is directed toward in position, and the corresponding logic port of the high priority logical bit is preferentially directed toward described two or two Physical port corresponding to the high channel of transmission priority in channel more than item.
In conjunction with the 5th kind of implementation of second aspect of the embodiment of the present invention, the 6th of second aspect of the embodiment of the present invention the It is described more specific than the quantity for adjusting the physical port mapped logic port according to the actual flow in kind implementation Include:
According to the actual flow ratio, when needing to reduce physical port institute corresponding to the high channel of the transmission priority When the logic port number of mapping, it is low finally to adjust the corresponding logic port direction transmission priority of the high priority logical bit Physical port corresponding to channel;
When needing to increase physical port mapped logic port number corresponding to the high channel of the transmission priority, It preferentially adjusts the corresponding logic port of the high priority logical bit and is directed toward physics end corresponding to the high channel of transmission priority Mouthful.
The embodiment of the invention provides a kind of method that multipath shunts, in this method: obtaining a desired mesh first Mark flow-rate ratio, according to desired target flow score with the logic port of respective number be respectively directed to it is described two or more Channel corresponding to physical port, by preset algorithm to the logic port packet distribution, in this way, data packet then can be by According to desired target flow than being distributed to physical port corresponding to logic port, but not due to the length of each data packet It is identical, so even if being evenly distributed to each logic port for data packet is opposite, and the practical flow-rate ratio and expectation distributed Target flow ratio can exist enter and leave, so also needing to obtain the actual flow that statistic unit counts the physical port again Than after getting actual flow ratio, then being increased and decreased described in adjustment to the physical port mapped logical port number The flow of physical port actual transmissions, so that the difference of the ratio of the ratio of actual flow ratio and target flow ratio is less than Preset threshold improves data transmission in network efficiency to realize that multipath accurately shunts.
Detailed description of the invention
Fig. 1 is one embodiment schematic diagram of routing device in the embodiment of the present invention;
Fig. 2 is another embodiment schematic diagram of routing device in the embodiment of the present invention;
Fig. 3 is another embodiment schematic diagram of routing device in the embodiment of the present invention;
Fig. 4 is one embodiment schematic diagram for the method that multipath shunts in the embodiment of the present invention;
Fig. 5 is another embodiment schematic diagram for the method that multipath shunts in the embodiment of the present invention;
Fig. 6 is another embodiment schematic diagram for the method that multipath shunts in the embodiment of the present invention.
Specific embodiment
A kind of method and relevant device shunted the embodiment of the invention provides multipath, accurately divides for realizing multipath Stream.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts Example, shall fall within the protection scope of the present invention.
Shown in referring to Fig.1, one embodiment of routing device includes: in the embodiment of the present invention
First acquisition unit 401, for obtaining target flow ratio, the target flow is than leading to for two or more The flow-rate ratio in road;
Detailed content is referring to described in S101.
Allocation unit 402, it is described for being respectively directed to according to the target flow score with the logic port of respective number Physical port corresponding to two or more channel;
Detailed content is referring to described in S102.
Dispatching Unit 403, for passing through preset algorithm to the logic port packet distribution;
Detailed content is referring to described in S103.
Second acquisition unit 404, the actual flow ratio that the physical port is counted for obtaining statistic unit;
Detailed content is referring to described in S104.
Adjustment unit 405, for according to the actual flow physical port mapped logic port more described than adjustment Quantity, so that the difference of the ratio of the ratio of actual flow ratio and target flow ratio is less than preset threshold;
Detailed content is referring to described in S105.
Referring to shown in Fig. 2, another embodiment of routing device includes: in the embodiment of the present invention
First acquisition unit 501 specifically includes: evaluation unit 5011, for it is described two or more channel into Row bandwidth estimation, obtains estimation result;
Computing unit 5012, for according to the estimation result and preset rules be calculated described two or two with On channel actual bandwidth capabilities might;
Detailed content is referring to described in S201.
Mesh is arranged in setting unit 5013, the actual bandwidth capabilities might for two or more the channel according to Mark flow-rate ratio.
Detailed content is referring to described in S202.
Allocation unit 502, it is described for being respectively directed to according to the target flow score with the logic port of respective number Physical port corresponding to two or more channel;
Detailed content is referring to described in S203.
Dispatching Unit 503, for passing through Hash HASH algorithm to the logic port packet distribution;
Detailed content is referring to described in S204.
Second acquisition unit 504 includes the second acquisition subelement 5041, for obtaining statistic unit pair according to predetermined period The actual flow ratio that the physical port is counted;
Detailed content is referring to described in S205.
Adjustment unit 505, for according to the actual flow physical port mapped logic port more described than adjustment Quantity, so that the difference of the ratio of the ratio of actual flow ratio and target flow ratio is less than preset threshold;
Detailed content is referring to described in S206.
Referring to shown in Fig. 3, another embodiment of routing device includes: in the embodiment of the present invention
First acquisition unit 601 specifically includes: evaluation unit 6011, for it is described two or more channel into Row bandwidth estimation, obtains estimation result;
Computing unit 6012, for according to the estimation result and preset rules be calculated described two or two with On channel actual bandwidth capabilities might;
Detailed content is referring to described in S301.
Mesh is arranged in setting unit 6013, the actual bandwidth capabilities might for two or more the channel according to Mark flow-rate ratio;
Detailed content is referring to described in S302.
Allocation unit 602, it is described for being respectively directed to according to the target flow score with the logic port of respective number Physical port corresponding to two or more channel;
Detailed content is referring to described in S303.
Third acquiring unit 603, for obtain it is described two or more channel transmission priority;
Detailed content is referring to described in S304.
4th acquiring unit 604, for obtaining the priority of transmission services;
Detailed content is referring to described in S305.
Designating unit 605, for it is described be averaged packet distribution to the logic port before, specified one or one On the wandering column of the differentiated services code points DSCP of above high priority to the logical bit of specified one or more, described one A or more than one logical bit is high priority logical bit, and the high priority logical bit is directed toward the logical end of corresponding number Mouthful, the corresponding logic port of the high priority logical bit is preferentially directed toward described in transmission preferences in two or more channel Physical port corresponding to the high channel of grade;
Detailed content is referring to described in S306.
Dispatching Unit 606, for passing through Hash HASH algorithm to the logic port packet distribution;
Detailed content is referring to described in S307.
Second acquisition unit 607 includes the second acquisition subelement 6071, for obtaining statistic unit pair according to predetermined period The actual flow ratio that the physical port is counted;
Detailed content is referring to described in S308.
Adjustment unit 608 includes adjustment subelement 6081, for according to the actual flow ratio, when needing to reduce the biography Corresponding to the high channel of defeated priority when physical port mapped logic port number, the high priority logic is finally adjusted The corresponding logic port in position is directed toward physical port corresponding to the low channel of transmission priority;
When needing to increase physical port mapped logic port number corresponding to the high channel of the transmission priority, It preferentially adjusts the corresponding logic port of the high priority logical bit and is directed toward physics end corresponding to the high channel of transmission priority Mouthful, for the quantity according to the actual flow than adjusting the physical port mapped logic port, so that the reality The difference of the ratio of the ratio of flow-rate ratio and target flow ratio is less than preset threshold;
Detailed content is referring to described in S609.
Referring to shown in Fig. 4, the one embodiment for the method that multipath shunts in the embodiment of the present invention includes:
101, routing device obtains target flow ratio, flow of the target flow than the channel for two or more Than;
In the framework for carrying out multi-path transmission, since the bandwidth of the transmission path in different paths may not be identical, institute With it is desirable to carry out shunting transmission when carrying out data transmission, i.e. more data are distributed in the biggish channel of the bandwidth of path band Flow, less data flow is distributed in the lesser channel of the bandwidth in path, in this way, realizing in a manner of by accurately shunting quickly Transmission.So in embodiments of the present invention, routing device first obtains a desired target flow ratio, the target flow ratio is It is intended that it is described two or more channel flow ratio, for example, two passes if it exists, and it is intended that institute Stating the ratio between the flow that two passes transmit respectively is 7:3, then the target flow ratio is 7:3.The target flow ratio It can be and be artificially arranged.
102, the routing device is respectively directed to according to the target flow score with the logic port of respective number described Physical port corresponding to two or more channel;
Physical port is for connecting the interface between physical equipment, and logic port is the end for being used for Differentiated Services in logic Mouthful.So each physical port corresponds to the channel of a paths, logic port is used when carrying out data transmission when having determined Number when, then routing device is respectively directed to the physics than the logic port to distribute respective number according to the target flow Port.For example, and 10 logic ports have been determined to carry out data transmission, then by 7 logical ends if target flow ratio is 7:3 Mouth is directed toward a physical port, other 3 logic ports are directed toward another physical port.It should be noted that logic port Quantity be rate control granularity according to actual needs to set and design, granularity requirements more detailed rules and regulations quantity is bigger, this hair It is illustrated for 10 for ease of understanding in bright embodiment, the quantity of logic port is generally far larger than 10 in actual use It is a.
103, the routing device passes through preset algorithm to the logic port packet distribution;
After the mapping relations of logic port and physical port have been determined, then to the logic port packet distribution, In this way, flow-rate ratio when data traffic being made to reach physical port is close to desired target flow ratio.
104, the routing device obtains the actual flow ratio that statistic unit counts the physical port;
Since the length of each data packet may not be identical, so working as the routing device for each data packet average mark When being dealt into the logic port, actually carry out be between the physical port data packet number according to the shunting of target flow ratio Transmission, and and be according to accurate data traffic than progress shunting transmit.For example, if target flow ratio is 7:3, and 7 are patrolled It collects port and is directed toward a physical port, 3 logic ports are directed toward another physical port, and since the length of each data packet can Can not be identical, then the data traffic ratio that two physical ports are an actually-received may be 6:4 after carrying out data packet transmission.Institute To carry out traffic statistics to the physical port by statistic unit, obtain reality after the physical port receives data packet Border flow-rate ratio, and the actual flow ratio is fed back into the routing device, so that the routing device is to the physics end Mouth mapped logical port number is adjusted, to reach desired target flow ratio.
Optionally, it if since every transmission primaries data packet just carries out an actual flow statistics, and feeds back and is adjusted, this Sample can greatly increase the expense of system, so, statistic unit can be obtained according to predetermined period and the physical port is counted Actual flow ratio, the predetermined period, which can be, to be artificially arranged, be also possible to according to the time for calculating data transmission and about Surely it is calculated.In this way, being both able to achieve accurate shunting, the expense of system is decreased.
105, the routing device is according to the actual flow than adjusting the physical port mapped logic port Quantity, so that the difference of the ratio of the ratio of actual flow ratio and target flow ratio is less than preset threshold;
When the routing device actual flow ratio that gets of judgement and desired target flow ratio, which exist, to be entered and left, i.e. institute The difference for stating the ratio of actual flow ratio and the ratio of target flow ratio is greater than preset threshold, then needs by adjusting the object The quantity of port mapped logic port is managed, so that actual flow ratio is close to target flow ratio.For example, if desired mesh Marking flow-rate ratio is 7:3, and the actual flow ratio got is 6:4, then it represents that the wherein stream of the channel actual transmissions of a paths Amount is fewer than desired flow, and the desired flow of flow-rate ratio of another channel actual transmissions is more, so need to be adjusted, Such as, if being that 7 logic ports are directed toward the first physical port before, 3 logic ports are directed toward the second physical port, then can be by institute State a transfer in 3 logic ports of the second physical port mapped and be directed toward first physical port, after transfer then at It is directed toward the first physical port for 8 logic ports, 2 logic ports are directed toward the second physical port.In this way, by adjusting the object After managing port mapped logical port number, then makes actual flow ratio closer to desired target flow ratio, realize It is accurate to shunt transmission.
In the embodiment of the present invention, a desired target flow ratio is obtained first, is matched according to desired target flow score The logic port of respective number is respectively directed to physical port corresponding to two or more the channel, by imputing in advance Logic port packet distribution described in normal direction, in this way, data packet then can target flow ratio desirably be distributed to logic port Corresponding physical port, but since the length of each data packet is not identical, so even if relatively fifty-fifty by data packet It is distributed to each logic port, and the practical flow-rate ratio distributed and desired target flow ratio can have discrepancy, so also needing The actual flow ratio that statistic unit counts the physical port is obtained again, after getting actual flow ratio, then to the object Reason port mapped logical port number is increased and decreased to adjust the flow of the physical port actual transmissions, so that the reality The difference of the ratio of the ratio of border flow-rate ratio and target flow ratio is less than preset threshold and is mentioned with realizing that multipath accurately shunts High data transmission in network efficiency.
Above embodiment described can be by the way that desired target flow ratio is artificially arranged, so that routing device is according to institute Distribution of the target flow than carrying out logic port is stated, in practical applications, since the actual bandwidth of outlet openings is real-time change , so may not be most reasonable flow-rate ratio by the target flow ratio being artificially arranged, it is possible to first to outlet openings Actual bandwidth situation is measured in real time, and is set further according to the dynamic of the actual bandwidth situation progress target flow ratio in the channel It sets, is specifically described below, referring to Figure 5, another embodiment packet for the method that multipath shunts in the embodiment of the present invention It includes:
201, routing device to it is described two or more channel carry out bandwidth estimation, obtain bandwidth estimation as a result, And according to the estimation result and budget rules be calculated it is described two or more channel actual bandwidth ability Situation;
Since the actual bandwidth of outlet openings is real-time change, so may be simultaneously by the target flow ratio being artificially arranged Non- most reasonable flow-rate ratio, it is possible to estimation first is measured in real time to the actual bandwidth situation of outlet openings, estimated As a result, subtracting currently practical occupied bandwidth number according to estimation result, the bandwidth ability of the outlet openings is obtained, further according to described logical The actual bandwidth capabilities might in road carries out the dynamic setting of target flow ratio.
202, target flow ratio, the target flow ratio is arranged according to the actual bandwidth capabilities might in the routing device For it is described two or more channel flow-rate ratio;
Since dynamic change may occur for the bandwidth of outlet openings, for example, if number of channels is two, by logical to path After the bandwidth in road is detected, detect that the bandwidth of first passage is 3M, and the occupied bandwidth of presently described first passage is 2M, i.e., the bandwidth ability of the described first passage are 1M;The bandwidth of second channel is 2M, and presently described second channel is occupied Bandwidth is also 1M, then the bandwidth ability of the second channel is 1M, then can be according to actual bandwidth ability to first passage and the The target flow ratio 1:1 that two channel settling periods are hoped.During carrying out data transmission, by the band for detecting two passes When variation has occurred in width, for example the bandwidth ability variation of the first passage is 2M, and the bandwidth ability of the second channel is still 1M, then can modify desired target flow ratio to first passage and second channel according to testing result is 2:1.
203, the routing device is respectively directed to according to the target flow score with the logic port of respective number described Physical port corresponding to two or more channel;
Detailed content is referring to described in S102.
204, the routing device passes through Hash HASH algorithm to the logic port packet distribution;
Detailed content is referring to described in S103.
205, the routing device obtains the practical stream that statistic unit counts the physical port according to predetermined period Amount ratio;
Detailed content is referring to described in S104.
206, the routing device is according to the actual flow than adjusting the physical port mapped logic port Quantity, so that the difference of the ratio of the ratio of actual flow ratio and target flow ratio is less than preset threshold;
Detailed content is referring to described in S105.
In the embodiment of the present invention, by the actual bandwidth capabilities might in two or more channel described in acquisition, then According to it is described two or more channel actual bandwidth capabilities might be arranged target flow ratio, in this way, according to channel The dynamic change of bandwidth and the target flow that is set dynamically improve the utilization rate of resource, also improve simultaneously than more reasonable The efficiency of data transmission.
Above embodiment described desired target stream is set dynamically by the actual bandwidth capabilities might of Acquisition channel Measure ratio, in practical applications, the transmission priority in different channels is different, different business can also exist priority height it Point, so during actual transmissions, the channel that data packet can also be specified to be transmitted according to the priority of business, below into Row specifically describes, and referring to shown in Fig. 6, another embodiment for the method that multipath shunts in the embodiment of the present invention includes:
301, routing device to it is described two or more channel carry out bandwidth estimation, obtain bandwidth estimation as a result, And according to the estimation result and preset rules be calculated it is described two or more channel actual bandwidth ability Situation;
Detailed content is referring to described in S201.
302, target flow ratio, the target flow ratio is arranged according to the actual bandwidth capabilities might in the routing device For it is described two or more channel flow-rate ratio;
Detailed content is referring to described in S202.
303, the routing device is respectively directed to according to the target flow score with the logic port of respective number described Physical port corresponding to two or more channel;
Detailed content is referring to described in S203.
304, the transmission priority in two or more channel described in the routing device acquisition;
In actual use, multipath channel transfer reliability and quality may be different, for example a base station uses Two kinds of wireless backhaul paths, a paths are the relaying channels Relay, and a paths are logical without limitation Unlicensed (such as wifi) Road, the reliability and quality in the channel Relay are better than the channel Unlicensed, and there is also point of priority height, people for business Being intended to high-priority service can preferentially transmit on the channel Relay, to guarantee the transmission priority of high-priority service, so The routing device needs first to obtain the transmission priority in multipath channel.
305, the routing device obtains the priority of transmission services;
When needing the packet priority by the business of high priority to be transferred on the high channel of quality, then need first to obtain The priority of transmission services.
306, specify the wandering column of the differentiated services code points DSCP of one or more high priority to specified In the logical bit of one or more, one or more than one logical bit is high priority logical bit, the high priority Logical bit is directed toward the logic port of corresponding number, and the corresponding logic port of the high priority logical bit is preferentially directed toward described two Or physical port corresponding to the high channel of transmission priority in two or more channels;
After the priority of the transmission priority and business that have got outlet openings, need the business of high priority Packet priority be sent on the high channel of transmission priority, due to the transmission of data packet be first be sent to logic port, so Needing first to specify one or more logic port is high priority logic port, and the logic port of high priority is excellent It is first directed toward physical port corresponding to the high channel of transmission priority, it can be by specifying one or more high priority Differentiated services code points (Differentiated Services Code Point, DSCP) wandering column to specified one Or the mode in more than one logical bit is realized, the logical bit is logical bits bit.
307, the routing device passes through Hash HASH algorithm to the logic port packet distribution;
Detailed content is referring to described in S204.
308, the routing device obtains the practical stream that statistic unit counts the physical port according to predetermined period Amount ratio;
Detailed content is referring to described in S104.
309, the routing device is according to the actual flow ratio, when needing to reduce the high channel institute of the transmission priority When corresponding physical port mapped logic port number, finally adjusts the corresponding logic port of the high priority logical bit and refer to Physical port corresponding to the channel low to transmission priority;When needing to increase corresponding to the high channel of the transmission priority When physical port mapped logic port number, preferentially adjusts the corresponding logic port of the high priority logical bit and be directed toward transmission Physical port corresponding to the high channel of priority, so that the ratio of the ratio of actual flow ratio and the target flow ratio Difference be less than preset threshold;
After routing device gets actual flow ratio, judge that the actual flow ratio and desired target flow ratio exist When discrepancy, i.e., the difference of the ratio of the ratio and target flow ratio of the described actual flow ratio is greater than preset threshold, then needs pair Physical port mapped logic port number is adjusted.When needing to reduce object corresponding to the high channel of the transmission priority When managing port mapped logic port number, finally just adjusts the corresponding logic port of the high priority logical bit and be directed toward transmission Physical port corresponding to the low channel of priority, i.e., it is first that the low logic port transfer direction transmission priority of priority is lower Channel corresponding to physical port.For example, transmission priority is higher if the lower channel of transmission priority is first passage Channel is second channel, and the corresponding Physical ports map of the first passage has 7 logic ports, and described second leads to corresponding object Reason port road is mapped with 3 logic ports, wherein the corresponding Physical ports map of the second channel is there are two logic port The logic port of high priority, desired target flow ratio is 7:3, but actual flow ratio is 6:4, so being adjusted It is whole, the corresponding physical port mapped logic port of the second channel is shifted wherein one or more and is led to described first On the corresponding physical port in road, at this moment, then the low logic port of priority is first transferred to the corresponding physics of the first passage On port.When needing to increase physical port mapped logic port number corresponding to the high channel of the transmission priority, It preferentially adjusts the corresponding logic port of the high priority logical bit and is directed toward physics end corresponding to the high channel of transmission priority Mouthful, for example, if transmission priority is lower after adjustment by one or many pairs of physical port mapped logic ports Physical port corresponding to first passage is also mapped with the logic port of a high priority, and needs the first passage institute When corresponding physical port mapped logic port is transferred to the higher second channel of transmission priority corresponding physical port, The logic port of the corresponding physical port mapped high priority of the first passage is preferentially then transferred to described second to lead to On the corresponding physical port in road.
In the embodiment of the present invention, by obtaining the transmission priority in multipath channel and the priority of business, and specify The logic port of priority is directed toward the high corresponding physical port in channel of transmission priority, to physical port mapped logic When port number is adjusted, the logic port of high priority is finally shifted to the corresponding object in the lower channel of transmission priority The logic port of port and limited transfer high priority is managed to the corresponding physical port in the higher channel of transmission priority, this Sample, to guarantee that pointed by the logic port of high priorities more as far as possible be the corresponding physics end in the high channel of transmission priority Mouthful, while to realize that multipath accurately shunts, guarantee the transmission priority of high-priority service.
It is set it should be noted that routing device described in the embodiment of the present invention can be the various networks by IP transmission It is standby, including and be not limited to such as base station, controller, router, gateway etc. the network equipment, specifically without limitation.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (14)

1. a kind of routing device, which is characterized in that the equipment includes:
First acquisition unit, for obtaining target flow ratio, stream of the target flow than the channel for two or more Amount ratio;
Allocation unit, for being respectively directed to described two or two with the logic port of respective number according to the target flow score Physical port corresponding to channel more than item;
Dispatching Unit, for passing through preset algorithm to the logic port packet distribution;
Second acquisition unit, the actual flow ratio that the physical port is counted for obtaining statistic unit;
Adjustment unit makes for the quantity according to the actual flow than adjusting the physical port mapped logic port The difference for obtaining the ratio of the actual flow ratio and the ratio of target flow ratio is less than preset threshold.
2. equipment according to claim 1, which is characterized in that the second acquisition unit includes:
Second obtains subelement, for obtaining the actual flow that statistic unit counts the physical port according to predetermined period Than.
3. equipment according to claim 1 or 2, which is characterized in that the first acquisition unit specifically includes:
Evaluation unit, for it is described two or more channel carry out bandwidth estimation, obtain estimation result;
Computing unit, for two or more the channel to be calculated according to the estimation result and preset rules Actual bandwidth capabilities might;
Target flow is arranged in setting unit, the actual bandwidth capabilities might for two or more the channel according to Than.
4. equipment according to claim 1 or 2, which is characterized in that the preset algorithm includes: Hash HASH algorithm.
5. equipment according to claim 1 or 2, which is characterized in that the equipment further include:
Third acquiring unit, in the Dispatching Unit by preset algorithm to before the logic port packet distribution, The transmission priority in two or more channel described in obtaining;
4th acquiring unit, for obtaining the priority of transmission services.
6. equipment according to claim 5, which is characterized in that the equipment further include:
Designating unit, for it is described be averaged packet distribution to the logic port before, specify one or more It is one or one on the wandering column of the differentiated services code points DSCP of high priority to the logical bit of specified one or more A above logical bit is high priority logical bit, and the high priority logical bit is directed toward the logic port of corresponding number, described It is high that the corresponding logic port of high priority logical bit is preferentially directed toward transmission priority in two or more the channel Physical port corresponding to channel.
7. equipment according to claim 6, which is characterized in that the adjustment unit specifically includes:
Subelement is adjusted, for according to the actual flow ratio, when needing to reduce corresponding to the high channel of the transmission priority Physical port mapped logic port number when, finally adjust the corresponding logic port of the high priority logical bit and be directed toward and pass Physical port corresponding to the low channel of defeated priority;
When needing to increase physical port mapped logic port number corresponding to the high channel of the transmission priority, preferentially It adjusts the corresponding logic port of the high priority logical bit and is directed toward physical port corresponding to the high channel of transmission priority.
8. a kind of method that multipath shunts, which is characterized in that the described method includes:
Obtain target flow ratio, flow-rate ratio of the target flow than the channel for two or more;
Two or more the channel is respectively directed to the logic port of respective number according to the target flow score Corresponding physical port;
By preset algorithm to the logic port packet distribution;
Obtain the actual flow ratio that statistic unit counts the physical port;
Quantity according to the actual flow than adjusting the physical port mapped logic port, so that the actual flow The difference of the ratio of the ratio of ratio and target flow ratio is less than preset threshold.
9. according to the method described in claim 8, it is characterized in that, the acquisition statistic unit counts the physical port Actual flow ratio include:
The actual flow ratio that statistic unit counts the physical port is obtained according to predetermined period.
10. method according to claim 8 or claim 9, which is characterized in that specifically included obtaining the target flow ratio:
To it is described two or more channel carry out bandwidth estimation, obtain bandwidth estimation as a result, and according to the estimation knot Fruit and preset rules be calculated it is described two or more channel actual bandwidth capabilities might;
According to the actual bandwidth capabilities might, target flow ratio is set.
11. method according to claim 8 or claim 9, which is characterized in that the preset algorithm includes: Hash HASH algorithm.
12. method according to claim 8 or claim 9, which is characterized in that it is described by preset algorithm to the logic port Before packet distribution, the method also includes:
The transmission priority in two or more channel described in obtaining;
Obtain the priority of transmission services.
13. according to the method for claim 12, which is characterized in that divided by preset algorithm to the logic port described Before sending out data packet, the method also includes:
Specify the wandering column of the differentiated services code points DSCP of one or more high priority to specified one or with On logical bit on, one or more than one logical bit is high priority logical bit, and the high priority logical bit refers to To the logic port of corresponding number, the corresponding logic port of the high priority logical bit be preferentially directed toward described two or two with On channel in physical port corresponding to the high channel of transmission priority.
14. according to the method for claim 13, which is characterized in that described according to the actual flow physics more described than adjustment The quantity of port mapped logic port specifically includes:
According to the actual flow ratio, mapped when needing to reduce physical port corresponding to the high channel of the transmission priority Logic port number when, finally adjust the corresponding logic port of the high priority logical bit and be directed toward the low channel of transmission priority Corresponding physical port;
When needing to increase physical port mapped logic port number corresponding to the high channel of the transmission priority, preferentially It adjusts the corresponding logic port of the high priority logical bit and is directed toward physical port corresponding to the high channel of transmission priority.
CN201510552614.5A 2015-09-01 2015-09-01 A kind of method and relevant device of multipath shunting Active CN105262696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510552614.5A CN105262696B (en) 2015-09-01 2015-09-01 A kind of method and relevant device of multipath shunting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510552614.5A CN105262696B (en) 2015-09-01 2015-09-01 A kind of method and relevant device of multipath shunting

Publications (2)

Publication Number Publication Date
CN105262696A CN105262696A (en) 2016-01-20
CN105262696B true CN105262696B (en) 2019-02-12

Family

ID=55102204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510552614.5A Active CN105262696B (en) 2015-09-01 2015-09-01 A kind of method and relevant device of multipath shunting

Country Status (1)

Country Link
CN (1) CN105262696B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262698B (en) 2015-10-28 2019-03-01 华为技术有限公司 A kind of methods, devices and systems of load balancing
CN109088822B (en) * 2018-09-21 2022-08-16 平安科技(深圳)有限公司 Data flow forwarding method, device, system, computer equipment and storage medium
CN110730470B (en) * 2019-10-24 2020-10-27 北京大学 Mobile communication equipment integrating multiple access technologies
CN115361316B (en) * 2022-07-20 2023-11-10 慧之安信息技术股份有限公司 Internet of things data packet transmission delay detection method based on edge calculation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605091A (en) * 2009-02-13 2009-12-16 华为技术有限公司 A kind of multi-port load sharing method, device and network system
CN103281252A (en) * 2013-05-14 2013-09-04 华为技术有限公司 Message flow control method and device based on multi-path transmission
CN103636175A (en) * 2013-03-07 2014-03-12 华为技术有限公司 Traffic matrix coputation method and device based on service level traffic information
CN103973585A (en) * 2014-05-14 2014-08-06 合肥工业大学 On-chip network service flow splitting method based on multipath routing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013078584A1 (en) * 2011-11-28 2013-06-06 华为技术有限公司 Data flow switch control method and relevant device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605091A (en) * 2009-02-13 2009-12-16 华为技术有限公司 A kind of multi-port load sharing method, device and network system
CN103636175A (en) * 2013-03-07 2014-03-12 华为技术有限公司 Traffic matrix coputation method and device based on service level traffic information
CN103281252A (en) * 2013-05-14 2013-09-04 华为技术有限公司 Message flow control method and device based on multi-path transmission
CN103973585A (en) * 2014-05-14 2014-08-06 合肥工业大学 On-chip network service flow splitting method based on multipath routing

Also Published As

Publication number Publication date
CN105262696A (en) 2016-01-20

Similar Documents

Publication Publication Date Title
CN105262696B (en) A kind of method and relevant device of multipath shunting
CN102098301B (en) The adaptive data transmission method of multilink and system
CN105610820B (en) A kind of jamming control method and device based on MPTCP
CN105531968B (en) Network-based adaptation rate method for limiting and device
TWI390869B (en) System of network resources distribution and method of the same
CN103716208B (en) Support network management, system, interchanger and the network of elephant stream
JP4737035B2 (en) QoS routing method and QoS routing apparatus
CN102014075B (en) Traffic policing method and device
JP2017034678A5 (en)
CN106130928B (en) Flow control methods and system under a kind of SDN network
CN103841044A (en) Bandwidth control method based on software-defined networking and oriented to different types of flow
CN100518144C (en) Method and system for fairly adjusting bandwidth among distributed network elements
CN103797841B (en) A kind of admittance control method and device
JP2008085692A (en) Best-effort band assigning method and device
CN101115013A (en) Method of providing resource admission control
MY158555A (en) Method and system for controlling the bandwidth to comply with a predetermined quality of service at an access point of a communications network operating an aggregation of heterogeneous traffic flows
JP2009022058A5 (en)
US11929911B2 (en) Shaping outgoing traffic of network packets in a network management system
CN104601488B (en) Flow control methods and device in a kind of software defined network
CN104486235B (en) A kind of AFDX network delays reduce method
CN105871751A (en) Method and system for guaranteeing network bandwidth of data center
CN108259221A (en) Flow control methods, device, system, storage medium and processor
CN202218410U (en) Multi-channel load balancing equipment
CN100476790C (en) Method and system for resource bunlding in communications network
CN103441943B (en) A kind of traffic messages control method and device

Legal Events

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