CN109995667A - The method and sending device of transmitting message - Google Patents
The method and sending device of transmitting message Download PDFInfo
- Publication number
- CN109995667A CN109995667A CN201711485301.8A CN201711485301A CN109995667A CN 109995667 A CN109995667 A CN 109995667A CN 201711485301 A CN201711485301 A CN 201711485301A CN 109995667 A CN109995667 A CN 109995667A
- Authority
- CN
- China
- Prior art keywords
- physical interface
- interface
- physical
- load balancing
- sending device
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/24—Multipath
- H04L45/245—Link aggregation, e.g. trunking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
Abstract
This application provides a kind of method of transmitting message and sending device, this method includes the retransmitting paramater for each physical interface that sending device obtains in the interface group for including at least two physical interfaces;The sending device determines the load balancing ratio of each physical interface according to the retransmitting paramater of each physical interface;The sending device passes through the interface group transmitting message according to the load balancing ratio of each physical interface.The embodiment of the present application can flexibly determine the load balancing of physical interface according to the parameter of physical interface, be able to ascend transmission performance.
Description
Technical field
This application involves the communications field, in particular to the method and sending device of a kind of transmitting message.
Background technique
Link aggregation (link aggregation, LA), which refers to, bundles multiple physical interfaces, becomes one and patrols
Interface, i.e. link aggregation group (link aggregation group, LAG) are collected, to realize increase bandwidth and provide link protection
A kind of method.
When interface in LAG changes (for example, LAG is added, deletes interface or interface bandwidth variation), sending device
(forwarding device or network element device being referred to as, for example, interchanger) is according to the interface load sharing strategy decision of user configuration
The equipment that message is sent to opposite end from which physical interface.
Under default situations, sending device can by each physical interface packet-by-packet according to 1:1 (multiplex roles are exactly 1:1:1 ...) into
Row load balancing.That is, sending device can carry out packet-by-packet load balancing to flow, i.e., first packet walks interface 1, second
Packet walks interface 2 ... and the bandwidth shown is the sum of each interface bandwidth.
However, sharing each chain due to flow equalization when using fixed 1:1 load balancing mode transmitting message
Road, when actual flow be more than minimum speed limit interface bandwidth multiplied by interface quantity when so that sharing the flow in low rate interface
Greater than its bandwidth, it may appear that the case where packet loss, influence transmission performance.
Therefore, how transmission performance is improved, becomes urgent problem to be solved.
Summary of the invention
The application provides the method and sending device of a kind of transmitting message, can be improved transmission performance.
In a first aspect, a kind of method of transmitting message is provided, this method comprises: it includes at least two that sending device, which obtains,
The retransmitting paramater of each physical interface in the interface group of physical interface;The sending device is according to each physical interface
Retransmitting paramater determines the load balancing ratio of each physical interface;The sending device is according to each physical interface
Load balancing ratio passes through the interface group transmitting message.
Specifically, in sending device first passage interface group (for example, LAG) transmitting message or the port in LAG
In the case where changing, for example, the bandwidth of physical port, deletion of physically port or the physical port in LAG is added in LAG
When variation, sending device is firstly the need of the retransmitting paramater for obtaining each physical interface in LAG, according to the forwarding of each physical interface
Parameter determines the load balancing ratio of each physical interface, then, according to the load balancing ratio transmitting message.
For example, there are two physical interface, interface A and interface B for tool in LAG, it is true according to two physical interface retransmitting paramaters
The load balancing ratio of fixed two interfaces is 2:1, if that sending device needs to send 9 messages, then according to should
Load balancing ratio sending device, which can be determined, sends 6 messages by interface A, sends 3 messages by interface B.
Therefore, the embodiment of the present application, it is true by the retransmitting paramater according to each physical interface in interface group (for example, LAG)
The load balancing ratio of fixed each physical interface, and transmitted and reported by interface group according to the load balancing ratio of each physical interface
Text.The embodiment of the present application can flexibly determine the load balancing of physical interface according to the parameter of physical interface, be able to ascend biography
Defeated performance.
Optionally, in one implementation, the retransmitting paramater of the physical interface includes at least one in following parameter
Kind:
The bandwidth of physical interface, the packet loss of physical interface, the bit error rate of physical interface and the propagation delay time of physical interface.
It should be understood that the retransmitting paramater of each physical interface is identical retransmitting paramater in the embodiment of the present application, for example, being
One of above-mentioned parameter is a variety of.
It should be understood that in the embodiment of the present application, after the load balancing ratio that each physical interface has been determined, if in LAG
Port do not change, then directly can transmit report according to the load balancing ratio of the determination when sending message after sending device
Text.In the physical interface variation of LAG, sending device needs to reacquire the retransmitting paramater (physical interface of each physical interface
The retransmitting paramater of each physical interface after variation), and each physical interface is determined according to the retransmitting paramater of each physical interface
Load balancing ratio, and LAG transmitting message is passed through according to the load balancing ratio of each physical interface newly determined.
Optionally, in one implementation, the retransmitting paramater of the physical interface is the bandwidth of physical interface, described each
The load balancing ratio of a physical interface and the bandwidth of each physical interface are positively correlated.
Therefore, the embodiment of the present application determines load balancing ratio, and load balancing ratio according to the amount of bandwidth of physical interface
Example is positively correlated with bandwidth, i.e. setting has biggish load balancing example with roomy physical interface, and the small physics of setting bandwidth connects
Mouth has lesser load balancing ratio, by this set the load of each physical interface is matched with its bandwidth, energy
The bandwidth for enough making full use of each interface promotes the available bandwidth of entire LAG.
Optionally, in one implementation, the retransmitting paramater of the physical interface is the packet loss of physical interface, described
The packet loss of the load balancing ratio of each physical interface and each physical interface is negatively correlated.
Therefore, the embodiment of the present application determines load balancing ratio, and load balancing ratio according to the packet loss of physical interface
With packet loss negative correlation, i.e. the big physical interface of setting packet loss has lesser load balancing example, the small object of setting packet loss
Managing interface has biggish load balancing ratio, makes the load of each physical interface and its transmission performance phase by this set
Matching, can reduce the packet loss of message, promotes the transmission performance of entire LAG.
Optionally, in one implementation, the retransmitting paramater of the physical interface is the bit error rate of physical interface, described
The load balancing ratio of each physical interface and the bit error rate of each physical interface are negatively correlated;
Therefore, the embodiment of the present application determines load balancing ratio, and load balancing ratio according to the bit error rate of physical interface
With bit error rate negative correlation, i.e. the big physical interface of the setting bit error rate has lesser load balancing example, the small object of the setting bit error rate
Managing interface has biggish load balancing ratio, makes the load of each physical interface and its transmission performance phase by this set
Matching, can reduce the bit error rate of message, promotes the transmission performance of entire LAG.
Optionally, in one implementation, the retransmitting paramater of the physical interface is the propagation delay time of physical interface, institute
The propagation delay time of the load balancing ratio and each physical interface of stating each physical interface is negatively correlated.
Therefore, the embodiment of the present application determines load balancing ratio, and load balancing ratio according to the propagation delay time of physical interface
Example and propagation delay time are negatively correlated, i.e. the big physical interface of setting propagation delay time has lesser load balancing example, when setting is transmitted
Prolong small physical interface with biggish load balancing ratio, by this set the load of each physical interface is passed with it
Defeated performance matches, and can reduce the propagation delay time of message, promotes the transmission performance of entire LAG.
Optionally, in one implementation, the load balancing ratio of the first physical interface is first physical interface
First ratio of the corresponding first instruction information in multiple instruction information, the multiple instruction information are carried on forwarding table, institute
It states the instruction information in forwarding table and is used to indicate the physical interface selected when the sending device sends message by LAG, it is described
First instruction information is used to indicate the sending device by selecting first physical interface when LAG transmission message, and described the
One physical interface is any one physical interface in the physical interface group;Instruction information in the forwarding table is used to indicate
The physical interface that the sending device selects when sending message by LAG;Optionally, total of information is indicated in the forwarding table
Number is fixed.
The sending device passes through the interface group transmitting message, packet according to the load balancing ratio of each interface
It includes:
The sending device is according to the corresponding instruction of the first ratio-dependent message to be transmitted of first physical interface
Information,
The sending device is connect by the physics in the corresponding LAG for indicating information instruction of the message to be transmitted
Message described in port transmission.
Optionally, in one implementation, the retransmitting paramater of the physical interface is the bandwidth of physical interface, the hair
The load balancing ratio for sending equipment to determine each physical interface according to the retransmitting paramater of each physical interface, comprising:
The sending device determines the initial number of the corresponding instruction information of each physical interface according to the following formula:
Mi=┖ Vi*Z ┛
Mi indicates that the initial number, the Vi indicate the bandwidth of i-th of physical interface and the bandwidth of all physical interfaces
The ratio of sum, Z indicate the total number for the instruction information that forwarding table includes, and ┖ ┛ indicates to be rounded downwards, and i ∈ [1, N], N indicate institute
State the number of physical interface at least two physical interfaces;
When the sum of the initial number ∑ Mi in the forwarding table that all physical interfaces occupy is equal with Z, each physics
The number for the instruction letter that interface occupies is identical as the instruction initial number of information;
Alternatively,
When the sum of the initial number for indicating information in the corresponding forwarding table of all physical interfaces ∑ Mi is less than Z,
The sending device is randomly assigned or is distributed in Z according to the retransmitting paramater of the physical interface remaining in addition to ∑ Mi
Instruction information, obtain allocation result,
Indicate that the initial number of information determines institute in the forwarding table occupied according to the allocation result and each physical interface
State the number of the instruction information in the corresponding forwarding table of each physical interface.
Specifically, sending device can be according to forwarding table transmitting message.Instruction in the forwarding table with fixed format is believed
It ceases (being referred to as list item), each instruction information is used to indicate a physical interface, and instruction information can be physical interface
Mark.In practical applications, sending device can inquire forwarding table and obtain the instruction information for sending message, according to instruction information
The physical interface transmitting message of instruction.
For example, having 32 instruction information in forwarding table.Sending device is when obtaining message to be transmitted, for example, obtaining
3 messages to be transmitted, then instruction information that forwarding device is indicated according to current pointer determines that three physical interfaces pass
Defeated 3 messages to be transmitted.It should be understood that one message of every transmission in the embodiment of the present application, pointer will indicate next instruction
Information.For example, current pointer indicates the 4th instruction information when obtaining 3 messages to be transmitted, then sending device can be with
Determine that the 4th instruction information indicates that three physical interfaces of this 3 instruction information instructions of information transmit this 3 respectively to the 6th
Message to be transmitted, and pointer is indicated that the 7th instruction information, next message transmissions are the object for indicating that information indicates from the 7th
Port transmission is managed, and so on, after the physical interface transmitting message by the 32nd instruction information instruction, pointer is returning to the
One instruction information, is rotated.
Optionally, in one implementation, the retransmitting paramater of the physical interface is the bandwidth of physical interface, the hair
The load balancing ratio for sending equipment to determine each physical interface according to the retransmitting paramater of each physical interface, comprising:
The sending device determines the instruction in the forwarding table according to the retransmitting paramater of each physical interface one by one
The corresponding physical interface of information.
Optionally, in one implementation, the retransmitting paramater of the physical interface includes at least two in following parameter
Kind:
The bandwidth of physical interface, the packet loss of physical interface, the bit error rate of physical interface and the propagation delay time of physical interface;
Wherein, the sending device determines each physical interface according to the retransmitting paramater of each physical interface
Load balancing ratio, comprising:
Described in the sending device is determined by the way of weighting according at least two parameters of each physical interface
The load balancing ratio of each physical interface.
Therefore, the embodiment of the present application, it is true by the retransmitting paramater according to each physical interface in interface group (for example, LAG)
The load balancing ratio of fixed each physical interface, and transmitted and reported by interface group according to the load balancing ratio of each physical interface
Text.The embodiment of the present application can flexibly determine the load balancing of physical interface according to the parameter of physical interface, avoid existing
Single the problem of determining physical interface load balancing according to 1:1, be able to ascend transmission performance in technology.
Second aspect provides a kind of sending device, which includes: processing unit and Transmit-Receive Unit,
The processing unit forwarding for obtaining each physical interface in the interface group for including at least two physical interfaces
Parameter;
The load balancing ratio of each physical interface is determined according to the retransmitting paramater of each physical interface;
The Transmit-Receive Unit is used for the load balancing ratio according to each interface, is transmitted and is reported by the interface group
Text.
Therefore, the embodiment of the present application, it is true by the retransmitting paramater according to each physical interface in interface group (for example, LAG)
The load balancing ratio of fixed each physical interface, and transmitted and reported by interface group according to the load balancing ratio of each physical interface
Text.The embodiment of the present application can flexibly determine the load balancing of physical interface according to the parameter of physical interface, avoid existing
Single the problem of determining physical interface load balancing according to 1:1, be able to ascend transmission performance in technology.It should be understood that second aspect
Corresponding with first aspect, sending device can be realized the method in first aspect and its possible implementation, in order to avoid repeating,
It is appropriate herein to omit detailed description.
Optionally, in a kind of implementation of second aspect, the retransmitting paramater of the physical interface includes following parameter
At least one of:
The bandwidth of physical interface, the packet loss of physical interface, the bit error rate of physical interface and the propagation delay time of physical interface.
Optionally, in a kind of implementation of second aspect, the retransmitting paramater of the physical interface is physical interface
The bandwidth of bandwidth, the load balancing ratio of each physical interface and each physical interface is positively correlated;
Alternatively,
The retransmitting paramater of the physical interface is the packet loss of physical interface, the load balancing ratio of each physical interface
Example and the packet loss of each physical interface are negatively correlated;
Alternatively,
The retransmitting paramater of the physical interface is the bit error rate of physical interface, the load balancing ratio of each physical interface
Example and the bit error rate of each physical interface are negatively correlated;
Alternatively,
The retransmitting paramater of the physical interface is the propagation delay time of physical interface, the load balancing of each physical interface
Ratio and the propagation delay time of each physical interface are negatively correlated.
Optionally, the load balancing ratio of the first physical interface is described first in a kind of implementation of second aspect
First ratio of the corresponding first instruction information of physical interface in multiple instruction information, the multiple instruction information, which is carried on, to be turned
It delivers, the instruction information in the forwarding table is used to indicate the physics selected when the sending device sends message by LAG and connects
Mouthful, the first instruction information, which is used to indicate when the sending device sends message by LAG, selects first physical interface,
First physical interface is any one physical interface in the physical interface group;
The transmission unit is specifically used for the first ratio-dependent message pair to be transmitted according to first physical interface
The instruction information answered,
The report is transmitted by the physical interface in the corresponding LAG for indicating information instruction of the message to be transmitted
Text.
Optionally, in a kind of implementation of second aspect, the retransmitting paramater of the physical interface is physical interface
Bandwidth, the determination unit are specifically used for initial that determines the corresponding instruction information of each physical interface according to the following formula
Number:
Mi=┖ Vi*Z ┛
Mi indicates that the initial number, the Vi indicate the bandwidth of i-th of physical interface and the bandwidth of all physical interfaces
The ratio of sum, Z indicate the total number for the instruction information that forwarding table includes, and ┖ ┛ indicates to be rounded downwards, and i ∈ [1, N], N indicate institute
State the number of physical interface at least two physical interfaces;
When the sum of the initial number ∑ Mi in the forwarding table that all physical interfaces occupy is equal with Z, each physics
The number for the instruction letter that interface occupies is identical as the instruction initial number of information;
Alternatively,
When the sum of the initial number for indicating information in the corresponding forwarding table of all physical interfaces ∑ Mi is less than Z,
The determination unit is randomly assigned or is distributed in Z according to the retransmitting paramater of the physical interface remaining in addition to ∑ Mi
Instruction information, obtain allocation result,
Indicate that the initial number of information determines institute in the forwarding table occupied according to the allocation result and each physical interface
State the number of the instruction information in the corresponding forwarding table of each physical interface.
Optionally, in a kind of implementation of second aspect, the retransmitting paramater of the physical interface is physical interface
Bandwidth, the determination unit are specifically used for being determined one by one in the forwarding table according to the retransmitting paramater of each physical interface
Indicate the corresponding physical interface of information.
Optionally, in a kind of implementation of second aspect, the retransmitting paramater of the physical interface includes following parameter
In at least two:
The bandwidth of physical interface, the packet loss of physical interface, the bit error rate of physical interface and the propagation delay time of physical interface;
Wherein, the determination unit is specifically used for according at least two parameters of each physical interface using weighting
Mode determines the load balancing ratio of each physical interface.
The third aspect provides a kind of sending device, including transceiver, processor and memory.The processor is for controlling
Transceiver receiving and transmitting signal processed, the memory is for storing computer program, and the processor is for calling and running from memory
The computer program, so that the verification end equipment executes the method in first aspect and its possible implementation.
Fourth aspect provides a kind of computer-readable medium, is stored thereon with computer program, the computer program quilt
The method in any possible implementation of first aspect or first aspect is realized when computer executes.
5th aspect, provides a kind of computer program product, realization when which is computer-executed
Method in any possible implementation of first aspect or first aspect.
Detailed description of the invention
Fig. 1 is the applicable schematic diagram of a scenario of the embodiment of the present application.
Fig. 2 is the method schematic flow diagram according to the transmitting message of the application one embodiment.
Fig. 3 is the side that the ratio that information is indicated in forwarding table is corresponded to according to the determination physical interface of the application one embodiment
Method flow chart.
Fig. 4 is the schematic block diagram according to the sending device of the application one embodiment.
Fig. 5 is the schematic block diagram according to the sending device of another embodiment of the application.
Specific embodiment
Below in conjunction with attached drawing, the technical solution in the application is described.
Fig. 1 is the applicable schematic diagram of a scenario of the embodiment of the present application.It include the first equipment 101 in scene as shown in Figure 1
With the second equipment 102, the interface including at least two physical interfaces can be passed through between the first equipment 101 and the second equipment 102
Group transmitting message, which may include link aggregation group LAG.It is only described so that interface group is LAG as an example below, but this
Embodiment is not limited to this for application.
It should be understood that LAG can indicate what link aggregation (Link Aggregation, LA) was formed in the embodiment of the present application
Interface group.
It should be understood that when the first equipment sends message to the second equipment, the first equipment can be known as in the embodiment of the present application
Second equipment is known as receiving device or opposite equip. by sending device or forwarding device.In being described below herein, for description
Facilitate and the equipment for sending message is collectively referred to as sending device, but the embodiment of the present application is not limited to this, for example, the sending device
It is referred to as forwarding device or the first equipment etc..
In the embodiment of the present application, the first equipment 101 or the second equipment 102 can be the equipment of exchange data, for example, to hand over
It changes planes, the equipment such as the server server of backbone network (such as connection), optionally, the first equipment 101 and the second equipment 102 are also
It can be personal computer (personal computer, PC) etc., as long as the first equipment and the second equipment can support LAG to assist
View, the embodiment of the present application are not limited to this.
It should be understood that physical interface can be Ethernet interface, low speed mouth (for example, asynchronous transmission mould in the embodiment of the present application
Formula (asynchronous transfer mode, ATM) mouth supports synchronous digital system (sdh)/Synchronous Optical Network (sonet)
Carrying packet (packet over sdh/sonet, POS) mouth, the interface for supporting E1 frame format, the POS for supporting channel pattern
(carrier POS, CPOS) mouth), honeycomb (Cellular) mouth etc., the embodiment of the present application is not limited to this.
Optionally, the physical interface in the embodiment of the present application is referred to as physical port, and correspondingly, interface group can also be with
Referred to as port set, the embodiment of the present application are not limited to this.
When sending device needs to send multiple messages, usual sending device can be by each physical interface packet-by-packet according to 1:
1 (multiplex roles are exactly 1:1:1 ...) carries out load balancing.
Specifically, sending device can E-Packet according to the physical interface that the instruction information in forwarding table indicates.It sends
Equipment the instruction information of physical interface can be arranged in forwarding table according to the ratio of 1:1 (multiplex roles are exactly 1:1:1 ...).
For example, when forwarding table has 16 instruction information (to be referred to as 16 list items, a list item is that a physics connects
The instruction information of mouth, is used to indicate the physical interface of transmitting message), LAG includes two physical interfaces, i.e. interface 1 and interface 2.
The form of forwarding table can be as shown in table 1, and the instruction information of forwarding table interface 1 and interface 2 in table 1 is 1:1.Sending device meeting
Packet-by-packet load balancing is carried out to flow, i.e. first message is transmitted by interface 1, and second message is transmitted by interface 2, third
A message is transmitted by interface 1 ... and the bandwidth shown is the sum of each interface bandwidth.
Table 1
Interface 1 | Interface 2 | Interface 1 | Interface 2 |
Interface 1 | Interface 2 | Interface 1 | Interface 2 |
Interface 1 | Interface 2 | Interface 1 | Interface 2 |
Interface 1 | Interface 2 | Interface 1 | Interface 2 |
However, the parameter due to each physical interface is different, if only carried out according to 1:1 (multiplex roles are exactly 1:1:1 ...)
Load balancing will affect LAG available bandwidth, influence network performance.
In view of the above problems, the embodiment of the present application dexterously proposes to determine each physical interface according to the parameter of physical interface
Load balancing ratio, and according to the load balancing ratio of each physical interface pass through LAG transmitting message.In this way,
The embodiment of the present application can flexibly determine the load balancing of physical interface according to the parameter of physical interface, avoid existing skill
The problems in art is able to ascend transmission performance.
Hereinafter, it is non-limiting as example, the method for the transmitting message of the application implementation is described in detail in conjunction with Fig. 2.Fig. 2 institute
The method shown can be executed by sending device, specifically, method as shown in Figure 2 includes:
210, sending device obtains the forwarding ginseng of each physical interface in the interface group for including at least two physical interfaces
Number.
The interface group can be for example the set of LAG or other physical interface, hereinafter, for ease of description, only with
Interface group is described for being LAG, but the embodiment of the present application is not limited to this.
For example, the retransmitting paramater of the physical interface may include at least one of following parameter:
The bandwidth of physical interface, the packet loss of physical interface, the bit error rate of physical interface and the propagation delay time of physical interface.
It should be understood that the retransmitting paramater of each physical interface is identical retransmitting paramater in the embodiment of the present application, for example, being
One of above-mentioned parameter is a variety of.
It should be understood that noun " retransmitting paramater " can indicate a kind of index of physical interface in the embodiment of the present application, for example, can
To indicate the bandwidth for being used for transmission data, or the state when being used for transmission data, such as packet loss, propagation delay time or error code
Rate etc.." parameter " or " the first parameter " or " transmission performance " etc., the embodiment of the present application can also be stated as by being somebody's turn to do " retransmitting paramater "
It is not limited to this.
It should also be understood that " each physical interface " can also be described as " each physical interface " or " the in the embodiment of the present application
One physics " etc., any one physical interface in interface group can be indicated by being wherein somebody's turn to do " the first physical interface ", and the application is real
Example is applied to be not limited to this.
220, which determines the load point of each physical interface according to the retransmitting paramater of each physical interface
Load ratio.
It should be understood that the load balancing ratio of the first physical interface can indicate in the case where interface group full and down, first
The message of physical interface carrying accounts for the ratio of the message of entire interface group carrying group.Wherein, which can be to connect
Any one physics, that is, interface in mouth group.
230, which passes through the interface group transmitting message according to the load balancing ratio of each interface.
Specifically, in sending device first passage interface group (for example, LAG) transmitting message or the port in LAG
In the case where changing, for example, the bandwidth of physical port, deletion of physically port or the physical port in LAG is added in LAG
When variation, sending device is firstly the need of the retransmitting paramater for obtaining each physical interface in LAG, according to the forwarding of each physical interface
Parameter determines the load balancing ratio of each physical interface, then, according to the load balancing ratio transmitting message.
For example, there are two physical interface, interface A and interface B for tool in LAG, it is true according to two physical interface retransmitting paramaters
The load balancing ratio of fixed two interfaces is 2:1, if that sending device needs to send 9 messages, then according to should
Load balancing ratio sending device, which can be determined, sends 6 messages by interface A, sends 3 messages by interface B.
Therefore, the embodiment of the present application, it is true by the retransmitting paramater according to each physical interface in interface group (for example, LAG)
The load balancing ratio of fixed each physical interface, and transmitted and reported by interface group according to the load balancing ratio of each physical interface
Text.The embodiment of the present application can flexibly determine the load balancing of physical interface according to the parameter of physical interface, avoid existing
Single the problem of determining physical interface load balancing according to 1:1, be able to ascend transmission performance in technology.
It should be understood that in the embodiment of the present application, after the load balancing ratio that each physical interface has been determined, if in LAG
Port do not change, then directly can transmit report according to the load balancing ratio of the determination when sending message after sending device
Text.In the physical interface variation of LAG, sending device needs to reacquire the retransmitting paramater (physical interface of each physical interface
The retransmitting paramater of each physical interface after variation), and each physical interface is determined according to the retransmitting paramater of each physical interface
Load balancing ratio, and LAG transmitting message is passed through according to the load balancing ratio of each physical interface newly determined.
Optionally, as one embodiment, the retransmitting paramater of the physical interface is the bandwidth of physical interface, described each
The load balancing ratio of physical interface and the bandwidth of each physical interface are positively correlated.
For example, having 4 physical interfaces in LAG, the bandwidth of 4 physical interfaces is respectively 1GE, 2GE, 5GE, 10GE,
So the load balancing ratio of 4 physical interfaces can be 1:2:5:10, and the embodiment of the present application is not limited to this, as long as each
The load balancing ratio of physical interface is directly proportional to bandwidth.
In existing way, the load balancing ratio for being set as 4 physical interfaces for 4 physical interfaces is 1:1:1:
1.If this mode load will lead to the interface packet loss of 1GE bandwidth beyond 1Gbps.Therefore, so that each physical interface is born
Carrier band width is up to 1GE, and such case will lead to the physical interface bandwidth waste of 2GE, 5GE, 10GE, limit entire LAG's
Total bandwidth.
And load balancing ratio is set 1:2:5:10 by the embodiment of the present application.Enable to the load of each physical interface
Bandwidth most significantly so that entire LAG shows maximum available bandwidth.
Therefore, the embodiment of the present application determines load balancing ratio, and load balancing ratio according to the amount of bandwidth of physical interface
Example is positively correlated with bandwidth, i.e. setting has biggish load balancing example with roomy physical interface, and the small physics of setting bandwidth connects
Mouth has lesser load balancing ratio, by this set the load of each physical interface is matched with its bandwidth, energy
The bandwidth for enough making full use of each interface promotes the available bandwidth of entire LAG.
Optionally, as one embodiment, the retransmitting paramater of the physical interface is the packet loss of physical interface, described each
The packet loss of the load balancing ratio of a physical interface and each physical interface is negatively correlated.
Therefore, the embodiment of the present application determines load balancing ratio, and load balancing ratio according to the packet loss of physical interface
With packet loss negative correlation, i.e. the big physical interface of setting packet loss has lesser load balancing example, the small object of setting packet loss
Managing interface has biggish load balancing ratio, makes the load of each physical interface and its transmission performance phase by this set
Matching, can reduce the packet loss of message, promotes the transmission performance of entire LAG.
Optionally, as one embodiment, the retransmitting paramater of the physical interface is the bit error rate of physical interface, described each
The load balancing ratio of a physical interface and the bit error rate of each physical interface are negatively correlated.
Therefore, the embodiment of the present application determines load balancing ratio, and load balancing ratio according to the bit error rate of physical interface
With bit error rate negative correlation, i.e. the big physical interface of the setting bit error rate has lesser load balancing example, the small object of the setting bit error rate
Managing interface has biggish load balancing ratio, makes the load of each physical interface and its transmission performance phase by this set
Matching, can reduce the bit error rate of message, promotes the transmission performance of entire LAG.
Optionally, as one embodiment, the retransmitting paramater of the physical interface is the propagation delay time of physical interface, described
The load balancing ratio of each physical interface and the propagation delay time of each physical interface are negatively correlated.
Therefore, the embodiment of the present application determines load balancing ratio, and load balancing ratio according to the propagation delay time of physical interface
Example and propagation delay time are negatively correlated, i.e. the big physical interface of setting propagation delay time has lesser load balancing example, when setting is transmitted
Prolong small physical interface with biggish load balancing ratio, by this set the load of each physical interface is passed with it
Defeated performance matches, and can reduce the propagation delay time of message, promotes the transmission performance of entire LAG.
Optionally, as another embodiment, the load balancing ratio of the first physical interface is first physical interface pair
First ratio of the first instruction information answered in multiple instruction information, the multiple instruction information is carried on forwarding table, described
Instruction information in forwarding table is used to indicate the physical interface that the selects when sending device sends message by LAG, and described the
One instruction information is used to indicate and selects first physical interface when sending device sends message by LAG, and described first
Physical interface is any one physical interface in the physical interface group;
In 230, the sending device is according to the first ratio-dependent message pair to be transmitted of first physical interface
The instruction information answered,
The sending device is connect by the physics in the corresponding LAG for indicating information instruction of the message to be transmitted
Message described in port transmission.
Specifically, sending device can be according to forwarding table transmitting message in a kind of feasible implementation.The forwarding
With the instruction information (being referred to as list item) of fixed format in table, each indicates that information is used to indicate a physics and connects
Mouthful, instruction information can be the mark of physical interface or label of physical interface etc., as long as instruction information can indicate that its is right
The physical interface answered, the embodiment of the present application are not limited to this.
In practical applications, sending device can inquire forwarding table and obtain the instruction information for sending message, be believed according to instruction
Cease the physical interface transmitting message of instruction.
For example, having 32 instruction information in forwarding table.Sending device is when obtaining message to be transmitted, for example, obtaining
3 messages to be transmitted, then instruction information that forwarding device is indicated according to current pointer determines that three physical interfaces pass
Defeated 3 messages to be transmitted.It should be understood that one message of every transmission in the embodiment of the present application, pointer will indicate next instruction
Information.For example, current pointer indicates the 4th instruction information when obtaining 3 messages to be transmitted, then sending device can be with
Determine that the 4th instruction information indicates that three physical interfaces of this 3 instruction information instructions of information transmit this 3 respectively to the 6th
Message to be transmitted, and pointer is indicated that the 7th instruction information, next message transmissions are the object for indicating that information indicates from the 7th
Port transmission is managed, and so on, after the physical interface transmitting message by the 32nd instruction information instruction, pointer is returning to the
One instruction information, is rotated.
It is described below when retransmitting paramater is the bandwidth of physical interface, how to determine each physical interface in forwarding table
Indicate the example of the ratio of information.
Accordingly, as another embodiment, the retransmitting paramater of the physical interface is the bandwidth of physical interface, the transmission
Equipment determines the initial number of the corresponding instruction information of each physical interface according to the following formula:
Mi=┖ Vi*Z ┛
Mi indicates that the initial number, the Vi indicate the bandwidth of i-th of physical interface and the bandwidth of all physical interfaces
The ratio of sum, Z indicate the total number for the instruction information that forwarding table includes, and ┖ ┛ indicates to be rounded downwards, and i ∈ [1, N], N indicate institute
State the number of physical interface at least two physical interfaces;
When the sum of the initial number ∑ Mi in the forwarding table that all physical interfaces occupy is equal with Z, each physics
The number for the instruction letter that interface occupies is identical as the instruction initial number of information;Alternatively,
When the sum of the initial number for indicating information in the corresponding forwarding table of all physical interfaces ∑ Mi is less than Z, the hair
Send equipment be randomly assigned or according to the retransmitting paramater of the physical interface distribute Z in addition to ∑ Mi remaining instruction information, obtain
It must distribute as a result, indicating that the initial number of information determines in the forwarding table occupied according to the allocation result and each physical interface
The number of instruction information in the corresponding forwarding table of each physical interface.
For example, as shown in figure 3, in first pass LAG transmitting message, or one interface of addition/deletion or interface in LAG
When bandwidth changes, there are 4 physical interfaces in LAG, the bandwidth of 4 physical interfaces is respectively 1GE, 2GE, 5GE, 10GE, is turned
The size delivered is 32, that is, has 32 list items (instruction information).
It is assumed that being equal to it to each interface assignment if not considering that interface corresponds to the list item number in forwarding table is integer
Bandwidth accounts for the forwarding-table item number of total bandwidth ratio, is the most reasonable method of salary distribution, bandwidth can be made completely to make full use of.I.e.
1GE assigns to the forwarding-table item of 1/ (1+2+5+10) * 32=32/18=16/9, and so on, 2GE assigns to 32/9,5GE and assigns to 80/
9,10GE assign to 160/9 forwarding-table item, in this way when the wide message rotation of filled band, are equivalent to and forwarded 18/ using each list item
32 be about the message of 0.5625Gbps.
But forwarding-table item population should be integer in practical application, therefore, to these scores in the embodiment of the present application
It is rounded downwards, so that 1GE physical interface obtains 1 list item, 2GE physical interface obtains 3 list items, and 5GE physical interface obtains 8
List item, 10GE obtain 17 list items.Divide to fall 29 list items in this way, remaining 3 list items are not fallen by point.
When calculating each one list item of interface reallocation later, unit bandwidth (bandwidth that each list item indicates).Such as
1GE has a list item at present, then reallocating one, entry number 2, each list item indicates the bandwidth of 0.5Gbps;2GE divides again
It is 4 with one, each list item indicates the bandwidth of 0.5Gbps;It is 9 that 5GE, which reallocates one, each list item expression 5/9, about
The bandwidth of 0.56Gbps;It is 18 that 10GE, which reallocates one, and each list item indicates 10/18, the about bandwidth of 0.56Gbps.
That is, when these interfaces are reallocated one in forwarding table, if 1GE or 2GE are assigned to forwarding table,
When flow is greater than 0.5Gbps* forwarding table number (0.5*32=16Gbps), the two interface flows can overflow.Similarly, if
5GE or 10GE are assigned into forwarding table, when flow is greater than 0.56Gbps* forwarding table number (0.56*32=17.92Gbps), this
Two interface flows can overflow.It will be apparent that obtained total bandwidth is bigger by after unit bandwidth big interface assignment when reallocating.
Therefore, Priority Queues can be added in they by the embodiment of the present application, be sequentially 10GE, 5GE, 2GE, 1GE, they
Reallocation unit bandwidth is 5/9,5/9,1/2,1/2.
10GE is added in the forwarding-table item of next sky to according to this queue and is calculated its new reallocation one
The unit bandwidth of list item, 10/ (18+1) is about 0.53Gbps, smaller than 5GE, bigger than 2GE, is put it to behind 5GE.At this time
30 list items are divided to have fallen, have sequentially been 5GE, 10GE, 2GE, 1GE, their reallocation unit bandwidth is 5/9,10/19,1/2,1/
2。
The 5GE of queue heads is allocated and is calculated again, be 5/ (9+1) is 0.5Gbps, puts it to the back 10GE.This
Time-division has fallen 31 list items, is sequentially 10GE, 5GE, 2GE, 1GE, their reallocation unit bandwidth is 10/19,1/2,1/2,
1/2。
10GE is allocated.Having occupied all 32 list items, distribution at this time terminates.Allocation result can be obtained as 10GE occupancy
19 list items, unit bandwidth 10/19Gbps;5GE occupies 9 list items, unit bandwidth 5/9Gbps;2GE occupies 3 list items,
Unit bandwidth is 2/3Gbps;1GE occupies 1 list item, unit bandwidth 1Gbps.Actual bandwidth is the minimum value 10/ in them
19Gbps*32, about 16.84Gbps.
Sending device can be forwarded according to this forwarding table in the embodiment of the present application later.Compared to equal than load
When sharing, each interface assigns to 8 list items, and maximum bandwidth 1/8*32=4Gbps, bandwidth has obtained reasonable utilization, on the LAG
The flow of 12.84Gbps can be distributed without packet loss more.
It should be understood that indicating the ratio of information in the corresponding forwarding table of each physical interface has been determined in the embodiment of the present application
After example, the arrangement situation of this 32 instruction information is not limited in the forwarding table, for example, 10GE occupies 19 list items, unit band
Width is 10/19Gbps;5GE occupies 9 list items, unit bandwidth 5/9Gbps;2GE occupies 3 list items, unit bandwidth 2/
3Gbps;1GE occupies 1 list item.
The forwarding table can be as shown in table 2 or shown in table 3.
Optionally, the forwarding table or be other forms, the embodiment of the present application is not limited to this.That is the forwarding table
The instruction information of middle interface can arbitrarily arrange, as long as the ratio of the corresponding instruction information of 4 physical interfaces is above-mentioned acquires
Ratio.
Table 2
Table 3
For another example LAG includes there are two physical interface A and B, forwarding table includes 8 list items, corresponding 3 tables of interface A altogether
, corresponding 5 list items of interface B.Here the arrangement of the instruction information of A and B can be AAABBBBB, ABABABBB, ABBABBAB
Or BBBBBAAA etc., the embodiment of the present application is not limited to this, as long as the instruction information of A and B is 3:5.
Described above is after distributing 29 list items, according to the bandwidth of physical interface one by one by remaining 3 list items point
The detailed process matched.Optionally, in practical applications, in the embodiment of the present application after distributing 29 list items, in order to reduce meter
Calculate complexity, can by remaining 3 list items it is random distribute to 4 physical interfaces, the distribution side with 1:1 in the prior art
Formula is compared, and transmission performance is equally able to ascend.
It should be understood that the one of the ratio for determining that 4 physical interfaces correspond to 32 instruction information in forwarding table has been described above
Kind column.
The embodiment of the present application can also determine that 4 physical interfaces correspond to the instruction information in forwarding table using other modes
Ratio.For example, determining 3 list items one by one after remaining 3 list items can be directly used in above-mentioned example in the embodiment of the present application
The case where corresponding physical interface.I.e. accordingly, as another embodiment, the sending device is according to each physical interface
Retransmitting paramater determine the corresponding physical interface of instruction information in the forwarding table one by one.
For example, the embodiment of the present application can determine the corresponding physical interface of 32 list items one by one.
Firstly, each interface corresponds to 0 list item, when first calculating each one list item of interface assignment, unit bandwidth
(bandwidth that each list item indicates).If 1GE has 0 list item at present, then distribution one, entry number 1, each list item indicate
The bandwidth of 1Gbps;2GE distributes one, and entry number 1, each list item indicates the bandwidth of 2Gbps;5GE distributes one, entry number
It is 1, each list item indicates the bandwidth of 5Gbps;10GE distributes one, and entry number 1, each list item indicates the band of 10Gbps
It is wide.
That is, when by these interface assignments one to forwarding table, if 1GE, 2GE, 5GE, 10GE assigned to
Forwarding table, when flow is greater than 1Gbps, 2Gbps, 5Gbps, 10Gbps, corresponding interface flow can overflow.It will be apparent that will divide again
After the big interface assignment of timing unit bandwidth, obtained total bandwidth is bigger.
Therefore, Priority Queues can be added in they by the embodiment of the present application, be sequentially 10GE, 5GE, 2GE, 1GE.According to this
10GE is added in the forwarding-table item of next sky and is calculated the unit bandwidth of its new one list item of reallocation by a queue.
This time-division has fallen 1 list item, is sequentially 10GE, 5GE, 2GE, 1GE.
Similarly, 32 list items are distributed into 4 physical interfaces according to this process.Finally, allocation result can be obtained being
10GE occupies 19 list items, unit bandwidth 10/19Gbps;5GE occupies 9 list items, unit bandwidth 5/9Gbps;2GE is occupied
3 list items, unit bandwidth 2/3Gbps;1GE occupies 1 list item, unit bandwidth 1Gbps.Actual bandwidth in them most
Small value 10/19Gbps*32, about 16.84Gbps.
The specific example in the bandwidth that retransmitting paramater is physical interface has been described above.It is physical interface in retransmitting paramater
Packet loss, physical interface the bit error rate or physical interface propagation delay time the case where it is similar, to avoid repeating, herein not
It repeats again.
Optionally, it as another embodiment, has been described above when retransmitting paramater includes a kind of parameter and has determined load balancing ratio
The case where example.
Alternatively, as another embodiment, the retransmitting paramater of the physical interface includes at least two in following parameter
Kind: the bandwidth of physical interface, the packet loss of physical interface, the bit error rate of physical interface and the propagation delay time of physical interface;
Wherein, in 220, the sending device is according at least two parameters of each physical interface using weighting
Mode determines the load balancing ratio of each physical interface.
For example, the retransmitting paramater of the physical interface may include 2 parameters, then sending device can be according to formula aX+
BY determines the load balancing ratio of each physical interface.
Wherein, x can be with the value of expression parameter 1, the value of y expression parameter 2, the weight coefficient of a and b expression x and y, a+b
=1.
It should be understood that sending device can also determine the load point of each physical interface using other modes according to multiple parameters
Load ratio, the embodiment of the present application are not limited to this.
Therefore, the embodiment of the present application, it is true by the retransmitting paramater according to each physical interface in interface group (for example, LAG)
The load balancing ratio of fixed each physical interface, and transmitted and reported by interface group according to the load balancing ratio of each physical interface
Text.The embodiment of the present application can flexibly determine the load balancing of physical interface according to the parameter of physical interface, avoid existing
Single the problem of determining physical interface load balancing according to 1:1, be able to ascend transmission performance in technology.
It should be understood that the retransmitting paramater described above is sending device in the embodiment of the present application automatically according to physical interface determines
The load balancing ratio of physical interface, and according to the example of the load balancing ratio transmitting message.
Optionally, in practical applications, sending device also can receive the load point of each physical interface of user configuration
Load ratio, and according to the load balancing ratio of the configuration of the user by LAG transmitting message, the embodiment of the present application is not limited to
This.
Therefore, the embodiment of the present application sending device can determine the load point of each physical interface with itself according to retransmitting paramater
Load ratio can also determine the load balancing ratio of each physical interface according to the configuration of user, can flexibly carry out message
Forwarding, be able to ascend user experience.
It should be understood that the example of above Fig. 2 to Fig. 3, it is only for help skilled in the art to understand the application reality
Apply example, and specific value or concrete scene illustrated by the embodiment of the present application have to being limited to.Those skilled in the art are according to institute
The example of the Fig. 2 to Fig. 3 provided, it is clear that the modification or variation of various equivalences can be carried out, such modification or variation are also fallen into
In the range of the embodiment of the present application.
It should be understood that magnitude of the sequence numbers of the above procedures are not meant that the order of the execution order, the execution of each process is suitable
Sequence should be determined by its function and internal logic, and the implementation process without coping with the embodiment of the present application constitutes any restriction.
Above, the method that the transmitting message of the embodiment of the present application is described in detail in conjunction with Fig. 2 to Fig. 3, below with reference to Fig. 4
The sending device of the embodiment of the present application is described with Fig. 5.
Fig. 4 is the schematic block diagram according to the sending device of the application one embodiment.Sending device 400 shown in Fig. 4 is wrapped
It includes: processing unit 410 and Transmit-Receive Unit 420.
Specifically, the processing unit retransmitting paramater for obtaining each physical interface in link aggregation group LAG;According to
The retransmitting paramater of each physical interface determines the load balancing ratio of each physical interface;The Transmit-Receive Unit is used for
Pass through the LAG transmitting message according to the load balancing ratio of each interface.
Therefore, the embodiment of the present application, it is true by the retransmitting paramater according to each physical interface in interface group (for example, LAG)
The load balancing ratio of fixed each physical interface, and transmitted and reported by interface group according to the load balancing ratio of each physical interface
Text.The embodiment of the present application can flexibly determine the load balancing of physical interface according to the parameter of physical interface, avoid existing
Single the problem of determining physical interface load balancing according to 1:1, be able to ascend transmission performance in technology.
Optionally, as another embodiment, the retransmitting paramater of the physical interface includes at least one of following parameter:
The bandwidth of physical interface, the packet loss of physical interface, the bit error rate of physical interface and the propagation delay time of physical interface.
Optionally, as another embodiment, the retransmitting paramater of the physical interface is the bandwidth of physical interface, described each
The load balancing ratio of physical interface and the bandwidth of each physical interface are positively correlated;
Alternatively,
The retransmitting paramater of the physical interface is the packet loss of physical interface, the load balancing ratio of each physical interface
Example and the packet loss of each physical interface are negatively correlated;
Alternatively,
The retransmitting paramater of the physical interface is the bit error rate of physical interface, the load balancing ratio of each physical interface
Example and the bit error rate of each physical interface are negatively correlated;
Alternatively,
The retransmitting paramater of the physical interface is the propagation delay time of physical interface, the load balancing of each physical interface
Ratio and the propagation delay time of each physical interface are negatively correlated.
Optionally, as another embodiment, the load balancing ratio of each physical interface is used to indicate the physics
The ratio of instruction information in the corresponding forwarding table of interface, indicate in the forwarding table information total number be it is fixed, it is described
Instruction information in forwarding table is used to indicate the physical interface selected when the sending device sends message by LAG;
The transmission unit be specifically used for according to each interface described in the forwarding table load balancing ratio determine to
The corresponding instruction information of the message of transmission,
The report is transmitted by the physical interface in the corresponding LAG for indicating information instruction of the message to be transmitted
Text.
Optionally, as another embodiment, the retransmitting paramater of the physical interface is the bandwidth of physical interface, the determination
Unit is specifically used for determining the initial number of the corresponding instruction information of each physical interface according to the following formula:
Mi=┖ Vi*Z ┛
Mi indicates that the initial number, the Vi indicate the bandwidth of i-th of physical interface and the bandwidth of all physical interfaces
The ratio of sum, Z indicate the total number for the instruction information that forwarding table includes, and ┖ ┛ indicates to be rounded downwards;
When the sum of the initial number ∑ Mi in the forwarding table that all physical interfaces occupy is equal with Z, each physics
The number for the instruction letter that interface occupies is identical as the instruction initial number of information;
Alternatively,
When the sum of the initial number for indicating information in the corresponding forwarding table of all physical interfaces ∑ Mi is less than Z,
The determination unit is randomly assigned or is distributed in Z according to the retransmitting paramater of the physical interface remaining in addition to ∑ Mi
Instruction information, obtain allocation result,
Indicate that the initial number of information determines institute in the forwarding table occupied according to the allocation result and each physical interface
State the number of the instruction information in the corresponding forwarding table of each physical interface.
Optionally, as another embodiment, the retransmitting paramater of the physical interface is the bandwidth of physical interface, the determination
Unit is specifically used for determining that the instruction information in the forwarding table is corresponding one by one according to the retransmitting paramater of each physical interface
Physical interface.
Optionally, as another embodiment, the retransmitting paramater of the physical interface includes at least two in following parameter:
The bandwidth of physical interface, the packet loss of physical interface, the bit error rate of physical interface and the propagation delay time of physical interface;
Wherein, the determination unit is specifically used for according at least two parameters of each physical interface using weighting
Mode determines the load balancing ratio of each physical interface.
It should be understood that sending device shown in Fig. 4 can be realized each of sending device involved in Fig. 2 to Fig. 3 embodiment of the method
A process, the operation and/or function of the modules in sending device 400, respectively in order to realize that method of the Fig. 2 into Fig. 3 is real
The corresponding process in example is applied, for details, reference can be made to the descriptions in above method embodiment, and to avoid repeating, appropriate omit is described in detail herein
Description.
Fig. 5 shows the schematic block diagram of the sending device 500 according to the embodiment of the present application.Specifically, as shown in figure 5,
The sending device 500 includes: processor 510 and transceiver 520, and processor 510 is connected with transceiver 520, optionally, the transmission
Equipment 500 further includes memory 530, and memory 530 is connected with processor 510, wherein processor 510, memory 530 and receipts
It is communicated with each other between hair device 520 by internal connecting path, transmitting control and/or data-signal.The memory 530 can be used for
Store instruction, the processor 510 are used to execute the instruction of the memory 530 storage, and control transceiver 520 transmits and receives information or letter
Number, instruction of the controller 510 in execution memory 530 can complete transmission involved in above-mentioned Fig. 2 to Fig. 3 embodiment of the method and set
Standby each process.To avoid repeating, details are not described herein again.
It should be understood that sending device 500 can be corresponding with the sending device 400 in above-mentioned Fig. 4, in sending device 400
The function of processing unit 410 can be realized that the function of Transmit-Receive Unit 420 can be realized by transceiver 520 by processor 510.
Therefore, the embodiment of the present application, it is true by the retransmitting paramater according to each physical interface in interface group (for example, LAG)
The load balancing ratio of fixed each physical interface, and transmitted and reported by interface group according to the load balancing ratio of each physical interface
Text.The embodiment of the present application can flexibly determine the load balancing of physical interface according to the parameter of physical interface, avoid existing
Single the problem of determining physical interface load balancing according to 1:1, be able to ascend transmission performance in technology.
It should be noted that the processor (for example, processor in Fig. 5) in the embodiment of the present application can be a kind of ic core
Piece, the processing capacity with signal.During realization, each step of above method embodiment can be by hard in processor
The integrated logic circuit of part or the instruction of software form are completed.Above-mentioned processor can be general processor, digital signal
Processor (digital signal processor, DSP), specific integrated circuit (application specific
Integrated crcuit, ASIC), ready-made programmable gate array (field programmable gate array, FPGA)
Either other programmable logic device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute
Disclosed each method, step and logic diagram in the embodiment of the present application.General processor can be microprocessor or this at
Reason device is also possible to any conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present application, can directly embody
Execute completion for hardware decoding processor, or in decoding processor hardware and software module combination execute completion.Software
Module can be located at random access memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable storage
In the storage medium of this fields such as device, register maturation.The storage medium is located at memory, and processor reads the letter in memory
Breath, in conjunction with the step of its hardware completion above method.
It is appreciated that the memory (for example, memory in Fig. 5) in the embodiment of the present application can be volatile memory
Or nonvolatile memory, or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be
It is read-only memory (read-only memory, ROM), programmable read only memory (programmable ROM, PROM), erasable
Except programmable read only memory (erasable PROM, EPROM), electrically erasable programmable read-only memory (electrically
EPROM, EEPROM) or flash memory.Volatile memory can be random access memory (random access memory,
RAM), it is used as External Cache.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static
Random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic
Random access memory (synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM
(double data rate SDRAM, DDR SDRAM), enhanced Synchronous Dynamic Random Access Memory (enhanced
SDRAM, ESDRAM), synchronized links dynamic random access memory (synchlink DRAM, SLDRAM) and direct rambus
Random access memory (direct rambus RAM, DR RAM).It should be noted that the memory of system and method described herein
It is intended to include but is not limited to the memory of these and any other suitable type.
It should be understood that the Transmit-Receive Unit or transceiver in the embodiment of the present application are referred to as communication unit.
The embodiment of the present application also provides a kind of processing units, including processor and interface;The processor, for executing
The method of transmitting message in any of the above-described embodiment of the method.
It should be understood that above-mentioned processing unit can be a chip.For example, the processing unit can be field-programmable gate array
It arranges (Field-Programmable Gate Array, FPGA), can be special integrated chip (Application
Specific Integrated Circuit, ASIC), it can also be System on Chip/SoC (System on Chip, SoC), it can be with
It is central processing unit (Central Processor Unit, CPU), can also be network processing unit (Network
Processor, NP), it can also be digital signal processing circuit (Digital Signal Processor, DSP), can also be
Microcontroller (Micro Controller Unit, MCU), can also be programmable controller (Programmable Logic
Device, PLD) or other integrated chips.
The embodiment of the present application also provides a kind of computer-readable mediums, are stored thereon with computer program, the computer
The method of any of the above-described embodiment of the method is realized when program is computer-executed.
The embodiment of the present application also provides a kind of computer program products, when which is computer-executed
The method for realizing any of the above-described embodiment of the method.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program produces
Product include one or more computer instructions.When loading and execute on computers the computer instruction, all or part of real estate
The raw process or function being somebody's turn to do according to the embodiment of the present application.The computer can be general purpose computer, special purpose computer, computer network
Network or other programmable devices.The computer instruction may be stored in a computer readable storage medium, or count from one
Calculation machine readable storage medium storing program for executing is transmitted to another computer readable storage medium, for example, the computer instruction can be from a net
Website, computer, server or data center pass through wired (such as coaxial cable, optical fiber, Digital Subscriber Line (digital
Subscriber line, DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer,
Server or data center are transmitted.The computer readable storage medium can be any available Jie that computer can access
Matter either includes the data storage devices such as one or more usable mediums integrated server, data center.The usable medium
Magnetic medium (for example, floppy disk, hard disk, tape), optical medium be can be (for example, high-density digital video CD (digital
Video disc, DVD)) or semiconductor medium (for example, solid state hard disk (solid state disk, SSD)) etc..
It should be understood that above-mentioned processing unit can be a chip, which can be realized or be led to by hardware
Software is crossed to realize, when passing through hardware realization, which can be logic circuit, integrated circuit etc.;When by software come
When realization, which can be a general processor, is realized by reading the software code stored in memory, changes and deposit
Reservoir can integrate in the processor, can be located at except the processor, be individually present.
It should be understood that first, second, third, fourth and the various digital numbers that are referred to herein only for convenience of description into
Capable differentiation is not intended to limit the range of the embodiment of the present application.
The term " component " that uses in the present specification, " module ", " system " etc. for indicate computer-related entity,
Hardware, firmware, the combination of hardware and software, software or software in execution.For example, component can be but not limited to, handling
Process, processor, object, executable file, execution thread, program and/or the computer run on device.By diagram, counting
Calculating the application run in equipment and calculating equipment can be component.One or more components can reside in process and/or execution
In thread, component can be located on a computer and/or be distributed between 2 or more computers.In addition, these components can
It is executed from the various computer-readable mediums for being stored with various data structures above.Component can be for example according to one or more
A data grouping (such as from two components interacted with local system, distributed system and/or internetwork another component
Data, such as the internet by signal and other system interactions) signal communicated by locally and/or remotely process.
It should be understood that " one embodiment " or " embodiment " that specification is mentioned in the whole text mean it is related with embodiment
A particular feature, structure, or characteristic includes at least one embodiment of the application.Therefore, occur everywhere in the whole instruction
" in one embodiment " or " in one embodiment " not necessarily refer to identical embodiment.In addition, these specific features, knot
Structure or characteristic can combine in any suitable manner in one or more embodiments.It should be understood that in the various implementations of the application
In example, magnitude of the sequence numbers of the above procedures are not meant that the order of the execution order, the execution sequence Ying Yiqi function of each process
It can be determined with internal logic, the implementation process without coping with the embodiment of the present application constitutes any restriction.
In addition, the terms " system " and " network " are often used interchangeably herein.The terms " and/
Or ", only a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, it can be with table
Show: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, character "/" herein, typicallys represent front and back
Affiliated partner is a kind of relationship of "or".
It should be understood that in the embodiment of the present application, " B corresponding with A " indicates that B is associated with A, B can be determined according to A.But
It should also be understood that determining that B is not meant to determine B only according to A according to A, B can also be determined according to A and/or other information.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware
With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This
A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially
Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not
It is considered as beyond scope of the present application.
It is apparent to those skilled in the art that for convenience of description and succinctly, foregoing description is
The specific work process of system, device and unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the division of unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be with
In conjunction with or be desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed
Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of device or unit or logical
Letter connection is also possible to electricity, mechanical or other form connections.
Unit may or may not be physically separated as illustrated by the separation member, shown as a unit
Component may or may not be physical unit, it can and it is in one place, or may be distributed over multiple networks
On unit.It can select some or all of unit therein according to the actual needs to realize the mesh of the embodiment of the present application scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.
Through the above description of the embodiments, it is apparent to those skilled in the art that the application can be with
It is realized with hardware realization or firmware realization or their combination mode.It when implemented in software, can be by above-mentioned function
Storage in computer-readable medium or as on computer-readable medium one or more instructions or code transmitted.Meter
Calculation machine readable medium includes computer storage media and communication media, and wherein communication media includes convenient for from a place to another
Any medium of a place transmission computer program.Storage medium can be any usable medium that computer can access.With
For this but be not limited to: computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disc storages, disk
Storage medium or other magnetic storage apparatus or can be used in carry or store have instruction or data structure form expectation
Program code and can be by any other medium of computer access.Furthermore.Any connection appropriate can become computer
Readable medium.For example, if software is using coaxial cable, optical fiber cable, twisted pair, Digital Subscriber Line (DSL) or such as
The wireless technology of infrared ray, radio and microwave etc is transmitted from website, server or other remote sources, then coaxial electrical
The wireless technology of cable, optical fiber cable, twisted pair, DSL or such as infrared ray, wireless and microwave etc includes in affiliated medium
In fixing.As used in this application, disk (Disk) and dish (disc) are logical including compression optical disc (CD), laser disc, optical disc, number
With optical disc (DVD), floppy disk and Blu-ray Disc, the usually magnetic replicate data of which disk, and dish is then with laser come optical duplication
Data.Combination above should also be as including within the protection scope of computer-readable medium.
In short, being not intended to limit the application's the foregoing is merely the preferred embodiment of technical scheme
Protection scope.Within the spirit and principles of this application, any modification, equivalent replacement, improvement and so on should be included in
Within the protection scope of the application.
Claims (13)
1. a kind of method of transmitting message characterized by comprising
Sending device obtains the retransmitting paramater of each physical interface in the interface group for including at least two physical interfaces;
The sending device determines the load balancing of each physical interface according to the retransmitting paramater of each physical interface
Ratio;
The sending device passes through the interface group transmitting message according to the load balancing ratio of each physical interface.
2. the method according to claim 1, wherein
The retransmitting paramater of the physical interface includes at least one of following parameter:
The bandwidth of physical interface, the packet loss of physical interface, the bit error rate of physical interface and the propagation delay time of physical interface.
3. method according to claim 1 or 2, which is characterized in that
The retransmitting paramater of the physical interface is the bandwidth of physical interface, the load balancing ratio of each physical interface and institute
The bandwidth for stating each physical interface is positively correlated;
Alternatively,
The retransmitting paramater of the physical interface be physical interface packet loss, the load balancing ratio of each physical interface with
The packet loss of each physical interface is negatively correlated;
Alternatively,
The retransmitting paramater of the physical interface be physical interface the bit error rate, the load balancing ratio of each physical interface with
The bit error rate of each physical interface is negatively correlated;
Alternatively,
The retransmitting paramater of the physical interface is the propagation delay time of physical interface, the load balancing ratio of each physical interface
It is negatively correlated with the propagation delay time of each physical interface.
4. according to the method in any one of claims 1 to 3, which is characterized in that
The load balancing ratio of first physical interface is the corresponding first instruction information of first physical interface in multiple instructions
The first ratio in information, the multiple instruction information are carried on forwarding table, and the instruction information in the forwarding table is used to indicate
The physical interface that the sending device selects when sending message by LAG, the first instruction information are used to indicate the transmission
Equipment selects first physical interface when sending message by LAG, first physical interface is in the physical interface group
Any one physical interface;
The sending device passes through the interface group transmitting message according to the load balancing ratio of each interface, comprising:
The sending device according to the corresponding instruction information of the first ratio-dependent message to be transmitted of first physical interface,
The sending device is passed by the physical interface in the corresponding LAG for indicating information instruction of the message to be transmitted
The defeated message.
5. according to the method described in claim 4, it is characterized in that, the retransmitting paramater of the physical interface is the band of physical interface
Width, the sending device determine the load balancing ratio of each physical interface according to the retransmitting paramater of each physical interface
Example, comprising:
The sending device determines the initial number of the corresponding instruction information of each physical interface according to the following formula:
Mi=┖ Vi*Z ┛
Mi indicates the initial number, the Vi indicate the bandwidth of i-th of physical interface and the bandwidth of all physical interfaces and
Ratio, Z indicate the total number for the instruction information that forwarding table includes, and ┖ ┛ indicates to be rounded downwards, and i ∈ [1, N], N expression are described extremely
The number of physical interface in few two physical interfaces;
When the sum of the initial number ∑ Mi in the forwarding table that all physical interfaces occupy is equal with Z, each physical interface
The number of the instruction letter of occupancy is identical as the instruction initial number of information;Alternatively,
When the sum of the initial number for indicating information in the corresponding forwarding table of all physical interfaces ∑ Mi is less than Z, the transmission is set
It is standby to be randomly assigned or distribute in Z the remaining instruction information in addition to ∑ Mi according to the retransmitting paramater of the physical interface, divided
With as a result, being indicated described in the initial number determination of information according in the forwarding table that the allocation result and each physical interface occupy
The number of instruction information in the corresponding forwarding table of each physical interface.
6. method according to claim 1 or 2, which is characterized in that the retransmitting paramater of the physical interface includes following ginseng
At least two in number:
The bandwidth of physical interface, the packet loss of physical interface, the bit error rate of physical interface and the propagation delay time of physical interface;
Wherein, the sending device determines the load of each physical interface according to the retransmitting paramater of each physical interface
Share ratio, comprising:
The sending device is determined by the way of weighting described each according at least two parameters of each physical interface
The load balancing ratio of physical interface.
7. a kind of sending device characterized by comprising
Processing unit and Transmit-Receive Unit,
The processing unit retransmitting paramater for obtaining each physical interface in the interface group for including at least two physical interfaces;
The load balancing ratio of each physical interface is determined according to the retransmitting paramater of each physical interface;
The Transmit-Receive Unit is used for the load balancing ratio according to each interface, passes through the interface group transmitting message.
8. sending device according to claim 7, which is characterized in that
The retransmitting paramater of the physical interface includes at least one of following parameter:
The bandwidth of physical interface, the packet loss of physical interface, the bit error rate of physical interface and the propagation delay time of physical interface.
9. sending device according to claim 7 or 8, which is characterized in that
The retransmitting paramater of the physical interface is the bandwidth of physical interface, the load balancing ratio of each physical interface and institute
The bandwidth for stating each physical interface is positively correlated;
Alternatively,
The retransmitting paramater of the physical interface be physical interface packet loss, the load balancing ratio of each physical interface with
The packet loss of each physical interface is negatively correlated;
Alternatively,
The retransmitting paramater of the physical interface be physical interface the bit error rate, the load balancing ratio of each physical interface with
The bit error rate of each physical interface is negatively correlated;
Alternatively,
The retransmitting paramater of the physical interface is the propagation delay time of physical interface, the load balancing ratio of each physical interface
It is negatively correlated with the propagation delay time of each physical interface.
10. sending device according to any one of claims 7 to 9, which is characterized in that
The load balancing ratio of first physical interface is the corresponding first instruction information of first physical interface in multiple instructions
The first ratio in information, the multiple instruction information are carried on forwarding table, and the instruction information in the forwarding table is used to indicate
The physical interface that the sending device selects when sending message by LAG, the first instruction information are used to indicate the transmission
Equipment selects first physical interface when sending message by LAG, first physical interface is in the physical interface group
Any one physical interface;
The transmission unit is specifically used for corresponding according to the first ratio-dependent message to be transmitted of first physical interface
Indicate information,
The message is transmitted by the physical interface in the corresponding LAG for indicating information instruction of the message to be transmitted.
11. sending device according to claim 10, which is characterized in that the retransmitting paramater of the physical interface connects for physics
The bandwidth of mouth, the determination unit are specifically used for determining the initial of the corresponding instruction information of each physical interface according to the following formula
Number:
Mi=┖ Vi*Z ┛
Mi indicates the initial number, the Vi indicate the bandwidth of i-th of physical interface and the bandwidth of all physical interfaces and
Ratio, Z indicate the total number for the instruction information that forwarding table includes, and ┖ ┛ indicates to be rounded downwards, and i ∈ [1, N], N expression are described extremely
The number of physical interface in few two physical interfaces;
When the sum of the initial number ∑ Mi in the forwarding table that all physical interfaces occupy is equal with Z, each physical interface
The number of the instruction letter of occupancy is identical as the instruction initial number of information;Alternatively,
It is described determining single when the sum of the initial number for indicating information in the corresponding forwarding table of all physical interfaces ∑ Mi is less than Z
Member be randomly assigned or according to the retransmitting paramater of the physical interface distribute Z in addition to ∑ Mi remaining instruction information, divided
With as a result, being indicated described in the initial number determination of information according in the forwarding table that the allocation result and each physical interface occupy
The number of instruction information in the corresponding forwarding table of each physical interface.
12. sending device according to claim 7 or 8, which is characterized in that the retransmitting paramater of the physical interface include with
At least two in lower parameter:
The bandwidth of physical interface, the packet loss of physical interface, the bit error rate of physical interface and the propagation delay time of physical interface;
Wherein, the determination unit is specifically used at least two parameters according to each physical interface by the way of weighting
Determine the load balancing ratio of each physical interface.
13. a kind of computer readable storage medium, which is characterized in that including computer program, when the computer program is being counted
When being run on calculation machine, so that the computer executes such as method described in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711485301.8A CN109995667A (en) | 2017-12-29 | 2017-12-29 | The method and sending device of transmitting message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711485301.8A CN109995667A (en) | 2017-12-29 | 2017-12-29 | The method and sending device of transmitting message |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109995667A true CN109995667A (en) | 2019-07-09 |
Family
ID=67111295
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711485301.8A Pending CN109995667A (en) | 2017-12-29 | 2017-12-29 | The method and sending device of transmitting message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109995667A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110336750A (en) * | 2019-07-19 | 2019-10-15 | 新华三技术有限公司合肥分公司 | Data forwarding method, device and service provide side edge equipment |
CN112600748A (en) * | 2020-12-02 | 2021-04-02 | 广东中兴新支点技术有限公司 | Multi-link aggregation method, system and storage medium for VPN tunnel |
CN113206799A (en) * | 2021-03-30 | 2021-08-03 | 新华三信息安全技术有限公司 | Message forwarding method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101227402A (en) * | 2008-02-20 | 2008-07-23 | 杭州华三通信技术有限公司 | Method and apparatus for sharing polymerization link circuit flow |
CN102263699A (en) * | 2011-08-15 | 2011-11-30 | 杭州华三通信技术有限公司 | Load balancing implementation method and device applied to MPLS TP (multiprotocol label switch transport profile) |
US20140254649A1 (en) * | 2013-03-07 | 2014-09-11 | Qualcomm Incorporated | Rate adaptation algorithm using raw bit error rate |
CN104092604A (en) * | 2014-07-02 | 2014-10-08 | 杭州华三通信技术有限公司 | Message transmission control method and device |
-
2017
- 2017-12-29 CN CN201711485301.8A patent/CN109995667A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101227402A (en) * | 2008-02-20 | 2008-07-23 | 杭州华三通信技术有限公司 | Method and apparatus for sharing polymerization link circuit flow |
CN102263699A (en) * | 2011-08-15 | 2011-11-30 | 杭州华三通信技术有限公司 | Load balancing implementation method and device applied to MPLS TP (multiprotocol label switch transport profile) |
US20140254649A1 (en) * | 2013-03-07 | 2014-09-11 | Qualcomm Incorporated | Rate adaptation algorithm using raw bit error rate |
CN104092604A (en) * | 2014-07-02 | 2014-10-08 | 杭州华三通信技术有限公司 | Message transmission control method and device |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110336750A (en) * | 2019-07-19 | 2019-10-15 | 新华三技术有限公司合肥分公司 | Data forwarding method, device and service provide side edge equipment |
CN110336750B (en) * | 2019-07-19 | 2021-10-12 | 新华三技术有限公司合肥分公司 | Data forwarding method and device and service providing side edge equipment |
CN112600748A (en) * | 2020-12-02 | 2021-04-02 | 广东中兴新支点技术有限公司 | Multi-link aggregation method, system and storage medium for VPN tunnel |
CN113206799A (en) * | 2021-03-30 | 2021-08-03 | 新华三信息安全技术有限公司 | Message forwarding method and device |
CN113206799B (en) * | 2021-03-30 | 2022-05-27 | 新华三信息安全技术有限公司 | Message forwarding method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103348640B (en) | Relay | |
WO2017148101A1 (en) | Systems and methods for performing traffic engineering through network slices | |
TWI477109B (en) | A traffic manager and a method for a traffic manager | |
CN108282415A (en) | A kind of dispatching method and equipment | |
CN105577576B (en) | Distribution switch framework | |
US20070268903A1 (en) | System and Method for Assigning Packets to Output Queues | |
CN108809707A (en) | A kind of TSN dispatching methods towards real-time application demand | |
US9606945B2 (en) | Access controller, router, access controlling method, and computer program | |
CN103609077B (en) | Method, apparatus and system for data transmission, and physical adapter | |
CN102171580A (en) | Packet aggregation and fragmentation at layer-2 over a managed network | |
CN109995667A (en) | The method and sending device of transmitting message | |
TWI530130B (en) | System for performing data cut-through | |
CN101151846A (en) | Method and system for shaping traffic in a parallel queuing hierarchy | |
US10387355B2 (en) | NoC interconnect with linearly-tunable QoS guarantees for real-time isolation | |
JP2012209928A (en) | Dynamic flow rate scheduling system and method | |
US20020062415A1 (en) | Slotted memory access method | |
CN103718515B (en) | Transmitting device, bindiny mechanism and method | |
JP2017539173A (en) | Crossboard transfer method and apparatus, program, and recording medium | |
CN103036792A (en) | Transmitting and scheduling method for maximizing minimal equity multiple data streams | |
CN108984280A (en) | A kind of management method and device, computer readable storage medium of chip external memory | |
CN104509047A (en) | A method to allocate packet buffers in a packet transferring system | |
WO2020177255A1 (en) | Resource allocation method and device for wireless access network | |
CN105791371A (en) | Cloud storage service system and method | |
CN110086728A (en) | Send method, first network equipment and the computer readable storage medium of message | |
CN108768898A (en) | A kind of method and its device of network-on-chip transmitting message |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190709 |