CN106998296B - MAC address learning method and device - Google Patents

MAC address learning method and device Download PDF

Info

Publication number
CN106998296B
CN106998296B CN201710142895.6A CN201710142895A CN106998296B CN 106998296 B CN106998296 B CN 106998296B CN 201710142895 A CN201710142895 A CN 201710142895A CN 106998296 B CN106998296 B CN 106998296B
Authority
CN
China
Prior art keywords
mac address
mac
remote vtep
interface corresponding
vtep
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
CN201710142895.6A
Other languages
Chinese (zh)
Other versions
CN106998296A (en
Inventor
黄李伟
王伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201710142895.6A priority Critical patent/CN106998296B/en
Publication of CN106998296A publication Critical patent/CN106998296A/en
Application granted granted Critical
Publication of CN106998296B publication Critical patent/CN106998296B/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
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses
    • 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/74Address processing for routing

Landscapes

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

Abstract

The application provides a MAC address learning method and a device, wherein the method is applied to VTEP in EVPN, and the method comprises the following steps: receiving a MAC address synchronized by a remote VTEP; judging whether an output interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-quality function opened or not; and if so, forbidding updating the output interface corresponding to the MAC address, and sending the MAC address to the remote VTEP so that the remote VTEP learns the MAC address again.

Description

MAC address learning method and device
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method and an apparatus for MAC address learning.
Background
An EVPN (Ethernet Virtual Private Network) is a two-layer VPN (Virtual Private Network) technology, where MP-BGP (multi-Protocol-Border Gateway Protocol) is used on a control plane to announce routing information, and VXLAN (Virtual eXtensible local area Network) is used on a data plane to forward user packets.
In the EVPN network, a user port connected to a VM (Virtual Machine) on a VTEP (VXLAN Tunnel End Point) can turn on a dynamic MAC address learning high-quality function. Specifically, if the VTEP receives the user packet of the same source MAC address from both the first user port on which the dynamic MAC address learning high-priority function is activated and the second user port on which the dynamic MAC address learning high-priority function is not activated, the egress interface in the MAC entry including the source MAC address in the MAC forwarding table is preferentially set as the first user port.
For example, after receiving a user packet with a source MAC address of VM-MAC from a user port PortA, the VTEP creates a MAC entry including VM-MAC if a MAC entry including VM-MAC does not exist in the MAC forwarding table, and sets an egress interface in the MAC entry to PortA. Subsequently, the VTEP receives a user packet with a source MAC address of VM-MAC from the user port PortB, at this time, if PortA does not start the dynamic MAC address learning high-priority function, the outgoing interface in the MAC entry is updated from PortA to PortB, and if PortA starts the dynamic MAC address learning high-priority function, the outgoing interface in the MAC entry is not updated to PortB, but the outgoing interface is maintained as PortA.
Disclosure of Invention
In view of the above, the present application provides a MAC address learning method and apparatus.
Specifically, the method is realized through the following technical scheme:
in one aspect, a MAC address learning method is provided, which is applied to VTEP in EVPN, and includes:
receiving a MAC address synchronized by a remote VTEP;
judging whether an output interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-quality function opened or not;
and if so, forbidding updating the output interface corresponding to the MAC address, and sending the MAC address to the remote VTEP so that the remote VTEP learns the MAC address again.
In another aspect, an apparatus for MAC address learning is provided, where the apparatus is applied to VTEP in EVPN, and the apparatus includes:
a receiving unit, configured to receive a MAC address synchronized by a remote VTEP;
the judging unit is used for judging whether the output interface corresponding to the MAC address received by the receiving unit is a user port with a dynamic MAC address learning high-priority function opened or not;
and the processing unit is used for forbidding updating the outgoing interface corresponding to the MAC address and sending the MAC address to the remote VTEP so as to enable the remote VTEP to relearn the MAC address if the judging result of the judging unit shows that the outgoing interface corresponding to the MAC address is the user port with the opened dynamic MAC address learning high-priority function.
According to the technical scheme, after the MAC address synchronized by the remote VTEP is received, whether the output interface corresponding to the MAC address is the user port with the dynamic MAC address learning high-priority function opened or not is judged, if yes, the output interface is not updated but is kept unchanged, and the MAC address is sent to the remote VTEP so that the remote VTEP learns the MAC address again. Therefore, the dynamic MAC address learning high-priority function can not only take effect on the MAC address of the local VM, but also take effect on the MAC address synchronized by the remote VTEP, namely, the global effect of the dynamic MAC address learning high-priority function of the user port is ensured.
Drawings
Fig. 1 is a schematic diagram of EVPN networking according to an embodiment of the present application;
fig. 2 is a flowchart of a MAC address learning method according to an embodiment of the present application;
fig. 3 is another flowchart of a MAC address learning method according to an embodiment of the present application;
fig. 4 is a schematic hardware structure diagram of a VTEP where the MAC address learning apparatus according to the embodiment of the present application is located;
fig. 5 is a schematic structural diagram of a MAC address learning apparatus according to an embodiment of the present application;
fig. 6 is another schematic structural diagram of a MAC address learning apparatus according to an 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 the prior art, the dynamic MAC address learning high-quality function can only take effect for the MAC address of the local VM, but does not take effect for the MAC address synchronized by the remote VTEP. That is, after receiving the MAC address synchronized by the remote VTEP, the VTEP updates the outgoing interface even if the outgoing interface in the corresponding MAC entry is the user port with the dynamic MAC address learning high-quality function. In order to solve the above problem, the following embodiments of the present application provide a MAC address learning method and a MAC address learning apparatus to which the method can be applied.
The MAC address learning method according to the embodiment of the present application may be performed by a VTEP in EVPN, and the method includes: the local VTEP receives the MAC address synchronized by the remote VTEP; the local terminal VTEP judges whether an output interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-priority function opened or not, if so, the output interface is prohibited from being updated, and the MAC address is sent to the remote terminal VTEP so that the remote terminal VTEP learns the MAC address again; if the judgment result is negative, the output interface is updated.
In the method of the foregoing embodiment of the present application, after receiving a MAC address synchronized by a remote VTEP, it is determined whether an outgoing interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-priority function being opened, if so, the outgoing interface is not updated but remains unchanged, and the MAC address is further sent to the remote VTEP, so that the remote VTEP learns the MAC address again. Therefore, the dynamic MAC address learning high-priority function can not only take effect on the MAC address of the local VM, but also take effect on the MAC address synchronized by the remote VTEP, namely, the global effect of the dynamic MAC address learning high-priority function of the user port is ensured.
The method of the above embodiment will be described in detail by taking the EVPN shown in fig. 1 as an example. In EVPN as shown in fig. 1, VXLAN Tunnel0 is established between VTEP1 and VTEP2, where VTEP1 may be understood as a home VTEP device and VTEP2 may be understood as a remote VTEP device. The MAC address learning method based on EVPN networking shown in fig. 1, as shown in fig. 2, includes the following steps:
in step S101, VTEP1 receives the MAC address VM-MAC synchronized by VTEP 2.
Wherein, the interface of the VTEP1 receiving the VM-MAC is VXLAN Tunnel interface Tunnel 0.
In step S102, the VTEP1 determines whether the output interface (denoted as Port1_ a) corresponding to the VM-MAC is the user Port with the dynamic MAC address learning high-quality function turned on, if so, step S103 is executed, otherwise, step S104 is executed.
Specifically, the MAC address learned from the user port with the dynamic MAC address learning high-priority function may be recorded in the MAC address list in advance. For example, for each user port on which the dynamic MAC address learning high-priority function is opened on the present device, the MAC table entry whose interface is the user port is found in the MAC forwarding table, and the MAC address included in the MAC table entry is added to the MAC address list. In this way, in step S102, the received MAC address may be matched with the MAC address list (where, if the MAC address list includes a plurality of MAC addresses, the received MAC address is matched with the plurality of included MAC addresses one by one), and if the received MAC address is matched with the received MAC address, it is determined that the output interface corresponding to the received MAC address is the user port with the dynamic MAC address learning high-quality function being turned on. The list of all MAC addresses learned from the user port with the dynamic MAC address learning high-quality function is collected in advance, and when the MAC address synchronized by the remote VTEP is received, the list is directly matched with the MAC address to judge whether the output interface corresponding to the synchronized MAC address is the user port with the dynamic MAC address learning high-quality function, so that the judgment efficiency can be improved.
Obviously, after receiving the MAC address synchronized by the remote VTEP, the method may further search the outgoing interface corresponding to the MAC address from the MAC forwarding table, and then determine whether the outgoing interface is a user port with a dynamic MAC address learning high-quality function. The embodiment of the present application does not limit this.
Step S103, forbidding updating of the outgoing interface, namely forbidding modifying of the outgoing interface (Port 1_ A) corresponding to the VM-MAC in the MAC forwarding table, maintaining the outgoing interface as Port1_ A, and sending a MAC synchronization message carrying the VM-MAC to the VTEP2 so that the VTEP2 learns the VM-MAC again.
Specifically, after receiving a MAC synchronization message carrying a VM-MAC sent by VTEP1, VTEP2 searches an egress interface corresponding to the VM-MAC in a MAC forwarding table, where the found egress interface is a local user port, determines whether the local user port has a dynamic MAC address learning high-priority function, and if not, VTEP2 obtains a VXLAN Tunnel interface Tunnel0 that receives the MAC synchronization message, and then updates the egress interface corresponding to the VM-MAC in the MAC forwarding table to the obtained VXLAN Tunnel interface Tunnel 0.
Step S104, updating the output interface.
In step S104, VTEP1 updates the outgoing interface corresponding to the VM-MAC in the MAC forwarding table to VXLAN Tunnel interface Tunnel0 that received the VM-MAC.
Subsequently, after Port1_ a turns off the dynamic MAC address learning high-priority function, if VTEP1 receives the synchronized MAC address VM-MAC again, then VTEP1 executes step S104 after the determination operation of step S102 is completed.
In another embodiment, as shown in fig. 3, the MAC address learning method based on EVPN networking shown in fig. 1 includes the following steps:
in step S201, VTEP1 receives the MAC address VM-MAC synchronized by VTEP 2.
Specifically, after receiving a user packet with a source MAC address of VM-MAC from a local user Port2_ B, VTEP2 caches a correspondence between VM-MAC and an egress interface VXLAN Tunnel0 before updating an egress interface corresponding to VM-MAC in a MAC forwarding table, then updates the egress interface corresponding to VM-MAC in the MAC forwarding table to Port2_ B, and synchronizes the VM-MAC to VTEP 1.
Wherein, the interface of the VTEP1 receiving the VM-MAC is VXLAN Tunnel interface Tunnel 0.
In step S202, the VTEP1 determines whether the output interface (denoted as Port1_ a) corresponding to the VM-MAC is the user Port with the dynamic MAC address learning high-quality function turned on, if so, step S203 is executed, otherwise, step S204 is executed.
Specifically, the MAC address learned from the user port with the dynamic MAC address learning high-priority function may be recorded in the MAC address list in advance. For example, for each user port on which the dynamic MAC address learning high-priority function is opened on the present device, the MAC table entry whose interface is the user port is found in the MAC forwarding table, and the MAC address included in the MAC table entry is added to the MAC address list. In this way, in step S102, the received MAC address may be matched with the MAC address list (where, if the MAC address list includes a plurality of MAC addresses, the received MAC address is matched with the plurality of included MAC addresses one by one), and if the received MAC address is matched with the received MAC address, it is determined that the output interface corresponding to the received MAC address is the user port with the dynamic MAC address learning high-quality function being turned on. The list of all MAC addresses learned from the user port with the dynamic MAC address learning high-quality function is collected in advance, and when the MAC address synchronized by the remote VTEP is received, the list is directly matched with the MAC address to judge whether the output interface corresponding to the synchronized MAC address is the user port with the dynamic MAC address learning high-quality function, so that the judgment efficiency can be improved.
Obviously, after receiving the MAC address synchronized by the remote VTEP, the method may further search the outgoing interface corresponding to the MAC address from the MAC forwarding table, and then determine whether the outgoing interface is a user port with a dynamic MAC address learning high-quality function. The embodiment of the present application does not limit this.
In step S203, the update of the outbound interface is prohibited, that is, the outbound interface corresponding to the VM-MAC in the MAC forwarding table (the outbound interface is Port1_ a) is prohibited from being modified, but the outbound interface is maintained as Port1_ a, and a MAC revocation message carrying the VM-MAC is sent to VTEP2, so that VTEP2 learns the VM-MAC again.
Specifically, after receiving a MAC revocation message carrying a VM-MAC sent by VTEP1, VTEP2 searches an egress interface corresponding to the VM-MAC in a MAC forwarding table, where the found egress interface is a local user Port2_ B, and determines whether Port2_ B activates a dynamic MAC address learning high-priority function, and if not, VTEP2 directly updates the egress interface corresponding to the VM-MAC in the MAC forwarding table to a cached VXLAN Tunnel interface Tunnel0 corresponding to the MAC address.
In this embodiment, before the VTEP2 updates the outgoing interface corresponding to the VM-MAC in the MAC address table from the VXLAN Tunnel interface Tunnel0 to the local user Port2_ B, the corresponding relationship between the VM-MAC and the outgoing interface Tunnel0 before updating is cached, so that when the outgoing interface corresponding to the VM-MAC in the MAC address forwarding table is updated after the MAC revocation message carrying the VM-MAC sent by the VTEP1 is received, the outgoing interface is directly restored to the cached VXLAN Tunnel interface Tunnel0, thereby further saving the time required for acquiring the interface receiving the MAC revocation message, and improving the working efficiency.
Step S204, updating the output interface.
In step S204, the VTEP1 updates the outgoing interface corresponding to the VM-MAC in the MAC forwarding table to the VXLAN Tunnel interface Tunnel0 that received the VM-MAC.
Subsequently, after Port1_ a turns off the dynamic MAC address learning high-priority function, if VTEP1 receives the synchronized MAC address VM-MAC again, then VTEP1 performs step S204 after the determination operation of step S202 is completed.
Corresponding to the embodiment of the MAC address learning method, the present application also provides an embodiment of a MAC address learning apparatus.
The embodiment of the MAC address learning device can be applied to VTEP. The device embodiments may be implemented by software, or by hardware, or by a combination of hardware and software. In the case of software implementation, as a logical means, the device is formed by the processor 10 of the VTEP reading the corresponding computer program instructions in the non-volatile memory 50 into the memory 40 for execution. From a hardware aspect, as shown in fig. 4, a hardware structure diagram of a VTEP where the MAC address learning apparatus 60 is located in the present application is shown, except for the processor 10, the internal bus 20, the network interface 30, the memory 40, and the nonvolatile memory 50 shown in fig. 4, the VTEP where the apparatus is located in the embodiment may also include other hardware according to the actual functions of the VTEP, which is not described again.
Referring to fig. 5, the MAC address learning apparatus 60 includes: a receiving unit 601, a judging unit 602 and a processing unit 603, wherein:
a receiving unit 601, configured to receive a MAC address synchronized by a remote VTEP;
a determining unit 602, configured to determine, after the receiving unit 601 receives the MAC address synchronized by the remote VTEP, whether an output interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-quality function opened;
a processing unit 603, configured to prohibit updating the outgoing interface corresponding to the MAC address if the determination result of the determining unit 602 is that the outgoing interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-priority function being opened, and send the MAC address to the remote VTEP, so that the remote VTEP learns the MAC address again.
The processing unit 603 is specifically configured to send the MAC address to the remote VTEP in the following manner, so that the remote VTEP learns the MAC address again: and sending the MAC synchronization message carrying the MAC address to the remote VTEP so that the remote VTEP acquires the interface receiving the MAC synchronization message, and updating the outgoing interface corresponding to the MAC address in the MAC forwarding table of the remote VTEP into the acquired VXLAN tunnel interface.
The processing unit 603 is specifically configured to send the MAC address to the remote VTEP in the following manner, so that the remote VTEP learns the MAC address again: and sending a MAC revocation message carrying the MAC address to a remote VTEP so that the remote VTEP updates an outgoing interface corresponding to the MAC address in a MAC forwarding table of the remote VTEP into a cached VXLAN tunnel interface corresponding to the MAC address, wherein before the remote VTEP updates the outgoing interface corresponding to the MAC address in the MAC forwarding table and synchronizes the MAC address, the remote VTEP caches the corresponding relation between the MAC address and the VXLAN tunnel interface before updating.
The processing unit 603 is further configured to update the egress interface corresponding to the MAC address if the determination result of the determining unit 602 is that the egress interface corresponding to the MAC address is not the user port with the dynamic MAC address learning high-quality function.
As shown in fig. 6, the MAC address learning apparatus 60 further includes: a recording unit 604, wherein:
a recording unit 604, configured to record an MAC address learned from a user port on which a dynamic MAC address learning high-quality function is started in an MAC address list;
the determining unit 602 is specifically configured to determine whether the output interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-quality function being started by the following method: and matching the received MAC address with the MAC address list, and if the received MAC address is matched with the MAC address list, judging that an output interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-quality function opened.
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.
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 MAC address learning method is applied to an extensible virtual local area network tunnel endpoint (VTEP) in an Ethernet Virtual Private Network (EVPN), and comprises the following steps:
receiving a MAC address synchronized by a remote VTEP;
judging whether an output interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-quality function opened or not; when MAC address learning is performed on a user message of the same source MAC address, the learned MAC address takes the user port with the dynamic MAC address learning high-priority function as an associated interface and is preferentially stored in an MAC table entry;
and if so, forbidding updating the output interface corresponding to the MAC address, and sending the MAC address to the remote VTEP so that the remote VTEP learns the MAC address again.
2. The method according to claim 1, wherein sending the MAC address to the remote VTEP to enable the remote VTEP to relearn the MAC address comprises:
and sending the MAC synchronization message carrying the MAC address to a remote VTEP so that the remote VTEP acquires an interface receiving the MAC synchronization message, and updating an outgoing interface corresponding to the MAC address in an MAC forwarding table of the remote VTEP into an acquired VXLAN tunnel interface.
3. The method according to claim 1, wherein sending the MAC address to the remote VTEP to enable the remote VTEP to relearn the MAC address comprises:
and sending a MAC revocation message carrying the MAC address to a remote VTEP so that the remote VTEP updates an outgoing interface corresponding to the MAC address in a MAC forwarding table of the remote VTEP into a cached VXLAN tunnel interface corresponding to the MAC address, wherein before the remote VTEP updates the outgoing interface corresponding to the MAC address in the MAC forwarding table and synchronizes the MAC address, the remote VTEP caches the corresponding relation between the MAC address and the VXLAN tunnel interface before updating.
4. The method of claim 1, wherein after determining whether the egress interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-priority function, the method further comprises:
and if not, updating the output interface corresponding to the MAC address.
5. The method of claim 1, further comprising: recording the MAC address learned from the user port with the dynamic MAC address learning high-priority function on the equipment into an MAC address list;
judging whether the output interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-quality function, specifically including: and matching the received MAC address with the MAC address list, and if the received MAC address is matched with the MAC address list, judging that an output interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-priority function opened.
6. An apparatus for MAC address learning, the apparatus being applied to an extensible virtual local area network tunnel endpoint VTEP in an ethernet virtual private network EVPN, the apparatus comprising:
a receiving unit, configured to receive a MAC address synchronized by a remote VTEP;
a judging unit, configured to judge whether an output interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-quality function enabled; when MAC address learning is performed on a user message of the same source MAC address, the learned MAC address takes the user port with the dynamic MAC address learning high-priority function as an associated interface and is preferentially stored in an MAC table entry;
and the processing unit is configured to prohibit updating of the outgoing interface corresponding to the MAC address if the determination result of the determining unit indicates that the outgoing interface corresponding to the MAC address is the user port with the dynamic MAC address learning high-priority function being started, and send the MAC address to the remote VTEP, so that the remote VTEP learns the MAC address again.
7. The apparatus of claim 6, wherein the processing unit is specifically configured to send the MAC address to the remote VTEP to enable the remote VTEP to relearn the MAC address by:
and sending the MAC synchronization message carrying the MAC address to a remote VTEP so that the remote VTEP acquires an interface receiving the MAC synchronization message, and updating an outgoing interface corresponding to the MAC address in an MAC forwarding table of the remote VTEP into an acquired VXLAN tunnel interface.
8. The apparatus of claim 6, wherein the processing unit is specifically configured to send the MAC address to the remote VTEP to enable the remote VTEP to relearn the MAC address by:
and sending a MAC revocation message carrying the MAC address to a remote VTEP so that the remote VTEP updates an outgoing interface corresponding to the MAC address in a MAC forwarding table of the remote VTEP into a cached VXLAN tunnel interface corresponding to the MAC address, wherein before the remote VTEP updates the outgoing interface corresponding to the MAC address in the MAC forwarding table and synchronizes the MAC address, the remote VTEP caches the corresponding relation between the MAC address and the VXLAN tunnel interface before updating.
9. The apparatus of claim 6,
the processing unit is further configured to update the outgoing interface corresponding to the MAC address if the judgment result of the judging unit indicates that the outgoing interface corresponding to the MAC address is not the user port with the dynamic MAC address learning high-priority function.
10. The apparatus of claim 6, further comprising: a recording unit, wherein:
the recording unit is used for recording the MAC address learned from the user port with the dynamic MAC address learning high-priority function opened on the equipment into an MAC address list;
the judging unit is specifically configured to judge whether an output interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-quality function being turned on, in the following manner: and matching the received MAC address with the MAC address list, and if the received MAC address is matched with the MAC address list, judging that an output interface corresponding to the MAC address is a user port with a dynamic MAC address learning high-priority function opened.
CN201710142895.6A 2017-03-10 2017-03-10 MAC address learning method and device Active CN106998296B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710142895.6A CN106998296B (en) 2017-03-10 2017-03-10 MAC address learning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710142895.6A CN106998296B (en) 2017-03-10 2017-03-10 MAC address learning method and device

Publications (2)

Publication Number Publication Date
CN106998296A CN106998296A (en) 2017-08-01
CN106998296B true CN106998296B (en) 2020-01-03

Family

ID=59431363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710142895.6A Active CN106998296B (en) 2017-03-10 2017-03-10 MAC address learning method and device

Country Status (1)

Country Link
CN (1) CN106998296B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107911495B (en) * 2017-11-16 2020-12-04 新华三技术有限公司 MAC address synchronization method and VTEP
CN108512949B (en) * 2018-03-23 2021-05-07 烽火通信科技股份有限公司 MAC address synchronization method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577417A (en) * 2014-11-06 2016-05-11 杭州华三通信技术有限公司 VXLAN (virtual extensible local area network)-based massage forwarding method and device
CN106209648A (en) * 2015-05-04 2016-12-07 杭州华三通信技术有限公司 Multicast data packet forwarding method and apparatus across virtual expansible LAN

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105577417A (en) * 2014-11-06 2016-05-11 杭州华三通信技术有限公司 VXLAN (virtual extensible local area network)-based massage forwarding method and device
CN106209648A (en) * 2015-05-04 2016-12-07 杭州华三通信技术有限公司 Multicast data packet forwarding method and apparatus across virtual expansible LAN

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《Design and implementation of hardware accelerated VTEP in datacenter networks》;Chang-Gyu Lim;《 2015 17th International Conference on Advanced Communication Technology (ICACT)》;20150827;全文 *
《VXLAN环境下基于ISIS协议的MAC地址同步技术研究与实现》;李同亮;《中国优秀硕士学位论文全文数据库信息科技I辑》;20160130;全文 *

Also Published As

Publication number Publication date
CN106998296A (en) 2017-08-01

Similar Documents

Publication Publication Date Title
US10853127B2 (en) Method and apparatus for determining virtual machine migration
US10956194B2 (en) Learning a MAC address in VXLAN
EP3282649B1 (en) Data packet forwarding
US20180248770A1 (en) System and method of network operating system containers
US10263808B2 (en) Deployment of virtual extensible local area network
CN108243262B (en) ARP table learning method and device and network three-layer equipment
US10574570B2 (en) Communication processing method and apparatus
US9537793B2 (en) Ensuring any-to-any reachability with opportunistic layer 3 forwarding in massive scale data center environments
CN107682275B (en) Message monitoring method and device
US20140146817A1 (en) System and Method for VXLAN Intern-Domain Communications
CN106470158B (en) Message forwarding method and device
CN110430076B (en) Route management method and device
WO2012073137A1 (en) Hash collision resolution with key compression in a mac forwarding data structure
US10122548B2 (en) Services execution
CN105634901B (en) Mac address information synchronous method and device based on CAS VXLAN
WO2018033153A1 (en) Method and device for processing ip address conflict in evpn
CN106059923A (en) Message forwarding method and device
CN106998296B (en) MAC address learning method and device
US20130124721A1 (en) Detected IP Link and Connectivity Inference
US20120291098A1 (en) Multimode Authentication
CN106713130B (en) A kind of routing table update method, EVPN control equipment and EVPN system
CN111147382A (en) Message forwarding method and device
CN106921577B (en) MAC address learning method and device
CN107911495B (en) MAC address synchronization method and VTEP
CN113923162B (en) Message forwarding method, device, equipment and storage medium

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