CN110061898B - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN110061898B
CN110061898B CN201910351688.0A CN201910351688A CN110061898B CN 110061898 B CN110061898 B CN 110061898B CN 201910351688 A CN201910351688 A CN 201910351688A CN 110061898 B CN110061898 B CN 110061898B
Authority
CN
China
Prior art keywords
tunnel
neighbor
vxlan
equipment
attribute
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.)
Active
Application number
CN201910351688.0A
Other languages
Chinese (zh)
Other versions
CN110061898A (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 CN201910351688.0A priority Critical patent/CN110061898B/en
Publication of CN110061898A publication Critical patent/CN110061898A/en
Application granted granted Critical
Publication of CN110061898B publication Critical patent/CN110061898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/18Loop-free operations
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a message forwarding method and device. The method comprises the following steps: when the broadcast message is forwarded to the neighbor equipment, if the number of tunnel ports of the VXLAN tunnel established by the equipment and the neighbor equipment is more than 1, selecting a specified tunnel port from the tunnel ports of all VXLAN tunnels established by the equipment and the neighbor equipment; and forwarding the broadcast message to the neighbor equipment through the selected specified tunnel port. Therefore, the broadcast message can be prevented from being circularly forwarded for many times between the device and the neighbor device, and the user experience is improved.

Description

Message forwarding method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for forwarding a packet.
Background
VXLAN (Virtual eXtensible Virtual local area network) is a two-layer VPN technology based on IP networks, using the "MAC in UDP" encapsulation form. VXLAN can provide two-layer interconnection for dispersed physical sites based on existing service provider or enterprise IP networks and can provide service isolation for different tenants.
In the related art, in an IP network, in a networking environment where a plurality of VXLAN tunnels are provided between two network devices, when a broadcast message is forwarded between the two network devices, the plurality of VXLAN tunnels are simultaneously used for forwarding the broadcast message, because the plurality of VXLAN tunnels in the network form a loop, a message forwarded by one tunnel may appear in the forwarding process, and the message may be forwarded back again through other tunnels forwarding the message, so that the broadcast message may be repeatedly and circularly forwarded between the two network devices, until the number of devices passing through the broadcast message reaches a preset value, the broadcast message may be stopped from being forwarded, and the process additionally occupies a large amount of network bandwidth, resulting in poor user experience.
Disclosure of Invention
In view of this, the present application provides a message forwarding method and apparatus, so as to improve user experience.
Specifically, the method is realized through the following technical scheme:
in a first aspect, an embodiment of the present application provides a packet forwarding method, which is applied to a network device, and the method includes:
when a broadcast message is forwarded to a neighbor device, if the number of tunnel ports of an extensible virtual local area network VXLAN tunnel established by the device and the neighbor device is found to be more than 1, selecting a specified tunnel port from the tunnel ports of all VXLAN tunnels established by the device and the neighbor device;
and forwarding the broadcast message to the neighbor equipment through the selected specified tunnel port.
In a second aspect, an embodiment of the present invention provides a packet forwarding apparatus, which is applied to a network device, and includes:
the device comprises a selecting module, a sending module and a receiving module, wherein the selecting module is used for selecting a specified tunnel port from tunnel ports of all VXLAN tunnels established by the device and neighbor equipment if the number of the tunnel ports of the VXLAN tunnels established by the device and the neighbor equipment is more than 1 when the broadcast message is forwarded to the neighbor equipment;
and the forwarding module is used for forwarding the broadcast message to the neighbor equipment through the selected specified tunnel port.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the program to implement the steps of the method according to the first aspect.
In the message forwarding method provided in the embodiment of the present application, when a network device forwards a broadcast message to a neighboring device, if the number of tunnel ports of VXLAN tunnels established between the network device and the neighboring device is greater than 1, a specified tunnel port is selected from the tunnel ports of all VXLAN tunnels established between the network device and the neighboring device to forward the broadcast message like the neighboring device. Compared with the mode that the broadcast message is forwarded to the neighbor device through the VXLAN tunnels between the two devices in the prior art, the method avoids the broadcast message being circularly forwarded between the two devices for many times, and has the positive effect of improving user experience.
Drawings
Fig. 1 is a schematic view of an application scenario of a message forwarding method according to an exemplary embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a message forwarding method according to an exemplary embodiment of the present application;
fig. 3 is a flowchart illustrating a method for establishing a VXLAN tunnel according to an exemplary embodiment of the present application;
fig. 4 is a schematic structural diagram of a message forwarding apparatus according to an exemplary embodiment of the present application;
fig. 5 is a schematic structural diagram of a computer device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In a networking environment in which a plurality of VXLAN tunnels are arranged between two network devices, when the broadcast message is forwarded through the plurality of VXLAN tunnels simultaneously, the broadcast message is circularly forwarded between the two network devices for multiple times due to the fact that the plurality of VXLAN tunnels in the network can form a loop, bandwidth is additionally occupied, and user experience is reduced. Based on this, the embodiment of the application provides a message forwarding method and device.
Fig. 1 is a schematic view illustrating an application scenario of a packet forwarding method according to an embodiment of the present application. Referring to fig. 1, after receiving the broadcast packet, the first network device 10 forwards the broadcast packet to the neighbor device 20 that establishes VXLAN tunnel connection with the first network device through the VXLAN tunnel, where the number of the neighbor devices 20 may be multiple (only one neighbor device is illustrated in the figure). In this application, after the network device 10 establishes VXLAN Tunnel connection with the neighbor device 20 (in the figure, three VXLAN tunnels, Tunnel 0, Tunnel 1, and Tunnel 2 are taken as an example), the network device forwards the received broadcast packet to the neighbor device through the selected designated VXLAN Tunnel. The network device and the neighbor device may be a switch, a virtual machine, a host, and the like.
Fig. 2 is a flowchart illustrating a message forwarding method according to an embodiment of the present application. Referring to fig. 2, the method is applied to a network device, and the method for forwarding a packet includes the following steps:
s101, when a broadcast message is forwarded to a neighbor device, if the number of tunnel ports of VXLAN tunnels established between the device and the neighbor device is found to be more than 1, selecting a specified tunnel port from the tunnel ports of all VXLAN tunnels established between the device and the neighbor device.
Optionally, after establishing VXLAN tunnel connection with a neighboring device, a mapping relationship table of a tunnel interface may be stored in the network device, where the mapping relationship table includes: the identifier of the tunnel interface of the network device is equal to the identifier of the tunnel interface of the neighbor device. The identification of the tunnel interface of the neighbor device comprises the identification of the neighbor device and the IP address of the tunnel interface. And then the network device can look up the tunnel interface of the VXLAN tunnel established with the neighbor device in the network device from the mapping relation table according to the identification of the neighbor device.
S102, the broadcast message is forwarded to the neighbor equipment through the selected appointed tunnel port.
In this embodiment, after receiving a broadcast packet, when forwarding the broadcast packet to a neighboring device, if it is found that the number of tunnel ports of VXLAN tunnels established between the network device and the neighboring device is greater than 1, a specified tunnel port is selected, and the broadcast packet is forwarded to the neighboring device through the selected tunnel port. Because the network equipment forwards the tunnel of the broadcast message through the selected specified tunnel port, the message is not forwarded through all tunnel ports established with the neighbor equipment, and then the neighbor equipment receives the broadcast message, the broadcast message cannot be forwarded back through other VXLAN tunnels, and according to the horizontal segmentation principle, the broadcast message cannot be continuously forwarded back from the original VXLAN tunnel, and finally the broadcast message can be only forwarded to the neighbor equipment in a single direction, so that the broadcast message is prevented from being circularly forwarded between the network equipment and the neighbor equipment, the additional occupation of bandwidth is avoided, and the user experience is improved.
In an optional embodiment of the present application, the method further includes the following step a 10:
step a10, if the number of tunnel ports of the VXLAN tunnel established by the device and the neighboring device is found to be 1, forwarding the broadcast packet to the neighboring device through the tunnel ports of the VXLAN tunnel established by the device and the neighboring device.
Furthermore, in this embodiment, when the number of tunnel ports of the VXLAN tunnel established between the network device and the neighboring device is 1, the network device forwards the broadcast packet to the neighboring device through the tunnel port.
In this embodiment, before forwarding the broadcast packet to the neighbor device, the network device first needs to establish a VXLAN tunnel between the network device and the neighbor device locally.
Fig. 3 is a flowchart illustrating a method for establishing a VXLAN tunnel according to an embodiment of the present application. Referring to fig. 3, in this embodiment, the process of establishing a tunnel includes the following steps S301 to 304:
s301, receiving a VXLAN tunnel establishment request message sent by the neighbor device, wherein the VXLAN tunnel establishment request message carries the device identifier of the neighbor device.
When a VXLAN tunnel between a network device and a neighbor network device is created, the neighbor device sends a VXLAN tunnel establishment request message to the network device, and the message carries an identifier of the neighbor device.
S302, according to the device identification, whether the device establishes a VXLAN tunnel with the neighbor device is checked.
The network device is provided with a device identification database for storing the identification of the neighbor device which has established the VXLAN tunnel, and then the network device can judge whether the device has established the VXLAN tunnel with the neighbor device by searching whether the device identification database of the device stores the device identification carried in the VXLAN tunnel establishment request message after receiving the VXLAN tunnel establishment request message.
S303, if not, establishing a VXLAN tunnel with the neighbor equipment, and setting a first attribute for a tunnel port of the VXLAN tunnel, wherein the first attribute is used for indicating to forward the broadcast message.
S304, if yes, continuing to establish a VXLAN tunnel with the neighbor equipment, and setting a second attribute for the tunnel port of the VXLAN tunnel, wherein the second attribute is used for indicating that the broadcast message is forbidden to be forwarded.
Furthermore, in this embodiment, when a VXLAN tunnel is established locally with a neighboring device, the tunnel port of the established first VXLAN tunnel is designated as a tunnel port for forwarding a broadcast packet to the neighboring device; and other VXLAN tunnels established with the neighbor equipment are set to forbid the broadcast message from being forwarded to the neighbor equipment.
In this embodiment, in the step S102, selecting a specified tunnel portal from the tunnel portals of all VXLAN tunnels established between the local device and the neighboring device specifically includes:
and selecting the tunnel port with the first attribute from the tunnel ports of all VXLAN tunnels established between the device and the neighbor device as a specified tunnel port.
In this embodiment, the network device selects a tunnel portal with a first attribute set from tunnel portals of all VXLAN tunnels established between the network device and the neighboring device as an assigned tunnel portal, and forwards a broadcast packet to the neighboring device through the tunnel portal; and then carry on the retransmission of the broadcast message through using single VXLAN tunnel presumed, because there is no VXLAN tunnel used for retransmitting the broadcast message between apparatus of network and neighbour's apparatus, and then neighbour's apparatus after receiving the broadcast message, the broadcast message will not be retransmitted back to the broadcast message through other VXLAN tunnels, prevented the broadcast message from retransmitting in circulation between apparatus of network and neighbour's apparatus, has avoided the extra occupation to the bandwidth, has promoted user experience.
In another embodiment of the present application, before forwarding the broadcast packet to the neighbor device, the following steps B10-B20 are further included:
step B10, receiving a configuration instruction; the configuration instruction is used for appointing a tunnel port to forward the broadcast message when the number of the tunnel ports of the VXLAN tunnel established by the equipment and the neighbor equipment is more than 1.
In this embodiment, a tunnel port for forwarding the broadcast packet may be manually designated by an operator in a manner of inputting a configuration instruction.
Step B20, setting a third attribute for a tunnel port established by the present device and the neighbor device according to the configuration instruction, wherein the third attribute is used for indicating to send a broadcast message.
In this embodiment, in the step S101, the selecting one of the tunnel portals from all the tunnel portals of the VXLAN tunnel between the local device and the neighboring device specifically includes:
and selecting the tunnel port with the third attribute from the tunnel ports of all VXLAN tunnels between the equipment and the neighbor equipment as the designated tunnel port.
Furthermore, in this embodiment, when the number of tunnel ports corresponding to the neighbor device locally exists in the device is greater than 1, one tunnel port specified by the user may be used as a tunnel port for forwarding the broadcast packet to the neighbor device.
Optionally, the priority of the tunnel portal with the third attribute may be set to be the highest, and when the tunnel portal specified by the user is not the tunnel portal with the first attribute, the tunnel portal specified by the user may be preferentially selected to forward the broadcast packet to the neighboring device.
Corresponding to the embodiment of the message forwarding method, the application also provides an embodiment of a message forwarding device.
Fig. 4 is a schematic structural diagram of a message forwarding apparatus according to an embodiment of the present application. Referring to fig. 4, the apparatus is applied to a network device, and includes:
a selecting module 401, configured to select a specified tunnel portal from tunnel portals of all VXLAN tunnels established between a local device and a neighboring device if it is found that the number of tunnel portals of the VXLAN tunnel established between the local device and the neighboring device is greater than 1 when forwarding a broadcast packet to the neighboring device;
a forwarding module 402, configured to forward the broadcast packet to the neighbor device through the selected specified tunnel portal.
Optionally, the forwarding module 402 is further configured to:
and if the number of the tunnel ports of the VXLAN tunnels established between the equipment and the neighbor equipment is found to be 1, forwarding the broadcast message to the neighbor equipment through the tunnel ports of the VXLAN tunnels established between the equipment and the neighbor equipment.
Optionally, the apparatus further comprises:
a request message receiving module, configured to receive a VXLAN tunnel establishment request message sent by the neighbor device, where the VXLAN tunnel establishment request message carries a device identifier of the neighbor device;
the checking module is used for checking whether the equipment establishes a VXLAN tunnel with the neighbor equipment or not according to the equipment identifier;
a first tunnel establishing module, configured to establish a VXLAN tunnel with the neighboring device, and set a first attribute for a tunnel portal of the VXLAN tunnel, where the first attribute is used to indicate forwarding of a broadcast packet;
and continuing to establish a VXLAN tunnel with the neighbor equipment, and setting a second attribute for a tunnel port of the VXLAN tunnel, wherein the second attribute is used for indicating that the broadcast message is forbidden to be forwarded.
The selecting module 401 is specifically configured to:
and selecting the tunnel port with the first attribute from the tunnel ports of all VXLAN tunnels established between the device and the neighbor device as a specified tunnel port.
Optionally, the apparatus further includes:
the instruction receiving module is used for receiving a configuration instruction; the configuration instruction is used for appointing a tunnel port to forward the broadcast message when the number of the tunnel ports of the VXLAN tunnel established by the equipment and the neighbor equipment is more than 1;
a second tunnel establishing module, configured to set a third attribute for an existing tunnel portal established with the neighboring device according to the configuration instruction, where the third attribute is used to instruct to send a broadcast packet;
the selecting module 401 is specifically configured to:
and selecting the tunnel port with the third attribute from the tunnel ports of all VXLAN tunnels established between the device and the neighbor device as a specified tunnel port.
In another embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor, performs the steps of any of the above-described methods.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present application. Referring to fig. 5, the computer device 500 comprises a memory 502 and a processor 501, wherein the memory 502 is connected to the processor 501 through a communication bus 503 for storing computer instructions executable by the processor 501; the processor 501 is configured to read computer instructions from the memory 502 to implement the steps of the message forwarding method according to any of the above embodiments.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including by way of example semiconductor memory devices (e.g., EPROM, EEPROM, and flash memory devices), magnetic disks (e.g., internal magnetic disks or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks. The processor and the memory can be supplemented by, or incorporated in, special purpose logic circuitry.
While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any invention or of what may be claimed, but rather as descriptions of features specific to particular embodiments of particular inventions. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. In other instances, features described in connection with one embodiment may be implemented as discrete components or in any suitable subcombination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can in some cases be excised from the combination, and the claimed combination may be directed to a subcombination or variation of a subcombination.
Similarly, while operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In some cases, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the embodiments described above should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product or packaged into multiple software products.
Thus, particular embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. Further, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some implementations, multitasking and parallel processing may be advantageous.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A message forwarding method is applied to a network device, and the method comprises the following steps:
when a broadcast message is forwarded to a neighbor device, if the number of tunnel ports of an extensible virtual local area network VXLAN tunnel established by the device and the neighbor device is found to be more than 1, selecting a specified tunnel port from the tunnel ports of all VXLAN tunnels established by the device and the neighbor device;
and forwarding the broadcast message to the neighbor equipment through the selected specified tunnel port.
2. The method of claim 1, further comprising:
and if the number of the tunnel ports of the VXLAN tunnels established between the equipment and the neighbor equipment is found to be 1, forwarding the broadcast message to the neighbor equipment through the tunnel ports of the VXLAN tunnels established between the equipment and the neighbor equipment.
3. The method of claim 1, wherein prior to forwarding the broadcast packet to the neighbor device, the method further comprises:
receiving a VXLAN tunnel establishment request message sent by the neighbor device, wherein the VXLAN tunnel establishment request message carries the device identification of the neighbor device;
checking whether the equipment establishes a VXLAN tunnel with the neighbor equipment or not according to the equipment identification;
if not, establishing a VXLAN tunnel with the neighbor equipment, and setting a first attribute for a tunnel port of the VXLAN tunnel, wherein the first attribute is used for indicating to forward the broadcast message;
if yes, continuing to establish a VXLAN tunnel with the neighbor equipment, and setting a second attribute for a tunnel port of the VXLAN tunnel, wherein the second attribute is used for indicating that the broadcast message is forbidden to be forwarded;
the selecting a specified tunnel portal from the tunnel portals of all VXLAN tunnels established by the device and the neighbor device specifically includes:
and selecting the tunnel port with the first attribute from the tunnel ports of all VXLAN tunnels established between the device and the neighbor device as a specified tunnel port.
4. The method of claim 1, wherein: before forwarding the broadcast packet to the neighbor device, the method further includes:
receiving a configuration instruction; the configuration instruction is used for appointing a tunnel port to forward the broadcast message when the number of the tunnel ports of the VXLAN tunnel established by the equipment and the neighbor equipment is more than 1;
setting a third attribute for a tunnel port established between the equipment and the neighbor equipment according to the configuration instruction, wherein the third attribute is used for indicating to send a broadcast message;
the selecting a specified tunnel portal from the tunnel portals of all VXLAN tunnels established by the device and the neighbor device specifically includes:
and selecting the tunnel port with the third attribute from the tunnel ports of all VXLAN tunnels established between the device and the neighbor device as a specified tunnel port.
5. A message forwarding device is applied to a network device, and comprises:
the device comprises a selecting module, a sending module and a receiving module, wherein the selecting module is used for selecting a specified tunnel port from tunnel ports of all VXLAN tunnels established by the device and neighbor equipment if the number of the tunnel ports of the VXLAN tunnels established by the device and the neighbor equipment is more than 1 when the broadcast message is forwarded to the neighbor equipment;
and the forwarding module is used for forwarding the broadcast message to the neighbor equipment through the selected specified tunnel port.
6. The apparatus of claim 5, wherein the forwarding module is further configured to:
and if the number of the tunnel ports of the VXLAN tunnels established between the equipment and the neighbor equipment is found to be 1, forwarding the broadcast message to the neighbor equipment through the tunnel ports of the VXLAN tunnels established between the equipment and the neighbor equipment.
7. The apparatus of claim 5, further comprising:
a request message receiving module, configured to receive a VXLAN tunnel establishment request message sent by the neighbor device, where the VXLAN tunnel establishment request message carries a device identifier of the neighbor device;
the checking module is used for checking whether the equipment establishes a VXLAN tunnel with the neighbor equipment or not according to the equipment identifier;
a first tunnel establishing module, configured to establish a VXLAN tunnel with the neighboring device, and set a first attribute for a tunnel portal of the VXLAN tunnel, where the first attribute is used to indicate forwarding of a broadcast packet;
continuing to establish a VXLAN tunnel with the neighbor equipment, and setting a second attribute for a tunnel port of the VXLAN tunnel, wherein the second attribute is used for indicating that the broadcast message is forbidden to be forwarded;
the selection module is specifically configured to:
and selecting the tunnel port with the first attribute from the tunnel ports of all VXLAN tunnels established between the device and the neighbor device as a specified tunnel port.
8. The apparatus of claim 5, further comprising:
the instruction receiving module is used for receiving a configuration instruction; the configuration instruction is used for appointing a tunnel port to forward the broadcast message when the number of the tunnel ports of the VXLAN tunnel established by the equipment and the neighbor equipment is more than 1;
a second tunnel establishing module, configured to set a third attribute for an existing tunnel portal established with the neighboring device according to the configuration instruction, where the third attribute is used to instruct to send a broadcast packet;
the selection module is specifically configured to:
and selecting the tunnel port with the third attribute from the tunnel ports of all VXLAN tunnels established between the device and the neighbor device as a specified tunnel port.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method according to any of claims 1-4 are implemented when the processor executes the program.
CN201910351688.0A 2019-04-28 2019-04-28 Message forwarding method and device Active CN110061898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910351688.0A CN110061898B (en) 2019-04-28 2019-04-28 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910351688.0A CN110061898B (en) 2019-04-28 2019-04-28 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN110061898A CN110061898A (en) 2019-07-26
CN110061898B true CN110061898B (en) 2021-07-23

Family

ID=67321467

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910351688.0A Active CN110061898B (en) 2019-04-28 2019-04-28 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN110061898B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110620683B (en) 2019-08-30 2021-03-23 华为技术有限公司 Message sending method, device and system applied to distributed router networking
CN111865780A (en) * 2020-07-13 2020-10-30 中国联合网络通信集团有限公司 Synchronization method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559325A (en) * 2015-09-25 2017-04-05 华为技术有限公司 Path detection method and device
CN107995084A (en) * 2017-11-09 2018-05-04 新华三技术有限公司 Tunnel selecting method and device
CN108667709A (en) * 2018-05-18 2018-10-16 新华三技术有限公司 A kind of message forwarding method and device
CN109120526A (en) * 2017-06-26 2019-01-01 北京华为数字技术有限公司 The method and the network equipment of point-to-point transmitting message

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106559325A (en) * 2015-09-25 2017-04-05 华为技术有限公司 Path detection method and device
CN109120526A (en) * 2017-06-26 2019-01-01 北京华为数字技术有限公司 The method and the network equipment of point-to-point transmitting message
CN107995084A (en) * 2017-11-09 2018-05-04 新华三技术有限公司 Tunnel selecting method and device
CN108667709A (en) * 2018-05-18 2018-10-16 新华三技术有限公司 A kind of message forwarding method and device

Also Published As

Publication number Publication date
CN110061898A (en) 2019-07-26

Similar Documents

Publication Publication Date Title
KR101886291B1 (en) Flow entry configuration method, apparatus, and system
CN105323136A (en) Information processing method and device
AU2015256589B2 (en) Fine-grained network monitoring
CN105744579B (en) Method, switching control and the access device that terminal switches between AP
EP3029989A1 (en) Wlan user roaming
CN102143026B (en) Method for avoiding loop circuit in virtual two layer network
CN104243208A (en) Port expansion and message processing method, device and network device
CN110061898B (en) Message forwarding method and device
CN103023773B (en) Method, device and system for forwarding message in multi-topology network
CN107645433B (en) Message forwarding method and device
CN104796338A (en) Migration method and device of virtual machines
EP4075730A1 (en) Method and device for multi-cloud interconnection
CN105939267A (en) Out-of-band management method and device
CN105812221B (en) The device and method of data transmission in virtual expansible Local Area Network
CN106453088B (en) A kind of static routing configuration method and terminal
CN102917429B (en) Message transmitting method and device
CN105515970B (en) A kind of method and apparatus being used for transmission message
CN107294849A (en) Method, device and system for establishing service path
EP3503484A1 (en) Message transmission method, device and network system
CN104780110A (en) Message transmission method in virtual machine migration, and device
CN108471374B (en) Data message forwarding method and device
CN110572326A (en) Method, device, network equipment and system for establishing forwarding path
CN108156066A (en) Message forwarding method and device
CN113079128B (en) Information blocking method and device, computing equipment and computer storage medium
CN103052118B (en) A kind of communication tunnel changing method and the network equipment

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