CN109525501A - A kind of method and apparatus adjusting forward-path - Google Patents

A kind of method and apparatus adjusting forward-path Download PDF

Info

Publication number
CN109525501A
CN109525501A CN201811611323.9A CN201811611323A CN109525501A CN 109525501 A CN109525501 A CN 109525501A CN 201811611323 A CN201811611323 A CN 201811611323A CN 109525501 A CN109525501 A CN 109525501A
Authority
CN
China
Prior art keywords
interface
message
forwarding
information
object message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811611323.9A
Other languages
Chinese (zh)
Other versions
CN109525501B (en
Inventor
赵昌峰
吴玲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201811611323.9A priority Critical patent/CN109525501B/en
Publication of CN109525501A publication Critical patent/CN109525501A/en
Application granted granted Critical
Publication of CN109525501B publication Critical patent/CN109525501B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/122Avoiding congestion; Recovering from congestion by diverting traffic away from congested entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the present application provides a kind of method and apparatus for adjusting forward-path, method is applied to the network equipment, method includes: the characteristic information for receiving the first message, first message is the message for leading to link congestion that the upstream device of the network equipment is determined, characteristic information includes outer layer feature information when carrying out outer envelope to the first message, the determining object message to match with characteristic information, if the interface for being currently used in forwarding object message is aggregation interface, other interfaces interface for being used to forward object message being revised as in aggregation group belonging to current interface.Based on above-mentioned processing, the network equipment can be forwarded object message by other interfaces in aggregation group belonging to current interface, so that object message no longer passes through the link of script congestion, can reduce the probability of network service interruption.

Description

A kind of method and apparatus adjusting forward-path
Technical field
This application involves Internet technical fields, more particularly to a kind of method and apparatus for adjusting forward-path.
Background technique
With the fast development of Internet technology, the demand of customer access network constantly increases, and may result in network Flow be more than network load so that will appear congestion phenomenon in network.Occur congestion in network, may result in message and lose It loses, the increase of Message processing time delay, results even in periods of network disruption.
In the prior art, the network equipment generallys use the mode for the rate that control E-Packets, to avoid occurring in network Congestion.Referring to Fig. 1, networking shown in FIG. 1 includes 1, CR2, business router core router (Core Router, CR) (Service Router, SR) 1, SR2, SW (Switch, interchanger) 1, SW2, SW3, VM (Virtual Machine, virtually Machine) 1, VM2 and VM3.VM1 accesses SW1, and VM2 accesses SW2, and VM3 accesses SW3.SW1 is connect by link L11 with SR1, and SW1 is logical It crosses link L12 to connect with SR2, CR2 is connect by link L22 with SR2.CR1 and CR2 can be linked into core network, so that VM1, VM2 and VM3 can access core network by CR1 or CR2.
When SR2 detects that congestion occurs in link L22, SR2 may abandon the message for leading to link L22 congestion, in turn It will lead to network service interruption.
Summary of the invention
The embodiment of the present application is designed to provide a kind of method and apparatus for adjusting forward-path, can reduce network industry The probability that business is interrupted.Specific technical solution is as follows:
In a first aspect, in order to achieve the above object, the embodiment of the present application discloses a kind of method for adjusting forward-path, institute Method is stated applied to the network equipment, which comprises
Receive the characteristic information of the first message, wherein first message is that the upstream device of the network equipment determines The message for leading to link congestion out, the characteristic information include outer layer feature when carrying out outer envelope to first message Information;
The determining object message to match with the characteristic information;
Judgement, which is currently used in, forwards whether the interface of the object message is aggregation interface;
If being currently used in and forwarding the interface of the object message is aggregation interface, it will be used to forward the object message Interface is revised as other interfaces in aggregation group belonging to current interface.
Optionally, the judgement, which is currently used in, forwards whether the interface of the object message is aggregation interface, comprising:
In the case that source MAC address in the outer layer feature information is not the MAC Address of itself, By in the target MAC (Media Access Control) address and the MAC forwarding-table item that matches of virtual LAN VLAN mark in the outer layer feature information Outgoing interface, be determined as being currently used in the interface for forwarding the object message, and judge to be currently used in the forwarding object message Interface whether be aggregation interface.
Optionally, the judgement, which is currently used in, forwards whether the interface of the object message is aggregation interface, comprising:
Source MAC in the outer layer feature information is the MAC Address of itself, and in the outer layer feature information In the case that encapsulation format information indicates Internet protocol IP encapsulation, if the source IP address in the outer layer feature information is not certainly Outgoing interface in the fast-turn construction list item to match with the five-tuple in the outer layer feature information is determined as working as by the IP address of body The preceding interface for being used to forward the object message, and judge to be currently used in whether the interface for forwarding the object message is that polymerization connects Mouthful;
If the source IP address in the outer layer feature information is the IP address of itself, and the characteristic information includes to institute Inner layer features information when the first message carries out internal layer encapsulation is stated, according to the inner layer features information, judgement is currently used in forwarding Whether the interface of the object message is aggregation interface.
Optionally, the judgement, which is currently used in, forwards whether the interface of the object message is aggregation interface, comprising:
In the case that source MAC in the outer layer feature information is the MAC Address of itself, if the outer layer is special Reference breath in encapsulation format information indicate multiprotocol label switching MPLS encapsulation, by with the purpose in the outer layer feature information The outgoing interface in MPLS forwarding-table item that MAC Address and MPLS outgoing label match is determined as being currently used in the forwarding target The interface of message, and judge to be currently used in forward whether the interface of the object message is aggregation interface.
Optionally, described according to the inner layer features information, judge that being currently used in the interface for forwarding the object message is No is aggregation interface, comprising:
It, will be with the internal layer in the case that source MAC in the inner layer features information is not the MAC Address of itself The outgoing interface in MAC forwarding-table item that target MAC (Media Access Control) address and Virtual Private Network VPN mark in characteristic information match, really Be set to the interface for being currently used in and forwarding the object message, and judge to be currently used in the interface for forwarding the object message whether be Aggregation interface.
Optionally, described according to the inner layer features information, judge that being currently used in the interface for forwarding the object message is No is aggregation interface, comprising:
In the case that source MAC in the inner layer features information is the MAC Address of itself, if the internal layer is special Encapsulation format information in reference breath indicates IP encapsulation, the fast forwarding table that will be matched with the five-tuple in the inner layer features information Outgoing interface in is determined as being currently used in the interface for forwarding the object message, and judges to be currently used in the forwarding target Whether the interface of message is aggregation interface;
If the encapsulation format information in the inner layer features information indicates MPLS encapsulation, will be with the inner layer features information In the outgoing interface of MPLS forwarding-table item that matches of target MAC (Media Access Control) address and MPLS outgoing label, be determined as being currently used in forwarding institute The interface of object message is stated, and judges to be currently used in forward whether the interface of the object message is aggregation interface.
Second aspect, in order to achieve the above object, the embodiment of the present application disclose a kind of method for adjusting forward-path, institute Method is stated applied to upstream device, which comprises
Determine the first message for leading to link congestion received from upstream equipment;
Characteristic information is extracted from first message, wherein the characteristic information includes carrying out to first message Outer layer feature information when outer envelope;
By receiving the interface of first message, Xiang Suoshu upstream equipment sends the characteristic information, so that on described Equipment is swum according to the characteristic information, the determining object message to match with the characteristic information, and will be used to forward the mesh The interface of mark message is revised as other interfaces in aggregation group belonging to current interface.
The third aspect, in order to achieve the above object, the embodiment of the present application disclose a kind of device for adjusting forward-path, institute Device is stated applied to the network equipment, described device includes:
Receiving module, for receiving the characteristic information of the first message, wherein first message is the network equipment What upstream device was determined leads to the message of link congestion, and the characteristic information includes carrying out outer envelope to first message When outer layer feature information;
Determining module, for the determining object message to match with the characteristic information;
Judgment module is currently used in whether the interface for forwarding the object message is aggregation interface for judging;
Module is adjusted, if to forward the interface of the object message be aggregation interface for being currently used in, will be used to forward The interface of the object message is revised as other interfaces in aggregation group belonging to current interface.
Optionally, the judgment module, specifically for the source media access control MAC in the outer layer feature information In the case that location is not the MAC Address of itself, by with the target MAC (Media Access Control) address and virtual LAN in the outer layer feature information The outgoing interface in MAC forwarding-table item that VLAN mark matches, is determined as being currently used in the interface for forwarding the object message, and Judgement, which is currently used in, forwards whether the interface of the object message is aggregation interface.
Optionally, the judgment module is itself specifically for the source MAC in the outer layer feature information MAC Address, and in the case where the encapsulation format information expression Internet protocol IP encapsulation in the outer layer feature information, if described Source IP address in outer layer feature information is not the IP address of itself, will be matched with the five-tuple in the outer layer feature information Fast-turn construction list item in outgoing interface, be determined as being currently used in the interface for forwarding the object message, and judge to be currently used in forwarding Whether the interface of the object message is aggregation interface;
If the source IP address in the outer layer feature information is the IP address of itself, and the characteristic information includes to institute Inner layer features information when the first message carries out internal layer encapsulation is stated, according to the inner layer features information, judgement is currently used in forwarding Whether the interface of the object message is aggregation interface.
Optionally, the judgment module is itself specifically for the source MAC in the outer layer feature information In the case where MAC Address, if the encapsulation format information in the outer layer feature information indicates multiprotocol label switching MPLS envelope Dress, by with going out in the target MAC (Media Access Control) address and the MPLS forwarding-table item that matches of MPLS outgoing label in the outer layer feature information Interface is determined as being currently used in the interface for forwarding the object message, and judges to be currently used in and forward connecing for the object message Whether mouth is aggregation interface.
Optionally, the judgment module is not itself specifically for the source MAC in the inner layer features information In the case where MAC Address, by in the inner layer features information target MAC (Media Access Control) address and Virtual Private Network VPN identify phase The outgoing interface in MAC forwarding-table item matched is determined as being currently used in the interface for forwarding the object message, and judges to be currently used in Whether the interface for forwarding the object message is aggregation interface.
Optionally, the judgment module is itself specifically for the source MAC in the inner layer features information It, will be special with the internal layer if the encapsulation format information in the inner layer features information indicates IP encapsulation in the case where MAC Address The outgoing interface in fast-turn construction list item that five-tuple in reference breath matches, is determined as being currently used in connecing for the forwarding object message Mouthful, and judge to be currently used in forward whether the interface of the object message is aggregation interface;
If the encapsulation format information in the inner layer features information indicates MPLS encapsulation, will be with the inner layer features information In the outgoing interface of MPLS forwarding-table item that matches of target MAC (Media Access Control) address and MPLS outgoing label, be determined as being currently used in forwarding institute The interface of object message is stated, and judges to be currently used in forward whether the interface of the object message is aggregation interface.
Fourth aspect, in order to achieve the above object, the embodiment of the present application disclose a kind of device for adjusting forward-path, institute Device is stated applied to upstream device, described device includes:
Determining module, for determining the first message for leading to link congestion received from upstream equipment;
Extraction module, for extracting characteristic information from first message, wherein the characteristic information includes to described First message carries out outer layer feature information when outer envelope;
Sending module, for the interface by receiving first message, Xiang Suoshu upstream equipment sends the feature letter Breath, so that the object message that the upstream equipment matches according to the characteristic information, the determining and characteristic information, and will use Other interfaces in aggregation group belonging to current interface are revised as in the interface of the forwarding object message.
On the other hand, in order to achieve the above object, the embodiment of the present application provides a kind of electronic equipment, including processor, Communication interface, memory and communication bus, wherein processor, communication interface, memory are completed each other by communication bus Communication;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes method and step described in first aspect.
On the other hand, in order to achieve the above object, the embodiment of the present application provides a kind of electronic equipment, including processor, Communication interface, memory and communication bus, wherein processor, communication interface, memory are completed each other by communication bus Communication;
Memory, for storing computer program;
Processor when for executing the program stored on memory, realizes method and step described in second aspect.
On the other hand, in order to achieve the above object, the application implementation provides a kind of machine readable storage medium, is stored with Machine-executable instruction, when being called and being executed by processor, the machine-executable instruction promotes the processor: realizing the Method and step described in one side.
On the other hand, in order to achieve the above object, the application implementation provides a kind of machine readable storage medium, is stored with Machine-executable instruction, when being called and being executed by processor, the machine-executable instruction promotes the processor: realizing the Method and step described in two aspects.
On the other hand, in order to achieve the above object, the application implements to provide a kind of computer program production comprising instruction Product, when run on a computer, so that computer executes method and step described in above-mentioned first aspect.
On the other hand, in order to achieve the above object, the application implements to provide a kind of computer program production comprising instruction Product, when run on a computer, so that computer executes method and step described in above-mentioned second aspect.
The embodiment of the present application provides a kind of method and apparatus for adjusting forward-path, is applied to the network equipment, and network is set The standby characteristic information that can receive the first message, the first message lead to link congestion for what the upstream device of the network equipment was determined Message, characteristic information includes outer layer feature information when carrying out outer envelope to the first message, and determining and characteristic information phase Matched object message, if the interface for being currently used in forwarding object message is aggregation interface, the network equipment can will be used to turn The interface of hair object message is revised as other interfaces in aggregation group belonging to current interface.Based on above-mentioned processing, network is set It is standby object message to be forwarded by other interfaces in aggregation group belonging to current interface, so that object message is not The link for passing through script congestion again, can reduce the probability of network service interruption.
Certainly, implement the application any product or method it is not absolutely required to and meanwhile reach above all advantages.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of frame diagram of networking provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of method for adjusting forward-path provided by the embodiments of the present application;
Fig. 3 is a kind of flow chart of method for adjusting forward-path provided by the embodiments of the present application;
Fig. 4 is a kind of exemplary flow chart of method for adjusting forward-path provided by the embodiments of the present application;
Fig. 5 is a kind of structure chart of device for adjusting forward-path provided by the embodiments of the present application;
Fig. 6 is a kind of structure chart of device for adjusting forward-path provided by the embodiments of the present application;
Fig. 7 is the structure chart of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 8 is the structure chart of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
The embodiment of the present application provides a kind of method for adjusting forward-path, and referring to Fig. 1, the embodiment of the present application is answered in method For being illustrated for SW1 and SR2.
In the prior art, when SR2 detects that congestion occurs for link L22, SR2, which can be abandoned, leads to link L22 congestion Message (i.e. the first message), and then will lead to network service interruption.
Using the present processes, SR2 can extract the characteristic information of the first message, wherein the feature of the first message is believed Breath may include outer layer feature information when carrying out outer envelope to the first message.Then, SR2 can be by receiving the first message Interface, the characteristic information of the first message is sent to SW1.After the characteristic information for receiving the first message, SW1 can be determined The message (i.e. object message) to match with characteristic information, if the interface for being currently used in forwarding object message is aggregation interface, The interface for being used to forward object message can be revised as other interfaces in aggregation group belonging to current interface by SW1, in turn Object message can be made no longer to pass through link L22, can be dropped to avoid message.
For example, being directed to a certain message, being currently used in and forwarding the interface of the message is the corresponding interface of link L12, the interface Affiliated aggregation group further includes the corresponding interface of link L11, and SW1 can send the message by the corresponding interface of link L11 To SR1, so that SR1 is forwarded processing to the message, so that the message no longer passes through link L22, it can be to avoid the message quilt SR2 is abandoned, and then can reduce the probability of network service interruption.
It referring to fig. 2, is a kind of flow chart for the method for adjusting forward-path provided by the embodiments of the present application, this method can be with Applied to the network equipment (being properly termed as the first equipment) in networking, this method be may comprise steps of:
S201: the characteristic information of the first message is received.
Wherein, the first message causes link to be gathered around for what the upstream device (being properly termed as the second equipment) of the first equipment was determined The message of plug, characteristic information may include outer layer feature information when carrying out outer envelope to the first message.
In application embodiment, when congestion occurs for a certain link between the detection of the second equipment and the upstream device of itself When, the second equipment can determine the message (i.e. the first message) for leading to the link congestion, and then, the second equipment can extract first The characteristic information of message, and characteristic information is sent to the first equipment.Correspondingly, the first equipment then can receive to the first message Characteristic information, to carry out subsequent processing.
S202: the determining object message to match with characteristic information.
In application embodiment, after obtaining characteristic information, the first equipment can determine the report to match with characteristic information Literary (i.e. object message), that is, the feature that the characteristic information and the first equipment that carry in object message are received from the second equipment Information matches, and object message is the message of forward-path to be adjusted.
S203: whether the interface that judgement is currently used in forwarding object message is aggregation interface, if so, executing S204.
In application embodiment, after determining object message, the first equipment, which can determine, is currently used in forwarding object message Interface (being properly termed as target interface), and judge whether target interface is aggregation interface.Specifically, will be in subsequent embodiment It is discussed in detail.
S204: other interface for being used to forward object message being revised as in aggregation group belonging to current interface connect Mouthful.
In application embodiment, when the first equipment determines that being currently used in the interface of forwarding object message is aggregation interface, The interface for being used to forward object message can be revised as other interfaces in aggregation group belonging to current interface by the first equipment. First equipment can then be forwarded object message by other interfaces in aggregation group belonging to current interface, so that mesh Mark message no longer passes through the link of script congestion, can reduce the probability of network service interruption
Due to the first equipment the mode that object message is forwarded can be it is diversified, the first equipment can To determine target interface by different modes, and then judge whether target interface is aggregation interface.
Optionally, may include in outer layer feature information virtual LAN (Virtual Local Area Netwo rk, VLAN it) identifies.Correspondingly, the source MAC (Media Access C ontrol, media access control) in outer layer characteristic information In the case that address (being properly termed as outer layer source MAC) is not the MAC Address of itself, S203 be may comprise steps of:
It will go out connecing with the target MAC (Media Access Control) address and the MAC forwarding-table item that matches of VLAN mark in outer layer feature information Mouthful, it is determined as being currently used in the interface of forwarding object message, and judge to be currently used in whether the interface of forwarding object message is poly- Splice grafting mouth.
In application embodiment, after obtaining outer layer feature information, the first equipment can be obtained from outer layer feature information Outer layer source MAC, then, the first equipment may determine that whether outer layer source MAC is itself MAC Address.
When the first equipment determines that outer layer source MAC is not the MAC Address of itself, the first equipment can be determined for mesh Message is marked as double layer network forwarding, (is properly termed as outer at this point, the VLAN in the available outer layer feature information of the first equipment is identified Layer VLAN mark), and then can determine with the target MAC (Media Access Control) address in outer layer feature information (with being properly termed as outer layer purpose MAC Location) and the MAC forwarding-table item (being properly termed as the first MAC forwarding-table item) that matches of outer VLAN identification, and the first MAC is forwarded Outgoing interface in list item is determined as target interface, and then may determine that whether target interface is aggregation interface.
Above-mentioned VLAN mark can be VLAN Tag (label), for identifying different VLAN.
Correspondingly, the first equipment can be by the first MAC forwarding table when the first equipment determines target interface for aggregation interface Outgoing interface in, other interfaces being revised as in aggregation group belonging to target interface.
For example, the first current MAC forwarding-table item may refer to table (1).
Table (1)
Target MAC (Media Access Control) address VLAN mark Forwarding label Outgoing interface
MAC1 VLAN1 \ Aggregation group 1
In table (1), with outer layer target MAC (Media Access Control) address be MAC1 and outer VLAN identification is belonging to the corresponding outgoing interface of VLAN1 Aggregation group be aggregation group 1, due to currently forward be labeled as " ", that is, for outer layer target MAC (Media Access Control) address be MAC1 and outer layer VLAN is identified as the message of VLAN1, and the first equipment can forward the message by any outgoing interface in aggregation group 1.
If target interface is the corresponding interface of link L12 in Fig. 1, aggregation group 1 belonging to target interface further includes other Interface, then the first equipment can modify to the first MAC forwarding-table item of table (1), obtain table (2).
Table (2)
Target MAC (Media Access Control) address VLAN mark Forwarding label Outgoing interface
MAC1 VLAN1 Disable L12 Aggregation group 1
It is MAC1 for outer layer target MAC (Media Access Control) address and message that outer VLAN identification is VLAN1, first sets based on table (2) Standby then the message will not be forwarded by the corresponding interface of link L12, the first equipment can pass through other interfaces in aggregation group 1 and turn The message is sent out, causes the second equipment to abandon the message to avoid link congestion, and then the probability of network service interruption can be reduced.
In addition, the first equipment can determine characteristic information if not including in outer envelope information has VLAN mark The message that message is untag (removing label) is issued on incoming interface, and is identified according to the corresponding VLAN of the message and determined that the first MAC turns Forwarding list item.
When the first equipment determines that target interface is not aggregation interface, the first equipment can will be used to forward and outer layer purpose The MAC forwarding-table item for the message that MAC Address and outer VLAN identification match is revised as current MAC forwarding-table item (i.e. first MAC forwarding-table item) list item of equal value or backup list item.
It is understood that even if target interface is aggregation interface, but aggregation group belonging to target interface does not include it He allow using interface, that is, other interfaces in aggregation group belonging to target interface in addition to target interface are all prohibited from using, Then the first equipment can also will be used to forward the MAC of the message to match with outer layer target MAC (Media Access Control) address and outer VLAN identification to turn Forwarding list item is revised as the list item of equal value or backup list item of the first MAC forwarding-table item.
Specifically, if target interface is not aggregation interface, alternatively, if target interface is aggregation interface, but target Aggregation group belonging to interface do not include other allow using interface, then the first equipment may determine that the first MAC forwarding-table item is It is no to there is list item of equal value.
When the first equipment determines that the first MAC forwarding-table item has list item of equal value, the first equipment can be forwarded the first MAC The list item of equal value of list item is determined as the message for being currently used in forwarding and outer layer target MAC (Media Access Control) address and outer VLAN identification matches MAC forwarding-table item.
When the first equipment determines that list item of equal value is not present in the first MAC forwarding-table item, the first equipment can turn the first MAC The backup list item of forwarding list item is determined as the report for being currently used in forwarding and outer layer target MAC (Media Access Control) address and outer VLAN identification matches The MAC forwarding-table item of text.
In addition, may include encapsulation format information (being properly termed as outer envelope format information) in outer layer feature information, the One equipment can judge whether target interface is aggregation interface according to outer envelope format information.
Optionally, in the case that the source MAC in outer layer characteristic information is the MAC Address of itself, S203 be can wrap Include following steps:
Step 1, if the encapsulation format information in outer layer feature information indicates Internet protocol IP (Internet Protocol, IP) encapsulation, and the source IP address in outer layer feature information is not the IP address of itself, it will be with outer layer feature information In the fast-turn construction list item that matches of five-tuple in outgoing interface, be determined as being currently used in the interface of forwarding object message, and judge Whether the interface for being currently used in forwarding object message is aggregation interface.
In application embodiment, when the first equipment determines that outer layer source MAC is the MAC Address of itself, the first equipment Available outer envelope format information, to determine outer envelope format.If in outer layer feature information including destination IP Location and source IP address (being properly termed as outer layer source IP address), the first equipment can determine outer envelope format for IP encapsulation.
If outer layer source IP address is not the IP address of itself, the first equipment can by with five yuan in outer layer feature information The outgoing interface in fast-turn construction list item that group matches, is determined as target interface, and then may determine that whether target interface is that polymerization connects Mouthful.
Correspondingly, the first equipment can will be believed with outer layer feature when the first equipment determines target interface for aggregation interface The outgoing interface in fast-turn construction list item that five-tuple in breath matches, other being revised as in aggregation group belonging to target interface connect Mouthful.
Wherein, the fast-turn construction list item to match with the five-tuple in outer layer feature information, i.e., with the source in outer layer feature information The homogeneous matched fast-turn construction list item of IP address, purpose IP address, source port number, destination slogan and protocol type.
In addition, when the first equipment determines that target interface is not aggregation interface, the first equipment can will be used to forwarding with it is outer The route table items for the message that purpose IP address (being properly termed as outer layer purpose IP address) in layer characteristic information matches, are revised as The list item of equal value or backup list item of current route table items (being properly termed as the first route table items).
It is understood that even if target interface is aggregation interface, but aggregation group belonging to target interface does not include it He allow using interface, that is, other interfaces in aggregation group belonging to target interface in addition to target interface are all prohibited from using, Then the first equipment will can also be used to forward the route table items of the message to match with outer layer purpose IP address, be revised as the first via By the list item of equal value or backup list item of list item.
Alternatively, when the first equipment determines that the fast-turn construction list item to match with the five-tuple in outer layer feature information is not present, First equipment will can also be used to forward the route table items of the message to match with outer layer purpose IP address, be revised as the first via by The list item of equal value or backup list item of list item.
In this step, after determining the first route table items, the first equipment may determine that the first route table items whether there is Valence list item.
When the first equipment determines that the first route table items have list item of equal value, the first equipment can be by the first route table items List item of equal value is determined as being currently used in the route table items for the message that forwarding matches with outer layer purpose IP address.
When the first equipment determines that list item of equal value is not present in the first route table items, the first equipment can be by the first route table items Backup list item, be determined as being currently used in forwarding and the route table items of message that outer layer purpose IP address matches.
Step 2, if source IP address in outer layer feature information is the IP address of itself, and characteristic information includes to the One message carries out inner layer features information when internal layer encapsulation, and according to inner layer features information, judgement is currently used in forwarding object message Interface whether be aggregation interface.
In application embodiment, if outer layer source IP address is the IP address of itself, the first equipment may determine that feature is believed Inner layer features information when whether breath includes to the progress internal layer encapsulation of the first message.When the first equipment determines that characteristic information includes interior When layer characteristic information, the first equipment can judge whether be currently used in the interface for forwarding object message according to inner layer features information For aggregation interface.Specifically, will be discussed in detail in subsequent embodiment.
Optionally, in the case where outer layer source MAC is the MAC Address of itself, S203 be may comprise steps of:
If the encapsulation format information in outer layer feature information indicates MPLS (Multi-Protocol Label Switching, multiprotocol label switching) encapsulation, by with the target MAC (Media Access Control) address and MPLS outgoing label phase in outer layer feature information The outgoing interface in MPLS forwarding-table item matched is determined as being currently used in the interface of forwarding object message, and judges to be currently used in and turn Whether the interface for sending out object message is aggregation interface.
In application embodiment, if outer layer source MAC is the MAC Address of itself, and include in outer layer feature information Have MPLS outgoing label (being properly termed as outer layer MPLS outgoing label), the first equipment can determine outer envelope format for MPLS encapsulation. First equipment can determine that the MPLS forwarding-table item to match with outer layer MPLS outgoing label and outer layer target MAC (Media Access Control) address (can claim For the first MPLS forwarding-table item).Outgoing interface in first MPLS forwarding-table item can be determined as target interface by the first equipment, into And it may determine that whether target interface is aggregation interface.
Correspondingly, if target interface is aggregation interface there is list item of equal value and/or backup in i.e. the first MPLS forwarding-table item List item.First equipment will can be used to forward the message to match with outer layer MPLS outgoing label and outer layer target MAC (Media Access Control) address MPLS forwarding-table item is revised as the list item of equal value or backup list item of the first MPLS forwarding-table item.
In this step, after determining the first MPLS forwarding-table item, the first equipment may determine that the first MPLS forwarding-table item is It is no to there is list item of equal value.
When the first equipment determines that the first MPLS forwarding-table item has list item of equal value, the first equipment can turn the first MPLS The list item of equal value of forwarding list item is determined as being currently used in what forwarding matched with outer layer MPLS outgoing label and outer layer target MAC (Media Access Control) address The MPLS forwarding-table item of message.
When the first equipment determines that list item of equal value is not present in the first MPLS forwarding-table item, the first equipment can be by the first MPLS The backup list item of forwarding-table item, is determined as being currently used in forwarding and matches with outer layer MPLS outgoing label and outer layer target MAC (Media Access Control) address Message MPLS forwarding-table item.
Optionally, inner layer features information may include VPN (Virtual Private Network, Virtual Private Network) Mark.
Source MAC (being properly termed as internal layer source MAC) in internal layer characteristic information is not the MAC Address of itself In the case of, for the first equipment according to inner layer features information, whether the interface that judgement is currently used in forwarding object message is aggregation interface, It may comprise steps of:
It will go out connecing with the target MAC (Media Access Control) address and the MAC forwarding-table item that matches of VPN mark in inner layer features information Mouthful, it is determined as being currently used in the interface of forwarding object message, and judge to be currently used in whether the interface of forwarding object message is poly- Splice grafting mouth.
Wherein, VPN mark can carry for VPN ID if there are VXLAN encapsulation for internal layer in inner layer features information VXLAN ID, then the first equipment can determine that VPN is identified according to the VXLAN ID;If there are GRE (Generic for internal layer Routing Encapsulation, Generic Routing Encapsulation) encapsulation, i.e., it is (close GRE Key to be carried in inner layer features information Key), then the first equipment can determine that VPN is identified according to the GRE Key.
In application embodiment, after obtaining inner layer features information, the available internal layer source MAC of the first equipment, so Afterwards, the first equipment may determine that whether internal layer source MAC is itself MAC Address.
When the first equipment determines that internal layer source MAC is not the MAC Address of itself, the available VPN mark of the first equipment Know, and by in inner layer features information target MAC (Media Access Control) address (being properly termed as internal layer target MAC (Media Access Control) address) and VPN identify match MAC forwarding-table item (being properly termed as the 2nd MAC forwarding-table item) in outgoing interface, be determined as target interface, and then may determine that Whether target interface is aggregation interface.
Correspondingly, the first equipment can be by the 2nd MAC forwarding table when the first equipment determines target interface for aggregation interface Outgoing interface in, other interfaces being revised as in aggregation group belonging to target interface.
In addition, when the first equipment determine target interface be not aggregation interface when, the first equipment can will be used for forward with it is interior The MAC forwarding-table item of message that layer target MAC (Media Access Control) address and VPN mark match is revised as current MAC forwarding-table item (i.e. the Two MAC forwarding-table items) list item of equal value or backup list item.
It is understood that even if target interface is aggregation interface, but aggregation group belonging to target interface does not include it He allow using interface, that is, other interfaces in aggregation group belonging to target interface in addition to target interface are all prohibited from using, Then the first equipment will can also be used to forward the MAC forwarding table of the message to match with internal layer target MAC (Media Access Control) address and VPN mark , it is revised as the list item of equal value or backup list item of the 2nd MAC forwarding-table item.
Specifically, if target interface is not aggregation interface, alternatively, if target interface is aggregation interface, but target Aggregation group belonging to interface do not include other allow using interface, then the first equipment may determine that the 2nd MAC forwarding-table item is It is no to there is list item of equal value.
When the first equipment determines that the 2nd MAC forwarding-table item has list item of equal value, the first equipment can be forwarded the 2nd MAC The list item of equal value of list item is determined as being currently used in forwarding and internal layer target MAC (Media Access Control) address and VPN identifies the MAC of the message to match Forwarding-table item.
When the first equipment determines that list item of equal value is not present in the 2nd MAC forwarding-table item, the first equipment can turn the 2nd MAC The backup list item of forwarding list item is determined as being currently used in forwarding and internal layer target MAC (Media Access Control) address and VPN identifies the message to match MAC forwarding-table item.
Optionally, inner layer features information may include encapsulation format information (being properly termed as internal layer encapsulation format information), the One equipment then can judge whether target interface is aggregation interface according to internal layer encapsulation format information.
In the case where internal layer source MAC is the MAC Address of itself, the first equipment is according to inner layer features information, judgement Whether the interface for being currently used in forwarding object message is aggregation interface, may include following two situation:
Situation one will be with inner layer features in the case that the encapsulation format information in internal layer characteristic information indicates IP encapsulation The outgoing interface in fast-turn construction list item that five-tuple in information matches is determined as being currently used in the interface of forwarding object message, and Whether the interface that judgement is currently used in forwarding object message is aggregation interface.
In application embodiment, if internal layer source MAC is the MAC Address of itself, and include in inner layer features information There are purpose IP address and source IP address, i.e. internal layer encapsulation format information indicates IP encapsulation.First equipment can will be with inner layer features The outgoing interface in fast-turn construction list item that five-tuple in information matches, is determined as target interface, and then may determine that target interface It whether is aggregation interface.
Correspondingly, the first equipment can will be believed with inner layer features when the first equipment determines target interface for aggregation interface The outgoing interface in fast-turn construction list item that five-tuple in breath matches, other being revised as in aggregation group belonging to target interface connect Mouthful.
Wherein, the fast-turn construction list item to match with the five-tuple in inner layer features information, i.e., with the source in inner layer features information The homogeneous matched fast-turn construction list item of IP address, purpose IP address, source port number, destination slogan and protocol type.
In addition, when the first equipment determine target interface be not aggregation interface when, the first equipment can will be used for forward with it is interior The route table items for the message that purpose IP address (being properly termed as internal layer purpose IP address) in layer characteristic information matches, are revised as The list item of equal value or backup list item of current route table items (being properly termed as secondary route list item).
It is understood that even if target interface is aggregation interface, but aggregation group belonging to target interface does not include it He allow using interface, that is, other interfaces in aggregation group belonging to target interface in addition to target interface are all prohibited from using, Then the first equipment will can also be used to forward the route table items of the message to match with internal layer purpose IP address, be revised as the second tunnel By the list item of equal value or backup list item of list item.
Alternatively, when the first equipment determines that the fast-turn construction list item to match with the five-tuple in inner layer features information is not present, First equipment will can also be used to forward the route table items of the message to match with internal layer purpose IP address, be revised as secondary route The list item of equal value or backup list item of list item.
In this step, after determining secondary route list item, the first equipment may determine that secondary route list item whether there is Valence list item.
When the first equipment determines that secondary route list item has list item of equal value, the first equipment can be by secondary route list item List item of equal value is determined as being currently used in the route table items for the message that forwarding matches with internal layer purpose IP address.
When the first equipment determines that list item of equal value is not present in secondary route list item, the first equipment can be by secondary route list item Backup list item, be determined as being currently used in forwarding and the route table items of message that internal layer purpose IP address matches.
Situation two will be with internal layer spy in the case that the encapsulation format information in internal layer characteristic information indicates MPLS encapsulation The outgoing interface for the MPLS forwarding-table item that target MAC (Media Access Control) address and MPLS outgoing label in reference breath match, is determined as being currently used in The interface of object message is forwarded, and judges to be currently used in whether the interface of forwarding object message is aggregation interface.
In application embodiment, if including that MPLS outgoing label (is properly termed as internal layer MPLS to go out in inner layer features information Label), the first equipment can determine internal layer encapsulation format for MPLS encapsulation.First equipment can determine and internal layer MPLS outgoing label The MPLS forwarding-table item (being properly termed as the 2nd MPLS forwarding-table item) to match with internal layer target MAC (Media Access Control) address.First equipment can be with Outgoing interface in 2nd MPLS forwarding-table item is determined as target interface, and then may determine that whether target interface is that polymerization connects Mouthful.
Correspondingly, if target interface is aggregation interface there is list item of equal value and/or backup in i.e. the 2nd MPLS forwarding-table item List item.First equipment will can be used to forward the message to match with internal layer MPLS outgoing label and internal layer target MAC (Media Access Control) address MPLS forwarding-table item is revised as the list item of equal value or backup list item of the 2nd MPLS forwarding-table item.
In this step, after determining the 2nd MPLS forwarding-table item, the first equipment may determine that the 2nd MPLS forwarding-table item is It is no to there is list item of equal value.
When the first equipment determines that the 2nd MPLS forwarding-table item has list item of equal value, the first equipment can turn the 2nd MPLS The list item of equal value of forwarding list item is determined as being currently used in what forwarding matched with internal layer MPLS outgoing label and internal layer target MAC (Media Access Control) address The MPLS forwarding-table item of message.
When the first equipment determines that list item of equal value is not present in the 2nd MPLS forwarding-table item, the first equipment can be by the 2nd MPLS The backup list item of forwarding-table item, is determined as being currently used in forwarding and matches with internal layer MPLS outgoing label and internal layer target MAC (Media Access Control) address Message MPLS forwarding-table item.
In addition, when outer layer source IP address is itself IP address, and when characteristic information does not include inner layer features information, first Equipment will can be used to forward the tunnel of the message to match with outer layer feature information, be revised as the backup tunnel in current tunnel Road.
In this step, if outer layer source IP address is the IP address of itself, and characteristic information does not include inner layer features information, First equipment can determine the tunnel (i.e. target tunnel) to match with outer layer source IP address and outer layer purpose IP address.If mesh Tunnel is marked there are backup tunnel, then the first equipment can by the backup tunnel in target tunnel, be determined as being currently used in forwarding with it is outer The tunnel for the message that layer purpose IP address matches.
Referring to Fig. 3, Fig. 3 is a kind of method for adjusting forward-path provided by the embodiments of the present application, and this method can be applied In upstream device, method be may comprise steps of:
S301: the first message for leading to link congestion received from upstream equipment is determined.
Wherein, upstream device can be the second equipment in above-described embodiment, and the upstream equipment of the second equipment can be upper State the first equipment.
In application embodiment, the second equipment can receive the message of the first device forwards, and to the message received into Row forward process.When congestion occurs for the link between the second equipment detects the upstream device with itself, the second equipment can be with Determine the message (i.e. the first message) for leading to link congestion.
S302: characteristic information is extracted from the first message.
In application embodiment, after determining to lead to the first message of link congestion, the second equipment can be from the first report Characteristic information when being packaged to the first message is extracted in text.
Wherein, characteristic information may include outer envelope information when carrying out outer envelope, can also include carrying out internal layer Internal layer packaging information when encapsulation.
S303: the interface by receiving the first message, upstream device sends characteristic information, so that upstream equipment is according to spy Reference breath, the determining object message to match with characteristic information, and the interface for being used to forward object message is revised as current Other interfaces in aggregation group belonging to interface.
In application embodiment, after the characteristic information for extracting the first message, the second equipment can be by receiving the first report The interface of text sends features described above information to the first equipment.
In this step, characteristic information can be added in protocol massages by the second equipment, and will carry characteristic information Protocol massages are sent to the first equipment, alternatively, the second equipment can also directly generate the message for carrying characteristic information, and send To the first equipment, the mode that the embodiment of the present application sends characteristic information to the second equipment is not defined.
Correspondingly, the first equipment can determine and characteristic information after the first equipment receives the characteristic information of the first message The message (i.e. object message) to match, and the interface for being used to forward object message is revised as to polymerization belonging to current interface Other interfaces in group, specifically, being discussed in detail with reference to above-described embodiment.
In addition, this method may also comprise the following steps: before sending characteristic information to the first equipment:
Step 1 determines the forwarding-table item for forwarding the first message, as target forwarding-table item.
In application embodiment, after determining the first message, the second equipment can be determined for forwarding turning for the first message Forwarding list item (i.e. target forwarding-table item), target forwarding-table item can be MAC forwarding-table item, MPLS forwarding-table item or route table items.
If list item of equal value is not present in target forwarding-table item, and backup list item is not present in step 2, by receiving the first report The interface of text sends characteristic information to the first equipment.
In application embodiment, if target forwarding-table item had not only been not present equivalent table item, but also was not present backup list item, then the Two equipment can send characteristic information to the first equipment, so that the first equipment is according to feature by the interface of the first message of reception Information adjusts the forward-path for forwarding object message.
Step 3 will be used for forwarding and characteristic information if target forwarding-table item has list item and/or backup list item of equal value The forwarding-table item of matched message is revised as the list item of equal value or backup list item of target forwarding-table item.
In application embodiment, if target forwarding-table item has list item and/or backup list item of equal value, the second equipment can Will be used to forward the forwarding-table item with the matched message of characteristic information, it is revised as list item of equal value or the backup of target forwarding-table item List item, in turn, the second equipment can be forwarded according to modified forwarding-table item to the message that characteristic information matches, The link that script congestion can be passed through to avoid message reduces the probability that network service is interrupted.
In this step, the second equipment may determine that target forwarding-table item whether there is list item of equal value.
When the second equipment determines that target forwarding-table item has list item of equal value, the second equipment can be by target forwarding-table item List item of equal value is determined as being currently used in the forwarding-table item for the message that forwarding matches with characteristic information.
When the second equipment determines that list item of equal value is not present in target forwarding-table item, the second equipment can be by target forwarding-table item Backup list item, be determined as being currently used in forwarding and the forwarding-table item of message that characteristic information matches.
Method based on the embodiment of the present application, upstream equipment, which can receive, causes the feature of the first message of link congestion to be believed Breath, the determining object message to match with characteristic information, if the interface for being currently used in forwarding object message is aggregation interface, on The interface for being used to forward object message can be revised as other interfaces in aggregation group belonging to current interface by trip equipment.Base In above-mentioned processing, upstream equipment can turn object message by other interfaces in aggregation group belonging to current interface Hair can reduce the probability of network service interruption so that object message no longer passes through the link of script congestion.
Referring to fig. 4, Fig. 4 is a kind of exemplary flow chart of method for adjusting forward-path provided by the embodiments of the present application, should Method is illustrated by taking the SW1 applied to Fig. 1 as an example, and this method may comprise steps of:
S401: the characteristic information by SR2 the first message sent is received by L12.
Wherein, the first message is the message for leading to link congestion that SR2 is determined.
Characteristic information may refer to table (3).
Table (3)
S402: determining that outer layer source MAC (i.e. MAC-SW1) is the MAC Address of itself, and determines that outer envelope format is IP encapsulation.
S403: determine that outer layer source IP address (i.e. IP-SW1) is the IP address of itself, and determine that characteristic information includes internal layer Characteristic information.
S404: determine that internal layer source MAC (i.e. MAC-user1) is not the MAC Address of itself, determining and internal layer purpose MAC Address (i.e. MAC-user2) and the corresponding Destination MAC forwarding-table item of VXLAN ID.
Wherein, Destination MAC forwarding-table item corresponding with internal layer target MAC (Media Access Control) address and VXLAN ID may refer to table (4).
Table (4)
Target MAC (Media Access Control) address VXLAN ID Forwarding label Outgoing interface
MAC-user2 3 \ Aggregation group 1
S405: determine that aggregation group (i.e. aggregation group 1) belonging to the outgoing interface in Destination MAC forwarding-table item further includes that other are permitted Perhaps the interface used.
S406: by Destination MAC forwarding-table item forwarding label be revised as disabling L12, with complete to characteristic information The adjustment of the forward-path for the message matched.
Based on identical inventive concept, referring to Fig. 5, Fig. 5 is a kind of adjustment forward-path provided by the embodiments of the present application Device, described device are applied to the network equipment, and described device includes:
Receiving module 501, for receiving the characteristic information of the first message, wherein first message is that the network is set What standby upstream device was determined leads to the message of link congestion, and the characteristic information includes carrying out outer layer to first message Outer layer feature information when encapsulation;
Determining module 502, for the determining object message to match with the characteristic information;
Judgment module 503 is currently used in whether the interface for forwarding the object message is aggregation interface for judging;
Module 504 is adjusted, if forward the interface of the object message be aggregation interface for being currently used in, will be used for turn The interface for sending out object message described is revised as other interfaces in aggregation group belonging to current interface.
Optionally, the judgment module 503, specifically for the source media access control in the outer layer feature information In the case that MAC Address is not the MAC Address of itself, by with the target MAC (Media Access Control) address and virtual office in the outer layer feature information The outgoing interface in MAC forwarding-table item that domain net VLAN mark matches, is determined as being currently used in connecing for the forwarding object message Mouthful, and judge to be currently used in forward whether the interface of the object message is aggregation interface.
Optionally, the judgment module 503 is itself specifically for the source MAC in the outer layer feature information MAC Address, and in the case that encapsulation format information in the outer layer feature information indicates Internet protocol IP encapsulation, if institute Stating the source IP address in outer layer feature information not is the IP address of itself, by with the five-tuple phase in the outer layer feature information The outgoing interface in fast-turn construction list item matched is determined as being currently used in the interface for forwarding the object message, and judges to be currently used in and turn Whether the interface for sending out object message described is aggregation interface;
If the source IP address in the outer layer feature information is the IP address of itself, and the characteristic information includes to institute Inner layer features information when the first message carries out internal layer encapsulation is stated, according to the inner layer features information, judgement is currently used in forwarding Whether the interface of the object message is aggregation interface.
Optionally, the judgment module 503 is itself specifically for the source MAC in the outer layer feature information MAC Address in the case where, if encapsulation format information in the outer layer feature information indicates multiprotocol label switching MPLS Encapsulation, by in the target MAC (Media Access Control) address and the MPLS forwarding-table item that matches of MPLS outgoing label in the outer layer feature information Outgoing interface is determined as being currently used in the interface for forwarding the object message, and judges to be currently used in the forwarding object message Whether interface is aggregation interface.
Optionally, the judgment module 503 is not certainly specifically for the source MAC in the inner layer features information In the case where the MAC Address of body, by in the inner layer features information target MAC (Media Access Control) address and Virtual Private Network VPN identify The outgoing interface in MAC forwarding-table item to match is determined as being currently used in the interface for forwarding the object message, and judges current Whether the interface for forwarding the object message is aggregation interface.
Optionally, the judgment module 503 is itself specifically for the source MAC in the inner layer features information MAC Address in the case where, will be with the internal layer if encapsulation format information in the inner layer features information indicates IP encapsulation The outgoing interface in fast-turn construction list item that five-tuple in characteristic information matches is determined as being currently used in the forwarding object message Interface, and judge to be currently used in forward whether the interface of the object message is aggregation interface;
If the encapsulation format information in the inner layer features information indicates MPLS encapsulation, will be with the inner layer features information In the outgoing interface of MPLS forwarding-table item that matches of target MAC (Media Access Control) address and MPLS outgoing label, be determined as being currently used in forwarding institute The interface of object message is stated, and judges to be currently used in forward whether the interface of the object message is aggregation interface.
Referring to Fig. 6, Fig. 6 is a kind of device for adjusting forward-path provided by the embodiments of the present application, and described device is applied to Upstream device, described device include:
Determining module 601, for determining the first message for leading to link congestion received from upstream equipment;
Extraction module 602, for extracting characteristic information from first message, wherein the characteristic information includes pair First message carries out outer layer feature information when outer envelope;
Sending module 603, for the interface by receiving first message, Xiang Suoshu upstream equipment sends the feature Information, so that the object message that the upstream equipment matches according to the characteristic information, the determining and characteristic information, and will Interface for forwarding the object message is revised as other interfaces in aggregation group belonging to current interface.
The embodiment of the present application also provides a kind of electronic equipment, as shown in fig. 7, comprises processor 701, communication interface 702, Memory 703 and communication bus 704, wherein processor 701, communication interface 1002, memory 703 are complete by communication bus 704 At mutual communication,
Memory 703, for storing computer program;
Processor 701, when for executing the program stored on memory 703, so that the electronic equipment executes adjustment and turns The step of sending out the method in path, this method comprises:
Receive the characteristic information of the first message, wherein first message is that the upstream device of the network equipment determines The message for leading to link congestion out, the characteristic information include outer layer feature when carrying out outer envelope to first message Information;
The determining object message to match with the characteristic information;
Judgement, which is currently used in, forwards whether the interface of the object message is aggregation interface;
If being currently used in and forwarding the interface of the object message is aggregation interface, it will be used to forward the object message Interface is revised as other interfaces in aggregation group belonging to current interface.
Optionally, the judgement, which is currently used in, forwards whether the interface of the object message is aggregation interface, comprising:
In the case that source MAC address in the outer layer feature information is not the MAC Address of itself, By in the target MAC (Media Access Control) address and the MAC forwarding-table item that matches of virtual LAN VLAN mark in the outer layer feature information Outgoing interface, be determined as being currently used in the interface for forwarding the object message, and judge to be currently used in the forwarding object message Interface whether be aggregation interface.
Optionally, the judgement, which is currently used in, forwards whether the interface of the object message is aggregation interface, comprising:
Source MAC in the outer layer feature information is the MAC Address of itself, and in the outer layer feature information In the case that encapsulation format information indicates Internet protocol IP encapsulation, if the source IP address in the outer layer feature information is not certainly Outgoing interface in the fast-turn construction list item to match with the five-tuple in the outer layer feature information is determined as working as by the IP address of body The preceding interface for being used to forward the object message, and judge to be currently used in whether the interface for forwarding the object message is that polymerization connects Mouthful;
If the source IP address in the outer layer feature information is the IP address of itself, and the characteristic information includes to institute Inner layer features information when the first message carries out internal layer encapsulation is stated, according to the inner layer features information, judgement is currently used in forwarding Whether the interface of the object message is aggregation interface.
Optionally, the judgement, which is currently used in, forwards whether the interface of the object message is aggregation interface, comprising:
In the case that source MAC in the outer layer feature information is the MAC Address of itself, if the outer layer is special Reference breath in encapsulation format information indicate multiprotocol label switching MPLS encapsulation, by with the purpose in the outer layer feature information The outgoing interface in MPLS forwarding-table item that MAC Address and MPLS outgoing label match is determined as being currently used in the forwarding target The interface of message, and judge to be currently used in forward whether the interface of the object message is aggregation interface.
Optionally, described according to the inner layer features information, judge that being currently used in the interface for forwarding the object message is No is aggregation interface, comprising:
It, will be with the internal layer in the case that source MAC in the inner layer features information is not the MAC Address of itself The outgoing interface in MAC forwarding-table item that target MAC (Media Access Control) address and Virtual Private Network VPN mark in characteristic information match, really Be set to the interface for being currently used in and forwarding the object message, and judge to be currently used in the interface for forwarding the object message whether be Aggregation interface.
Optionally, described according to the inner layer features information, judge that being currently used in the interface for forwarding the object message is No is aggregation interface, comprising:
In the case that source MAC in the inner layer features information is the MAC Address of itself, if the internal layer is special Encapsulation format information in reference breath indicates IP encapsulation, the fast forwarding table that will be matched with the five-tuple in the inner layer features information Outgoing interface in is determined as being currently used in the interface for forwarding the object message, and judges to be currently used in the forwarding target Whether the interface of message is aggregation interface;
If the encapsulation format information in the inner layer features information indicates MPLS encapsulation, will be with the inner layer features information In the outgoing interface of MPLS forwarding-table item that matches of target MAC (Media Access Control) address and MPLS outgoing label, be determined as being currently used in forwarding institute The interface of object message is stated, and judges to be currently used in forward whether the interface of the object message is aggregation interface.
The embodiment of the present application also provides a kind of electronic equipment, as shown in figure 8, include processor 801, communication interface 802, Memory 803 and communication bus 804, wherein processor 801, communication interface 802, memory 803 are complete by communication bus 804 At mutual communication,
Memory 803, for storing computer program;
Processor 801, when for executing the program stored on memory 803, so that the electronic equipment executes adjustment and turns The step of sending out the method in path, this method comprises:
Determine the first message for leading to link congestion received from upstream equipment;
Characteristic information is extracted from first message, wherein the characteristic information includes carrying out to first message Outer layer feature information when outer envelope;
By receiving the interface of first message, Xiang Suoshu upstream equipment sends the characteristic information, so that on described Equipment is swum according to the characteristic information, the determining object message to match with the characteristic information, and will be used to forward the mesh The interface of mark message is revised as other interfaces in aggregation group belonging to current interface.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete Door or transistor logic, discrete hardware components.
In another embodiment provided by the present application, a kind of computer readable storage medium is additionally provided, which can It reads to be stored with computer program in storage medium, the computer program realizes any of the above-described adjustment forwarding when being executed by processor The step of method in path.
In another embodiment provided by the present application, a kind of computer program product comprising instruction is additionally provided, when it When running on computers, so that the method that computer executes any adjustment forward-path in above-described embodiment.
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 Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device, For electronic equipment, computer readable storage medium and computer program product embodiments, since it is substantially similar to method Embodiment, so being described relatively simple, the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application It is interior.

Claims (16)

1. a kind of method for adjusting forward-path, which is characterized in that the method is applied to the network equipment, which comprises
Receive the characteristic information of the first message, wherein first message is what the upstream device of the network equipment was determined Lead to the message of link congestion, the characteristic information includes outer layer feature letter when carrying out outer envelope to first message Breath;
The determining object message to match with the characteristic information;
Judgement, which is currently used in, forwards whether the interface of the object message is aggregation interface;
If being currently used in and forwarding the interface of the object message is aggregation interface, it will be used to forward the interface of the object message Other interfaces being revised as in aggregation group belonging to current interface.
2. the method according to claim 1, wherein the judgement is currently used in and forwards connecing for the object message Whether mouth is aggregation interface, comprising:
It, will be in the case that source MAC address in the outer layer feature information is not the MAC Address of itself Going out in the MAC forwarding-table item that target MAC (Media Access Control) address and virtual LAN VLAN mark in the outer layer feature information match Interface is determined as being currently used in the interface for forwarding the object message, and judges to be currently used in and forward connecing for the object message Whether mouth is aggregation interface.
3. the method according to claim 1, wherein the judgement is currently used in and forwards connecing for the object message Whether mouth is aggregation interface, comprising:
Source MAC in the outer layer feature information is the MAC Address of itself, and the encapsulation in the outer layer feature information In the case that format information indicates Internet protocol IP encapsulation, if the source IP address in the outer layer feature information is not itself Outgoing interface in the fast-turn construction list item to match with the five-tuple in the outer layer feature information is determined as currently using by IP address In the interface for forwarding the object message, and judge to be currently used in forward whether the interface of the object message is aggregation interface;
If source IP address in the outer layer feature information is the IP address of itself, and the characteristic information includes to described the One message carries out inner layer features information when internal layer encapsulation, and according to the inner layer features information, judgement is currently used in described in forwarding Whether the interface of object message is aggregation interface.
4. the method according to claim 1, wherein the judgement is currently used in and forwards connecing for the object message Whether mouth is aggregation interface, comprising:
In the case that source MAC in the outer layer feature information is the MAC Address of itself, if the outer layer feature is believed Encapsulation format information in breath indicates multiprotocol label switching MPLS encapsulation, by with the purpose MAC in the outer layer feature information The outgoing interface in MPLS forwarding-table item that address and MPLS outgoing label match is determined as being currently used in the forwarding object message Interface, and judge to be currently used in and forward whether the interface of the object message is aggregation interface.
5. according to the method described in claim 3, judgement is current to be used it is characterized in that, described according to the inner layer features information In the interface for forwarding the object message whether be aggregation interface, comprising:
It, will be with the inner layer features in the case that source MAC in the inner layer features information is not the MAC Address of itself The outgoing interface in MAC forwarding-table item that target MAC (Media Access Control) address and Virtual Private Network VPN mark in information match, is determined as It is currently used in the interface for forwarding the object message, and judges to be currently used in forward whether the interface of the object message is polymerization Interface.
6. according to the method described in claim 3, judgement is current to be used it is characterized in that, described according to the inner layer features information In the interface for forwarding the object message whether be aggregation interface, comprising:
In the case that source MAC in the inner layer features information is the MAC Address of itself, if the inner layer features are believed Encapsulation format information in breath indicates IP encapsulation, will be in the fast-turn construction list item that matched with the five-tuple in the inner layer features information Outgoing interface, be determined as being currently used in the interface for forwarding the object message, and judge to be currently used in the forwarding object message Interface whether be aggregation interface;
If encapsulation format information in the inner layer features information indicates MPLS encapsulation, by in the inner layer features information The outgoing interface for the MPLS forwarding-table item that target MAC (Media Access Control) address and MPLS outgoing label match is determined as being currently used in the forwarding mesh The interface of message is marked, and judges to be currently used in forward whether the interface of the object message is aggregation interface.
7. a kind of method for adjusting forward-path, which is characterized in that the method is applied to upstream device, which comprises
Determine the first message for leading to link congestion received from upstream equipment;
Characteristic information is extracted from first message, wherein the characteristic information includes carrying out outer layer to first message Outer layer feature information when encapsulation;
By receiving the interface of first message, Xiang Suoshu upstream equipment sends the characteristic information, so that the upstream is set The standby object message to be matched according to the characteristic information, the determining and characteristic information, and will be used to forward the target report The interface of text is revised as other interfaces in aggregation group belonging to current interface.
8. a kind of device for adjusting forward-path, which is characterized in that described device is applied to the network equipment, and described device includes:
Receiving module, for receiving the characteristic information of the first message, wherein first message is the downstream of the network equipment What equipment was determined leads to the message of link congestion, and the characteristic information includes when carrying out outer envelope to first message Outer layer feature information;
Determining module, for the determining object message to match with the characteristic information;
Judgment module is currently used in whether the interface for forwarding the object message is aggregation interface for judging;
Adjust module, if forward the interface of the object message be aggregation interface for being currently used in, will be used to forwarding described in The interface of object message is revised as other interfaces in aggregation group belonging to current interface.
9. device according to claim 8, which is characterized in that the judgment module is specifically used in the outer layer feature In the case that source MAC address in information is not the MAC Address of itself, will in the outer layer feature information Target MAC (Media Access Control) address and the MAC forwarding-table item that matches of virtual LAN VLAN mark in outgoing interface, be determined as being currently used in The interface of the object message is forwarded, and judges to be currently used in forward whether the interface of the object message is aggregation interface.
10. device according to claim 8, which is characterized in that the judgment module is specifically used in the outer layer feature Source MAC in information is the MAC Address of itself, and the encapsulation format information in the outer layer feature information indicates internet association In the case where discussing IP encapsulation, if the source IP address in the outer layer feature information is not the IP address of itself, will with it is described outer The outgoing interface in fast-turn construction list item that five-tuple in layer characteristic information matches is determined as being currently used in the forwarding object message Interface, and judge to be currently used in and forward whether the interface of the object message is aggregation interface;
If source IP address in the outer layer feature information is the IP address of itself, and the characteristic information includes to described the One message carries out inner layer features information when internal layer encapsulation, and according to the inner layer features information, judgement is currently used in described in forwarding Whether the interface of object message is aggregation interface.
11. device according to claim 8, which is characterized in that the judgment module is specifically used in the outer layer feature In the case that source MAC in information is the MAC Address of itself, if the encapsulation format information in the outer layer feature information Indicate multiprotocol label switching MPLS encapsulation, by with the target MAC (Media Access Control) address and MPLS outgoing label phase in the outer layer feature information Outgoing interface in matched MPLS forwarding-table item is determined as being currently used in the interface for forwarding the object message, and judges current Whether the interface for forwarding the object message is aggregation interface.
12. a kind of device for adjusting forward-path, which is characterized in that described device is applied to upstream device, and described device includes:
Determining module, for determining the first message for leading to link congestion received from upstream equipment;
Extraction module, for extracting characteristic information from first message, wherein the characteristic information includes to described first Message carries out outer layer feature information when outer envelope;
Sending module, for the interface by receiving first message, Xiang Suoshu upstream equipment sends the characteristic information, with Make the upstream equipment according to the characteristic information, the determining object message to match with the characteristic information, and will be used to turn The interface for sending out object message described is revised as other interfaces in aggregation group belonging to current interface.
13. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein described Processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes any side claim 1-6 Method step.
14. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein described Processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes method of claim 7 step Suddenly.
15. a kind of machine readable storage medium, which is characterized in that be stored with machine-executable instruction, by processor call and When execution, the machine-executable instruction promotes the processor: realizing any method and step of claim 1-6.
16. a kind of machine readable storage medium, which is characterized in that be stored with machine-executable instruction, by processor call and When execution, the machine-executable instruction promotes the processor: realizing method of claim 7 step.
CN201811611323.9A 2018-12-27 2018-12-27 Method and device for adjusting forwarding path Active CN109525501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811611323.9A CN109525501B (en) 2018-12-27 2018-12-27 Method and device for adjusting forwarding path

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811611323.9A CN109525501B (en) 2018-12-27 2018-12-27 Method and device for adjusting forwarding path

Publications (2)

Publication Number Publication Date
CN109525501A true CN109525501A (en) 2019-03-26
CN109525501B CN109525501B (en) 2022-05-24

Family

ID=65797042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811611323.9A Active CN109525501B (en) 2018-12-27 2018-12-27 Method and device for adjusting forwarding path

Country Status (1)

Country Link
CN (1) CN109525501B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113260A (en) * 2019-04-28 2019-08-09 新华三技术有限公司 A kind of forwarding table updating method and device
CN110365578A (en) * 2019-08-01 2019-10-22 新华三大数据技术有限公司 Network interface control and link switching method, device, network equipment and medium
CN111865795A (en) * 2020-06-10 2020-10-30 新华三技术有限公司 Control method and device
WO2022001937A1 (en) * 2020-06-29 2022-01-06 中兴通讯股份有限公司 Service transmission method and apparatus, network device, and storage medium
CN116192777A (en) * 2022-12-30 2023-05-30 中国联合网络通信集团有限公司 Path learning method, device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263697A (en) * 2011-08-03 2011-11-30 杭州华三通信技术有限公司 Method and device for sharing aggregated link traffic
CN102394814A (en) * 2011-10-27 2012-03-28 福建星网锐捷网络有限公司 Method and equipment for processing congestion notification message
CN103428103A (en) * 2013-08-08 2013-12-04 杭州华三通信技术有限公司 Link load control method and stacking device
US20140119193A1 (en) * 2012-10-30 2014-05-01 Telefonaktiebolget L M Ericsson (Publ) Method for dynamic load balancing of network flows on lag interfaces
US20140192646A1 (en) * 2011-03-29 2014-07-10 Nec Europe Ltd. User traffic accountability under congestion in flow-based multi-layer switches
CN104092604A (en) * 2014-07-02 2014-10-08 杭州华三通信技术有限公司 Message transmission control method and device
CN105827495A (en) * 2016-01-05 2016-08-03 杭州华三通信技术有限公司 Message forwarding method and device for VXLAN gateway
US20180077064A1 (en) * 2016-09-12 2018-03-15 Zixiong Wang Methods and systems for data center load balancing

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140192646A1 (en) * 2011-03-29 2014-07-10 Nec Europe Ltd. User traffic accountability under congestion in flow-based multi-layer switches
CN102263697A (en) * 2011-08-03 2011-11-30 杭州华三通信技术有限公司 Method and device for sharing aggregated link traffic
CN102394814A (en) * 2011-10-27 2012-03-28 福建星网锐捷网络有限公司 Method and equipment for processing congestion notification message
US20140119193A1 (en) * 2012-10-30 2014-05-01 Telefonaktiebolget L M Ericsson (Publ) Method for dynamic load balancing of network flows on lag interfaces
CN103428103A (en) * 2013-08-08 2013-12-04 杭州华三通信技术有限公司 Link load control method and stacking device
CN104092604A (en) * 2014-07-02 2014-10-08 杭州华三通信技术有限公司 Message transmission control method and device
CN105827495A (en) * 2016-01-05 2016-08-03 杭州华三通信技术有限公司 Message forwarding method and device for VXLAN gateway
US20180077064A1 (en) * 2016-09-12 2018-03-15 Zixiong Wang Methods and systems for data center load balancing

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110113260A (en) * 2019-04-28 2019-08-09 新华三技术有限公司 A kind of forwarding table updating method and device
CN110365578A (en) * 2019-08-01 2019-10-22 新华三大数据技术有限公司 Network interface control and link switching method, device, network equipment and medium
CN111865795A (en) * 2020-06-10 2020-10-30 新华三技术有限公司 Control method and device
CN111865795B (en) * 2020-06-10 2022-11-18 新华三技术有限公司 Control method and device
WO2022001937A1 (en) * 2020-06-29 2022-01-06 中兴通讯股份有限公司 Service transmission method and apparatus, network device, and storage medium
CN116192777A (en) * 2022-12-30 2023-05-30 中国联合网络通信集团有限公司 Path learning method, device and storage medium
CN116192777B (en) * 2022-12-30 2024-06-04 中国联合网络通信集团有限公司 Path learning method, device and storage medium

Also Published As

Publication number Publication date
CN109525501B (en) 2022-05-24

Similar Documents

Publication Publication Date Title
CN109525501A (en) A kind of method and apparatus adjusting forward-path
EP3808040B1 (en) Apparatus and method to trace packets in a packet processing pipeline of a software defined networking switch
EP3251304B1 (en) Method and apparatus for connecting a gateway router to a set of scalable virtual ip network appliances in overlay networks
US12010173B2 (en) Class-based queueing for scalable multi-tenant RDMA traffic
CN105591978B (en) Network-based service function link
CN103548376B (en) EPC is realized in cloud computer by OPENFLOW data planes
US8174984B2 (en) Managing traffic on virtualized lanes between a network switch and a virtual machine
CN109314666A (en) Virtual channel endpoint for congestion aware load balancing
WO2016107379A1 (en) Packet sending method and apparatus
EP3586482B1 (en) Mechanism to detect data plane loops in an openflow network
WO2018149338A1 (en) Sdn-based remote stream mirroring control method, implementation method, and related device
CN108206785A (en) Optimize and routing and/or the relevant information of next-hop for multicast traffic
US20200204485A1 (en) Packet forwarding using vendor extension in a software-defined networking (sdn) system
WO2022057810A1 (en) Service packet forwarding method, sr policy sending method, device, and system
US8422504B2 (en) Network switch port aggregation
US9258254B2 (en) Virtual router and switch
WO2022028342A1 (en) Method for processing congestion flow and device
CN109218176A (en) A kind of method and device of Message processing
AU2020202599B2 (en) Service processing method and network device
JP5673112B2 (en) Switch device, network, and address learning method used therefor
WO2022146470A1 (en) Cloud scale multi-tenancy for rdma over converged ethernet (roce)
CN112367258A (en) Method for realizing service chain function based on Openstack architecture
JP5423886B2 (en) Packet communication apparatus and packet transfer method

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
TR01 Transfer of patent right

Effective date of registration: 20230612

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

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

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

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right