CN103560972B - A kind of double-uplink enterprise gateway according to bandwidth proportion transmits the method for message - Google Patents
A kind of double-uplink enterprise gateway according to bandwidth proportion transmits the method for message Download PDFInfo
- Publication number
- CN103560972B CN103560972B CN201310595447.3A CN201310595447A CN103560972B CN 103560972 B CN103560972 B CN 103560972B CN 201310595447 A CN201310595447 A CN 201310595447A CN 103560972 B CN103560972 B CN 103560972B
- Authority
- CN
- China
- Prior art keywords
- message
- upstream interface
- mark
- enterprise gateway
- routing table
- 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
Links
Abstract
The present invention relates to a kind of method that double-uplink enterprise gateway according to bandwidth proportion transmits message, described double up enterprise gateway uses the most reciprocity double multi-upstream access communication networks, and the most reciprocity double up of described employing refers to: first upstream Interface and second upstream Interface bandwidth ability of enterprise gateway are asymmetric;By the present invention in that the data bandwidth ratio that the message ratio that first upstream Interface of enterprise gateway and second upstream Interface transmit is transmitted equal to first upstream Interface and second upstream Interface, it is to avoid up congested of enterprise gateway.Method of the present invention, effectively solves enterprise gateway upstream Interface congestion problems, it is not necessary to monitoring upstream Interface flow in real time, consumes little to cpu resource, reduces enterprise gateway hardware cost, improves product competitiveness in the market.
Description
Technical field
The present invention relates to IP (Internet Protocol, Internet protocol) network data transmission
Field, a kind of double-uplink enterprise gateway according to bandwidth proportion transmits the method for message.
Background technology
The broadband devices such as enterprise gateway generally support double multi-upstream access communication network, and (this is the most double up
Enterprise gateway), along with the maturation of PON (Passive Optical Network) technology,
The extensive propelling of light entering and copper back, the double uplink mode of enterprise gateway is the most reciprocity, on double
First upstream Interface of row enterprise gateway use GPON (Gigabit-Capable PON) or
Person EPON (Ethernet Passive Optical Network) accesses, and second up
Interface uses Ethernet access or 3G to access.Obviously, GPON and EPON technology belongs to high
Speed optical transport access technology, it is possible to transmit Large Volume Data in real time, and Ethernet and 3G technology
It is limited to transmission medium and technology packet, it is possible to the limited bandwidth of carrying.
When double up enterprise gateway are when using the most reciprocity double multi-upstream access communication network, use
Family enterprise gateway to be considered uplink mode transmittability, the transmission energy that distribution matches
Power.
Such as: first up transfer capability of upstream Interface GPON of double up enterprise gateway is
500Mbps, second up transfer capability of upstream Interface Ethernet is 100Mbps, works as enterprise
The data that gateway transmits are when reaching 400Mbps, if unreasonable distribution GPON upstream Interface with
The bandwidth that Ethernet upstream Interface is carried, as easy as rolling off a log causes Ethernet upstream Interface conveyer belt
Width reaches capacity ability cause packet loss.
The most such as: the user such as enterprise or Internet bar, double up enterprise gateway first are up connects
Mouthful and the bandwidth opened of second upstream Interface may be unequal, such as first up connects
What mouth was opened is the bandwidth of 50Mbps, and what second upstream Interface was opened is the band of 20Mbps
Wide.Although first upstream Interface (GPON) and second upstream Interface (Ethernet) are open-minded
Bandwidth be not above technology bearing capacity, but be limited by the limit of operator's line bandwidth
System, it is also desirable to the data of first upstream Interface of reasonable distribution and second upstream Interface pass
Send, it is to avoid data occur congested at single upstream Interface.
At present, the communication equipment such as enterprise gateway avoids up connecing by dynamic load balancing
Mouthful congested, the difficult point of dynamic load leveling is to judge that enterprise gateway upstream Interface is congested,
It is generally required to the message amount being monitored upstream Interface queue by software in real time judges congested feelings
Condition, the time precision that software monitors upstream Interface queue in real time is the highest, is substantially second level.Soft
Part monitors upstream Interface in real time can consume substantial amounts of CPU (Central Processing Unit)
Resource, causes the decline of enterprise gateway forwarding performance, and message forwards not in time, the most more
Easily cause the congested of upstream Interface.Monitor upstream Interface in real time take CPU to solve software
Resource problem, enterprise gateway must use high performance CPU, and this must increase enterprise gateway
Cost.
Summary of the invention
For defect present in prior art, it is an object of the invention to provide a kind of double up
The method that enterprise gateway transmits message in bandwidth ratio, effectively solves enterprise gateway upstream Interface and gathers around
Plug problem, it is not necessary to monitoring upstream Interface flow in real time, consumes little to cpu resource, reduces
Enterprise gateway hardware cost, improves product competitiveness in the market.
For reaching object above, the present invention adopts the technical scheme that:
A kind of double-uplink enterprise gateway according to bandwidth proportion transmits the method for message, it is characterised in that:
Described double up enterprise gateway uses the most reciprocity double multi-upstream access communication networks, described employing
The most reciprocity double up refer to: first upstream Interface of enterprise gateway and second up connect
Port band width ability is asymmetric;
The report transmitted by first upstream Interface and second upstream Interface that make enterprise gateway
The data bandwidth ratio that literary composition ratio is transmitted equal to first upstream Interface and second upstream Interface
Example, it is to avoid up congested of enterprise gateway.
On the basis of technique scheme, first upstream Interface of double up enterprise gateway and
The ratio of second upstream Interface same time transmission message is preassigned by user, it is intended that
The ratio transmitting message of first upstream Interface and second upstream Interface, and on first
The transmission data capacity coupling of line interface and second upstream Interface.
On the basis of technique scheme, described enterprise gateway supports built-in Linux system
System,
Described embedded Linux system support carries out policybased routing, institute according to message mark value
State message mark value and refer to the mark of the mark member record in message data structure sk_buff
Value.
On the basis of technique scheme, described in carry out policybased routing and refer to: Linux strategy
Routing function support searches the routing table specified, routing table binding phase according to the mark value of message
The upstream Interface answered, thus the data stream reaching labelling identical mark value be directed to specify upper
On line interface.
On the basis of technique scheme, when the policybased routing function utilizing Linux orients report
When literary composition is to the upstream Interface specified, enterprise gateway need to set up two routing tables, is route respectively
Table A and routing table B, bind first upstream Interface of enterprise gateway, routing table by routing table A
B binds second upstream Interface of enterprise gateway;
Configuration routing table A search strategy, mark value is that the message of mark1 searches routing table A,
The message being labeled as mark1 forwards from first upstream Interface;
Configuration routing table B search strategy, mark value is that the message of mark2 searches routing table B,
The message being labeled as mark2 forwards from second upstream Interface.
On the basis of technique scheme, when specify double up enterprise gateway first is up
When interface and second upstream Interface same time transmit ratio X:Y of message,
The message that the bridge protocol stack of configuration enterprise gateway forwards through enterprise gateway upstream Interface
Mark labelling strategies, labelling mark value be the ratio of mark1 message and mark2 message be X:
Y。
On the basis of technique scheme, X, Y are positive integers.
On the basis of technique scheme, the bridge protocol stack of message Entry Firm gateway, it is judged that
Message forwards the need of from the upstream Interface of enterprise gateway, it is judged that principle is: when message
Purpose MAC is not local mac, and purpose IP is not local IP, then this message needs from enterprise
The upstream Interface of industry gateway forwards,
In user configured first upstream Interface and bandwidth ratio X of second upstream Interface:
Y, the mark value of amendment message is mark1 or mark2, meets upstream Interface the most continuously and turns
In X+Y the message sent out, the mark value of X message of amendment is mark1, revises Y report
The mark value of literary composition is mark2.
On the basis of technique scheme, the concrete mode of the mark value of amendment message is:
When X is less than or equal to Y, the mark value principle of bridge protocol stack poll amendment message
For: the n-th message mark is revised as mark1, m-th message mark and is revised as mark2;
N represents 1,3 ..., 2Y-1, m represent 2,4 ..., 2Y;
When X is more than Y, in addition to mentioned above principle, in addition it is also necessary to by 2Y+1 to X+Y message
Mark be revised as mark1.
On the basis of technique scheme, concretely comprise the following steps:
A10, configures enterprise gateway load strategy;Set enterprise gateway upstream Interface wan0 and
The message of upstream Interface wan1 forwards ratio;
A10 specifically comprises the steps of
A101, creates routing table: create routing table 100 and routing table 200, routing table 100
Binding wan0 interface, the data message of coupling routing table 100 is forwarded by wan0 interface, road
Being bound wan1 interface by table 200, the data message of coupling routing table 200 is by wan1 interface
Forward;
A102, creates routing table lookup rule: be respectively created routing table 100 and routing table 200
Search rule, limit the message mark value message as 10 and forward from routing table 100, limit
Message mark value be 20 message forward from routing table 200;
A103, configures bridge protocol stack message mark labelling strategies: revise message at bridge protocol stack
Mark value, upstream Interface wan0 forward message mark be labeled as 10, bandwidth accounting is
The ratio that A10 sets;The message mark labelling 20 that upstream Interface wan1 forwards, bandwidth accounting
The ratio set for A10;
A20, message forward process: message is from Lan side ports Entry Firm gateway, message
Be sent to bridge protocol stack, bridge protocol stack in bandwidth ratio strategy, labelling message mark be 10 or
20, mark be 10 message through routing table 100 orient after from wan0 interface forward, mark
Be 20 message through routing table 200 orient after from wan1 interface forward;
A20 specifically includes following steps:
A201, Lan side message Entry Firm gateway;
A202, Lan side message enters bridge protocol stack;
A203, bridge protocol stack judges whether message purpose MAC is local mac, if purpose
MAC is local mac, and message proceeds to A204 process, and otherwise message is forwarded toward it from bridge protocol stack
His Lan side ports, process terminates;
A204, bridge protocol stack judges whether message purpose IP is local IP, if message mesh
IP be local IP, message proceeds to A206 processs, if message purpose IP is not this locality
IP, message proceeds to A205 process;
A205, bridge protocol stack amendment message mark value, same time bridge protocol stack amendment report
Literary composition mark is 10 and mark to be the ratio that sets in A10 of ratio of 20;Amendment message mark
After value terminates, message proceeds to A206 process;
A206, message is sent to upper-layer protocol and processes;Message proceeds to A207 process;
A207, message lookup routing table: labelling mark is the message lookup routing table of 10
100, forward from wan0 interface, labelling mark is the message lookup routing table 200 of 20, from
Wan1 interface forwards, and process terminates.
Double-uplink enterprise gateway according to bandwidth proportion of the present invention transmits the method for message, effectively
Solve enterprise gateway upstream Interface congestion problems, it is not necessary to monitoring upstream Interface flow in real time,
Cpu resource is consumed little, reduces enterprise gateway hardware cost, improve product competitiveness in the market.
Accompanying drawing explanation
The present invention has a drawings described below:
The configuration flow figure of Fig. 1 present invention
The message of Fig. 2 present invention forwards block diagram
The message forwarding process figure of Fig. 3 present invention
The amendment message mark flow chart of Fig. 4 present invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, the present invention is described in further detail.
The double-uplink enterprise gateway according to bandwidth proportion that the present invention proposes transmits the method for message, mesh
Be realize first upstream Interface of enterprise gateway and second upstream Interface in bandwidth ratio
Transmit message, it is to avoid upstream Interface is congested, reduce communication equipment cost, consume cpu resource
Little, it is not necessary to buy high performance cpu monitor enterprise gateway upstream Interface, it is possible to effectively keep away
Exempt from upstream Interface congested and reduce enterprise gateway cost.
When double up enterprise gateway use the most reciprocity double up (on first of enterprise gateway
Line interface and second upstream Interface bandwidth ability are asymmetric) when accessing communication network, preferable shape
State is: enterprise gateway support is in the message transmission of bandwidth ratio, such as configuration enterprise gateway first
The message ratio of individual upstream Interface and second upstream Interface transmission is 5:2, the same time,
The data bandwidth ratio that the double upstream Interface of enterprise gateway is transmitted is 5:2, then reached optimal
Bandwidth availability ratio (that is: first upstream Interface and second upstream Interface of enterprise gateway passes
The data that the message ratio sent is transmitted equal to first upstream Interface and second upstream Interface
Bandwidth ratio), it is possible to it is prevented effectively from up congested of enterprise gateway.
On the basis of technique scheme, at first upstream Interface and second upstream Interface
In the case of bandwidth ability is asymmetric, up connect by specify double up enterprise gateway first
Mouth and the ratio of second upstream Interface same time transmission message, the transmission that configuration matches
Data capacity, solves enterprise gateway upstream Interface congestion problems.That is: double up enterprise gateway
First upstream Interface and second upstream Interface same time transmit the ratio of message by user
Preassign, it is intended that first upstream Interface and second upstream Interface transmit message ratio
Example, mates with the transmission data capacity of first upstream Interface and second upstream Interface.
Described " specify first upstream Interface of double up enterprise gateway and second up connect
The mouth same time transmits the ratio of message ", namely configuration first upstream Interface and second
Individual upstream Interface transmits the ratio of message, in order to reach to transmit in proportion message, in addition it is also necessary to adopt
By the policybased routing function of Linux, the message of mark1 will limit and go out from routing table A,
The message of mark2 limits and goes out from routing table B." Linux policybased routing " is to realize " referring to
First upstream Interface and second the upstream Interface same time of fixed double up enterprise gateway pass
Deliver newspaper literary composition ratio " a part of technology.
On the basis of technique scheme, described enterprise gateway supports built-in Linux system
System,
Described embedded Linux system support carries out policybased routing, institute according to message mark value
State message mark value and refer to the mark of the mark member record in message data structure sk_buff
Value;The most described embedded Linux system support is according in message data structure sk_buff
The mark value of mark member record carries out policybased routing.
The described policybased routing that carries out refers to: Linux policybased routing function is supported according to message
Mark value searches the routing table specified, and routing table binds corresponding upstream Interface, thus reaches
The data stream of labelling identical mark value is directed on the upstream Interface specified.
When the policybased routing function utilizing Linux orients message to the upstream Interface specified,
Enterprise gateway need to set up two routing tables, is routing table A and routing table B respectively, by routing table
A binds first upstream Interface of enterprise gateway, and routing table B binding enterprise gateway second is up
Interface;
Configuration routing table A search strategy, mark value is that the message of mark1 searches routing table A,
The message being labeled as mark1 forwards from first upstream Interface;
Configuration routing table B search strategy, mark value is that the message of mark2 searches routing table B,
The message being labeled as mark2 forwards from second upstream Interface.
On the basis of technique scheme, when specify double up enterprise gateway first is up
(X, Y are the most whole to ratio X:Y of interface and second upstream Interface same time transmission message
Number, the concrete ratio of X and Y is true according to the double upstream Interface bandwidth ratio of enterprise gateway by user
Fixed, the value of X is likely larger than or value equal to or less than Y, such as: assume that first up connects
The bandwidth of mouth is 50Mbps, and the bandwidth of second upstream Interface is 20Mbps, then X and Y ratio
Example is 50:20=5:2) time,
The message that the bridge protocol stack of configuration enterprise gateway forwards through enterprise gateway upstream Interface
Mark labelling strategies, labelling mark value be the ratio of mark1 message and mark2 message be X:
Y。
The bridge protocol stack of message Entry Firm gateway, it is judged that message is the need of from enterprise gateway
Upstream Interface forward, it is judged that principle is: when purpose MAC of message is local mac, and mesh
IP be local IP, then this message needs to forward from the upstream Interface of enterprise gateway,
In user configured first upstream Interface and bandwidth ratio X of second upstream Interface:
Y, the mark value of amendment message is mark1 or mark2, meets upstream Interface the most continuously and turns
In X+Y the message sent out, the mark value of X message of amendment is mark1, revises Y report
The mark value of literary composition is mark2.
The concrete mode of the mark value of amendment message is:
When X is less than or equal to Y, the mark value principle of bridge protocol stack poll amendment message
For: the n-th message mark is revised as mark1, m-th message mark and is revised as mark2;
N represents 1,3 ..., 2Y-1, m represent 2,4 ..., 2Y;
When X is more than Y, in addition to mentioned above principle, in addition it is also necessary to by 2Y+1 to X+Y message
Mark be revised as mark1.
The mark value amendment of message is completed by the concrete mode of the mark value of above-mentioned amendment message
After, the message being labeled as mark1 that bridge protocol stack send toward upper-layer protocol and be labeled as mark2's
The ratio of message is X:Y, as it was previously stated, the message being labeled as mark1 limits and searches route
Table A, the binding of routing table A is first upstream Interface of enterprise gateway, is labeled as mark2's
Message limits searches routing table B, the binding of routing table B to be that enterprise gateway second is up connect
Mouthful, the most finally achieve and turn from first upstream Interface of enterprise gateway and second upstream Interface
The message ratio sent out is X:Y.
It is below embodiment:
Assuming that double up enterprise gateway implementation environments are as follows: double up enterprise gateway (hereinafter referred
For enterprise gateway) use embedded Linux system (hereinafter referred to as Linux).False
Determining the bandwidth that enterprise gateway upstream Interface wan0 (first upstream Interface) opens is 10Mbps,
The bandwidth that upstream Interface wan1 (second upstream Interface) opens is 4Mbps, upstream Interface
Wan0 and upstream Interface wan1 transmission bandwidth ratio are 5:2.Realize of the present invention double up
The method that enterprise gateway transmits message in bandwidth ratio comprises the following steps.
A10, configures enterprise gateway load strategy.Enterprise gateway upstream Interface wan0 and up
The message of interface wan1 forwards ratio to be 5:2.
Shown in Figure 1, A10 specifically comprises the steps of
A101, creates routing table.Create routing table 100 and routing table 200, routing table 100
Binding wan0 interface (i.e. upstream Interface wan0), the data message of coupling routing table 100 leads to
Crossing wan0 interface to forward, routing table 200 binds wan1 interface (i.e. upstream Interface wan1),
The data message of coupling routing table 200 is forwarded by wan1 interface.
Such as: create routing table 100, wan0 interface is bound.Assuming that the IP of wan0 interface
For 10.10.10.2, subnet mask is the opposite end that 255.255.255.0, wan0 interface connects
Gateway is 10.10.10.1, and routing table 100 creates as follows:
ip route add 10.10.10.0/24 dev wan0 table 100
ip route add default via 10.10.10.1 table 100
Create routing table 200, bind wan1 interface.Assuming that the IP of wan1 interface is
20.20.20.2, subnet mask is 255.255.255.0, wan1 interface peer end of the connection gateway
IP be 20.20.20.1, routing table 200 creates as follows:
ip route add 20.20.20.0/24 dev wan1 table 200
ip route add default via 20.20.20.1 table 200
A102, creates routing table lookup rule, and Linux supports to limit according to message mark value
E-Packet from certain routing table, in order to message is turned from corresponding upstream Interface by strategy
Send out, be respectively created routing table 100 and the search rule of routing table 200, limit message mark
Value be 10 message forward from routing table 100, limit the message mark value message as 20 from
Routing table 200 forwards.
Such as: creating routing table 100 search rule, mark value is that the message of 10 is from routing table
100 forward.Search rule creates as follows:
ip rule add fwmark 10 table 100
Creating routing table 200 search rule, mark value is that the message of 20 is from routing table 200 turns
Send out.Search rule creates as follows
ip rule add fwmark 20 table 200
A103, configures bridge protocol stack message mark labelling strategies.The present invention repaiies at bridge protocol stack
Change the mark value of message.The configuration interface that bridge protocol stack provides is as follows:
Echo wan0_mark=10 wan0_bandwidth=5 wan1_mark=20
Wan1_bandwidth=2 >/proc/bridge_mark_conf
The message mark that upstream Interface wan0 forwards is labeled as 10, and bandwidth accounting is 5;Up
The message mark labelling 20 that interface wan1 forwards, bandwidth accounting is 2.
A20, message forward process flow process.Shown in Figure 2, for the method for the invention
Message forward block diagram, message is from Lan side ports Entry Firm gateway, and message is sent to bridge
Protocol stack, bridge protocol stack is 10 or 20, mark in bandwidth ratio strategy, labelling message mark
Be 10 message through routing table 100 orient after from wan0 interface forward, mark is 20
Message forwards from wan1 interface after routing table 200 orients.
Shown in Figure 3, A20 specifically includes following steps:
A201, Lan side message Entry Firm gateway.
A202, Lan side message enters bridge protocol stack.
A203, bridge protocol stack judges whether message purpose MAC is local mac, if purpose
MAC is local mac, and message proceeds to A204 process, and otherwise message is forwarded toward it from bridge protocol stack
His Lan side ports.
A204, bridge protocol stack judges whether message purpose IP is local IP, if message mesh
IP be local IP, message proceeds to A206 processs, if message purpose IP is not this locality
IP, message proceeds to A205 process.
A205, bridge protocol stack amendment message mark value, same time bridge protocol stack amendment report
Literary composition mark be 10 and mark be the ratio of 20 be 5:2.
A206, message is sent to upper-layer protocol and processes.
A207, message searches routing table.Labelling mark is the message lookup routing table of 10
100, forward from wan0 interface, labelling mark is the message lookup routing table 200 of 20, from
Wan1 interface forwards.
See Fig. 4, below briefly illustrate bridge protocol stack amendment message mark value-based algorithm.
Assuming that bridge protocol stack amendment message mark value is that (N, M are for just for N:M for A and B ratio
Integer).
(1), initialize N1 and be equal to 0 equal to N, M1 equal to M, markflag.
(2), it is judged that N1 or M1 whether more than 0, if N1 or M1 one of them more than 0,
Proceed to step (3), otherwise terminate to revise message mark value, proceed to step (1).
(3), it is judged that whether N1 is more than 0, and markflag is equal to 0, if condition becomes
Vertical, proceed to step (4), otherwise proceed to step (5).
(4), amendment message mark is that A, N1 subtract 1, and markflag is entered as 1, then
Proceed to step (2).
(5), it is judged that whether M1 is more than 0, and markflag is equal to 1, if condition becomes
Vertical, proceed to step (6), otherwise proceed to step (7).
(6), amendment message mark is that B, M1 subtract 1, and markflag is entered as 0, then
Proceed to step (2).
(7), it is judged that whether N1 is more than 0, and M1 is equal to 0, if condition is set up, proceeds to
Step (8), otherwise proceeds to step (9).
(8), amendment message mark is that A, N1 subtract 1, then proceeds to step (2).
(9), it is judged that whether M1 is more than 0, and N1 is equal to 0, if condition is set up, proceeds to
Step (10), otherwise proceeds to step (2).
(10), amendment message mark is that B, M1 subtract 1, then proceeds to step (2).
The content not being described in detail in this specification belongs to known in professional and technical personnel in the field
Prior art.
Claims (8)
1. the method that double-uplink enterprise gateway according to bandwidth proportion transmits message, its feature exists
In: described double up enterprise gateway use the most reciprocity double multi-upstream access communication networks, described in adopt
Double up refer to the most reciprocity: first upstream Interface of enterprise gateway and second up
Interface bandwidth ability is asymmetric;
The report transmitted by first upstream Interface and second upstream Interface that make enterprise gateway
The data bandwidth ratio that literary composition ratio is transmitted equal to first upstream Interface and second upstream Interface
Example, it is to avoid up congested of enterprise gateway;
First upstream Interface of double up enterprise gateway and second upstream Interface same time
Transmit message ratio preassigned by user, it is intended that first upstream Interface and second
The ratio transmitting message of upstream Interface, with first upstream Interface and second upstream Interface
Transmission data capacity coupling;
Described enterprise gateway supports embedded Linux system,
Described embedded Linux system support carries out policybased routing, institute according to message mark value
State message mark value and refer to the mark of the mark member record in message data structure sk_buff
Value.
2. double-uplink enterprise gateway according to bandwidth proportion as claimed in claim 1 transmits message
Method, it is characterised in that described in carry out policybased routing and refer to: Linux policybased routing function is propped up
Holding the mark value according to message and search the routing table specified, routing table binding is the most up to be connect
Mouthful, thus the data stream reaching labelling identical mark value is directed on the upstream Interface specified.
3. double-uplink enterprise gateway according to bandwidth proportion as claimed in claim 1 transmits message
Method, it is characterised in that: when the policybased routing function utilizing Linux orients message to specifying
During upstream Interface, enterprise gateway need to set up two routing tables, is routing table A and route respectively
Table B, binds first upstream Interface of enterprise gateway by routing table A, and routing table B binds enterprise
Second upstream Interface of gateway;
Configuration routing table A search strategy, mark value is that the message of mark1 searches routing table A,
The message being labeled as mark1 forwards from first upstream Interface;
Configuration routing table B search strategy, mark value is that the message of mark2 searches routing table B,
The message being labeled as mark2 forwards from second upstream Interface.
4. double-uplink enterprise gateway according to bandwidth proportion as claimed in claim 3 transmits message
Method, it is characterised in that: when first upstream Interface and second specifying double up enterprise gateway
When the individual upstream Interface same time transmits ratio X:Y of message,
The message that the bridge protocol stack of configuration enterprise gateway forwards through enterprise gateway upstream Interface
Mark labelling strategies, labelling mark value be the ratio of mark1 message and mark2 message be X:
Y。
5. double-uplink enterprise gateway according to bandwidth proportion as claimed in claim 4 transmits message
Method, it is characterised in that: X, Y are positive integers.
6. double-uplink enterprise gateway according to bandwidth proportion as claimed in claim 4 transmits message
Method, it is characterised in that: the bridge protocol stack of message Entry Firm gateway, it is judged that whether message needs
To forward from the upstream Interface of enterprise gateway, it is judged that principle is: when purpose MAC of message is
Local mac, and purpose IP is local IP, then this message needs to connect from the up of enterprise gateway
Mouth forwards,
In user configured first upstream Interface and bandwidth ratio X of second upstream Interface:
Y, the mark value of amendment message is mark1 or mark2, meets upstream Interface the most continuously and turns
In X+Y the message sent out, the mark value of X message of amendment is mark1, revises Y report
The mark value of literary composition is mark2.
7. double-uplink enterprise gateway according to bandwidth proportion as claimed in claim 6 transmits message
Method, it is characterised in that: the concrete mode of the mark value of amendment message is:
When X is less than or equal to Y, the mark value principle of bridge protocol stack poll amendment message
For: the n-th message mark is revised as mark1, m-th message mark and is revised as mark2;
N represents 1,3 ..., 2Y-1, m represent 2,4 ..., 2Y;
When X is more than Y, in addition to mentioned above principle, in addition it is also necessary to by 2Y+1 to X+Y message
Mark be revised as mark1.
8. double-uplink enterprise gateway according to bandwidth proportion as claimed in claim 1 transmits message
Method, it is characterised in that concretely comprise the following steps:
A10, configures enterprise gateway load strategy;Set enterprise gateway upstream Interface wan0 and
The message of upstream Interface wan1 forwards ratio;
A10 specifically comprises the steps of
A101, creates routing table: create routing table 100 and routing table 200, routing table 100
Binding wan0 interface, the data message of coupling routing table 100 is forwarded by wan0 interface, road
Being bound wan1 interface by table 200, the data message of coupling routing table 200 is by wan1 interface
Forward;
A102, creates routing table lookup rule: be respectively created routing table 100 and routing table 200
Search rule, limit the message mark value message as 10 and forward from routing table 100, limit
Message mark value be 20 message forward from routing table 200;
A103, configures bridge protocol stack message mark labelling strategies: revise message at bridge protocol stack
Mark value, upstream Interface wan0 forward message mark be labeled as 10, bandwidth accounting is
The ratio that A10 sets;The message mark labelling 20 that upstream Interface wan1 forwards, bandwidth accounting
The ratio set for A10;
A20, message forward process: message is from Lan side ports Entry Firm gateway, message
Be sent to bridge protocol stack, bridge protocol stack in bandwidth ratio strategy, labelling message mark be 10 or
20, mark be 10 message through routing table 100 orient after from wan0 interface forward, mark
Be 20 message through routing table 200 orient after from wan1 interface forward;
A20 specifically includes following steps:
A201, Lan side message Entry Firm gateway;
A202, Lan side message enters bridge protocol stack;
A203, bridge protocol stack judges whether message purpose MAC is local mac, if purpose
MAC is local mac, and message proceeds to A204 process, and otherwise message is forwarded toward it from bridge protocol stack
His Lan side ports, process terminates;
A204, bridge protocol stack judges whether message purpose IP is local IP, if message mesh
IP be local IP, message proceeds to A206 processs, if message purpose IP is not this locality
IP, message proceeds to A205 process;
A205, bridge protocol stack amendment message mark value, same time bridge protocol stack amendment report
Literary composition mark is 10 and mark to be the ratio that sets in A10 of ratio of 20;Amendment message mark
After value terminates, message proceeds to A206 process;
A206, message is sent to upper-layer protocol and processes;Message proceeds to A207 process;
A207, message lookup routing table: labelling mark is the message lookup routing table of 10
100, forward from wan0 interface, labelling mark is the message lookup routing table 200 of 20, from
Wan1 interface forwards, and process terminates.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310595447.3A CN103560972B (en) | 2013-11-22 | 2013-11-22 | A kind of double-uplink enterprise gateway according to bandwidth proportion transmits the method for message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310595447.3A CN103560972B (en) | 2013-11-22 | 2013-11-22 | A kind of double-uplink enterprise gateway according to bandwidth proportion transmits the method for message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103560972A CN103560972A (en) | 2014-02-05 |
CN103560972B true CN103560972B (en) | 2016-08-31 |
Family
ID=50015124
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310595447.3A Active CN103560972B (en) | 2013-11-22 | 2013-11-22 | A kind of double-uplink enterprise gateway according to bandwidth proportion transmits the method for message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103560972B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9654401B2 (en) * | 2014-03-30 | 2017-05-16 | Juniper Networks, Inc. | Systems and methods for multipath load balancing |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101719864A (en) * | 2009-11-27 | 2010-06-02 | 深圳市共进电子有限公司 | Method for transmitting and distributing data of router with double network ports |
CN101938406A (en) * | 2009-07-02 | 2011-01-05 | 华为技术有限公司 | Method and device for microwave multichannel message transmission and transmission system thereof |
CN103036788A (en) * | 2012-12-14 | 2013-04-10 | 上海斐讯数据通信技术有限公司 | Implementation method of multi-interface gateway equipment data transmitting |
CN103166872A (en) * | 2013-03-07 | 2013-06-19 | 北京华为数字技术有限公司 | Method for forwarding traffic in network and network equipment |
CN103281253A (en) * | 2013-05-27 | 2013-09-04 | 杭州华三通信技术有限公司 | Load sharing method of non-equivalent route and equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070165647A1 (en) * | 2006-01-19 | 2007-07-19 | Tellabs Operations, Inc. | Apparatus, method, and computer program for data packet scheduling |
-
2013
- 2013-11-22 CN CN201310595447.3A patent/CN103560972B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101938406A (en) * | 2009-07-02 | 2011-01-05 | 华为技术有限公司 | Method and device for microwave multichannel message transmission and transmission system thereof |
CN101719864A (en) * | 2009-11-27 | 2010-06-02 | 深圳市共进电子有限公司 | Method for transmitting and distributing data of router with double network ports |
CN103036788A (en) * | 2012-12-14 | 2013-04-10 | 上海斐讯数据通信技术有限公司 | Implementation method of multi-interface gateway equipment data transmitting |
CN103166872A (en) * | 2013-03-07 | 2013-06-19 | 北京华为数字技术有限公司 | Method for forwarding traffic in network and network equipment |
CN103281253A (en) * | 2013-05-27 | 2013-09-04 | 杭州华三通信技术有限公司 | Load sharing method of non-equivalent route and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN103560972A (en) | 2014-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104104609B (en) | For providing the method and system of fiduciary flow control in network | |
CN105119840B (en) | The data center network load-balancing method of fat tree topology structure is used based on SDN | |
US9473414B2 (en) | Method and system for supporting packet prioritization at a data network | |
US8885504B2 (en) | Method, apparatus and system for bandwidth aggregation of mobile internet access node | |
US8917594B2 (en) | Link layer reservation of switch queue capacity | |
US20130250810A1 (en) | Topology discovery in a hybrid network | |
CN104158752B (en) | The treating method and apparatus of service traffics | |
US7372813B1 (en) | Virtual load balancing across a network link | |
CA2650912A1 (en) | Method and system for qos by proxy | |
CN102263697A (en) | Method and device for sharing aggregated link traffic | |
JP2016518054A (en) | Method, apparatus and system for data scheduling and exchange | |
CN103746886B (en) | A kind of FiWi nodes and a kind of FiWi combination networks method | |
CN205212863U (en) | Support PLC wireless router equipment of two WAN mouths | |
US8285141B1 (en) | Apparatus, system, and method for asymmetrical and dynamic routing | |
CN107172653A (en) | A kind of method, control system and system for connecting many wireless access points | |
US8849112B2 (en) | Apparatus, system, and method for asymmetrical and dynamic routing | |
CN109428842A (en) | A kind of QoS information transfer approach and device | |
CN104009937B (en) | A kind of enhanced transmission selection standard configuration information transmission method and device | |
JP2017533643A (en) | Computer program, apparatus and storage medium | |
CN106464670A (en) | Network entity and service policy management method | |
CN102255816A (en) | Method and device for load sharing | |
CN103560972B (en) | A kind of double-uplink enterprise gateway according to bandwidth proportion transmits the method for message | |
CN103516794A (en) | Distributed-server network architecture and achieving method thereof | |
CN102006216B (en) | Deep packet inspection system and packet processing method | |
CN110943931A (en) | MESH router system of 5G cellular network and use method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |