[go: up one dir, main page]

CN106059946A - Message forwarding method and message forwarding device - Google Patents

Message forwarding method and message forwarding device Download PDF

Info

Publication number
CN106059946A
CN106059946A CN201610351755.5A CN201610351755A CN106059946A CN 106059946 A CN106059946 A CN 106059946A CN 201610351755 A CN201610351755 A CN 201610351755A CN 106059946 A CN106059946 A CN 106059946A
Authority
CN
China
Prior art keywords
address
access device
message
target device
virtual
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
CN201610351755.5A
Other languages
Chinese (zh)
Other versions
CN106059946B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201610351755.5A priority Critical patent/CN106059946B/en
Publication of CN106059946A publication Critical patent/CN106059946A/en
Application granted granted Critical
Publication of CN106059946B publication Critical patent/CN106059946B/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/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • 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 application provides a message forwarding method and a message forwarding device. The method comprises the following steps: when receiving a target message, getting a destination address included in the target message, wherein the destination address is used to represent the address of access equipment connected with target equipment; if the destination address is the virtual address of pre-configured virtual access equipment, decapsulating the target message to get the address of the target equipment included in the target message; and sending the target message to the target equipment via a forwarding port according to the corresponding relation between the address of the target equipment and the forwarding port in a local forwarding table. Load sharing between equipment in cross-equipment link aggregation is realized without occupying equipment port interconnection.

Description

A kind of message forwarding method and device
Technical field
The application relates to network technology, particularly to a kind of message forwarding method and device.
Background technology
Along with the fast development of network technology, the operation of Network needs the higher network bandwidth, and if bought more Change the business board supporting high bandwidth, operating cost will be significantly increased;Link aggregation technology can realize above-mentioned with relatively low cost Improve the purpose of bandwidth.Total bandwidth after link aggregation is the bandwidth sum of each Member Link, can meet network bandwidth need Ask, and link backup between each Member Link, can also be formed.Wherein, in the link aggregation of striding equipment, in order to respectively Carry out the load balancing of service traffics between the link of individual member device, need between member device to be interconnected by link, So service traffics can be by this inter-connection links load traffic between each member device.But in this mode, equipment is mutual Connection will take device port resource, and then cannot meet other business aspect demands to port resource, such as, be connect by equipment The quantity of the server or main frame that enter network will reduce.
Summary of the invention
In view of this, the application provides a kind of message forwarding method and device, with in the feelings being not take up device port interconnection Under condition, it is achieved the equipment room load balancing in striding equipment link aggregation.
Specifically, the application is achieved by the following technical solution:
First aspect, it is provided that a kind of message forwarding method, described method is for being forwarded to the target report that target device sends Literary composition, described target device connects multiple access device respectively, and the plurality of access device is configured to link aggregation group, configuration void Intend access device, as the connection intermediary of each access device in described target device and link aggregation group;Described method by Described access device performs, including:
When receiving described object message, obtain the destination address that described object message includes, described destination address For representing the access device address that target device connects;
If described destination address is the virtual address of pre-configured described virtual access device, then decapsulate described target report Literary composition, obtains the address of the described target device that described object message includes;
Address according to the target device in local forward table and the corresponding relation forwarding port, by described object message by Described forwarding port is sent to described target device.
Second aspect, it is provided that a kind of apparatus for forwarding message, described device is applied to access device so that described access device It is forwarded to the object message that target device sends;Described target device connects multiple access device, and the plurality of access respectively Equipment is configured to link aggregation group;Also configure that virtual access device, as each in described target device and link aggregation group The connection intermediary of access device;Described device includes:
Target determination module, for when receiving described object message, obtains the purpose that described object message includes Address, described destination address is for representing the access device address that target device connects;
Address acquisition module, at described destination address being the virtual address of pre-configured described virtual access device Time, then decapsulate described object message, obtain the address of the described target device that described object message includes;
Packet forwarding module, for the address according to the target device in local forward table and the corresponding pass forwarding port System, is sent to described target device by described object message by described forwarding port.
The application provide message forwarding method and device, by configure virtual access device as target device and each The connection intermediary of access device so that purpose VTEP that message sends can be set as that this virtual access sets when message forwards Standby, such that it is able to flow is shared at the link that each access device is corresponding, it is achieved that to be not take up device port interconnection In the case of, the equipment room load balancing in striding equipment link aggregation.
Accompanying drawing explanation
Fig. 1 is a kind of schematic diagram forwarding network shown in the application one exemplary embodiment;
Fig. 2 is a kind of virtual access device shown in the application one exemplary embodiment and the annexation of access device is shown It is intended to;
Fig. 3 is the flow process that a kind of access device shown in the application one exemplary embodiment issues route;
Fig. 4 is the flow process of a kind of message repeating process shown in the application one exemplary embodiment;
Fig. 5 is that route during a kind of link failure shown in the application one exemplary embodiment redistributes flow process;
Fig. 6 is the structure chart of a kind of apparatus for forwarding message shown in the application one exemplary embodiment;
Fig. 7 is the structure chart of the another kind of apparatus for forwarding message shown in the application one exemplary embodiment;
Fig. 8 is the structure chart of a kind of message forwarding equipment shown in the application one exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they are only with the most appended The example of the apparatus and method that some aspects that described in detail in claims, the application are consistent.
Fig. 1 illustrates one and forwards network 100, and this forwarding network 100 may be used for the message between forwarding network appliance. Such as, the network equipment a shown in Fig. 1, to network equipment e, can be the equipment such as main frame, server, when network equipment e is to network When equipment b sends message, this message can forward by forwarding network 100.In the application, this forwarding network 100 is permissible It it is VXLAN network.
Forward in network and can include access device and forwarding unit.Wherein, access device may be used for connecting main frame, clothes The network equipments such as business device, such as, leaf 1 to the leaf4 in Fig. 1 is all access device, and network equipment a to network equipment e connects Under these leaf;Further, can need not to take device port between each leaf equipment in the disclosure, to carry out link mutual Connection, can be controlled the transmission of information by underlay IP between equipment.Forwarding unit can include the spine in Fig. 1 5 and spine 6, link interconnection between this forwarding unit and each access device, and coordinated message to forward with access device. Above-mentioned leaf 1 to leaf4 or spine 5 and spine 6, is all located at the edge of VXLAN network, is equivalent to VXLAN net VTEP (VXLAN Tunneling End Point, VXLAN tunneling termination) in network.Set additionally, Fig. 1 illustrates part access Standby, forwarding unit and the network equipment, in actual network environment, the quantity of these equipment can be more.
Continuing with seeing Fig. 1, as a example by the network equipment is as main frame, main frame b is connected with Leaf1 and leaf2 respectively, can be by The both links that main frame b with Leaf1 and leaf2 is connected is configured to the link aggregation group of striding equipment, with by this link aggregation group Realize the load balancing of the flow corresponding to main frame b.Such as, when there being network traffics (such as, main frame e sends message to main frame b) When sending to main frame b, these network traffics both can be by the link transmission between main frame b and Leaf1 to main frame b, it is also possible to By the link transmission between main frame b and leaf2 to main frame b, it is achieved the load balancing of flow.
The message forwarding method of disclosure embodiment, does not carry out port by each equipment that description is worked as in link aggregation group mutual During connection, how to realize the traffic sharing of the link aggregation group of striding equipment when E-Packeting.In description below, with main frame b As a example by the link aggregation group of the link composition being connected with Leaf1 and leaf2, describe main frame e and send the forwarded over of message to main frame b Journey.
As it is shown in figure 1, can be link aggregation group one virtual access device Leaf7 of configuration corresponding for main frame b, should Leaf7 may refer to Fig. 2 with the annexation of main frame b, leaf1, Leaf2.Leaf7 be as main frame b Yu leaf1, Leaf2 it Between connection intermediary, such as, in actual physical connection, main frame b is directly to be connected with Leaf1 and leaf2, but can be virtual Connect leaf7, leaf7 for: main frame b to connect leaf1 and Leaf2, i.e. message respectively and can be transmitted to leaf7 by Leaf1, then by Leaf7 is forwarded to main frame b.Certainly, this be the virtual transmission process corresponding with the virtual architecture of Fig. 2, actually message be direct Sent to main frame b by Leaf1.
Through the configuration of the virtual access device Leaf7 shown in Fig. 2, Lea1 and Leaf2 is to forwarding network such as VXLAN When network issues routing iinformation, this Leaf7 of replacement is issued route so that other equipment in network think that this Leaf7 is true Real storage exists, and Leaf7 thinks the VTEP of a necessary being;Further, Fig. 2, when issuing route, also can be shown by Lea1 and Leaf2 The virtual annexation of meaning is issued so that other equipment of network think Leaf7 be as main frame b Yu leaf1 or The connection intermediary of leaf2, and according to this annexation encapsulated message and determine message forwarding path.
Before the message performing the application forwards, access device such as Leaf1 or Leaf2 can be in VXLAN network Issue routing iinformation, to carry out follow-up message repeating process according to this routing iinformation.Fig. 3 illustrates access device and issues route Process, but in this Fig. 3, do not limit the execution sequence of each step:
In step 301, Lea1 and Leaf2 issues the first routing iinformation.
First routing iinformation of this step, the route that " first " therein is only intended to subsequent descriptions distinguishes, and does not has There are other limited significances.In this example, the first routing iinformation is for representing access device and the relation of virtual access device, example As, the neighborhood of Leaf1 Yu leaf7 can be represented.The issue of this first routing iinformation, so that the VXLAN shown in Fig. 1 In network, as the record automatically found between each Leaf or spine of VTEP with neighborhood, for follow-up Message forwards.
This first routing iinformation may include that destination address and corresponding next hop address.Wherein, destination address is to issue The address of the access device of this first routing iinformation, next hop address is the address of virtual access device leaf7, in this example, The address of Leaf7 can be referred to as virtual address.
Such as, as a example by leaf1, the first routing iinformation that leaf1 issues may include that destination address is the IP of leaf7 Address, next hop address is the IP address of leaf1.Additionally, Leaf2 also can issue the first routing iinformation, the road that this leaf2 issues In by, destination address is still the address of leaf7, and the most corresponding next hop address is the address of leaf2.
The route of this step is issued, and does not limit used route distribution protocol, it is, for example possible to use BGP (Border Gateway Protocol, Border Gateway Protocol) issue routing iinformation;Further, routing iinformation can also including, other do not arrange The information lifted.
In step 302, other equipment in network are forwarded to receive and store this first routing iinformation.
Such as, after the leaf 4 in Fig. 1 receives the first routing iinformation that leaf1 in step 301 issues, by storage this One routing iinformation;The address of leaf1, the address of leaf7 and the neighborhood of Leaf7 and leaf1 can be recorded.
Issued by above-mentioned route, forward other equipment in network, such as, leaf 4, spine5 etc., all can think Leaf7 is the equipment of a necessary being, similar with leaf1 and leaf2, is all the VTEP in network, and also obtains If the neighborhood between leaf7 and leaf1, leaf2 is it is known that Leaf7 to be arrived, can go to through Leaf1 or Leaf2 Leaf7.Through issuing route, the neighborhood between address and the Leaf of each leaf in VXLAN network, all at network In synchronized, may be used for subsequent packet forward VXLAN network in path searching.
In step 303, the address information of Lea1 and Leaf2 Receiving Host b.
Such as, main frame b, after reaching the standard grade, can send host address to Leaf1, and this address includes the IP address of this main frame b And MAC Address.Leaf2 can also receive this address.
Moreover, it is assumed that the port of the address of leaf1 Receiving Host b is P2, then represent that main frame b is connected to the end of leaf1 Mouthful P2, has message to send will to be sent to main frame b by this port P2 to main frame b, Leaf1 if follow-up, and P2 is permissible for this port It is referred to as the forwarding port of respective hosts b.
Leaf 1 can forward to the message of main frame b for follow-up with the address of storage host b.Leaf1 can be in this locality The IP table information relevant with storage host b in MAC table, table 1 below and table 2 respectively illustrate MAC table and the IP of Leaf1 Table, the MAC table of leaf2 is similar with Leaf1 with the record of IP table, no longer describes in detail.
The MAC table of table 1Leaf 1
MAC VXLAN Port/VTEP IP
MAC a P1
MAC b P2
MAC c P3
MAC d IP2
MAC e IP4
As shown in table 1, leaf 1 have recorded main frame b corresponding for MAC b, and corresponding port is local port P2, will Message is sent by local port P2 just can arrive main frame b;And main frame e, according to Fig. 1 it will be seen that the VTEP at this main frame e place Being Leaf 4, the IP address of therefore corresponding for the MAC Address of main frame e i.e. MAC e VTEP is the IP address " IP4 " of leaf 4.
It should be noted that in above-mentioned table 1 and follow-up table, use MAC a to MAC e to represent and correspond respectively to The MAC Address of main frame a to main frame e, uses IP a to IP e to represent the IP address corresponding respectively to main frame a to main frame e, in like manner, Use IP1 to IP7 represents the IP ground of each VTEP (including Leaf and spine) of the VXLAN network corresponded respectively in Fig. 1 Location, use MAC1 to MAC7 represents the MAC Address of each VTEP of the VXLAN network corresponded respectively in Fig. 1.
The IP table of table 2Leaf 1
IP VRF Port/VTEP IP Next Hop
IP a P1 MAC a
IP b P2 MAC b
IP c P3 MAC c
IP d IP2 MAC 2
IP e IP4 MAC 4
In step 304, Lea1 and Leaf2 issues secondary route information, to notify that main frame b is connected to virtual access device Under Leaf7.
Such as, in this step, Lea1 and Leaf2 can issue secondary route information, and secondary route information is used for representing mesh Marking device and the relation of virtual access device, such as, this target device is main frame b, when main frame e sends message to main frame b, This main frame b is the target device that this message forwards;By this step, the relation of leaf7 with main frame b can be released, Show that the VTEP that main frame b is connected is leaf7.
This secondary route information includes: destination address and corresponding next hop address, wherein, destination address is target device The i.e. address of main frame b, next hop address is the virtual address of virtual access device.Such as, the address of main frame b can include main frame The IP address of b and MAC Address, the virtual address of virtual access device can be IP address and the MAC Address of Leaf7.
This example does not limit route and issues the agreement used, and such as can use MP-BGP.
In step 305, other equipment in network are forwarded to receive and store secondary route information.
Such as, after the leaf 4 secondary route information in receiving step 304, can be at local IP table and MAC table In record these information, can record the VTEP that main frame b connected is leaf7.
The MAC table of table 3Leaf 4
Shown in table 3 described above, leaf 4 can record the VTEP corresponding for MAC b of main frame b in local MAC table IP is IP7, i.e. the VTEP at main frame b place is leaf 7.Additionally, VTEP corresponding to main frame c is also Leaf7, can be in conjunction with seeing Fig. 1, can be the main frame c link configuration link aggregation that connects leaf 1 and leaf 2 respectively, and leaf 7 is also configured as making For the connection intermediary of main frame c Yu leaf 1 and leaf 2, in the present example, be described as a example by main frame b, main frame c in like manner, no Describe in detail again.
Leaf 4 can also record the IP address of main frame b, the IP address of leaf7 and MAC Address in the IP table of its this locality Corresponding relation, shown in table 4 below:
The IP table of table 4Leaf 4
IP VRF Port/VTEP IP Next Hop
IP a IP1 MAC 1
IP b IP7 MAC 7
IP c IP7 MAC 7
IP d IP2 MAC 2
IP e P1 MAC 4
By the issue of the secondary route information of the first routing iinformation shown in Fig. 3, each equipment in VXLAN network is The stored information that have recorded each VTEP and neighborhood, and also have recorded the address information of the main frame being connected under leaf And the corresponding relation of main frame and place VTEP, these information will be used for message and forward.
Fig. 4 by main frame e, is described the flow process that message forwards, and is forwarded by this message as a example by main frame b sends message Process, it is achieved that the load balancing of the link aggregation group corresponding to main frame b.Wherein, in the present example, the report can being forwarded Literary composition is referred to as object message, and the main frame b receiving this object message is referred to as target device.As shown in Figure 4, can include locating as follows Reason:
In step 401, Leaf4 is when receiving the message that main frame e mails to main frame b, and encapsulating this message is VXLAN report Literary composition.
Such as, Leaf4 can be when receiving the message that main frame e mails to main frame b, it is thus achieved that purpose MAC that this message mails to Address is MAC b.Leaf4 can look into the MAC table of this locality, and the VTEP IP of corresponding MAC b is IP7, i.e. the VTEP at main frame b place It is Leaf7;Leaf4 can also look into local IP table and obtain MAC7.Leaf4 can seal according to the above-mentioned address information tabled look-up and obtain Dress VXLAN message i.e. object message, may include that the MAC Address of main frame b, the IP address of Leaf7 and MAC in this object message Address.
In step 402, object message is sent to VXLAN network and forwards by Leaf4.
In this step, the forwarding unit in VXLAN network, can be according to the route recorded in the flow process shown in Fig. 3 Information, forwards object message.Wherein, for the message sent to main frame b, can obtain according to routing iinformation, message can have Two paths arrive main frame b, and a paths is that message is sent to leaf1, Leaf1 E-Packet to leaf 7, then by Leaf7 sends message to main frame b (for other equipment outside leaf 1 and leaf 2, it is believed that leaf 7 is necessary being The VTEP equipment that main frame b connects);Another paths is that message is sent to leaf2, Leaf2 E-Packet to leaf 7, Again by Leaf7 transmission message to main frame b.So, forwarding unit can be sent out by selecting a wherein paths in above-mentioned two paths Delivering newspaper literary composition, this example of algorithm of Path selection does not limits, the description of subsequent step, have selected transmission message to leaf1's As a example by path.
In step 403, leaf 1, when receiving object message, obtains the destination address in this object message, this mesh Address for representing the access device address that target device connects.
In this step, the destination address that object message includes, is the IP address of the VTEP that main frame b is connected, this example In the IP address ip 7 of i.e. Leaf7.
In step 404, leaf 1 is when determining the virtual address that destination address is pre-configured virtual access device, then Decapsulate this object message, it is thus achieved that the address of the target device in message.
Such as, after leaf 1 obtains IP7 in step 403 it is known that this be pre-configured virtual access device virtually Location, i.e. the IP address of leaf 7, then terminate this message in this locality, message is carried out VXLAN decapsulation, obtains what message included The address MAC b of target device main frame b.
In step 405, leaf 1 searches local forward table, forwards the packet to main frame b.
Such as, Leaf1 searches local forward table MAC table, and obtaining local forwarding port corresponding for MAC b is P2, by target Message is sent arrival main frame b by port P2.
Additionally, in above-mentioned flow process, as a example by message is forwarded to main frame b via Leaf1, at actual message repeating process In, the flow mailing to main frame b can be shared on the link that leaf1 with Leaf2 is corresponding, and part of message mails to Leaf1 Arriving main frame b, another part message mails to leaf2 and arrives main frame b.
In the message forwarding method of the disclosure, by a virtual connection intermediary as target device and access device Virtual access device so that message forward time, the destination address of message will be the virtual address of this virtual access device, and Arrive the mulitpath that each access device that this virtual access device exists in link aggregation group is corresponding, at routing forwarding message Time, the flow mailing to target device can be shared on this mulitpath, thus pass through the negative of route implementing mulitpath Carrying equilibrium, this load balancing mode is by route implementing during message forwards, and is therefore no longer necessary to link aggregation Devices interconnect in group, such as, need not take port and carries out link connection between Leaf1 and Leaf2 shown in Fig. 1, thus Save the port resource of access device, so that device port obtains the most sufficiently utilizing.
In another example, in the link aggregation group of striding equipment, there may be part of links and break down, such as, main Machine b connects in the link aggregation of leaf1 and leaf2, it is assumed that the link failure between main frame b and Leaf2, then main frame b is permissible The link failure of notice leaf1 oneself and Leaf2, to trigger the Leaf1 address information to forwarding network renewal main frame b, to protect The normal forwarding of card flow.
Route when Fig. 5 illustrates aggregation group link fault redistributes flow process:
In step 501, Leaf1 receives the failure notification that target device sends, and this failure notification is gathered for notifying link Part of links fault in charge-coupled.
Such as, during link failure between main frame b and Leaf2, main frame b can send failure notification, notice to Leaf1 Link failure between Leaf1 main frame b and Leaf2.
In step 502, Leaf1 issue update after secondary route information, including next hop address be access Equipment self.
Such as, leaf1, after the link failure obtained between main frame b and Leaf2, can change the VTEP that main frame b connects Being leaf 1 self, this is involved in the renewal of secondary route information, and secondary route information is i.e. used for representing that target device connects Under which VTEP.
Leaf1 issues the secondary route information after updating, and the secondary route information after this renewal may include that destination address With corresponding next hop address, wherein, destination address is the address of target device main frame b, and next hop address is the ground of Leaf1 Location.In this manner it is possible to make other equipment in network determine the VTEP at main frame b place be Leaf1 (before not updating, other Equipment thinks that the VTEP that main frame b is connected is Leaf7).
In step 503, the secondary route information after other equipment storage renewal of network is forwarded.
Such as, after leaf 4 receives the secondary route information after the renewal that leaf1 issues, the MAC of this locality can be revised Table and IP table, changed to Leaf1 by the VTEP at main frame b place by Leaf7, and two following tables illustrate leaf4 according to renewal After the amendment that local IP table and MAC table are made of secondary route information.Furthermore, it is necessary to explanation, spine5 and spine6 IP table and the MAC table of its this locality is revised equally Deng other equipment.
The MAC table of table 5Leaf 4
MAC VXLAN Port/VTEP IP
MAC b IP1
The IP table of table 6Leaf 4
IP VRF Port/VTEP IP Next Hop
IP b IP1 MAC 1
After above-mentioned amendment, if the main frame e under Leaf4 sends message to main frame b again, then Leaf4 is searching During local mac table, the VTEP that can be connected as main frame b by leaf 1, the information such as IP address of encapsulation leaf1 enters object message. And the forwarding unit in VXLAN network, when forwarding object message according to routing iinformation, the path arriving main frame b only has leaf 1 one paths, because of according to update after route, main frame b is only connected under Leaf1, thus without forward the packet to Leaf2, it is ensured that message will not be sent on faulty link.
By above-mentioned troubleshooting it will be seen that during link failure in link aggregation group, can be by again sending out Cloth routing iinformation, releases void machine access device, the access device that notice main frame truly connects, and thereby may be ensured that flow will not It is sent to faulty link so that this message forwards safe and reliable.
Additionally, relative to the striding equipment link aggregation in traditional approach, the link aggregation group in disclosure example, not only set Need not between Bei take port links interconnection, save port resource, and stream can be switched when link failure timely Amount path, it is ensured that flow will not be sent to faulty link, and in the link aggregation of traditional approach, flow is still when link failure Faulty link may be sent to, be such as sent on the leaf2 that faulty link is corresponding, in addition it is also necessary to rely on equipment room inter-connection links circuitous Capacity of returns is on Leaf1 corresponding to normal link, and it is roundabout that the method for disclosure example will not produce this flow, thus also accelerates The forward efficiency of message.
Corresponding with the embodiment of aforementioned message forwarding method, present invention also provides the embodiment of apparatus for forwarding message. Fig. 6 illustrates the structure of a kind of apparatus for forwarding message, and this device is applied to access device so that access device is forwarded to target and sets The object message that preparation is sent;Target device connects multiple access device respectively, and multiple access device is configured to link aggregation group; Each access device in described target device and link aggregation group is additionally configured to, and connects virtual access device respectively, with by mesh Marking device is virtual with the connection of access device is as connecting intermediary by described virtual access device;Described device includes: mesh Mark determines module 61, address acquisition module 62 and packet forwarding module 63.
Target determination module 61, for when receiving described object message, obtains the mesh that described object message includes Address, described destination address is for representing the access device address that target device connects;
Address acquisition module 62, at described destination address being the virtual address of pre-configured described virtual access device Time, then decapsulate described object message, obtain the address of the described target device that described object message includes;
Packet forwarding module 63, for the address according to the target device in local forward table and the corresponding pass forwarding port System, is sent to described target device by described object message by described forwarding port.
Fig. 7 illustrates the structure of another kind of apparatus for forwarding message, and this apparatus for forwarding message is on the basis of structure shown in Fig. 6 On, it is also possible to including: the first via is by release module 64, and for issuing the first routing iinformation, described first routing iinformation includes: mesh Address and the next hop address of correspondence, described destination address is the virtual address of described virtual access device, described down hop Address is the address of described access device.
In another example, this device can also include: secondary route release module 65, is used for issuing secondary route letter Breath, described secondary route information includes: destination address and the next hop address of correspondence, and described destination address is described target device Address, described next hop address is the virtual address of described virtual access device.
In one example, secondary route release module 65, it is additionally operable to receiving the fault that described target device sends During notice, issuing the secondary route information after updating, the secondary route information after described renewal includes: destination address and correspondence Next hop address, described destination address is the address of described target device, and described next hop address is the ground of described access device Location;Described failure notification is for notifying the part of links fault in described link aggregation group.
The embodiment of the application apparatus for forwarding message can be applied on message forwarding equipment, and such as, this message forwards and sets Standby can be the Leaf in the VXLAN network shown in Fig. 1.Device embodiment can be realized by software, it is also possible to passes through hardware Or the mode of software and hardware combining realizes.As a example by implemented in software, as the device on a logical meaning, it is by its place Computer program instructions corresponding in nonvolatile memory is read operation shape in internal memory by the processor of message forwarding equipment Become.For hardware view, as shown in Figure 8, the one for the message forwarding equipment at the application apparatus for forwarding message place is hard Part structure chart, in addition to the processor 81 shown in Fig. 8, internal memory 82, network interface 83 and nonvolatile memory 84, real Execute in example the message forwarding equipment at device place generally according to the actual functional capability of this message forwarding equipment, it is also possible to include that other are hard Part, repeats no more this.
In said apparatus, the function of unit and the process that realizes of effect specifically refer to corresponding step in said method Realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees method in fact The part executing example illustrates.Device embodiment described above is only schematically, wherein said as separating component The unit illustrated can be or may not be physically separate, and the parts shown as unit can be or can also It not physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can be according to reality Need to select some or all of module therein to realize the purpose of the application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, i.e. it is appreciated that and implements.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all essences in the application Within god and principle, any modification, equivalent substitution and improvement etc. done, should be included within the scope of the application protection.

Claims (8)

1. a message forwarding method, described method is for being forwarded to the object message that target device sends, described target device Connect multiple access device respectively, and the plurality of access device is configured to link aggregation group, it is characterised in that configure virtual connecing Enter equipment, as the connection intermediary of each access device in described target device and link aggregation group;Described method is by described Access device performs, including:
When receiving described object message, obtaining the destination address that described object message includes, described destination address is used for Represent the access device address that target device connects;
If described destination address is the virtual address of pre-configured described virtual access device, then decapsulate described object message, Obtain the address of the described target device that described object message includes;
Address according to the target device in local forward table and the corresponding relation forwarding port, by described object message by described Port is forwarded to be sent to described target device.
Method the most according to claim 1, it is characterised in that before receiving described object message, described method is also Including:
Issuing the first routing iinformation, described first routing iinformation includes: destination address and the next hop address of correspondence, described purpose Address is the virtual address of described virtual access device, and described next hop address is the address of described access device.
Method the most according to claim 1, it is characterised in that before receiving described object message, described method is also Including:
Issuing secondary route information, described secondary route information includes: destination address and the next hop address of correspondence, described purpose Address is the address of described target device, and described next hop address is the virtual address of described virtual access device.
Method the most according to claim 3, it is characterised in that described method also includes:
Receiving the failure notification that described target device sends, described failure notification is for notifying the part in described link aggregation group Link failure;
Issuing the secondary route information after updating, the secondary route information after described renewal includes: under destination address and correspondence One jumps address, and described destination address is the address of described target device, and described next hop address is the address of described access device.
5. an apparatus for forwarding message, it is characterised in that described device is applied to access device so that described access device forwards The object message sent to target device;Described target device connects multiple access device, and the plurality of access device respectively It is configured to link aggregation group;Also configure that virtual access device, access as each in described target device and link aggregation group The connection intermediary of equipment;Described device includes:
Target determination module, for when receiving described object message, obtains the destination address that described object message includes, Described destination address is for representing the access device address that target device connects;
Address acquisition module, is used for when the virtual address that described destination address is pre-configured described virtual access device, then Decapsulate described object message, obtain the address of the described target device that described object message includes;
Packet forwarding module, for the address according to the target device in local forward table and the corresponding relation forwarding port, will Described object message is sent to described target device by described forwarding port.
Device the most according to claim 5, it is characterised in that described device also includes:
The first via is by release module, and for issuing the first routing iinformation, described first routing iinformation includes: destination address and correspondence Next hop address, described destination address is the virtual address of described virtual access device, described next hop address be described in connect Enter the address of equipment.
Device the most according to claim 5, it is characterised in that described device also includes:
Secondary route release module, is used for issuing secondary route information, and described secondary route information includes: destination address and correspondence Next hop address, described destination address is the address of described target device, and described next hop address is that described virtual access sets Standby virtual address.
Device the most according to claim 7, it is characterised in that
Described secondary route release module, is additionally operable to, when receiving the failure notification that described target device sends, issue and update After secondary route information, the secondary route information after described renewal includes: destination address and the next hop address of correspondence, described Destination address is the address of described target device, and described next hop address is the address of described access device;Described failure notification For notifying the part of links fault in described link aggregation group.
CN201610351755.5A 2016-05-23 2016-05-23 Message forwarding method and device Active CN106059946B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610351755.5A CN106059946B (en) 2016-05-23 2016-05-23 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610351755.5A CN106059946B (en) 2016-05-23 2016-05-23 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN106059946A true CN106059946A (en) 2016-10-26
CN106059946B CN106059946B (en) 2019-12-06

Family

ID=57175170

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610351755.5A Active CN106059946B (en) 2016-05-23 2016-05-23 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN106059946B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547402A (en) * 2017-07-19 2018-01-05 新华三技术有限公司 A kind of forwarding table generation method and device
CN107612808A (en) * 2017-09-13 2018-01-19 新华三技术有限公司 Tunnel establishing method and device
CN108234305A (en) * 2016-12-22 2018-06-29 上海诺基亚贝尔股份有限公司 A kind of control method and equipment of across machine frame link redundancy protection
CN109768909A (en) * 2019-03-26 2019-05-17 杭州迪普科技股份有限公司 Message forwarding method and device
EP3627775A4 (en) * 2017-06-26 2020-05-06 New H3C Technologies Co., Ltd. SYNCHRONIZATION OF ITINERARY
CN112333098A (en) * 2020-10-29 2021-02-05 杭州迪普科技股份有限公司 Message forwarding method and device between service board cards
CN114500007A (en) * 2022-01-07 2022-05-13 成都市联洲国际技术有限公司 Implementation method, device, storage medium and terminal equipment of MACsec in M-LAG system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103841028A (en) * 2014-03-24 2014-06-04 杭州华三通信技术有限公司 Method and device for forwarding messages
CN104378297A (en) * 2013-08-15 2015-02-25 杭州华三通信技术有限公司 Message forwarding method and device
CN104660508A (en) * 2013-11-25 2015-05-27 华为技术有限公司 Message forwarding method and device
CN105490957A (en) * 2014-10-11 2016-04-13 华为技术有限公司 A load sharing method and device
WO2016101591A1 (en) * 2014-12-22 2016-06-30 华为技术有限公司 Packet response method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378297A (en) * 2013-08-15 2015-02-25 杭州华三通信技术有限公司 Message forwarding method and device
CN104660508A (en) * 2013-11-25 2015-05-27 华为技术有限公司 Message forwarding method and device
CN103841028A (en) * 2014-03-24 2014-06-04 杭州华三通信技术有限公司 Method and device for forwarding messages
CN105490957A (en) * 2014-10-11 2016-04-13 华为技术有限公司 A load sharing method and device
WO2016101591A1 (en) * 2014-12-22 2016-06-30 华为技术有限公司 Packet response method and apparatus

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108234305A (en) * 2016-12-22 2018-06-29 上海诺基亚贝尔股份有限公司 A kind of control method and equipment of across machine frame link redundancy protection
EP3627775A4 (en) * 2017-06-26 2020-05-06 New H3C Technologies Co., Ltd. SYNCHRONIZATION OF ITINERARY
US11177979B2 (en) 2017-06-26 2021-11-16 New H3C Technologies Co., Ltd. Synchronizing route
CN107547402A (en) * 2017-07-19 2018-01-05 新华三技术有限公司 A kind of forwarding table generation method and device
CN107547402B (en) * 2017-07-19 2020-04-03 新华三技术有限公司 Forwarding table generation method and device
CN107612808A (en) * 2017-09-13 2018-01-19 新华三技术有限公司 Tunnel establishing method and device
CN109768909A (en) * 2019-03-26 2019-05-17 杭州迪普科技股份有限公司 Message forwarding method and device
CN109768909B (en) * 2019-03-26 2021-04-27 杭州迪普科技股份有限公司 Message forwarding method and device
CN112333098A (en) * 2020-10-29 2021-02-05 杭州迪普科技股份有限公司 Message forwarding method and device between service board cards
CN112333098B (en) * 2020-10-29 2022-11-25 杭州迪普科技股份有限公司 Message forwarding method and device between service board cards
CN114500007A (en) * 2022-01-07 2022-05-13 成都市联洲国际技术有限公司 Implementation method, device, storage medium and terminal equipment of MACsec in M-LAG system
CN114500007B (en) * 2022-01-07 2023-12-22 成都市联洲国际技术有限公司 Method, device, medium and equipment for realizing MACsec in M-LAG system

Also Published As

Publication number Publication date
CN106059946B (en) 2019-12-06

Similar Documents

Publication Publication Date Title
CN106059946A (en) Message forwarding method and message forwarding device
CN107819677B (en) Message forwarding method and device
CN107431642B (en) System and method for controlling a switch to capture and monitor network traffic
US10659358B2 (en) Method and apparatus for advanced statistics collection
US8948181B2 (en) System and method for optimizing next-hop table space in a dual-homed network environment
CN102843286B (en) Implementation method, and system of virtual routers
US7039720B2 (en) Dense virtual router packet switching
KR101460848B1 (en) Method and apparatus for implementing and managing virtual switches
KR102113749B1 (en) System and method for routing traffic between distinct infiniband subnets based on source routing
CN102710432B (en) System and method for managing virtual network in cloud computation data center
TWI461032B (en) Computer system and communication method in computer system
JP3748216B2 (en) Packet transfer method and packet transmitter / receiver
US20040034702A1 (en) Method and apparatus for exchanging intra-domain routing information between VPN sites
WO2002059719A2 (en) Network device virtual interface
CN103856398A (en) Virtual Trunking Over Physical Links
CN105324964A (en) Systems and methods for supporting multihomed fat tree routing in a middleware machine environment
WO2014101723A1 (en) Associating internet protocol (ip) addresses with ethernet virtualisation interconnection (evi) links
CN107094110A (en) A kind of DHCP message retransmission method and device
CN106878136A (en) A kind of message forwarding method and device
CN110311860A (en) Multi-link load balance method and device under VXLAN
CN108141392A (en) Method and device for pseudowire load sharing
CN112822097A (en) Packet forwarding method, first network device, and first device group
CN110351135A (en) Method for configuring network equipment and device in more DC
EP3018866A1 (en) Signaling aliasing capability in data centers
CN101370009A (en) Construction Method of Virtual Network Block Framework Based on Linux Kernel Network Subsystem

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant