CN108494677A - The binding method and device of link - Google Patents
The binding method and device of link Download PDFInfo
- Publication number
- CN108494677A CN108494677A CN201810253777.7A CN201810253777A CN108494677A CN 108494677 A CN108494677 A CN 108494677A CN 201810253777 A CN201810253777 A CN 201810253777A CN 108494677 A CN108494677 A CN 108494677A
- Authority
- CN
- China
- Prior art keywords
- link
- network equipment
- logical links
- communication sub
- identifier information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
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
Abstract
The present invention relates to a kind of binding method of link and devices, including:Obtain the current bundle status of the first link in the first network equipment, communication link of first link between the first network equipment and second network equipment;It has been bundled into multi-link protocol MP logical links when the current bundle status characterizes first link, and when receiving the first Link Control Protocol LCP messages of the carrying first identifier information that second network equipment is sent, using first link as the communication sub-link that can be used for sending datagram to second network equipment in the MP logical links;Wherein, second network equipment described in the first identifier information representation will be in first multilink bundling to the MP logical links.The binding method and device of the link provided according to embodiments of the present invention can avoid one-port equipment inconsistent for the MP bindings speed of the first link, the problem of causing data message to lose.
Description
Technical field
The present invention relates to network technique field more particularly to the binding methods and device of a kind of link.
Background technology
Multi-link protocol (English:Multilink Protocol, referred to as:MP it is) by a plurality of point-to-point protocol (English:
Point to Point Protocol, referred to as:PPP) multilink bundling is at a logical links.
During above-mentioned binding, the single advanced line link control protocol of ppp link (English:Link Control
Protocol, referred to as:LCP negotiation) carries out the binding of ppp link after LCP negotiates successfully, by the ppp link bundle to
On MP logical links.
But in MP network environments, since the processing capacity of the network equipment is different, the network equipment at ppp link both ends into
The LCP of row ppp link negotiates spent time difference, and then the network equipment at ppp link both ends can be caused for ppp link
MP binding speed it is inconsistent.Such as:The MP bindings of ppp link are completed in the network equipment 1, and the network equipment 2 not yet completes PPP
The MP of link is bundled, if the network equipment 1 is sent out by the above-mentioned ppp link newly bundled in MP logical links to the network equipment 2 at this time
The problem of sending data message, data message being caused to lose.
Invention content
In view of this, the present invention proposes a kind of binding method and device of link, to avoid one-port equipment for
The MP bindings speed of ppp link is inconsistent, the problem of causing data message to lose..
In a first aspect, an embodiment of the present invention provides a kind of binding method of link, it is applied to first network equipment, institute
The method of stating includes:
The current bundle status of the first link in the first network equipment is obtained, first link is first net
Communication link between network equipment and second network equipment;
It has bundled into multi-link protocol MP logical links, and has connect when the current bundle status characterizes first link
It, will be described when receiving the first Link Control Protocol LCP messages of the carrying first identifier information that second network equipment is sent
First link is as the communication sub-link that can be used for sending datagram to second network equipment in the MP logical links;
Wherein, second network equipment described in the first identifier information representation is by first multilink bundling to the MP
In logical links.
With reference to first aspect, in the first possible implementation, the method further includes:
It has bundled into the MP logical links when the current bundle status characterizes first link, and has not received
When the first LCP messages, using first link as being not useable for setting to second network in the MP logical links
The standby communication sub-link to send datagram.
With reference to first aspect, or with reference to first aspect the possible realization method of the first, in second of possible reality
In existing mode, the method further includes:
The 2nd LCP messages are sent to second network equipment, the 2nd LCP messages include second identifier information, are used
Determine the first network equipment by first link according to the second identifier information in making second network equipment
In binding to the MP logical links.
With reference to first aspect, in the third possible realization method, the method further includes:
Judge whether first link is first communication sub-link in the MP logical links;
If first link is the first communication sub-link in the MP logical links, when the current binding shape
When state characterization first link has been bundled into multi-link protocol MP logical links, by second described in the first chain road direction
The network equipment sends the data message;
If first link is not the first communication sub-link in the MP logical links, when the current binding
First link described in state representation has been bundled into multi-link protocol MP logical links, and receives second network equipment hair
When the first Link Control Protocol LCP messages of the carrying first identifier information sent, using first link as the MP logics
The communication sub-link that can be used for sending datagram to second network equipment in link.
The possible realization method of with reference to first aspect the first, in the 4th kind of possible realization method, the method
Further include:
If the first LCP messages that second network equipment is sent are not received yet in preset time, by institute
The first link is stated as the communication sub-link that can be used for sending datagram to second network equipment in the MP logical links.
In second aspect, an embodiment of the present invention provides a kind of bundling apparatuses of link, are applied to first network equipment, institute
Stating device includes:
Acquisition module, the current bundle status for obtaining the first link in the first network equipment, first chain
Communication link of the road between the first network equipment and second network equipment;
First processing module has been bundled for working as the current bundle status characterization first link to multi-link protocol
In MP logical links, and receive the first Link Control Protocol of the carrying first identifier information that second network equipment is sent
When LCP messages, using first link as can be used in the MP logical links to second network equipment transmission data
The communication sub-link of message;
Wherein, second network equipment described in the first identifier information representation is by first multilink bundling to the MP
In logical links.
In conjunction with second aspect, in the first possible implementation, described device further includes:
Second processing module has been bundled for working as the current bundle status characterization first link to the MP logics
In link, and when not receiving the first LCP messages, using first link as being not useable in the MP logical links
The communication sub-link to send datagram to second network equipment.
In conjunction with second aspect, or the first possible realization method of second aspect is combined, in second of possible reality
In existing mode, described device further includes:
Sending module, for sending the 2nd LCP messages to second network equipment, the 2nd LCP messages include the
Two identification informations, for making second network equipment determine that the first network equipment has been incited somebody to action according to the second identifier information
In first multilink bundling to the MP logical links.
In conjunction with second aspect, in the third possible realization method, described device further includes:
Judgment module, for judging whether first link is first communication sub-link in the MP logical links;
Third processing module, if being the first communication sub-link in the MP logical links for first link,
Then when the current bundle status, which characterizes first link, have been bundled into multi-link protocol MP logical links, by described
Second network equipment described in first chain road direction sends the data message;
Fourth processing module, if being not the first communication subchain in the MP logical links for first link
Road has then bundled into multi-link protocol MP logical links when the current bundle status characterizes first link, and has received
When the first Link Control Protocol LCP messages of the carrying first identifier information sent to second network equipment, by described the
One link is as the communication sub-link that can be used for sending datagram to second network equipment in the MP logical links.
In conjunction with the first possible realization method of second aspect, in the 4th kind of possible realization method, described device
Further include:
5th processing module, if described for not receiving that second network equipment sends yet in preset time
One LCP messages, then using first link as can be used for sending datagram to second network equipment in the MP logical links
The communication sub-link of text.
According to another aspect of the present invention, a kind of bundling apparatus of link is provided, including:Processor;At storage
Manage the memory of device executable instruction;Wherein, the processor is configured as executing the above method.
According to another aspect of the present invention, a kind of non-volatile computer readable storage medium storing program for executing is provided, is stored thereon with
Computer program instructions, wherein the computer program instructions realize the above method when being executed by processor.
Therefore, by the binding method and device of application link provided in an embodiment of the present invention, first network equipment obtains
The current bundle status of first link in first network equipment characterizes the first link in the current bundle status of the first link and has tied
When being bind in MP logical links, and receiving the first LCP messages of carrying first identifier information of second network equipment transmission, really
Fixed first link is the communication sub-link that can be used for sending datagram to second network equipment in MP logical links.Such one
Come, binding of first link to MP logical links is completed in first network equipment in the first link, and second network equipment is complete
At the first link to MP logical links binding when, first network equipment in MP logical links can be used as to be used for the second network
The communication sub-link that equipment sends datagram avoids first network equipment and the first link is completed to the bundle of MP logical links
It ties up, and when second network equipment not yet completes binding of first link to MP logical links, first network equipment uses MP logics
First second network equipment of chain road direction of link sends datagram, caused by data message lose the problem of, can ensure number
According to the stability of transmission.
According to below with reference to the accompanying drawings becoming to detailed description of illustrative embodiments, other feature of the invention and aspect
It is clear.
Description of the drawings
Including in the description and the attached drawing of a part for constitution instruction and specification together illustrate the present invention's
Exemplary embodiment, feature and aspect, and principle for explaining the present invention.
Fig. 1 shows the flow chart of the binding method of link according to an embodiment of the invention;
Fig. 2 shows the flow charts of the binding method of link according to an embodiment of the invention;
Fig. 3 shows the flow chart of the binding method of link according to an embodiment of the invention;
Fig. 4 shows the flow chart of the binding method of link according to an embodiment of the invention;
Fig. 5 shows the flow chart of the binding method of link according to an embodiment of the invention;
Fig. 6 shows the flow chart of the binding method of an illustrative link of the invention;
Fig. 7 shows the structural schematic diagram of the binding method of an illustrative link of the invention;
Fig. 8 shows the structure diagram of the bundling apparatus of link according to an embodiment of the invention;
Fig. 9 is a kind of hardware block diagram of the binding method of link shown according to an exemplary embodiment.
Specific implementation mode
Below with reference to attached drawing various exemplary embodiments, feature and the aspect that the present invention will be described in detail.It is identical in attached drawing
Reference numeral indicate functionally the same or similar element.Although the various aspects of embodiment are shown in the accompanying drawings, remove
It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary "
Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the present invention, numerous details is given in specific implementation mode below.
It will be appreciated by those skilled in the art that without certain details, the present invention can equally be implemented.In some instances, for
Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight the purport of the present invention.
In the embodiment of the present invention, if first network equipment receives the carrying first identifier information of second network equipment transmission
The first Link Control Protocol LCP messages when, then after by the first multilink bundling to MP logical links, using the first link as
The communication sub-link that can be used for sending datagram to second network equipment in MP logical links;If not receiving the first LCP reports
Text, then after by the first multilink bundling to MP logical links, using the first link as being not useable in MP logical links to
The communication sub-link that two network equipments send datagram, with solve in the related technology first network equipment into MP logical links
When bundling the first link, first network equipment completes binding of first link to MP logical links, and second network equipment is still
When not completing binding of first link to MP logical links, first network equipment uses the first link conduct in MP logical links
When communication sub-link sends datagram to second network equipment, the problem of causing data message to lose.
Fig. 1 shows the flow chart of the binding method of link according to an embodiment of the invention, and the binding method of the link can
To be applied to first network equipment.As shown in Figure 1, the binding method of the link includes the following steps.
Step 101, the current bundle status for obtaining the first link in the first network equipment, first link is institute
State the communication link between first network equipment and second network equipment.
First network equipment is executed the operation in the first multilink bundling to MP logical links, and obtains first network equipment
In the first link current bundle status.The current bundle status of first link is to have bundled into MP logical links, Huo Zhe
The current bundle status of one link is not bundle into MP logical links.
When the first link has been bundled into MP logical links in first network equipment, the first link in first network equipment
Current bundle status characterize the first link and bundled to MP chains road;Alternatively, the first link is not yet in first network equipment
When in binding to MP logical links, the current bundle status of the first link characterizes the first link and not yet bundlees in first network equipment
To MP chains road.
Step 102 has been bundled when the current bundle status characterizes first link to multi-link protocol MP logic chains
Lu Zhong, and receive the first Link Control Protocol LCP messages of the carrying first identifier information that second network equipment is sent
When, first link is logical as can be used for sending datagram to second network equipment in the MP logical links
Believe sublink.
Wherein, the first LCP messages are after second network equipment completes the first link to the binding of MP logical links, to first
The LCP messages that the network equipment is sent.First LCP messages carry first identifier information, second net of first identifier information representation
Network equipment will be in the first multilink bundling to MP logical links.For example, the first LCP messages include a MultiLink-
ACK (response) field, the MultiLink-ACK fields are metric 88 for carrying first identifier information, corresponding numerical value.The
After one network equipment receives the first LCP messages, it can be determined second network equipment by the first link according to first identifier information
In binding to MP logical links.
The first link is characterized in the current bundle status of the first link to have bundled into MP logical links, and has received the
Two network equipments send the first LCP messages when, first network equipment using the first link as can be used in MP logical links to
The communication sub-link that second network equipment sends datagram.For example, it is available that the first link, which is arranged, in first network equipment
State, first network equipment by MP logical links to second network equipment when being sent datagram, from available mode
Communication sub-link in determine carrying data message communication sub-link.
In one example, after first network equipment receives the first LCP messages that second network equipment is sent, according to first
First identifier information determines second network equipment by the first multilink bundling MP logical links in LCP messages, then the first net
Network equipment determines that the opposite end binding of the first link is identified as the first binding mark, and the first binding mark characterization first network equipment is
Receive the first LCP messages for the first link of second network equipment transmission.The first link is tied in first network equipment
It is bind in MP logical links, i.e., the current bundle status of the first link characterizes the first link and bundled to MP in first network equipment
When in logical links, first network equipment determines whether that having received the second network sets by the opposite end binding mark of the first link
The first LCP messages that preparation is sent, when in the opposite end of the first link, binding is identified as the first binding mark, first network equipment determines
The first LCP messages for having received the transmission of second network equipment, at this point, first network equipment is using the first link as MP logic chains
The communication sub-link that can be used for sending datagram to second network equipment in road.
In another example, after first network equipment receives the first LCP messages that second network equipment is sent, the is obtained
The current bundle status of first link in one network equipment has characterized the first link in the current bundle status of first network equipment
When binding is in MP logical links, first network equipment is using the first link as can be used for setting to the second network in MP logical links
The standby communication sub-link to send datagram.
Therefore, by the binding method of application link provided in an embodiment of the present invention, first network equipment obtains the first net
The current bundle status of first link in network equipment characterizes the first link in the current bundle status of the first link and has bundled to MP
In logical links, and receive second network equipment transmission carrying first identifier information the first LCP messages when, determine first
Link is the communication sub-link that can be used for sending datagram to second network equipment in MP logical links.So, first
Binding of first link to MP logical links is completed in first network equipment in link, and the first chain is completed in second network equipment
Road to MP logical links binding when, can be used as MP logical links in first network equipment be used for second network equipment send
The communication sub-link of data message avoids first network equipment and is completed binding of first link to MP logical links, and
When two network equipments not yet complete binding of first link to MP logical links, first network equipment is using the of MP logical links
One second network equipment of chain road direction sends datagram, caused by data message lose the problem of, can ensure data transmission
Stability.
In another embodiment, it is patrolled if current bundle status the first link of characterization of first network equipment has been bundled to MP
It collects in link, but not yet receives the first LCP messages of second network equipment transmission, is i.e. second network equipment is not yet by the first chain
When road is bundled into MP logical links, the first link cannot function as sending datagram to second network equipment in MP logical links
Communication sub-link.Below in conjunction with the flow chart of the binding method of link shown in Fig. 2, to the bundle of the link of the embodiment of the present invention
The method of tying up is described in detail.
Specifically, the binding method of link shown in Fig. 2 includes the following steps.
Step 201, the current bundle status for obtaining the first link in the first network equipment, first link is institute
State the communication link between first network equipment and second network equipment.
Step 202 has been bundled when the current bundle status characterizes first link to multi-link protocol MP logic chains
Lu Zhong, and receive the first Link Control Protocol LCP messages of the carrying first identifier information that second network equipment is sent
When, first link is logical as can be used for sending datagram to second network equipment in the MP logical links
Believe sublink;
Wherein, second network equipment described in the first identifier information representation is by first multilink bundling to the MP
In logical links.
It should be noted that step 201 and step 202 and step 101 in above method embodiment in the embodiment of the present invention
Similar with step 102, details are not described herein for the embodiment of the present invention.
Step 203 has been bundled when the current bundle status characterizes first link into the MP logical links, and
When not receiving the first LCP messages, using first link as being not useable in the MP logical links to described
The communication sub-link that two network equipments send datagram.
First network equipment is not when receiving the first LCP messages of second network equipment transmission, it may be determined that the second net
Network equipment is not yet by the first multilink bundling to MP logical links, even if the then current bundle status characterization of first network equipment the
The first link has been bundled into MP logical links in one network equipment, and the first link not can be used as in MP logical links to second yet
The communication sub-link that the network equipment sends datagram, until first network equipment receives the first of second network equipment transmission
After LCP messages, using the first link as the communicator that can be used for sending datagram to second network equipment in MP logical links
Link.
So, binding of first link to MP logical links, but is completed in first network equipment in the first link
When two network equipments not yet complete binding of first link to MP logical links, it not can be used as first network in MP logical links and set
It is ready for use on the communication sub-link to send datagram to second network equipment, first network equipment is avoided and the first link is completed
To the binding of MP logical links, and when second network equipment not yet completes binding of first link to MP logical links, the first net
Network equipment is sent datagram using first second network equipment of chain road direction of MP logical links, caused by data message lose
Problem can ensure the stability of data transmission.
In another embodiment, second network equipment is by after in the first multilink bundling to MP logical links, to the first net
During network equipment sends the first LCP messages, due to network failure etc., it may appear that the first LCP message droppings, the first net
Network equipment can not receive the case where the first LCP messages of second network equipment transmission.In order to solve that the above situation is brought
The problem of one link circuit resource wastes, first network equipment do not receive the first of peer network device transmission yet in preset time
It, can be logical as can be used for sending datagram to second network equipment in MP logical links using the first link when LCP messages
Believe sublink.Below in conjunction with the flow chart of the binding method of the link shown in Fig. 3, to the binding side of the link of the embodiment of the present invention
Method is described in detail.
Specifically, the binding method of the link shown in Fig. 3 includes the following steps.
Step 301, the current bundle status for obtaining the first link in the first network equipment, first link is institute
State the communication link between first network equipment and second network equipment.
Step 302 has been bundled when the current bundle status characterizes first link to multi-link protocol MP logic chains
Lu Zhong, and receive the first Link Control Protocol LCP messages of the carrying first identifier information that second network equipment is sent
When, first link is logical as can be used for sending datagram to second network equipment in the MP logical links
Believe sublink;
Wherein, second network equipment described in the first identifier information representation is by first multilink bundling to the MP
In logical links.
Step 303 has been bundled when the current bundle status characterizes first link into the MP logical links, and
When not receiving the first LCP messages, using first link as being not useable in the MP logical links to described
The communication sub-link that two network equipments send datagram.
It should be noted that above-mentioned steps 301 are to step 303 and step 201 in above method embodiment to step 203 phase
Similar, details are not described herein for the embodiment of the present invention.
If step 304 does not receive the first LCP reports that second network equipment is sent yet in preset time
Text, then using first link as the communication that can be used for sending datagram to second network equipment in the MP logical links
Sublink.
Above-mentioned preset time is the time that those skilled in the art determine according to binding demand.For example, first network
Equipment starts timing (alternatively, can be proceeded by first network equipment in the binding for completing the first link to MP logical links
Start timing when the operation that will be bundled in the first chain road direction MP logical links), reach preset time in timing duration, does not receive yet
The first LCP messages sent to second network equipment, then can give tacit consent to second network equipment and the first link is completed to MP logics
The binding of link, using the first link as the communicator that can be used for sending datagram to second network equipment in MP logical links
Link.
Illustratively, first network equipment is when completing binding of first link to MP logical links, open time delay pattern,
Under the delay mode, using the first link as being not useable for sending datagram to second network equipment in MP logical links
Communication sub-link;If first network equipment receives the first LCP messages of second network equipment transmission, delay mode is closed,
Using the first link as the communication sub-link that can be used for sending datagram to second network equipment in MP logical links;Alternatively,
When delay mode opening time reaches preset time period, delay mode is closed, using the first link as can be used in MP logical links
In the communication sub-link to send datagram to second network equipment.
So, the second network can be caused to set to avoid the first LCP message droppings are caused due to network failure etc.
It is standby that by the first multilink bundling to MP logical links, but first network equipment is not received by the first LCP messages, and by the
One link is as the communication sub-link that can not be sent datagram to second network equipment in MP logical links, and caused first
The problem of link circuit resource wastes.
In another embodiment, first network equipment is by after in the first multilink bundling to MP logical links, to the second net
Network equipment send include second identifier information the 2nd LCP messages so that second network equipment passes through the in the 2nd LCP messages
Two identification informations determine first network equipment by the first multilink bundling to MP logical links, so second network equipment will
After in first multilink bundling to MP logical links, second network equipment can be using the first link as can be used in MP logical links
The communication sub-link to send datagram to first network equipment.Below in conjunction with the flow of the binding method of the link shown in Fig. 4
Figure, is described in detail the binding method of the link of the embodiment of the present invention.
Specifically, the binding method of the link shown in Fig. 4 includes the following steps.
Step 401, the current bundle status for obtaining the first link in the first network equipment, first link is institute
State the communication link between first network equipment and second network equipment.
Step 402 has been bundled when the current bundle status characterizes first link to multi-link protocol MP logic chains
Lu Zhong, and receive the first Link Control Protocol LCP messages of the carrying first identifier information that second network equipment is sent
When, first link is logical as can be used for sending datagram to second network equipment in the MP logical links
Believe sublink;
Wherein, second network equipment described in the first identifier information representation is by first multilink bundling to the MP
In logical links.
It should be noted that step 401 and step 402 and step 101 in above method embodiment in the embodiment of the present invention
Similar with step 102, the embodiment of the present invention repeats no more this.
Step 403 sends the 2nd LCP messages to second network equipment, and the 2nd LCP messages include second identifier
Information, for making second network equipment determine the first network equipment by described according to the second identifier information
In one multilink bundling to the MP logical links.
For first network equipment after by the first multilink bundling to MP logical links, being sent to second network equipment has the
2nd LCP messages of two identification informations, second identifier information representation first network equipment is by the first multilink bundling to MP logics
After in link.After second network equipment receives the 2nd LCP messages, the first network equipment has been determined according to second identifier information
It will be in first multilink bundling to the MP logical links.
So, current bundle status the first link of characterization of the first link has been bundled to MP in second network equipment
After in logical links, if second network equipment has received the 2nd LCP messages of first network equipment transmission, the second network is set
For using the first link as the communication sub-link that can be used for sending datagram to first network equipment in MP logical links.
In another embodiment, if the first link is the first communication sub-link in MP logical links, in the first chain
After road has been bundled into MP logical links, first network equipment is sent datagram by first second network equipment of chain road direction.
Below in conjunction with the flow chart of the binding method of link shown in fig. 5, the embodiment of the present invention is described in detail.
Specifically, the binding method of link shown in fig. 5 includes the following steps.
Step 501, the current bundle status for obtaining the first link in the first network equipment, first link is institute
State the communication link between first network equipment and second network equipment;
It should be noted that step 501 and step 502 and step 101 in above method embodiment in the embodiment of the present invention
And step 102 is similar, details are not described herein for the embodiment of the present invention.
Step 502 judges whether first link is first communication sub-link in the MP logical links.
For example, first network equipment determines the number of communication sub-link in MP logical links, in MP logical links
Communication sub-link number be 1 when, then first network equipment judges the first link for the first communicator in MP logical links
Link;When the number of communication sub-link in MP logical links is not 1, the first link is judged not and is the head in MP logical links
A communication sub-link.
If step 503, first link are the first communication sub-link in the MP logical links, when described the
When one link has been bundled into the MP logical links, the number is sent by second network equipment described in the first chain road direction
According to message.
In the first communication sub-link during the first link is MP logical links, if the current bundle status table of the first link
When levying the first link and having bundled into MP logical sublinks, then first network equipment using MP logical links to second network equipment
When sending datagram, using the first link as the communication sub-link to send datagram to second network equipment, that is, pass through
Second network equipment described in one chain road direction sends the data message.
If step 504, first link are not the first communication sub-link in the MP logical links, when described
Current bundle status characterizes first link and has bundled into multi-link protocol MP logical links, and receives second net
When the first Link Control Protocol LCP messages of the carrying first identifier information that network equipment is sent, using first link as institute
State the communication sub-link that can be used for sending datagram in MP logical links to second network equipment.
So, the first link be MP logical links in first communication sub-link when, the first multilink bundling extremely
After in MP logical links, it can directly be sent datagram by first second network equipment of chain road direction, enable to the first net
Network equipment can be sent datagram by MP logical links to second network equipment.
Fig. 6 shows the flow chart of the binding method of an illustrative link of the invention.
Illustratively, with reference to Fig. 6, the binding method of above-mentioned link includes the following steps.
Whether step 601, first network equipment judge the first link when by the first link bundling to MP logical links
For the first communication sub-link of MP logical links, if so, executing step 602, no thening follow the steps 603.
Step 602 sends the data message by second network equipment described in the first chain road direction.
Step 603 is confirmed whether to receive the first LCP reports with first identifier information of second network equipment transmission
Text, wherein the first link has been tied in MP logical links in second network equipment of first identifier information representation.
Step 604, received second network equipment transmission the first LCP messages when, using first link as institute
The communication sub-link that can be used for sending datagram in MP logical links to second network equipment is stated, and executes step 606.
Step 605, do not received second network equipment transmission the first LCP messages when, using first link as
It is not useable for the communication sub-link to send datagram to second network equipment in the MP logical links, and executes step
606。
Step 606 sends the 2nd LCP messages with second identifier information to second network equipment, wherein second identifier
The first link has been tied in MP logical links in information representation first network equipment.
Fig. 7 shows the structure diagram of the bundling apparatus of link according to an embodiment of the invention, the bundling apparatus of the link
It can be applied to first network equipment.As shown in fig. 7, the device may include:
Acquisition module 701, the current bundle status for obtaining the first link in the first network equipment, described first
Communication link of the link between the first network equipment and second network equipment;
First processing module 702 has been bundled for working as the current bundle status characterization first link to multilink
In agreement MP logical links, and receive the first link control for the carrying first identifier information that second network equipment is sent
When agreement LCP messages, using first link as can be used in the MP logical links to second network equipment send
The communication sub-link of data message;
Wherein, second network equipment described in the first identifier information representation is by first multilink bundling to the MP
In logical links.
Therefore, by the bundling apparatus of application link provided in an embodiment of the present invention, first network equipment obtains the first net
The current bundle status of first link in network equipment characterizes the first link in the current bundle status of the first link and has bundled to MP
In logical links, and receive second network equipment transmission carrying first identifier information the first LCP messages when, determine first
Link is the communication sub-link that can be used for sending datagram to second network equipment in MP logical links.So, first
Binding of first link to MP logical links is completed in first network equipment in link, and the first chain is completed in second network equipment
Road to MP logical links binding when, can be used as MP logical links in first network equipment be used for second network equipment send
The communication sub-link of data message avoids first network equipment and is completed binding of first link to MP logical links, and
When two network equipments not yet complete binding of first link to MP logical links, first network equipment is using the of MP logical links
One second network equipment of chain road direction sends datagram, caused by data message lose the problem of, can ensure data transmission
Stability.
Fig. 8 shows the structure diagram of the bundling apparatus of link according to an embodiment of the invention, wherein acquisition module 801,
And first processing module 802 is similar with above-mentioned acquisition module 701 and first processing module 702, the embodiment of the present invention is herein not
It repeats again.
In one possible implementation, with reference to Fig. 8, above-mentioned apparatus can also include:
Second processing module 803 has been bundled for working as the current bundle status characterization first link to the MP
In logical links, and when not receiving the first LCP messages, using first link as can not in the MP logical links
Communication sub-link for sending datagram to second network equipment.
In one possible implementation, with reference to Fig. 8, above-mentioned apparatus can also include:
Sending module 804, for sending the 2nd LCP messages to second network equipment, the 2nd LCP messages include
Second identifier information, for making second network equipment determine the first network equipment according to the second identifier information
It will be in first multilink bundling to the MP logical links.
In one possible implementation, with reference to Fig. 8, above-mentioned apparatus can also include:
Judgment module 805, for judging whether first link is first communication subchain in the MP logical links
Road;
Third processing module 806, if being the first communication subchain in the MP logical links for first link
Road passes through then when the current bundle status, which characterizes first link, have been bundled into multi-link protocol MP logical links
Second network equipment described in the first chain road direction sends the data message;
Fourth processing module 807, if being not the first communicator in the MP logical links for first link
Link has then been bundled into multi-link protocol MP logical links when the current bundle status characterizes first link, and has been connect
It, will be described when receiving the first Link Control Protocol LCP messages of the carrying first identifier information that second network equipment is sent
First link is as the communication sub-link that can be used for sending datagram to second network equipment in the MP logical links.
In one possible implementation, with reference to Fig. 8, above-mentioned apparatus can also include:
5th processing module 808, if the institute sent for not receiving second network equipment yet in preset time
State the first LCP messages, then using first link as can be used in the MP logical links to second network equipment send number
According to the communication sub-link of message.
Fig. 9 is a kind of hardware block diagram of the binding method of link shown according to an exemplary embodiment.In reality
In, which can be realized by server.With reference to Fig. 9, the device 1300 may include processor 1301, be stored with machine can
The machine readable storage medium 1302 executed instruction.Processor 1301 can be via system bus with machine readable storage medium 1302
1303 communications.Also, processor 1301 passes through corresponding with the binding logic of link in read machine readable storage medium storing program for executing 1302
Machine-executable instruction is to execute the binding method of link described above.
Machine readable storage medium 1302 referred to herein can be that any electronics, magnetism, optics or other physics are deposited
Storage device can include or store information, such as executable instruction, data, etc..For example, machine readable storage medium can be:
Random access memory (English:Radom Access Memory, referred to as:RAM), volatile memory, nonvolatile memory,
Flash memory, memory driver (such as hard disk drive), solid state disk, any kind of storage dish (such as CD, dvd) or class
As storage medium or combination thereof.Various embodiments of the present invention are described above, above description is exemplary
, and non-exclusive, and it is also not necessarily limited to disclosed each embodiment.Without departing from illustrated each embodiment range and
In the case of spirit, many modifications and changes will be apparent from for those skilled in the art.This
The selection of term used herein, it is intended to best explain the principle, practical application or the skill to the technology in market of each embodiment
Art is improved, or other those of ordinary skill of the art is enable to understand each embodiment disclosed herein.
Claims (10)
1. a kind of binding method of link, which is characterized in that it is applied to first network equipment, the method includes:
The current bundle status of the first link in the first network equipment is obtained, first link is that the first network is set
The standby communication link between second network equipment;
It has bundled into multi-link protocol MP logical links, and has received when the current bundle status characterizes first link
When the first Link Control Protocol LCP messages of the carrying first identifier information that second network equipment is sent, by described first
Link is as the communication sub-link that can be used for sending datagram to second network equipment in the MP logical links;
Wherein, second network equipment described in the first identifier information representation is by first multilink bundling to the MP logics
In link.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
It has bundled into the MP logical links, and has not received described when the current bundle status characterizes first link
When the first LCP messages, using first link as be not useable in the MP logical links to second network equipment send out
Send the communication sub-link of data message.
3. method according to claim 1 or 2, which is characterized in that the method further includes:
The 2nd LCP messages are sent to second network equipment, the 2nd LCP messages include second identifier information, for making
Second network equipment determines the first network equipment by first multilink bundling according to the second identifier information
To in the MP logical links.
4. according to the method described in claim 1, it is characterized in that, the method further includes:
Judge whether first link is first communication sub-link in the MP logical links;
If first link is the first communication sub-link in the MP logical links, when the current bundle status table
When levying first link and having bundled into multi-link protocol MP logical links, pass through the second network described in the first chain road direction
Equipment sends the data message;
If first link is not the first communication sub-link in the MP logical links, when the current bundle status
It characterizes first link to have bundled into multi-link protocol MP logical links, and receives what second network equipment was sent
When carrying the first Link Control Protocol LCP messages of first identifier information, using first link as the MP logical links
In the communication sub-link that can be used for sending datagram to second network equipment.
5. according to the method described in claim 2, it is characterized in that, the method further includes:
If not receiving the first LCP messages that second network equipment is sent yet in preset time, by described the
One link is as the communication sub-link that can be used for sending datagram to second network equipment in the MP logical links.
6. a kind of bundling apparatus of link, which is characterized in that be applied to first network equipment, described device includes:
Acquisition module, the current bundle status for obtaining the first link in the first network equipment, first link are
Communication link between the first network equipment and second network equipment;
First processing module characterizes first link and has bundled to multi-link protocol MP for working as the current bundle status and patrols
It collects in link, and receives the first Link Control Protocol LCP of the carrying first identifier information that second network equipment is sent
When message, using first link as can be used for sending datagram to second network equipment in the MP logical links
Communication sub-link;
Wherein, second network equipment described in the first identifier information representation is by first multilink bundling to the MP logics
In link.
7. device according to claim 6, which is characterized in that described device further includes:
Second processing module has been bundled for working as the current bundle status characterization first link to the MP logical links
In, and when not receiving the first LCP messages, using first link as being not useable for institute in the MP logical links
State the communication sub-link that second network equipment sends datagram.
8. the device described according to claim 6 or 7, which is characterized in that described device further includes:
Sending module, for sending the 2nd LCP messages to second network equipment, the 2nd LCP messages include the second mark
Information is known, for making second network equipment determine that the first network equipment will be described according to the second identifier information
In first multilink bundling to the MP logical links.
9. device according to claim 6, which is characterized in that described device further includes:
Judgment module, for judging whether first link is first communication sub-link in the MP logical links;
Third processing module, if being the first communication sub-link in the MP logical links for first link, when
When the current bundle status characterization first link has been bundled into multi-link protocol MP logical links, pass through described first
Second network equipment described in chain road direction sends the data message;
Fourth processing module, if being not the first communication sub-link in the MP logical links for first link,
It has bundled into multi-link protocol MP logical links, and has received described when the current bundle status characterizes first link
When the first Link Control Protocol LCP messages of the carrying first identifier information that second network equipment is sent, by first link
As the communication sub-link that can be used for sending datagram to second network equipment in the MP logical links.
10. device according to claim 7, which is characterized in that described device further includes:
5th processing module, if sent for not receiving second network equipment yet in preset time described first
LCP messages, then using first link as can be used for sending datagram to second network equipment in the MP logical links
Communication sub-link.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810253777.7A CN108494677B (en) | 2018-03-26 | 2018-03-26 | Link binding method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810253777.7A CN108494677B (en) | 2018-03-26 | 2018-03-26 | Link binding method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108494677A true CN108494677A (en) | 2018-09-04 |
CN108494677B CN108494677B (en) | 2021-03-30 |
Family
ID=63337963
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810253777.7A Active CN108494677B (en) | 2018-03-26 | 2018-03-26 | Link binding method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108494677B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1523790A (en) * | 2003-02-21 | 2004-08-25 | 华为技术有限公司 | Link binding method of intelligent optical network |
CN101610535A (en) * | 2009-07-30 | 2009-12-23 | 杭州华三通信技术有限公司 | Multilink direct continuous show scape guarantees the method, system and device of BFD conversation stability down |
CN101834759A (en) * | 2010-04-21 | 2010-09-15 | 中兴通讯股份有限公司 | Detection method of binding link and distributed equipment |
CN102394878A (en) * | 2011-10-28 | 2012-03-28 | 杭州华三通信技术有限公司 | Cross board point-to-point multilink protocol binding method and device thereof |
CN102625478A (en) * | 2012-03-28 | 2012-08-01 | 杭州华三通信技术有限公司 | Wireless meshy Mesh link aggregation method and MPs |
CN103024826A (en) * | 2012-12-10 | 2013-04-03 | 华为技术有限公司 | Method, device and system for bandwidth adjustment |
CN103733600A (en) * | 2013-06-28 | 2014-04-16 | 华为技术有限公司 | Method, node and device for establishing link |
EP3174261A1 (en) * | 2014-08-22 | 2017-05-31 | Huawei Technologies Co., Ltd. | Multilink fusion method, server, client and system |
-
2018
- 2018-03-26 CN CN201810253777.7A patent/CN108494677B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1523790A (en) * | 2003-02-21 | 2004-08-25 | 华为技术有限公司 | Link binding method of intelligent optical network |
CN101610535A (en) * | 2009-07-30 | 2009-12-23 | 杭州华三通信技术有限公司 | Multilink direct continuous show scape guarantees the method, system and device of BFD conversation stability down |
CN101834759A (en) * | 2010-04-21 | 2010-09-15 | 中兴通讯股份有限公司 | Detection method of binding link and distributed equipment |
CN102394878A (en) * | 2011-10-28 | 2012-03-28 | 杭州华三通信技术有限公司 | Cross board point-to-point multilink protocol binding method and device thereof |
CN102625478A (en) * | 2012-03-28 | 2012-08-01 | 杭州华三通信技术有限公司 | Wireless meshy Mesh link aggregation method and MPs |
CN103024826A (en) * | 2012-12-10 | 2013-04-03 | 华为技术有限公司 | Method, device and system for bandwidth adjustment |
CN103733600A (en) * | 2013-06-28 | 2014-04-16 | 华为技术有限公司 | Method, node and device for establishing link |
EP3174261A1 (en) * | 2014-08-22 | 2017-05-31 | Huawei Technologies Co., Ltd. | Multilink fusion method, server, client and system |
Also Published As
Publication number | Publication date |
---|---|
CN108494677B (en) | 2021-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102200901B (en) | Image transfer method, image transfer system, and projector | |
TWI330715B (en) | Ultra low pin count interface for die testing | |
CN101478446B (en) | Network appliance version loading method, apparatus and system | |
CN105577500B (en) | The correlating method and device of VXLAN and tunnel | |
CN105721203B (en) | Upgrade processing method and device | |
WO2017088494A1 (en) | Link management method and apparatus | |
CN105187369B (en) | A kind of data access method and device | |
CN109495434A (en) | A kind of document transmission method and device | |
JP2013122631A (en) | Program rewriting method, program rewriting device, and electronic control unit | |
CN104811431A (en) | Data packet processing method and device based on parallel protocol stack instance | |
CN105471955B (en) | Write method, client device and the distributed file system of distributed file system | |
CN107959702B (en) | Routing method and device | |
CN108804329A (en) | A kind of test system and method for data transfer integrity | |
CN108494677A (en) | The binding method and device of link | |
CN105450679B (en) | Carry out the method and system of data cloud storage | |
CN104618231A (en) | Deep packet inspection method, device and system for cloud terminal Wi-fi system | |
CN107733785A (en) | A kind of multiple terminals chat message synchronization removal method and device | |
CN104811432A (en) | Data packet processing method and device based on parallel protocol stack instance | |
CN103441894A (en) | Method and system for L2TP concurrent connection performance test | |
CN103957070B (en) | The localization method of a kind of Frame and device | |
CN104065519A (en) | Method for improving conversation interactive performance and automatic configuration server | |
CN105119968A (en) | Picture transmission method and device | |
WO2017063589A1 (en) | Data transmission method and apparatus | |
CN109936609A (en) | Terminal chain type upgrade method, device and updating and management server | |
CN109388436A (en) | Control method, device and the storage medium of starting procedure |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |