[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN103023815B - Aggregation link load sharing method and device - Google Patents

Aggregation link load sharing method and device Download PDF

Info

Publication number
CN103023815B
CN103023815B CN201210576777.3A CN201210576777A CN103023815B CN 103023815 B CN103023815 B CN 103023815B CN 201210576777 A CN201210576777 A CN 201210576777A CN 103023815 B CN103023815 B CN 103023815B
Authority
CN
China
Prior art keywords
load sharing
sharing algorithm
algorithm
bandwidth
difference
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
CN201210576777.3A
Other languages
Chinese (zh)
Other versions
CN103023815A (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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201210576777.3A priority Critical patent/CN103023815B/en
Publication of CN103023815A publication Critical patent/CN103023815A/en
Application granted granted Critical
Publication of CN103023815B publication Critical patent/CN103023815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses are aggregation link load sharing method and device. The method includes: configuring various load sharing algorithms in a network device; starting the network device to test each self-configured load sharing algorithm for a preset duration; sharing ingress port flow to member ports in an aggregation link group by the current load sharing algorithm for testing within the test duration, calculating bandwidth of the member ports in the aggregation link group after testing, and calculating and recording differences between maximum bandwidth and minimum bandwidth of the member ports; and when testing by the load sharing algorithms is complete, selecting the load sharing algorithm corresponding to the minimum difference as the finally used load sharing algorithm. By the use of the method and device, load sharing efficiency of the aggregation links is improved.

Description

Aggregated links load sharing method and device
Technical field
The present invention relates to link aggregation technical field, be specifically related to aggregated links load sharing method and device.
Background technology
Link aggregation is a kind of technology that Ethernet is often disposed, and by multiple physical interface is pooled a logic interface, adds link bandwidth and reliability.Fig. 1 gives existing representative link polymerization schematic diagram.
Adopt the major advantage of link aggregation as follows:
Bandwidth linear increases: in theory, bandwidth is the bandwidth sum of all links in aggregated links group;
Reliability increases: the damage of a link can not cause the failure of whole transmission;
Load balancing: the flow of user is assigned on each link and transmits;
Dynamic-configuration: when lacking human configuration, aggregated links group can dynamic-configuration, and link can dynamically add aggregated links group;
Result predictability: according to the algorithm selected, link aggregation configuration problem-solving ability is deterministic, such as, the order that polymerization can occur independent of event, the result of polymerization is determined with their physical connection by the ability of each link in aggregated links group.
Wherein, load balancing generally adopts HASH algorithm, according to some field of message or the ingress port information entering the network equipment, carries out HASH calculating, determines the physical outlet of flow according to result of calculation.Whether load balancing is evenly the standard judging its algorithm quality.
Current switch device all supports multiple Load Sharing Algorithm, to meet multiple business demand.Network manager can be checked and configuration by manual, determines optimal Load Sharing Algorithm.
The existing Load Sharing Algorithm for link aggregation group has following two shortcomings:
One, specific to real network, network manager and do not know which kind of Load Sharing Algorithm can share ground evenly, need manual configuration to verify one by one, just the most uniform Load Sharing Algorithm can be found, for large-scale networking, have a lot of aggregated links, workload is very large; Often first adopt default load Sharing Algorithm, if there is packet loss, then use other Load Sharing Algorithm instead, this method belongs to remedial measure, cannot prevent trouble before it happens.
If two Networks change, current Load Sharing Algorithm may business after improper change, and not a kind of mechanism can informing network keeper be modified.
Summary of the invention
The invention provides aggregated links load sharing method and device, to improve aggregated links load balancing efficiency.
Technical scheme of the present invention is achieved in that
A kind of aggregated links load sharing method, configure multiple Load Sharing Algorithm on network devices in advance, the method comprises:
The network equipment starts, and for often kind of Load Sharing Algorithm of self configuration, tests preset duration respectively;
In each length of testing speech, adopt the Load Sharing Algorithm of current test by inbound port traffic sharing on each member port of aggregated links group, and at the end of test, calculate the bandwidth of each member port of aggregated links group, calculate and record the difference of member port maximum bandwidth and minimum bandwidth;
When all Load Sharing Algorithm are all completed, the Load Sharing Algorithm selecting minimum bandwidth difference corresponding is as the final Load Sharing Algorithm adopted.
Load Sharing Algorithm corresponding to described selection minimum bandwidth difference comprises further as after the final Load Sharing Algorithm adopted:
The network equipment periodically detects the bandwidth of each member port of aggregated links group, calculate and record the difference of member port maximum bandwidth and minimum bandwidth, judge whether bandwidth difference that this cycle obtains is not more than the bandwidth difference that the last cycle obtains, and if so, keeps present load Sharing Algorithm constant; Otherwise, return described often kind of Load Sharing Algorithm for self configuration, test the action of preset duration respectively.
One in described multiple Load Sharing Algorithm is default load Sharing Algorithm,
And, described often kind of Load Sharing Algorithm for self configuration, testing preset duration is respectively:
First test default load Sharing Algorithm, then test other Load Sharing Algorithm.
Load Sharing Algorithm corresponding to described selection minimum bandwidth difference comprises as the final Load Sharing Algorithm adopted:
When the corresponding multiple Load Sharing Algorithm of minimum bandwidth difference, judge whether current algorithm is one of them, if so, select current algorithm as the final Load Sharing Algorithm adopted; Otherwise, choose any one kind of them in this multiple Load Sharing Algorithm as the final Load Sharing Algorithm adopted.
A kind of aggregated links load balancing device, comprising:
Algorithms selection module: during startup, for often kind of Load Sharing Algorithm of self configuration, test preset duration respectively, when each test of heuristics starts, this algorithm title is sent to load balancing module, at the end of each algorithm uses, calculate the bandwidth of each member port of aggregated links group, calculate and record the difference of member port maximum bandwidth and minimum bandwidth; When all Load Sharing Algorithm are all completed, this algorithm, as the final Load Sharing Algorithm adopted, is sent to load balancing module by the Load Sharing Algorithm selecting minimum bandwidth difference corresponding;
Load balancing module: when receiving the algorithm that algorithms selection module is sent, starts to adopt this algorithm by inbound port traffic sharing on each member port of aggregated links group.
Described algorithms selection module is further used for,
After the Load Sharing Algorithm selecting minimum bandwidth difference corresponding is as the final Load Sharing Algorithm adopted, periodically detect the bandwidth of each member port of aggregated links group, calculate and record the difference of member port maximum bandwidth and minimum bandwidth, judge whether bandwidth difference that this cycle obtains is not more than the bandwidth difference that the last cycle obtains, if so, keep present load Sharing Algorithm constant; Otherwise, return described often kind of Load Sharing Algorithm for self configuration, test the action of preset duration respectively.
Described algorithms selection module is further used for, and when the one in the Load Sharing Algorithm of self configuration is default load Sharing Algorithm, when testing, first tests default load Sharing Algorithm.
Described algorithms selection module is further used for, when the Load Sharing Algorithm selecting minimum bandwidth difference corresponding is as the final Load Sharing Algorithm adopted, if the corresponding multiple Load Sharing Algorithm of minimum bandwidth difference, then judge whether current algorithm is one of them, if so, select current algorithm as the final Load Sharing Algorithm adopted; Otherwise, choose any one kind of them in this multiple Load Sharing Algorithm as the final Load Sharing Algorithm adopted.
Described device is positioned on the network equipment of support link aggregation.
Compared with prior art, the present invention can make the network equipment be automatically found optimal load Sharing Algorithm, improves the load balancing efficiency of aggregated links.
Accompanying drawing explanation
Fig. 1 is existing representative link polymerization schematic diagram;
The method flow diagram carrying out load balancing in aggregated links group that Fig. 2 provides for the embodiment of the present invention;
The composition schematic diagram of the aggregated links load balancing device that Fig. 3 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is further described in more detail.
The method flow diagram carrying out load balancing in aggregated links group that Fig. 2 provides for the embodiment of the present invention, as shown in Figure 2, its concrete steps are as follows:
Step 200: pre-configured N(N is positive integer and N>1 on network devices) plant Load Sharing Algorithm, wherein a kind is default load Sharing Algorithm, pre-sets length of testing speech T.
Here, which kind of the Load Sharing Algorithm of configuration specifically selects, and can rule of thumb determine.
Step 201: time initial, the network equipment adopts default load Sharing Algorithm, by inbound port traffic sharing on each bar Member Link of aggregated links group.
Usually, the network equipment is all configured with default load Sharing Algorithm, default load Sharing Algorithm normally through long-term practice inspection, can meet most cases needs.
Step 202: after T duration, the network equipment detects the bandwidth of each member port of aggregated links group, calculates and records the difference of member port maximum bandwidth and minimum bandwidth.
Step 203: the network equipment starts to adopt another kind of Load Sharing Algorithm, by inbound port traffic sharing on each bar Member Link of aggregated links group.
Step 204: after T duration, the network equipment detects the bandwidth of each member port of aggregated links group, calculates and records the difference of member port maximum bandwidth and minimum bandwidth.
Step 205: the network equipment judges whether that all Load Sharing Algorithm were tested all, if so, performs step 206; Otherwise, return step 203.
Step 206: the Load Sharing Algorithm that the network equipment selects bandwidth difference minimum, as optimal load Sharing Algorithm, starts to adopt optimal load Sharing Algorithm, by inbound port traffic sharing on each bar Member Link of aggregated links group.
If the minimum Load Sharing Algorithm of bandwidth difference has multiple, then judge whether current algorithm is one of them, if so, then select current algorithm to be optimal load Sharing Algorithm, otherwise, in the algorithm that bandwidth difference is minimum optional one as optimal load Sharing Algorithm.
When finding optimal load Sharing Algorithm, can pass through daily record (log) or trap (Trap) message notice keeper, so that follow-up when disposing identical network, keeper can in this, as reference.
Step 207: the network equipment periodically detects the bandwidth of each member port of aggregated links group, calculates and records the difference of member port maximum bandwidth and minimum bandwidth.
Cycle in this step can equal the length of testing speech T in step 200.
Step 208: the network equipment judges whether bandwidth difference that this cycle obtains is not more than the bandwidth difference that the last cycle obtains, and if so, performs step 209; Otherwise, return step 201.
Step 209: the network equipment keeps present load Sharing Algorithm constant, returns step 207.
If bandwidth difference diminishes, show because of business change, traffic sharing evenly, now, do not need to change Load Sharing Algorithm.
If bandwidth difference becomes large, show that traffic sharing is uneven, now needs to reselect Load Sharing Algorithm because of business change.
The composition schematic diagram of the aggregated links load balancing device that Fig. 3 provides for the embodiment of the present invention, as shown in Figure 3, it mainly comprises: algorithms selection module 31 and load balancing module 32, wherein:
Algorithms selection module 31: during startup, for often kind of Load Sharing Algorithm of present networks Equipments Setting, test preset duration respectively, when each test of heuristics starts, this algorithm title is sent to load balancing module 32, at the end of each algorithm uses, calculate the bandwidth of each member port of aggregated links group, calculate and record the difference of member port maximum bandwidth and minimum bandwidth; When all Load Sharing Algorithm are all completed, this algorithm, as the final Load Sharing Algorithm adopted, is sent to load balancing module 32 by the Load Sharing Algorithm selecting minimum bandwidth difference corresponding.
Load balancing module 32: when receiving the Load Sharing Algorithm that algorithms selection module 31 is sent, starts to adopt this algorithm by inbound port traffic sharing on each member port of aggregated links group.
Algorithms selection module 31 is further used for, after the Load Sharing Algorithm selecting minimum bandwidth difference corresponding is as the final Load Sharing Algorithm adopted, periodically detect the bandwidth of each member port of aggregated links group, calculate and record the difference of member port maximum bandwidth and minimum bandwidth, judge whether bandwidth difference that this cycle obtains is not more than the bandwidth difference that the last cycle obtains, if so, keep present load Sharing Algorithm constant; Otherwise, return described often kind of Load Sharing Algorithm for present networks Equipments Setting, test the action of preset duration respectively.
Algorithms selection module 31 is further used for, and when the one in the Load Sharing Algorithm of present networks Equipments Setting is default load Sharing Algorithm, when testing, first tests default load Sharing Algorithm.
Algorithms selection module 31 is further used for, when the Load Sharing Algorithm selecting minimum bandwidth difference corresponding is as the final Load Sharing Algorithm adopted, if the corresponding multiple Load Sharing Algorithm of minimum bandwidth difference, then judge whether current algorithm is one of them, if so, select current algorithm as the final Load Sharing Algorithm adopted; Otherwise, choose any one kind of them in this multiple Load Sharing Algorithm as the final Load Sharing Algorithm adopted.
Fig. 3 shown device can be positioned on the network equipment of support link aggregation.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (7)

1. an aggregated links load sharing method, is characterized in that, configure multiple Load Sharing Algorithm on network devices in advance, the method comprises:
The network equipment starts, and for often kind of Load Sharing Algorithm of self configuration, tests preset duration respectively;
In each length of testing speech, adopt the Load Sharing Algorithm of current test by inbound port traffic sharing on each member port of aggregated links group, and at the end of test, calculate the bandwidth of each member port of aggregated links group, calculate and record the difference of member port maximum bandwidth and minimum bandwidth;
When all Load Sharing Algorithm are all completed, the Load Sharing Algorithm selecting minimum bandwidth difference corresponding as the final Load Sharing Algorithm adopted, and,
When the corresponding multiple Load Sharing Algorithm of minimum bandwidth difference, judge whether current algorithm is one of them, if so, select current algorithm as the final Load Sharing Algorithm adopted; Otherwise, choose any one kind of them in this multiple Load Sharing Algorithm as the final Load Sharing Algorithm adopted.
2. method according to claim 1, is characterized in that, Load Sharing Algorithm corresponding to described selection minimum bandwidth difference comprises further as after the final Load Sharing Algorithm adopted:
The network equipment periodically detects the bandwidth of each member port of aggregated links group, calculate and record the difference of member port maximum bandwidth and minimum bandwidth, judge whether bandwidth difference that this cycle obtains is not more than the bandwidth difference that the last cycle obtains, and if so, keeps present load Sharing Algorithm constant; Otherwise, return described often kind of Load Sharing Algorithm for self configuration, test the action of preset duration respectively.
3. method according to claim 1, is characterized in that, the one in described multiple Load Sharing Algorithm is default load Sharing Algorithm,
And, described often kind of Load Sharing Algorithm for self configuration, testing preset duration is respectively:
First test default load Sharing Algorithm, then test other Load Sharing Algorithm.
4. an aggregated links load balancing device, is characterized in that, comprising:
Algorithms selection module: during startup, for often kind of Load Sharing Algorithm of self configuration, test preset duration respectively, when each test of heuristics starts, this algorithm title is sent to load balancing module, at the end of each algorithm uses, calculate the bandwidth of each member port of aggregated links group, calculate and record the difference of member port maximum bandwidth and minimum bandwidth; When all Load Sharing Algorithm are all completed, the Load Sharing Algorithm selecting minimum bandwidth difference corresponding is as the final Load Sharing Algorithm adopted, and, if the corresponding multiple Load Sharing Algorithm of minimum bandwidth difference, then judge whether current algorithm is one of them, if so, select current algorithm as the final Load Sharing Algorithm adopted; Otherwise, choose any one kind of them in this multiple Load Sharing Algorithm as the final Load Sharing Algorithm adopted, the Load Sharing Algorithm finally adopted sent to load balancing module;
Load balancing module: when receiving the algorithm that algorithms selection module is sent, starts to adopt this algorithm by inbound port traffic sharing on each member port of aggregated links group.
5. device according to claim 4, is characterized in that, described algorithms selection module is further used for,
After the Load Sharing Algorithm selecting minimum bandwidth difference corresponding is as the final Load Sharing Algorithm adopted, periodically detect the bandwidth of each member port of aggregated links group, calculate and record the difference of member port maximum bandwidth and minimum bandwidth, judge whether bandwidth difference that this cycle obtains is not more than the bandwidth difference that the last cycle obtains, if so, keep present load Sharing Algorithm constant; Otherwise, return described often kind of Load Sharing Algorithm for self configuration, test the action of preset duration respectively.
6. device according to claim 4, is characterized in that, described algorithms selection module is further used for, and when the one in the Load Sharing Algorithm of self configuration is default load Sharing Algorithm, when testing, first tests default load Sharing Algorithm.
7. device according to claim 4, is characterized in that, described device is positioned on the network equipment of support link aggregation.
CN201210576777.3A 2012-12-26 2012-12-26 Aggregation link load sharing method and device Active CN103023815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210576777.3A CN103023815B (en) 2012-12-26 2012-12-26 Aggregation link load sharing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210576777.3A CN103023815B (en) 2012-12-26 2012-12-26 Aggregation link load sharing method and device

Publications (2)

Publication Number Publication Date
CN103023815A CN103023815A (en) 2013-04-03
CN103023815B true CN103023815B (en) 2015-05-13

Family

ID=47971955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210576777.3A Active CN103023815B (en) 2012-12-26 2012-12-26 Aggregation link load sharing method and device

Country Status (1)

Country Link
CN (1) CN103023815B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104333491B (en) * 2014-11-25 2017-10-31 中国人民解放军国防科学技术大学 The automated testing method and device of a kind of huge system domain network availability
CN106453111B (en) * 2015-08-11 2020-12-22 中兴通讯股份有限公司 Traffic management method and device based on aggregated link
CN105490958B (en) * 2015-12-09 2019-08-16 上海斐讯数据通信技术有限公司 A kind of method and system of LACP load balancing
CN107302501B (en) * 2017-06-15 2021-06-25 郑州云海信息技术有限公司 Method and device for adjusting network port aggregation
CN107453944B (en) * 2017-07-07 2021-04-02 台州市吉吉知识产权运营有限公司 Method and system for determining optimal test connection number of network throughput test
CN110740075B (en) * 2019-09-06 2021-06-22 北京直真科技股份有限公司 Method for fine dial testing and quality analysis of Ethernet aggregation link
CN113645145B (en) * 2021-08-02 2024-07-19 迈普通信技术股份有限公司 Load balancing method, load balancing device, network equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744593A (en) * 2004-08-30 2006-03-08 普天信息技术研究院 Transmission link selecting method
US20090279431A1 (en) * 2008-05-08 2009-11-12 Pritam Baruah Load Balancing Pseudowire Encapsulated IPTV Channels Over Aggregated Links
US7787370B1 (en) * 2001-09-06 2010-08-31 Nortel Networks Limited Technique for adaptively load balancing connections in multi-link trunks
CN102263697A (en) * 2011-08-03 2011-11-30 杭州华三通信技术有限公司 Method and device for sharing aggregated link traffic

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7787370B1 (en) * 2001-09-06 2010-08-31 Nortel Networks Limited Technique for adaptively load balancing connections in multi-link trunks
CN1744593A (en) * 2004-08-30 2006-03-08 普天信息技术研究院 Transmission link selecting method
US20090279431A1 (en) * 2008-05-08 2009-11-12 Pritam Baruah Load Balancing Pseudowire Encapsulated IPTV Channels Over Aggregated Links
CN102263697A (en) * 2011-08-03 2011-11-30 杭州华三通信技术有限公司 Method and device for sharing aggregated link traffic

Also Published As

Publication number Publication date
CN103023815A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN103023815B (en) Aggregation link load sharing method and device
US9118599B2 (en) Network testing using a control server
CN111786804B (en) Link fault monitoring method and device
US9270560B2 (en) Session layer for monitoring utility application traffic
CN102868553B (en) Fault Locating Method and relevant device
CA2602289A1 (en) Using a fixed network wireless data collection system to improve utility responsiveness to power outages
WO2016188187A1 (en) Testing method and device for passive optical network alarm
CN102265555A (en) Conversion method between an main communicational equipment and a spare communicational equipment, the communicational equipments and a service request equipment
US20160226714A1 (en) Method and device for monitoring network link and storage medium therefor
CN103152210B (en) Repair method and the stack equipment of Spanning-Tree Protocol forwarding state exception
CN104518936B (en) Link dynamic aggregation method and apparatus
EP2890063B1 (en) Method and apparatus for determining energy-efficient routing
CN105554099A (en) Method and device for balancing load of acquisition servers
CN103916319A (en) Link selection method and stacking device in LACP stacked networking
CN101145977A (en) A QoS monitoring system and its measuring method of IP data network
CN102265556B (en) Conversion method between an main communicational equipment and a spare communicational equipment, the communicational equipments and a service request equipment
CN104394034A (en) Method and system based on LLDP protocol detection link aggregation configuration
WO2019079961A1 (en) Method and device for determining shared risk link group
CN105791113B (en) A kind of multilink delay equalization method and system based on SDN
Tri et al. Locating deteriorated links by network-assisted multicast proving on OpenFlow networks
CN114244737A (en) Method, device and system for evaluating network quality
CN102594696A (en) Method and device for managing link aggregation groups (LAGs) of network device
CN110958170B (en) Network interconnection method and device
CN107171817B (en) Fault information acquisition method and device
CN110896544B (en) Fault delimiting 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
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20230620

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right