CN104009932A - Traffic any-ratio load method based on Openflow rule - Google Patents

Traffic any-ratio load method based on Openflow rule Download PDF

Info

Publication number
CN104009932A
CN104009932A CN201410180988.4A CN201410180988A CN104009932A CN 104009932 A CN104009932 A CN 104009932A CN 201410180988 A CN201410180988 A CN 201410180988A CN 104009932 A CN104009932 A CN 104009932A
Authority
CN
China
Prior art keywords
flow
port
field
traffic
load
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410180988.4A
Other languages
Chinese (zh)
Other versions
CN104009932B (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.)
Xingyuan Jurun Technology (Beijing) Co.,Ltd.
Original Assignee
Yi Cloud Feilingjiexun Technology (beijing) 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 Yi Cloud Feilingjiexun Technology (beijing) Co Ltd filed Critical Yi Cloud Feilingjiexun Technology (beijing) Co Ltd
Priority to CN201410180988.4A priority Critical patent/CN104009932B/en
Publication of CN104009932A publication Critical patent/CN104009932A/en
Application granted granted Critical
Publication of CN104009932B publication Critical patent/CN104009932B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a traffic any-ratio load method based on an Openflow rule. The method includes the steps that first, egress ports for traffic load distribution and the allocation ratio of each port are firstly configured, and the minimum number of streams of service traffic needing to be allocated by a load is calculated according to the scale value of the configured egress ports, wherein the service traffic needing to be allocated by the load is divided into streams; second, M fields of a message are selected according to the characteristics of load service, and a group of integer values are selected to respectively represent the mi-digit bit string in the binary 01 string of the ith field, wherein the M fields of the message may change randomly; third, after the field bits selected in the second step are permutated and combined, all the stream classification of the service is listed; fourth, the rules used for stream classification matching content corresponding to the same egress port and recorded in the third step are combined so that the hardware table item can be saved or the software performance can be improved; fifth, the rules recorded by software in the steps are issued to hardware or configured to a virtual router.

Description

A kind of flow based on Openflow rule is arbitrarily than carrying method
Technical field
The invention belongs to load mechanism field, relate to a kind of flow based on Openflow rule arbitrarily than carrying method.
Background technology
Network is in transfer of data and storage system now, in order to increase bandwidth and reliability, need to be assigned in different transmission paths data converting flow, such as the ECMP mechanism that converges port, three layers of route of two layers of forwarding and the select type group table of Openflow switch configuration.These methods are by the sections such as two layers of messages and layer head are carried out to HASH computing substantially, equal proportion is assigned to multiple ports that produce and forwards, although and select type group table in Openflow standard also has the configuration of weight, but or the corresponding relation of this message and port is not still very clear, and mostly cannot be suitable for for non-equivalence path, such as there being many non-equivalence routes in ospf protocol, storage is for situations such as the hard disk size of storing are inconsistent when data, and this time just cannot be by the method dispense flow rate of traditional load balancing.
Summary of the invention
In order to address the above problem, a kind of flow based on Openflow rule is proposed arbitrarily than carrying method.
Flow based on Openflow rule, arbitrarily than a carrying method, comprises the following steps:
Step 1, be first configured for outbound port that flow load distributes and the allocation proportion of each port (after one group of integer value or conversion, obtaining one group of integral equivalent value), calculate the service traffics that need to be distributed by load and be divided into the minimum flow number of stream according to the ratio value of the outbound port of configuration:
sumf=n1+n2+...+nN;
Wherein sumf: the minimum stream number that flow is divided, ni: the ratio value of i outlet dispense flow rate;
Step 2, to may change at random or according to M field of the Feature Selection message of payload traffic, then select one group of integer value m1, m2 ..., mM, represents respectively a Bit String to getting mi position in Binary Zero 1 string of i field, each character string representative has 2 mikind value type and mi are not more than the bit length of i field; The number that the respective value of the Bit String all fields being taken out is carried out the total data flow of permutation and combination is 2 m1+m2+...+nm; In the time that the bit of each field is got entirely, be the maximum number that this business can be shunted, for n1, n2 .., the proportional diverting of nM is error maximum, determines integer L according to the class requirement of error, makes 2 m1+m2+...+mM>=L × sumf; Grade of errors requires higher, and L value value is larger;
Carry out after permutation and combination step 3, the field bit position of selecting according to step 2, lists all traffic classifications of this business, by these traffic classifications from 2 m1+m2+...+mNbe numbered, then travel through outbound port successively, for outbound port i, determine that L*ni flow determine its outbound port numbering, and from M field of classification stream, select each field and flow the field contents and the corresponding outbound port that mate and carry out software records;
Step 4, the traffic classification matching content rule used that corresponds to same outbound port recording in step 3 is merged, to save hardware table item or to improve software performance;
Step 5, the rule of software records in above-mentioned steps is issued to hardware or is configured in virtual router.
After said method step 5 finishes, if ports having Member Link state changes in N port, return to step 1 and restart to calculate, produce new classifying rules and be issued in the network equipment.
In said method, in the time that the allocation proportion of each port assignment flow is equivalence distribution, can be used for converging the sorting algorithm of port or ECMP equal-cost route.
Beneficial effect of the present invention:
1. can be according to business demand and application scenarios the field such as source MAC, object MAC, VID and three layers of IP head, the port numbers of TCP & UDP based on two layers of messages or wherein the partial bit of part field carry out dispense flow rate;
2. after having configured, can be very easy to draw to the mapping relations of different port to different flow, so that orientation problem and flow analysis;
3. can realize the arbitrary proportion of flow is assigned to different outbound ports based on demand, also comprise the function that realizes load balancing, equal proportion dispense flow rate be to different outbound ports;
4. the Equipment Foundations that realize are based on Openflow switch, by the rule of Openflow switch, the assignment of traffic matching are arrived to different ports, and rule action is that output arrives concrete port;
5.Openflow rule issues the outbound port that only calculates linkup while calculating, can transfer the port of data message; Change when being responsible for sharing ports having member link state in the port set that forwards this stream, recalculate stream rule, stream is redistributed, realize self adaptation change configuration;
6. stream rule issues in process, and the mode that can reduce by masked bits the rule that can merge merges, to reduce waste or the list item comparison number of times of data message to list item resource;
7. the method configuration step is simple, calculates clear thinking, can investigate preferably and locate the anomaly of appearance, with the value in some step of timely adjustment algorithm, reaches the object of optimum distribution.
Brief description of the drawings
Fig. 1 is the present invention is based on openflow rule any than the flow chart of carrying method.
Embodiment
Suppose under certain application scenarios have N outbound port, Link State is all can forwarding data, require according to n1, and n2 ..., the ratio of nN is distributed certain business, and ratio value does not have common divisor and is not all to be 0 integer; And the message of this business is except the field of some flag sign is fixed, other have M field contents is all random, can distribute for the load of flow, we can suitably select in M field of these change at random so, and the bit that each field is selected is m1, m2, ...., mM position, the number of bits of selection is can be 0 integer and the binary number length range that is no more than this field, and is one section of successive bits value in order to calculate the simple bit of preferably selecting; The configuration distributing method step of this mechanism comprises the following steps as Fig. 1:
1. calculating according to the ratio value of institute's outbound port need to be the minimum flow number of stream by this delineation of activities:
Sumf=n1+n2+…+nN;
2. M field of pair possibility change at random, selects one group of suitable m1, m2 ... mM value, to getting a Bit String of mi position in Binary Zero 1 string of i field, this character string can represent 2 respectively miplant value type; The number that the bit that all like this fields are taken out carries out the total data flow of permutation and combination is 2 m1+m2+.。。+ mM; In the time that the bit of each field is got entirely, be the maximum number that this business can be shunted; This business, for realizing classification, is log to the number of bits sum minimum of all M the fields of taking out 2the value of the integer part of Sumf+1; But with respect to n1, n2 ..., the proportional diverting of nM, is also error maximum, is generally to determine an integer L according to the class requirement of error, makes:
2 m1+m2+。。。+mM>=L*Sumf
3. carry out after permutation and combination the field bit position of selecting according to step 2, lists all traffic classifications of this business, by these traffic classifications from 2 m1+m2+...+mNbe numbered, then travel through outbound port successively, for outbound port i, determine that L*ni flow determine its outbound port numbering, and from M field of classification stream, select each field and flow the field contents and the corresponding outbound port that mate and carry out software records
4. the traffic classification matching content that corresponds to same port recording in pair above-mentioned steps is carried out suitable merging, to reduce the waste to hardware in subsequent step or to improve the efficiency of mating in virtual router;
5. once become stream list item issue hardware or be configured in virtual router by interface conversion the record of above-mentioned steps;
6. in the time that ports having Member Link state in N port changes, again calculate to produce new classifying rules and issue according to 1-5 step and come into force; The method is equally applicable to the situation of change that total port number N increases;
7. in the time that the allocation proportion of each port assignment flow is equivalence distribution, the method also can be used for converging the sorting algorithm of port or ECMP equal-cost route.

Claims (3)

1. the flow based on Openflow rule, arbitrarily than a carrying method, is characterized in that, comprises the following steps:
Step 1, be first configured for outbound port that flow load distributes and the allocation proportion of each port, calculate the service traffics that need to be distributed by load and be divided into the minimum flow number of stream according to the ratio value of outbound port of configuration:
sumf=n1+n2+...+nN;
Wherein sumf: the minimum stream number that flow is divided, ni: the ratio value of i outlet dispense flow rate;
Step 2, to may change at random or according to M field of the Feature Selection message of payload traffic, select again one group of integer value m1, m2, mM, represent respectively a Bit String to getting mi position in Binary Zero 1 string of i field, each character string representative has 2mi kind value type and mi to be not more than the bit length of i field; The number that the respective value of the Bit String all fields being taken out is carried out the total data flow of permutation and combination is 2 m1+m2+...+nm; In the time that the bit of each field is got entirely, be the maximum number that this business can be shunted, for n1, n2 .., the proportional diverting of nM is error maximum, determines integer L according to the class requirement of error, makes 2 m1+m2+...+mM>=L × sumf; Grade of errors requires higher, and L value value is larger;
Carry out after permutation and combination step 3, the field bit position of selecting according to step 2, lists all traffic classifications of this business, by these traffic classifications from 2 m1+m2+...+mNbe numbered, then travel through outbound port successively, for outbound port i, determine that L*ni flow determine its outbound port numbering, and from M field of classification stream, select each field and flow the field contents and the corresponding outbound port that mate and carry out software records;
Step 4, the traffic classification matching content rule used that corresponds to same outbound port recording in step 3 is merged, to save hardware table item or to improve software performance;
Step 5, the rule of software records in above-mentioned steps is issued to hardware or is configured in virtual router.
2. a kind of flow based on Openflow rule as claimed in claim 1 is arbitrarily than carrying method, it is characterized in that, after said method step 5 finishes, if ports having Member Link state changes in N port, return to step 1 and restart to calculate, produce new classifying rules and be issued in the network equipment.
3. a kind of flow based on Openflow rule as claimed in claim 1 or 2 is arbitrarily than carrying method, it is characterized in that, in said method, in the time that the allocation proportion of each port assignment flow is equivalence distribution, can be used for converging the sorting algorithm of port or ECMP equal-cost route.
CN201410180988.4A 2014-04-30 2014-04-30 A kind of flow based on Openflow rules arbitrarily compares carrying method Active CN104009932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410180988.4A CN104009932B (en) 2014-04-30 2014-04-30 A kind of flow based on Openflow rules arbitrarily compares carrying method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410180988.4A CN104009932B (en) 2014-04-30 2014-04-30 A kind of flow based on Openflow rules arbitrarily compares carrying method

Publications (2)

Publication Number Publication Date
CN104009932A true CN104009932A (en) 2014-08-27
CN104009932B CN104009932B (en) 2017-06-23

Family

ID=51370427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410180988.4A Active CN104009932B (en) 2014-04-30 2014-04-30 A kind of flow based on Openflow rules arbitrarily compares carrying method

Country Status (1)

Country Link
CN (1) CN104009932B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109194575A (en) * 2018-08-23 2019-01-11 新华三技术有限公司 Route selection method and device
CN113822485A (en) * 2021-09-27 2021-12-21 国网山东省电力公司泗水县供电公司 Power distribution network scheduling task optimization method and system
CN113890847A (en) * 2021-09-26 2022-01-04 新华三信息安全技术有限公司 Flow forwarding method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859286A (en) * 2005-11-19 2006-11-08 华为技术有限公司 Load sharing method
CN101110763A (en) * 2007-06-22 2008-01-23 中兴通讯股份有限公司 Method for fast weighing and selecting port
US8014278B1 (en) * 2007-12-17 2011-09-06 Force 10 Networks, Inc Adaptive load balancing between ECMP or LAG port group members
EP2544409B1 (en) * 2011-07-04 2014-03-19 Telefonaktiebolaget L M Ericsson (publ) Generic monitoring packet handling mechanism for OpenFlow 1.1

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859286A (en) * 2005-11-19 2006-11-08 华为技术有限公司 Load sharing method
CN101110763A (en) * 2007-06-22 2008-01-23 中兴通讯股份有限公司 Method for fast weighing and selecting port
US8014278B1 (en) * 2007-12-17 2011-09-06 Force 10 Networks, Inc Adaptive load balancing between ECMP or LAG port group members
EP2544409B1 (en) * 2011-07-04 2014-03-19 Telefonaktiebolaget L M Ericsson (publ) Generic monitoring packet handling mechanism for OpenFlow 1.1

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109194575A (en) * 2018-08-23 2019-01-11 新华三技术有限公司 Route selection method and device
CN113890847A (en) * 2021-09-26 2022-01-04 新华三信息安全技术有限公司 Flow forwarding method and device
CN113822485A (en) * 2021-09-27 2021-12-21 国网山东省电力公司泗水县供电公司 Power distribution network scheduling task optimization method and system
CN113822485B (en) * 2021-09-27 2023-10-20 国网山东省电力公司泗水县供电公司 Power distribution network scheduling task optimization method and system

Also Published As

Publication number Publication date
CN104009932B (en) 2017-06-23

Similar Documents

Publication Publication Date Title
US20240056510A1 (en) Systems and methods for data routing management
KR101978528B1 (en) Packet scheduling method and apparatus
Pang et al. SDN-based data center networking with collaboration of multipath TCP and segment routing
CN102739518B (en) A kind of flow load sharing method and apparatus
Gholami et al. Congestion control in software defined data center networks through flow rerouting
CN105556916B (en) The information statistical method and device of network flow
WO2016091029A1 (en) Method and apparatus for forwarding traffic of stacking system
CN104468353A (en) SDN based data center network flow management method
Jiang et al. Incremental routing strategy on scale-free networks
CN104301305B (en) Interest bag is forwarded under information centre's network method and forwarding terminal
US20130258838A1 (en) Minimal data loss load balancing on link aggregation groups
WO2017000677A1 (en) Multicast control method and device
Ma et al. Enhancing traffic capacity of scale-free networks by link-directed strategy
CN105376292A (en) Explicit strategy feedback in name-based forwarding
CN104009932A (en) Traffic any-ratio load method based on Openflow rule
WO2021050481A1 (en) Packet order recovery in a programmable edge switch in a data center network
CN106341336B (en) A kind of method and apparatus to be E-Packeted by aggregation port
Rikhtegar et al. DeepRLB: A deep reinforcement learning‐based load balancing in data center networks
Jiang et al. Enhancing traffic capacity of two-Layer complex networks
Kyung et al. A load distribution scheme over multiple controllers for scalable SDN
WO2019024759A1 (en) Data communication method and data communication network
CN104378426A (en) Load balancing method for real-time information distribution system
US9007910B2 (en) Load balancing across a link aggregation group
CN107682265B (en) Message routing method and device of payment system
Jiang et al. Check-in based routing strategy in scale-free networks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100081, 1410, building 683, science and technology building, No. two, zone 5, Zhongguancun South Street, Haidian District, Beijing

Applicant after: Yi cloud feilingjiexun Technology (Beijing) Limited by Share Ltd

Address before: 100081, 1410, building 683, science and technology building, No. two, zone 5, Zhongguancun South Street, Haidian District, Beijing

Applicant before: Yi cloud feilingjiexun Technology (Beijing) Co. Ltd.

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

Effective date of registration: 20181119

Address after: 750000 Room 102, Block B, Zhongweiyun Center, Zhongguancun Science and Technology Industrial Park, Ningxia Hui Autonomous Region (south of Zhongwei Campus, Ningxia University)

Patentee after: Ningxia Gold Silicon Information Technology Co., Ltd.

Address before: Room 1410, Science and Technology Building, 683 Building, No. 5 South Street, Zhongcun District, Haidian District, Beijing 100081

Patentee before: Yi cloud feilingjiexun Technology (Beijing) Limited by Share Ltd

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220303

Address after: Room 1410, Science and Technology Building, 683 Building, No. 5 South Street, Zhongcun District, Haidian District, Beijing 100081

Patentee after: Xingyuan Jurun Technology (Beijing) Co.,Ltd.

Address before: 750000 Room 102, Block B, Zhongweiyun Center, Zhongguancun Science and Technology Industrial Park, Ningxia Hui Autonomous Region (south of Zhongwei Campus, Ningxia University)

Patentee before: NINGXIA JINGUI INFORMATION TECHNOLOGY Co.,Ltd.