CN108989200A - data packet forwarding method, device and system - Google Patents

data packet forwarding method, device and system Download PDF

Info

Publication number
CN108989200A
CN108989200A CN201810768616.1A CN201810768616A CN108989200A CN 108989200 A CN108989200 A CN 108989200A CN 201810768616 A CN201810768616 A CN 201810768616A CN 108989200 A CN108989200 A CN 108989200A
Authority
CN
China
Prior art keywords
interchanger
aggregation group
packet
link aggregation
device link
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
CN201810768616.1A
Other languages
Chinese (zh)
Other versions
CN108989200B (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.)
Technology Co Ltd Of Xin Ruiwang Section Of Shenzhen
Original Assignee
Technology Co Ltd Of Xin Ruiwang Section Of Shenzhen
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 Technology Co Ltd Of Xin Ruiwang Section Of Shenzhen filed Critical Technology Co Ltd Of Xin Ruiwang Section Of Shenzhen
Priority to CN201810768616.1A priority Critical patent/CN108989200B/en
Publication of CN108989200A publication Critical patent/CN108989200A/en
Application granted granted Critical
Publication of CN108989200B publication Critical patent/CN108989200B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • H04L45/245Link aggregation, e.g. trunking

Landscapes

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

Abstract

The invention discloses a kind of data packet forwarding methods, device and system, it include at least two interchangers in device link aggregation group, the described method includes: electing an interchanger in the device link aggregation group as host, and port blocked is set as by one peer-link mouthfuls of the host of election;Bitmap negotiation is carried out, in the device link aggregation group for electing host and port blocked with the positional relationship of respective switch in the determination device link aggregation group;When in source, interchanger sends data packet to the device link aggregation group, upper united mouth to be produced is determined according to the positional relationship of respective switch in the device link aggregation group according to preset forward mode, data packet is forwarded in target switch from determining upper united mouth.The present invention prevents the generation of the phenomenon that data packetloss, and improves the reliability of data forwarding.

Description

Data packet forwarding method, device and system
Technical field
The present invention relates to network communication technology field more particularly to a kind of data packet forwarding methods, device and system.
Background technique
Traditional data packet repeating process, only two interchangers carry out data forwarding, this two interchangers in a network It is logically equivalent to an interchanger, when carrying out normal data forwarding, only two interchanger load traffics, to equipment Performance requirement is higher.
In this case, if there is an interchanger to break down, the data that another interchanger wants alone bear all Forwarding, therefore, it is more likely that there is forwarding performance the phenomenon that leading to packet loss generation not up to standard, and direct-connected between two interchangers Link can not just carry out the communication of data between two interchangers once disconnecting, and lead to data exception, thus data forwarding can It is low by property.
Summary of the invention
The main purpose of the present invention is to provide a kind of data packet forwarding methods, device and system, it is intended to solve existing Data packet pass-through mode is easy to appear the low technical problem of packet loss, reliability.
To achieve the above object, the present invention provides a kind of data packet forwarding method, is applied in device link aggregation group, institute State in device link aggregation group include at least two interchangers, the data packet forwarding method the following steps are included:
An interchanger is elected in the device link aggregation group as host, and by one of the host of election Peer-link mouthfuls are set as port blocked;
Bitmap negotiation is carried out, in the device link aggregation group for electing host and port blocked with the determination equipment chain The positional relationship of respective switch in the aggregation group of road;
When in source, interchanger sends data packet to the device link aggregation group, set according to preset forward mode described Upper united mouth to be produced is determined according to the positional relationship of respective switch in standby link aggregation group, by data packet from determining upper Connection mouth is forwarded in target switch.
Optionally, described that an interchanger is elected in the device link aggregation group as host, and by election One peer-link mouthfuls of host include: the step of being set as port blocked
Judge the type of the device link aggregation group;
When the device link aggregation group is to return device link aggregation group more, judge it is described more return device link aggregation group In whether there is two peer-link mouthfuls;
If so, the setting detection ring status for returning device link aggregation group, and return device link aggregation group to described more. more In all peer-link mouthfuls of broadcast detect ring status;
If receiving detection ring status packet in any one interchanger, judge whether the detection ring status packet is this exchange The detection ring status packet that machine issues;
If so, whether the inquiry detection ring status packet has failure flags;
If the detection ring status packet does not have failure flags, looped network label is stamped in the interchanger, it will be described Interchanger is as host.
Optionally, if the detection ring status packet does not have failure flags, looped network mark is stamped in the interchanger Remember, includes: using the interchanger as the step of host
If the detection ring status packet does not have failure flags, it is arranged in the interchanger and is for lesser peer-link mouthfuls of ID Port blocked;
It inquires whether the detection ring status packet seizes label, if not having, looped network mark is stamped in the interchanger Note, and using the interchanger as host;
If the detection ring status, which is surrounded by, seizes label, regularly send and be preempted packet, cancels for other interchangers and hindering Port is filled in, and stamps looped network label in the interchanger, using the interchanger as host.
Optionally, described that the step of whether the detection ring status packet is the detection ring status packet that this interchanger issues judged Later, the method also includes:
If the detection ring status packet is not the detection ring status packet that this interchanger issues, whether the interchanger is judged For non-edge switch;
If it is not, then inquiring in the detection ring status packet whether carry whether election label and the interchanger have Port blocked;
If carrying election label in the detection ring status packet, and the interchanger has port blocked, then described in cancellation The port blocked of interchanger, and will test ring status packet and be forwarded to another peer-link mouthfuls, to be received in new interchanger Detect ring status packet;
If not carrying election label and/or the interchanger in the detection ring status packet does not have port blocked, inquire Whether the priority of the detection ring status packet is smaller than the priority of the interchanger;
If so, the failure flags of the modification detection ring status packet, and will test ring status packet and be forwarded to another Peer-link mouthfuls, to receive detection ring status packet in new interchanger;
If it is not, then inquiring whether the interchanger has port blocked;
If the interchanger has port blocked, modifies in the detection ring status packet and seize label, and will test ring State packet is forwarded to another peer-link mouthfuls, to receive detection ring status packet in new interchanger.
Optionally, described that bitmap negotiation is carried out in the device link aggregation group for electing host and port blocked, with true The step of positional relationship of respective switch, includes: in the fixed device link aggregation group
Two edge switch are determined in device link aggregation group, are sent out by the first edge switch at peer-link mouthfuls Out include the bitmap message of the first edge switch message bit pattern, be forwarded to first edge switch it is adjacent the One neighboring switch;
When first neighboring switch receives bitmap message, the described first adjacent exchange is added in text of seeking ways to return sb.'s kindness in place Machine message bit pattern, and continue to forward by peer-link mouthfuls, until being forwarded to the second boundary interchanger;
The second boundary interchanger seeks ways to return sb.'s kindness add the second boundary interchanger message bit pattern in text in place, to pass through peer- Link mouthfuls feed back to the second adjacent neighboring switch of the second boundary interchanger;
Second neighboring switch updates message bit pattern according to the bitmap message that the second boundary interchanger is fed back, and passes through Peer-link mouthfuls of continuation feedback bits are sought ways to return sb.'s kindness text, until feeding back to first edge switch, for first boundary exchange Machine updates message bit pattern according to bitmap message;
According to the message bit pattern that respective switch updates, the positional relationship between respective switch is determined.
Optionally, described when source interchanger sends data packet to the device link aggregation group, according to preset forwarding Mode determines upper united mouth to be produced in the device link aggregation group according to the positional relationship of respective switch, by data Packet is forwarded to the step in target switch from determining upper united mouth and includes:
When interchanger sends data packet to the device link aggregation group in source, the forward mode of data packet is determined;
When the forward mode is equally loaded mode, by data packet equilibrium assignment into the device link aggregation group Respective switch in, to forward the packet to target switch by the upper united mouth of respective switch;
When the forward mode is local first, the interchanger of highest priority is determined, and send data packets to institute The interchanger for stating highest priority judges the interchanger of the highest priority with the presence or absence of upper united mouth, and if it exists, then by upper Connection mouth forwards the packet to target switch, if it does not exist, then other friendships of load balancing to the device link aggregation group In changing planes, target switch is forwarded the packet to the upper united mouth by other interchangers.
Optionally, the heartbeat link of the respective switch in the device link aggregation group connects at independent two layers or three layers Under interchanger, the method also includes:
When having detected direct connected link disconnection in the device link aggregation group, detect in the device link aggregation group Whether the respective switch in addition to host is connected to the direct connected link of host;
When the direct connected link for detecting interchanger and host is obstructed, the service port of the interchanger is disconnected.
In addition, to achieve the above object, the present invention also provides a kind of packet transfer device, packets, it is applied to device link and polymerize It include that at least two interchangers, the packet transfer device, packet includes: in group, in the device link aggregation group
Processing module, for electing an interchanger in the device link aggregation group as host, and will election One peer-link mouthfuls of host be set as port blocked;
Determining module, for carrying out bitmap negotiation in the device link aggregation group for electing host and port blocked, with Determine the positional relationship of respective switch in the device link aggregation group;
Forwarding module is used for when source interchanger sends data packet to the device link aggregation group, according to preset turn Hair mode determines upper united mouth to be produced in the device link aggregation group according to the positional relationship of respective switch, will count It is forwarded in target switch according to packet from determining upper united mouth.
Optionally, the heartbeat link of the respective switch in the device link aggregation group connects at independent two layers or three layers Under interchanger, the packet transfer device, packet further include:
Detection module when for having detected direct connected link disconnection in the device link aggregation group, is set described in detection Whether the respective switch in standby link aggregation group in addition to host is connected to the direct connected link of host;
Module is disconnected, for disconnecting the interchanger when the direct connected link for detecting interchanger and host is obstructed Service port.
In addition, to achieve the above object, the present invention also provides a kind of data packet forwarding system, the data packet forwarding system Including processor, memory and it is stored in the data packet retransmission process that can be run on the memory and on the processor, The step of data packet retransmission process realizes data packet forwarding method as described above when being executed by the processor.
Data packet forwarding method proposed by the present invention elects an interchanger as master in device link aggregation group Machine, and be set as port blocked for one peer-link mouthfuls of the host of election is electing host and port blocked later Bitmap negotiation is carried out in device link aggregation group, with the positional relationship of respective switch in the determination device link aggregation group, Finally when source interchanger sends data packet to the device link aggregation group, according to preset forward mode in the equipment chain Upper united mouth to be produced is determined according to the positional relationship of respective switch in the aggregation group of road, by data packet from determining upper united mouth It is forwarded in target switch.Device link aggregation group in the present invention includes at least two interchangers, can there is more friendships The phenomenon that changing planes and forward data, preventing data packetloss generation, and more interchangers by direct connected link form a looped network or Chain type topology, even if there is an exchange fault, the direct connected link of other interchangers can still be communicated, and improve data forwarding Reliability.
Detailed description of the invention
Fig. 1 is the system structure diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of data packet forwarding method first embodiment of the present invention;
Fig. 3 is the refinement flow diagram of step S20 in Fig. 2;
Fig. 4 is the schematic diagram of a scenario that respective switch carries out bitmap negotiation;
Fig. 5 is the refinement flow diagram of step S30 in Fig. 2;
Fig. 6 is the scene figure that the present invention carries out data forwarding;
Fig. 7 is the program module schematic diagram of packet transfer device, packet first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The solution of the embodiment of the present invention is mainly: an interchanger is elected in device link aggregation group as master Machine, and be set as port blocked for one peer-link mouthfuls of the host of election is electing host and port blocked later Bitmap negotiation is carried out in device link aggregation group, with the positional relationship of respective switch in the determination device link aggregation group, Finally when source interchanger sends data packet to the device link aggregation group, according to preset forward mode in the equipment chain Upper united mouth to be produced is determined according to the positional relationship of respective switch in the aggregation group of road, by data packet from determining upper united mouth It is forwarded in target switch.To solve existing data packet pass-through mode, it is easy to appear the low technology of packet loss, reliability and asks Topic.
Technical term introduction and English in the present embodiment are explained
Link aggregation: Ethernet link clustering Eth-Trunk abbreviation link aggregation, it ties a plurality of Ethernet physical link Being held together becomes a logical links, to realize the purpose for increasing link bandwidth.Meanwhile these links for bundling By mutual dynamic backup, the reliability of link can be effectively improved.
M-LAG:M-LAG (Multichassis Link Aggregation Group, striding equipment link aggregation group) is One equipment and other two equipment are carried out striding equipment link aggregation by a kind of mechanism for realizing striding equipment link aggregation, thus Link reliability device level has been increased to from single-plate grade.
M-LAG Group ID: it is mainly used for the pairing disposed between M-LAG equipment, the interface shape between M-LAG equipment State, the synchronizing informations such as list item need to rely on M-LAG agreement and synchronize.
M-LAG host: deployment M-LAG and state based on interchanger, active and standby chosen according to M-LAG priority.
M-LAG standby host: disposing M-LAG and state is standby interchanger.The role of M-LAG Group divide into advocate peace it is standby, Under normal circumstances, host and standby host carry out the forwarding of service traffics simultaneously, and forwarding behavior is not different, only under fault scenes, The behavior of standby machine has difference.
Peer-link (direct connected link) link: peer-link link is used to exchange negotiation packet and hop flow, After interface is configured to peer-link interface, other business cannot be reconfigured on the interface.
Peer-link interface: the direct-connected interface of peer-link both link ends is peer-link interface.
Keepalive Link: heartbeat link carries heartbeat data packets, and main function is to carry out double main detections. Keepalive link and peer-link are different both links, and effect is also different, under normal circumstances, keepalive Link cannot participate in any forwarding behavior of M-LAG, only under fault scenes, double main situations occurs for checking whether.
MDM-LAG agreement: (Multiple evices Multichassis Link Aggregation Group, i.e., it is more Equipment M-LAG agreement), it is one of present invention proprietary protocol, between the M-LAG group that 2 to 200 equipment forms It holds consultation and synchronous two layers or three layer protocols.
Edge switch: only 1 port peer-link heartbeat is alive and the mouth is not ring_block (ring block) State.
Bitmap information (message bit pattern): storing M-LAG priority, mac (Media Access Control or Medium Access Control, physical address, hardware address), port number, member port negotiation state etc., which can Extension.
As shown in Figure 1, Fig. 1 is the knot of the data packet forwarding system for the hardware running environment that the embodiment of the present invention is related to Structure schematic diagram.
The data packet forwarding system of the embodiment of the present invention can be PC, portable computer, be also possible to server, virtual machine The equipment such as equipment.
As shown in Figure 1, the data packet forwarding system may include: processor 1001, such as CPU, communication bus 1002 is used Family interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the company between these components Connect letter.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), can be selected Family interface 1003 can also include wireline interface (such as connecting wired keyboard, wire mouse etc.), the wireless interface of standard (such as connecting Wireless Keyboard, wireless mouse).Network interface 1004 optionally may include that the wireline interface of standard (is used for Connect cable network), wireless interface (such as WI-FI interface, for connecting wireless network).Memory 1005 can be high-speed RAM Memory is also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 can The storage device that can also be independently of aforementioned processor 1001 of choosing.
It will be understood by those skilled in the art that the not structure paired data packet of data packet forwarding system structure shown in Fig. 1 The restriction of repeater system may include perhaps combining certain components or different components than illustrating more or fewer components Arrangement.
As shown in Figure 1, as may include operating system, net in a kind of memory 1005 of computer readable storage medium Network communication module, Subscriber Interface Module SIM and data packet retransmission process.Wherein, operating system is to manage and control data packet forwarding The program of system and software resource supports network communication module, Subscriber Interface Module SIM, data packet retransmission process and other programs Or the operation of software;Network communication module is for managing and controlling network interface 1004;Subscriber Interface Module SIM is for managing and controlling User interface 1003 processed.
In data packet forwarding system shown in Fig. 1, the data packet forwarding system calls storage by processor 1001 The data packet retransmission process stored in device 1005, the step of to realize data packet forwarding method described below.
Based on the hardware configuration of above-mentioned data packet forwarding system, each implementation of data packet forwarding method of the present invention is proposed Example.
It is the flow diagram of data packet forwarding method first embodiment of the present invention referring to Fig. 2, Fig. 2.
In the present embodiment, the data packet forwarding method the following steps are included:
Step S10 elects an interchanger as host in the device link aggregation group, and by the host of election One peer-link mouthfuls be set as port blocked;
Step S20 carries out bitmap negotiation, in the device link aggregation group for electing host and port blocked to determine State the positional relationship of respective switch in device link aggregation group;
Step S30, when interchanger sends data packet to the device link aggregation group in source, according to preset forward mode Upper united mouth to be produced is determined according to the positional relationship of respective switch in the device link aggregation group, by data packet from Determining upper united mouth is forwarded in target switch.
In the present embodiment, the data packet forwarding method is applied in device link aggregation group, and the device link is poly- It include at least two interchangers in being combined, interchanger forms a looped network by direct connected link, or can form 3 chain of stations formulas and open up It flutters.
Each step of data packet forwarding method is done step-by-step in the present embodiment described in detail below:
Step S10 elects an interchanger as host in the device link aggregation group, and by the host of election One peer-link mouthfuls be set as port blocked, wherein the port blocked is used to forward the protocol massages of detection loop;
It should be noted that more interchangers may be made into the topology on peer-link choma road, because more interchangers can The topology on peer-link choma road can be made into, thus MDM-LAG negotiation before, can first judge peer-link link whether be Loop.That is, first judging whether direct connected link is loop in device link aggregation group, if detecting, direct connected link is loop, Execute the operation that host and determining port blocked are elected in device link aggregation group.
In the present embodiment, when detecting loop, an interchanger can be elected as host, and by the host One peer-link mouthfuls be arranged to ring-block (port blocked) mode, it should be appreciated that the port blocked not forwarding service number According to packet, only forwarding is used for a kind of MDM-LAG protocol massages of detection loop, other are such as STP (Spanning Tree Protocol, Spanning-Tree Protocol) etc. looped networks agreement also do not forward, avoid interference MDM-LAG normal operation.
Specifically, the embodiment of the step S10 includes:
1) mode one, the step S10 include:
Step a, judge the type of the device link aggregation group;
Step b, when the device link aggregation group is to return device link aggregation group more, judge it is described more return device link It whether there is two peer-link mouthfuls in aggregation group;
Step c, if it is not, then broadcasting broken ring packet, and bitmap negotiation mode is switched to, to execute subsequent step S20;
Step d, if so, the detection ring status of device link aggregation group are returned in setting more, and return device link to described more All peer-link mouthfuls of broadcast in aggregation group detect ring status;
If step e, received in any one interchanger detection ring status packet, judge the detection ring status packet whether be The detection ring status packet that this interchanger issues;
Step f, if so, whether the inquiry detection ring status packet has failure flags;
If step g, the described detection ring status is surrounded by failure flags, looped network label is stamped in the interchanger, and will The interchanger is as host;
If step h, the described detection ring status packet does not have failure flags, looped network mark can be directly stamped in the interchanger Note, using the interchanger as host.
Further, in order to improve the accuracy of data packet forwarding method, the step h includes:
The lesser peer- of ID in the interchanger is arranged if the detection ring status packet does not have failure flags in step h1 Link mouthfuls are port blocked;
Step h2, it inquires whether the detection ring status packet seizes label, if not having, is stamped in the interchanger Looped network label, and using the interchanger as host;
If step h3, the described detection ring status, which is surrounded by, seizes label, regularly sends and be preempted packet, for other interchangers Cancel port blocked, and stamp looped network label in the interchanger, using the interchanger as host.
In the present embodiment, when the detection ring status packet does not have failure flags, can continue to detection ring status packet It is analyzed, to prevent other interchangers to be also equipped with port blocked, avoiding the occurrence of multiple blocking interfaces leads to subsequent data Packet forwarding mistake.
2) after mode two, the step e, the step S10 further include:
If step i, the described detection ring status packet is not the detection ring status packet that this interchanger issues, the exchange is judged Whether machine is non-edge switch;
Step j, if so, broadcasting broken ring packet, and will test ring status packet and be forwarded to another peer-link mouthfuls, with Detection ring status packet is received in new interchanger, that is, returns to step e;
Step k, election label and the interchanger whether are carried if it is not, then inquiring in the detection ring status packet Whether port blocked is had;
If carrying election label in step l, the described detection ring status packet, and the interchanger has port blocked, then takes Disappear the port blocked of the interchanger, and will test ring status packet and be forwarded to another peer-link mouthfuls, in new interchanger Middle reception detects ring status packet, that is, returns to step e;
If not carrying election label and/or the interchanger in step m, the described detection ring status packet does not have port blocked, Whether the priority for then inquiring the detection ring status packet is smaller than the priority of the interchanger;
Step n, if so, modifying the failure flags of the detection ring status packet, and it will test ring status packet and be forwarded to separately One peer-link mouthfuls, to receive detection ring status packet in new interchanger, that is, return to step e;
Step o, if it is not, then inquiring whether the interchanger has port blocked;
If step p, the described interchanger has port blocked, the label of seizing in the detection ring status packet is modified, and will Detection ring status packet is forwarded to another peer-link mouthfuls, to receive detection ring status packet in new interchanger, that is, returns to step Rapid e.
By aforesaid operations, host can be elected in the device link aggregation group, and determines the obstruction end of host Mouthful.
Step S20 carries out bitmap negotiation, in the device link aggregation group for electing host and port blocked to determine State the positional relationship of respective switch in device link aggregation group;
Host is elected in the device link aggregation group, and after the port blocked of determining host, is electing master Bitmap negotiation is carried out in the device link aggregation group of machine and port blocked, to further determine that each friendship in device link aggregation group Positional relationship between changing planes, specifically, reference Fig. 3, the step S20 include:
Step S21 determines two edge switch, by the first edge switch in peer- in device link aggregation group Link mouthfuls issue the bitmap message comprising the first edge switch message bit pattern, to be forwarded to first edge switch The first adjacent neighboring switch;
Step S22 adds described first in text of seeking ways to return sb.'s kindness in place when first neighboring switch receives bitmap message Neighboring switch message bit pattern, and continue to forward by peer-link mouthfuls, until being forwarded to the second boundary interchanger;
Step S23, the second boundary interchanger seek ways to return sb.'s kindness add the second boundary interchanger message bit pattern in text in place, with logical It crosses peer-link mouthfuls and feeds back to the second adjacent neighboring switch of the second boundary interchanger;
Step S24, the second neighboring switch update message bit pattern according to the bitmap message that the second boundary interchanger is fed back, and It is sought ways to return sb.'s kindness text by peer-link mouthfuls of continuation feedback bits, until feeding back to first edge switch, for first boundary Interchanger updates message bit pattern according to bitmap message;
Step S25 determines the positional relationship between respective switch according to the message bit pattern that respective switch updates.
That is, two edge switch are determined in device link aggregation group, then from edge switch to neighboring switch It sends bitmap message (bitmap packet), in the present embodiment, can be two edge switch and send position to neighboring switch simultaneously It seeks ways to return sb.'s kindness text, also optional is that one of edge switch to neighboring switch sends bitmap message, the present embodiment, with the first boundary For interchanger initiates bitmap message,
Before sending bitmap message, the message bit pattern of oneself is filled out inside the first text of seeking ways to return sb.'s kindness in place of the first edge switch, Such as mac, mlag priority, is then sent to the first neighboring switch by peer-link mouthfuls, and the first neighboring switch receives It is sought ways to return sb.'s kindness after text in place, adds the message bit pattern of oneself later, then be forwarded to next phase by another peer-link mouthfuls Adjacent interchanger is sought ways to return sb.'s kindness in place by the second boundary interchanger until being transmitted to the second boundary interchanger and adds the bitmap of oneself in text Information.Later, the second boundary interchanger feeds back bitmap message, to feed back to the first side by intermediate respective switch In boundary's interchanger.Specifically, it when each interchanger receives the bitmap message of feedback, is first inquired in the bitmap message received Whether oneself mac information is had, if so, whether inquired in the database of oneself again has the newest message bit pattern of bitmap message, If no, the newest message bit pattern of the bitmap message received to be updated to the database for arriving oneself, and continue to feed back to next In interchanger, until feeding back in the first edge switch, the first edge switch updates message bit pattern according to bitmap message.It Afterwards, the message bit pattern updated according to respective switch, that is, can determine the positional relationship between respective switch.To be clearer to understand The present embodiment, can refer to Fig. 4, and sw1 to sw4 indicates interchanger.
Further, in order to improve the accuracy of data packet forwarding, after the step S25, the method also includes:
Step A, the priority in message bit pattern updated according to respective switch redefine host, and will again really Port blocked is used as lesser peer-link mouthfuls of ID in fixed host.
That is, after the message bit pattern of respective switch updates in device link aggregation group, due in message bit pattern Priority it can also happen that change, therefore according to respective switch update message bit pattern in priority, redefine master Machine, and it is used as port blocked by lesser peer-link mouthfuls of ID in the host redefined, data are continued to execute so as to subsequent Packet repeating process.
Step S30, when interchanger sends data packet to the device link aggregation group in source, according to preset forward mode Upper united mouth to be produced is determined according to the positional relationship of respective switch in the device link aggregation group, by data packet from Determining upper united mouth is forwarded in target switch.
Specifically, include: referring to Fig. 5, the step S30
Step S31 determines the forwarding mould of data packet when interchanger sends data packet to the device link aggregation group in source Formula;
Step S32, when the forward mode is equally loaded mode, by data packet equilibrium assignment to the device link In respective switch in aggregation group, to forward the packet to target switch by the upper united mouth of respective switch;
Step S33 determines the interchanger of highest priority when the forward mode is local first, and by data packet It is sent to the interchanger of the highest priority, judges the interchanger of the highest priority with the presence or absence of upper united mouth, and if it exists, Target switch is then forwarded the packet to by upper united mouth, if it does not exist, then load balancing to the device link aggregation group Other interchangers in, target switch is forwarded the packet to the upper united mouth by other interchangers.
It should be understood that the synchronization between equipment is more complicated and all because of 2 interchangers of the MDM-LAG compared to M-LAG For STP and link aggregation, a MDM-LAG group is an equipment in logic, so every equipment will be known entirely The information such as the location diagram of all devices and mac, modid (module identity, identification module) in MDM-LAG group. Modid is forwarded for data packet, because the interchanger in MDM-LAG group is an interchanger in logic, is exchanged when every When machine has 1 unique modid, as long as the modid of data packet and the machine that interchanger is received from MDM-LAG member port It is inconsistent, corresponding interchanger is just forwarded to up according to bitmap, then turning for the packet is carried out by the interchanger that modid is equal to itself Hair.
In the present embodiment, under MDM-LAG mode, 2 kinds of forward modes is provided based on modid, are load balancing respectively And local first, load balancing are to be hash to message according to selected algorithm types, the result that obtains respectively balancedly from The upper united mouth of all devices forwards.Local first refers to that flow is preferentially forwarded from the machine upper united mouth, and no upper united mouth is then Load balancing is to other interchangers.
The data packet forwarding method that the present embodiment proposes elects an interchanger as master in device link aggregation group Machine, and be set as port blocked for one peer-link mouthfuls of the host of election is electing host and port blocked later Bitmap negotiation is carried out in device link aggregation group, with the positional relationship of respective switch in the determination device link aggregation group, Finally when source interchanger sends data packet to the device link aggregation group, according to preset forward mode in the equipment chain Upper united mouth to be produced is determined according to the positional relationship of respective switch in the aggregation group of road, by data packet from determining upper united mouth It is forwarded in target switch.Device link aggregation group in the present invention includes at least two interchangers, can there is more friendships The phenomenon that changing planes and forward data, preventing data packetloss generation, and more interchangers by direct connected link form a looped network or Chain type topology, even if there is an exchange fault, the direct connected link of other interchangers can still be communicated, and improve data forwarding Reliability.
Further, the second embodiment of data packet forwarding method of the present invention is proposed based on first embodiment.
The difference of the first embodiment of the second embodiment and data packet forwarding method of data packet forwarding method is, described The heartbeat link of respective switch in device link aggregation group connects under independent two layers or three-tier switch, and the method is also Include:
When having detected direct connected link disconnection in the device link aggregation group, it is poly- to detect the device link by step B It is combined whether the respective switch in addition to host is connected to the direct connected link of host;
Step C disconnects the business end of the interchanger when the direct connected link for detecting interchanger and host is obstructed Mouthful.
It should be noted that existing data packet repeating process, for peer-link once disconnecting, active and standby can not synchronize mac Information and user data package, the problem of thus causing, have very much, are illustrated with concrete scene;For example, device link aggregation group packet Two interchangers of two sw2 and sw3 are included, sw2 and sw3 are connect with sw1, by sw1 by the data forwarding of PC1, PC2 and PC3 to sw2 And sw3.Assuming that the direct connected link between current sw2 and sw3 disconnects, if also having met PC4 on other mouths of sw2, that is from internet It may be returned on sw3 back to being surrounded by for PC4, and data packet can not be transmitted to sw2 by peer-link at this time by sw3.It presses It is exactly that sw3 (standby host) judges that host is also survived by keep-alive again after peer-link exception according to the way of the prior art In the case where, peer-link will be just removed on standby host, other mouthful of whole except keep-alive is broken, and guarantees the business of host Normally.
And in the present embodiment, when returning scene more, the heartbeat link of the respective switch in the device link aggregation group It connects under independent two layers or three-tier switch, as shown in fig. 6, the heartbeat link (keep-alive) of sw1-sw5 all receives In sw8.After being disconnected due to some peer-link, the interchanger that will lead to the peer-link the right and left can not communicate and turn Hair, thus after exception we need the interchanger on the entire one side peer-link all disconnect functional area (except keep-alive and All mouths other than peer-link).Since standby host has more, so according to the keep-alive connection of dual homed, many standby hosts exist Peer-link disconnect after just can not aware host whether survive.In the present embodiment, the method that MDM-LAG is used is by keep- Alive connects under one independent two layers or three-tier switch, 1 to 2 keep-alive mouthfuls is supported, to guarantee keep-alive The reliability (agreeing to also support for keep-alive mouthfuls to fit on management mouth) of itself.
To be best understood from, as shown in fig. 6, priority of the host according to user configuration, having selected sw4 becomes host, when After peer-link between sw2-sw3 is disconnected, all interchangers all detect that host is survived, and then detect the machine and host Peer-link whether be also connected to, the only standby host obstructed with the host service port that just disconnects oneself, so, in Fig. 6 Sw1, sw2 will disconnect service port, and all of sw3, sw4, sw5 remain normal.
In the present embodiment, by the detection to direct connected link, to disconnect the business of interchanger when direct connected link disconnects Port prevents data by leading to loss of data when the interchanger, and embodiment improves the reliabilities of data packet forwarding.
In the present invention, agreement protocol is returned by MDM-LAG more, guarantees synchronization and the bitmap association of M-LAG group multiple devices The accuracy of quotient;It supports 2 or more group of switches at M-LAG group, increases the stability of M-LAG group equipment;Support peer- The deployment of link link loop, after supporting peer-link to disconnect a link, the equipment of entire M-LAG group is directly synchronous and forwards Without influence;By keep-alive link aggregation in one two layers or three layers of deployment mode, make keep-alive detection more Add accurate and flexible.
The present invention further provides a kind of packet transfer device, packets.
It is the program module schematic diagram of packet transfer device, packet first embodiment of the present invention referring to Fig. 7, Fig. 7.
In the present embodiment, it is applied in device link aggregation group, includes at least two in the device link aggregation group Interchanger, the packet transfer device, packet include:
Processing module 10, for electing an interchanger in the device link aggregation group as host, and will choosing One peer-link mouthfuls of the host of act are set as port blocked;
Determining module 20, for carrying out bitmap negotiation in the device link aggregation group for electing host and port blocked, With the positional relationship of respective switch in the determination device link aggregation group;
Forwarding module 30 is used for when source interchanger sends data packet to the device link aggregation group, according to preset Forward mode determines upper united mouth to be produced in the device link aggregation group according to the positional relationship of respective switch, will Data packet is forwarded in target switch from determining upper united mouth.
Each program module in the present embodiment described in detail below:
Processing module 10, for electing an interchanger in the device link aggregation group as host, and will choosing One peer-link mouthfuls of the host of act are set as port blocked;
It should be noted that more interchangers may be made into the topology on peer-link choma road, because more interchangers can The topology on peer-link choma road can be made into, thus MDM-LAG negotiation before, can first judge peer-link link whether be Loop.That is, first judging whether direct connected link is loop in device link aggregation group, if detecting, direct connected link is loop, Execute the operation that host and determining port blocked are elected in device link aggregation group.
In the present embodiment, when detecting loop, an interchanger can be elected as host, and by the host One peer-link mouthfuls (peer-link mouthfuls) be arranged to ring-block (port blocked) mode, it should be appreciated that the obstruction end Forwarding service data packet, forwarding are not used for a kind of MDM-LAG protocol massages of detection loop to mouth, other are such as STP (Spanning Tree Protocol, Spanning-Tree Protocol) etc. looped networks agreement also do not forward, avoid interference MDM-LAG normal operation.
Specifically, 10 embodiment of processing module includes:
1) mode one, the processing module 10 include:
Judging unit, for judging the type of the device link aggregation group;
The judging unit is also used to judge institute when the device link aggregation group is to return device link aggregation group more State return in device link aggregation group with the presence or absence of two peer-link mouthfuls more;
Processing unit is used for if it is not, broken ring packet is then broadcasted, and switch to bitmap negotiation mode, to execute subsequent determination Module 20;
The processing unit is also used to if so, the detection ring status for returning device link aggregation group are arranged more, and to described All peer-link mouthfuls of broadcast more returned in device link aggregation group detect ring status;
The judging unit judges the detection if being also used to receive detection ring status packet in any one interchanger Ring status packet whether be this interchanger issue detection ring status packet;
Query unit, for if so, whether the inquiry detection ring status packet has failure flags;
The processing unit can be directly in the interchanger if being also used to the detection ring status is surrounded by failure flags Looped network label is stamped, using the interchanger as host.
Further, in order to improve the accuracy of data packet forwarding method, the processing unit is also used to:
If the detection ring status packet does not have failure flags, it is peer-link mouthfuls lesser that ID in the interchanger is set For port blocked;
It inquires whether the detection ring status packet seizes label, if not having, looped network mark is stamped in the interchanger Note, and using the interchanger as host;
If the detection ring status, which is surrounded by, seizes label, regularly send and be preempted packet, cancels for other interchangers and hindering Port is filled in, and stamps looped network label in the interchanger, using the interchanger as host.
In the present embodiment, when the detection ring status packet does not have failure flags, can continue to detection ring status packet It is analyzed, to prevent other interchangers to be also equipped with port blocked, avoiding the occurrence of multiple blocking interfaces leads to subsequent data Packet forwarding mistake.
2) mode two, the processing module 10 further include:
The judging unit, if being also used to the detection ring status packet is not the detection ring status packet that this interchanger issues, Then judge whether the interchanger is non-edge switch;
The processing unit is also used to if so, broadcasting broken ring packet, and will test ring status packet and be forwarded to another Peer-link mouthfuls, to receive detection ring status packet in new interchanger, i.e., the inspection is judged again through the judging unit Survey ring status packet whether be this interchanger issue detection ring status packet;
The query unit is also used to whether carry election label if it is not, then inquiring in the detection ring status packet, with And whether the interchanger has port blocked;
The processing unit, if being also used to carry election label in the detection ring status packet, and the interchanger has Port blocked, then cancel the port blocked of the interchanger, and will test ring status packet and be forwarded to another peer-link mouthfuls, To receive detection ring status packet in new interchanger, i.e., judge that the detection ring status packet is again through the judging unit The no detection ring status packet issued for this interchanger;
The query unit, if being also used to not carry election label and/or the interchanger in the detection ring status packet There is no port blocked, then whether the priority for inquiring the detection ring status packet is smaller than the priority of the interchanger;
The processing unit is also used to if so, modifying the failure flags of the detection ring status packet, and will test ring-type State packet is forwarded to another peer-link mouthfuls, to receive detection ring status packet in new interchanger, i.e., sentences again through described Whether detection ring status packet described in disconnected unit judges is detection ring status packet that this interchanger issues;
The query unit is also used to if it is not, then inquiring whether the interchanger has port blocked;
The processing unit is modified in the detection ring status packet if being also used to the interchanger has port blocked Label is seized, and will test ring status packet and be forwarded to another peer-link mouthfuls, it is cyclic annular to receive detection in new interchanger State packet, i.e., again through the judging unit judge it is described detection ring status packet whether be this interchanger issue detection ring status Packet.
By aforesaid operations, host can be elected in the device link aggregation group, and determines the obstruction end of host Mouthful.
Determining module 20, for carrying out bitmap negotiation in the device link aggregation group for electing host and port blocked, With the positional relationship of respective switch in the determination device link aggregation group;
Host is elected in the device link aggregation group, and after the port blocked of determining host, is electing master Bitmap negotiation is carried out in the device link aggregation group of machine and port blocked, to further determine that each friendship in device link aggregation group Positional relationship between changing planes, specifically, the determining module 20 includes:
It determines retransmission unit, for determining two edge switch in device link aggregation group, is exchanged by the first boundary Machine issues the bitmap message comprising the first edge switch message bit pattern at peer-link mouthfuls, to be forwarded to described first The first adjacent neighboring switch of edge switch;
Retransmission unit is added, for adding in text of seeking ways to return sb.'s kindness in place when first neighboring switch receives bitmap message Add the first neighboring switch message bit pattern, and continue to forward by peer-link mouthfuls, until being forwarded to the second boundary exchange Machine;
The addition retransmission unit is also used to the second boundary interchanger and seeks ways to return sb.'s kindness in place add the second boundary exchange in text Machine message bit pattern, to feed back to the second adjacent neighboring switch of the second boundary interchanger by peer-link mouthfuls;
Feedback unit is updated, position is updated according to the bitmap message that the second boundary interchanger is fed back for the second neighboring switch Figure information, and sought ways to return sb.'s kindness text by peer-link mouthfuls of continuation feedback bits, until feeding back to first edge switch, for institute It states the first edge switch and message bit pattern is updated according to bitmap message;
First determination unit, the message bit pattern for being updated according to respective switch, determines the position between respective switch Set relationship.
The specific determination process of each unit is consistent with the method for determination in embodiment of the method in determining module 20, herein not It repeats.
Further, in order to improve data packet forwarding accuracy, described device further include:
Module is redefined, the priority in message bit pattern for being updated according to respective switch redefines host, And port blocked is used as by lesser peer-link mouthfuls of ID in the host redefined.
Forwarding module 30, when interchanger sends data packet to the device link aggregation group in source, according to preset forwarding Mode determines upper united mouth to be produced in the device link aggregation group according to the positional relationship of respective switch, by data Packet is forwarded in target switch from determining upper united mouth.
Specifically, the forwarding module 30 includes:
Second determination unit, for determining data when source interchanger sends data packet to the device link aggregation group The forward mode of packet;
Equilibrium assignment unit is used for when the forward mode is equally loaded mode, by data packet equilibrium assignment to institute It states in the respective switch in device link aggregation group, target is forwarded the packet to the upper united mouth by respective switch and is handed over It changes planes;
Processing forward unit, for determining the interchanger of highest priority when the forward mode is local first, and The interchanger for sending data packets to the highest priority judges the interchanger of the highest priority with the presence or absence of the first line of a couplet Mouthful, and if it exists, target switch is then forwarded the packet to by upper united mouth, if it does not exist, then load balancing to the equipment In other interchangers of link aggregation group, target switch is forwarded the packet to the upper united mouth by other interchangers.
The specific determination process of each unit is consistent with the method for determination in embodiment of the method in forwarding module 30, herein not It repeats.
The packet transfer device, packet that the present embodiment proposes elects an interchanger as master in device link aggregation group Machine, and be set as port blocked for one peer-link mouthfuls of the host of election is electing host and port blocked later Bitmap negotiation is carried out in device link aggregation group, with the positional relationship of respective switch in the determination device link aggregation group, Finally when source interchanger sends data packet to the device link aggregation group, according to preset forward mode in the equipment chain Upper united mouth to be produced is determined according to the positional relationship of respective switch in the aggregation group of road, by data packet from determining upper united mouth It is forwarded in target switch.Device link aggregation group in the present invention includes at least two interchangers, can there is more friendships The phenomenon that changing planes and forward data, preventing data packetloss generation, and more interchangers by direct connected link form a looped network or Chain type topology, even if there is an exchange fault, the direct connected link of other interchangers can still be communicated, and improve data forwarding Reliability.
Further, the second embodiment of packet transfer device, packet is proposed based on first embodiment, it is described in the present embodiment The heartbeat link of respective switch in device link aggregation group connects under independent two layers or three-tier switch, the data packet Retransmission unit further include:
Detection module when for having detected direct connected link disconnection in the device link aggregation group, is set described in detection Whether the respective switch in standby link aggregation group in addition to host is connected to the direct connected link of host;
Module is disconnected, for disconnecting the interchanger when the direct connected link for detecting interchanger and host is obstructed Service port.
Specific embodiment and embodiment of the method above in the present embodiment is almost the same, is not repeated herein.
In the present embodiment, by the detection to direct connected link, to disconnect the business of interchanger when direct connected link disconnects Port prevents data by leading to loss of data when the interchanger, and embodiment improves the reliabilities of data packet forwarding.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include the other elements being not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of data packet forwarding method, which is characterized in that be applied in device link aggregation group, the device link aggregation group In include at least two interchangers, the data packet forwarding method the following steps are included:
An interchanger is elected in the device link aggregation group as host, and by a peer- of the host of election Link mouthfuls are set as port blocked;
Bitmap negotiation is carried out in the device link aggregation group for electing host and port blocked, it is poly- with the determination device link It is combined the positional relationship of middle respective switch;
When in source, interchanger sends data packet to the device link aggregation group, according to preset forward mode in the equipment chain Upper united mouth to be produced is determined according to the positional relationship of respective switch in the aggregation group of road, by data packet from determining upper united mouth It is forwarded in target switch.
2. data packet forwarding method as described in claim 1, which is characterized in that described to be selected in the device link aggregation group An interchanger is enumerated as host, and the step of being set as port blocked for one peer-link mouthfuls of the host of election packet It includes:
Judge the type of the device link aggregation group;
When the device link aggregation group is to return device link aggregation group more, judge that return in device link aggregation group is more It is no that there are two peer-link mouthfuls;
If so, the setting detection ring status for returning device link aggregation group, and return in device link aggregation group to described more more All peer-link mouthfuls of broadcast detect ring status;
If receiving detection ring status packet in any one interchanger, judge whether the detection ring status packet is this interchanger hair Detection ring status packet out;
If so, whether the inquiry detection ring status packet has failure flags;
If the detection ring status packet does not have failure flags, looped network label is stamped in the interchanger, by the exchange Machine is as host.
3. data packet forwarding method as claimed in claim 2, which is characterized in that if the detection ring status packet does not lose Mark is lost, then stamps looped network label in the interchanger, includes: using the interchanger as the step of host
If the detection ring status packet does not have failure flags, it is arranged lesser peer-link mouthfuls of ID in the interchanger as obstruction Port;
It inquires whether the detection ring status packet seizes label, if not having, looped network label is stamped in the interchanger, and Using the interchanger as host;
If the detection ring status, which is surrounded by, seizes label, regularly send and be preempted packet, so that other interchangers cancel obstruction end Mouthful, and looped network label is stamped in the interchanger, using the interchanger as host.
4. data packet forwarding method as claimed in claim 2, which is characterized in that described whether to judge the detection ring status packet For this interchanger issue detection ring status packet the step of after, the method also includes:
If the detection ring status packet is not the detection ring status packet that this interchanger issues, judge whether the interchanger is non- Edge switch;
If it is not, then inquiring in the detection ring status packet whether carry whether election label and the interchanger have obstruction Port;
If carrying election label in the detection ring status packet, and the interchanger has port blocked, then cancels the exchange The port blocked of machine, and will test ring status packet and be forwarded to another peer-link mouthfuls, to receive detection in new interchanger Ring status packet;
If not carrying election label and/or the interchanger in the detection ring status packet does not have a port blocked, described in inquiry Whether the priority for detecting ring status packet is smaller than the priority of the interchanger;
If so, the failure flags of the modification detection ring status packet, and will test ring status packet and be forwarded to another peer- Link mouthfuls, to receive detection ring status packet in new interchanger;
If it is not, then inquiring whether the interchanger has port blocked;
If the interchanger has port blocked, modifies in the detection ring status packet and seize label, and will test ring status Packet is forwarded to another peer-link mouthfuls, to receive detection ring status packet in new interchanger.
5. data packet forwarding method as described in claim 1, which is characterized in that described to elect host and port blocked Bitmap negotiation is carried out in device link aggregation group, with the positional relationship of respective switch in the determination device link aggregation group Step includes:
Two edge switch are determined in device link aggregation group, are wrapped by the first edge switch in peer-link mouthfuls of sendings Bitmap message containing the first edge switch message bit pattern, to be forwarded to the first adjacent phase of first edge switch Adjacent interchanger;
When first neighboring switch receives bitmap message, first neighboring switch position is added in text of seeking ways to return sb.'s kindness in place Figure information, and continue to forward by peer-link mouthfuls, until being forwarded to the second boundary interchanger;
The second boundary interchanger seeks ways to return sb.'s kindness add the second boundary interchanger message bit pattern in text in place, to pass through peer-link Mouth feeds back to the second adjacent neighboring switch of the second boundary interchanger;
Second neighboring switch updates message bit pattern according to the bitmap message that the second boundary interchanger is fed back, and passes through peer- Link mouthfuls of continuation feedback bits are sought ways to return sb.'s kindness text, until feeding back to first edge switch, for the first edge switch root Message bit pattern is updated according to bitmap message;
According to the message bit pattern that respective switch updates, the positional relationship between respective switch is determined.
6. data packet forwarding method as described in claim 1, which is characterized in that described to send data packet to institute in source interchanger When stating device link aggregation group, according to preset forward mode according to the position of respective switch in the device link aggregation group It sets relationship and determines upper united mouth to be produced, step packet data packet being forwarded to from determining upper united mouth in target switch It includes:
When interchanger sends data packet to the device link aggregation group in source, the forward mode of data packet is determined;
It is when the forward mode is equally loaded mode, data packet equilibrium assignment is each into the device link aggregation group In a interchanger, to forward the packet to target switch by the upper united mouth of respective switch;
When the forward mode is local first, the interchanger of highest priority is determined, and send data packets to described excellent The first highest interchanger of grade judges the interchanger of the highest priority with the presence or absence of upper united mouth, and if it exists, then to pass through upper united mouth Target switch is forwarded the packet to, if it does not exist, then other interchangers of load balancing to the device link aggregation group In, target switch is forwarded the packet to the upper united mouth by other interchangers.
7. data packet forwarding method as claimed in any one of claims 1 to 6, which is characterized in that in the device link aggregation group The heartbeat link of respective switch connect under independent two layers or three-tier switch, the method also includes:
When having detected direct connected link disconnection in the device link aggregation group, detect in the device link aggregation group except master Whether the respective switch except machine is connected to the direct connected link of host;
When the direct connected link for detecting interchanger and host is obstructed, the service port of the interchanger is disconnected.
8. a kind of packet transfer device, packet, which is characterized in that be applied in device link aggregation group, the device link aggregation group In include at least two interchangers, the packet transfer device, packet include:
Processing module, for electing an interchanger in the device link aggregation group as host, and by the master of election One peer-link mouthfuls of machine are set as port blocked;
Determining module, for carrying out bitmap negotiation in the device link aggregation group for electing host and port blocked, with determination The positional relationship of respective switch in the device link aggregation group;
Forwarding module is used for when source interchanger sends data packet to the device link aggregation group, according to preset forwarding mould Formula determines upper united mouth to be produced in the device link aggregation group according to the positional relationship of respective switch, by data packet It is forwarded in target switch from determining upper united mouth.
9. packet transfer device, packet as claimed in claim 8, which is characterized in that each friendship in the device link aggregation group The heartbeat link changed planes connects under independent two layers or three-tier switch, the packet transfer device, packet further include:
Detection module detects the equipment chain when for having detected direct connected link disconnection in the device link aggregation group Whether the respective switch in the aggregation group of road in addition to host is connected to the direct connected link of host;
Module is disconnected, for disconnecting the business of the interchanger when the direct connected link for detecting interchanger and host is obstructed Port.
10. a kind of data packet forwarding system, which is characterized in that the data packet forwarding system includes processor, memory and deposits The data packet retransmission process that can be run on the memory and on the processor is stored up, the data packet retransmission process is by institute State the step of realizing the data packet forwarding method as described in any one of claims 1 to 7 when processor executes.
CN201810768616.1A 2018-07-11 2018-07-11 Data packet forwarding method, device and system Active CN108989200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810768616.1A CN108989200B (en) 2018-07-11 2018-07-11 Data packet forwarding method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810768616.1A CN108989200B (en) 2018-07-11 2018-07-11 Data packet forwarding method, device and system

Publications (2)

Publication Number Publication Date
CN108989200A true CN108989200A (en) 2018-12-11
CN108989200B CN108989200B (en) 2021-10-22

Family

ID=64537263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810768616.1A Active CN108989200B (en) 2018-07-11 2018-07-11 Data packet forwarding method, device and system

Country Status (1)

Country Link
CN (1) CN108989200B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385197A (en) * 2018-12-29 2020-07-07 中兴通讯股份有限公司 Message processing method, message processing equipment and computer storage medium
CN112769587A (en) * 2019-11-05 2021-05-07 中兴通讯股份有限公司 Forwarding method and device for access flow of dual-homing device and storage medium
WO2022262739A1 (en) * 2021-06-15 2022-12-22 中兴通讯股份有限公司 Fault processing method, switching device and storage medium
CN115567343A (en) * 2022-09-21 2023-01-03 浪潮思科网络科技有限公司 Ethernet ring network main/standby switching method, equipment and medium based on MLAG
WO2023280185A1 (en) * 2021-07-07 2023-01-12 中兴通讯股份有限公司 Cross-device link aggregation load processing method, gateway device, and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1482693A2 (en) * 2003-04-28 2004-12-01 Alcatel IP Networks, Inc. Enhanced virtual router redundancy protocol
CN101252500A (en) * 2008-04-16 2008-08-27 杭州华三通信技术有限公司 Intersect looped network, node and realizing method of random topology intersect looped network
CN102118319A (en) * 2011-04-06 2011-07-06 杭州华三通信技术有限公司 Traffic load balancing method and device
CN103166874A (en) * 2013-03-25 2013-06-19 杭州华三通信技术有限公司 Message forwarding method and device
CN104092621A (en) * 2014-07-25 2014-10-08 杭州华三通信技术有限公司 Load sharing method and device
US20150026344A1 (en) * 2013-07-22 2015-01-22 Vmware, Inc. Configuring link aggregation groups to perform load balancing in a virtual environment
CN104639437A (en) * 2013-11-14 2015-05-20 杭州华三通信技术有限公司 Forwarding method and apparatus of broadcast messages in stack system
CN104917678A (en) * 2015-06-02 2015-09-16 上海斐讯数据通信技术有限公司 SDN(software defined networking)-based link aggregation method
US20160373294A1 (en) * 2015-06-18 2016-12-22 Fortinet, Inc. Flow management in a link aggregation group system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1482693A2 (en) * 2003-04-28 2004-12-01 Alcatel IP Networks, Inc. Enhanced virtual router redundancy protocol
CN101252500A (en) * 2008-04-16 2008-08-27 杭州华三通信技术有限公司 Intersect looped network, node and realizing method of random topology intersect looped network
CN102118319A (en) * 2011-04-06 2011-07-06 杭州华三通信技术有限公司 Traffic load balancing method and device
CN103166874A (en) * 2013-03-25 2013-06-19 杭州华三通信技术有限公司 Message forwarding method and device
US20150026344A1 (en) * 2013-07-22 2015-01-22 Vmware, Inc. Configuring link aggregation groups to perform load balancing in a virtual environment
CN104639437A (en) * 2013-11-14 2015-05-20 杭州华三通信技术有限公司 Forwarding method and apparatus of broadcast messages in stack system
CN104092621A (en) * 2014-07-25 2014-10-08 杭州华三通信技术有限公司 Load sharing method and device
CN104917678A (en) * 2015-06-02 2015-09-16 上海斐讯数据通信技术有限公司 SDN(software defined networking)-based link aggregation method
US20160373294A1 (en) * 2015-06-18 2016-12-22 Fortinet, Inc. Flow management in a link aggregation group system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TONY JEFFREE 等: "Link Aggregation Control Protocol", 《IEEE802.3AD》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111385197A (en) * 2018-12-29 2020-07-07 中兴通讯股份有限公司 Message processing method, message processing equipment and computer storage medium
CN111385197B (en) * 2018-12-29 2022-09-13 中兴通讯股份有限公司 Message processing method, message processing equipment and computer storage medium
CN112769587A (en) * 2019-11-05 2021-05-07 中兴通讯股份有限公司 Forwarding method and device for access flow of dual-homing device and storage medium
WO2021088808A1 (en) * 2019-11-05 2021-05-14 中兴通讯股份有限公司 Method for dual-homing device access traffic forwarding, device, and storage medium
CN112769587B (en) * 2019-11-05 2024-05-14 中兴通讯股份有限公司 Forwarding method, equipment and storage medium for access traffic of dual homing device
WO2022262739A1 (en) * 2021-06-15 2022-12-22 中兴通讯股份有限公司 Fault processing method, switching device and storage medium
WO2023280185A1 (en) * 2021-07-07 2023-01-12 中兴通讯股份有限公司 Cross-device link aggregation load processing method, gateway device, and system
CN115567343A (en) * 2022-09-21 2023-01-03 浪潮思科网络科技有限公司 Ethernet ring network main/standby switching method, equipment and medium based on MLAG
CN115567343B (en) * 2022-09-21 2024-04-16 浪潮思科网络科技有限公司 Ethernet main/standby switching method, equipment and medium based on MLAG

Also Published As

Publication number Publication date
CN108989200B (en) 2021-10-22

Similar Documents

Publication Publication Date Title
CN108989200A (en) data packet forwarding method, device and system
US9648662B2 (en) Bluetooth networking
US8817593B2 (en) Method and apparatus providing failover for a point to point tunnel for wireless local area network split-plane environments
CN107733793B (en) Forwarding table item maintenance method and device
US9858163B2 (en) Dual adjacency between edge devices at a network site
CN110417569B (en) Network link fault processing method and tunnel endpoint equipment
CN102035676B (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
EP2533475B1 (en) Method and system for host route reachability in packet transport network access ring
CN104023006B (en) Multi-path transmission system and method based on application layer relaying
US20140254347A1 (en) Ethernet Ring Protection Switching Method, Node, and System
US9515927B2 (en) System and method for layer 3 proxy routing
GB2483563A (en) Dual homing connection of access network to transport network
CN1980230A (en) Method for managing VRRP group
CN101521895A (en) Forwarding method used for constructing multi-hop routing in wireless self-organizing network
WO2018171529A1 (en) Method, device and computer storage medium for implementing double control plane
CN105162704A (en) Multicast replication method and device in Overlay network
US8446818B2 (en) Routed split multi-link trunking resiliency for wireless local area network split-plane environments
JP2004260262A (en) Radio base station apparatus and inter-network interface apparatus
JP2013026829A (en) Transmission system and control method of transmission system
CN107682261B (en) Flow forwarding method and device
US11558286B2 (en) Wireless control and fabric links for high-availability cluster nodes
CN101729361B (en) Method and device for processing message
CN102355402A (en) Method, system and router for establishing LSP (Label Switched Path) based on VPN (Virtual Private Network) route
CN104702478A (en) Virtual route forwarding instance handling method and virtual routing forward instance handling device
CN102938732A (en) Method and device for improving double-tunnel reliability

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