CN111698154B - Method and device for inhibiting frequent migration of host route - Google Patents

Method and device for inhibiting frequent migration of host route Download PDF

Info

Publication number
CN111698154B
CN111698154B CN202010361703.2A CN202010361703A CN111698154B CN 111698154 B CN111698154 B CN 111698154B CN 202010361703 A CN202010361703 A CN 202010361703A CN 111698154 B CN111698154 B CN 111698154B
Authority
CN
China
Prior art keywords
host
vtep
migration
message
evpn nlri
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
CN202010361703.2A
Other languages
Chinese (zh)
Other versions
CN111698154A (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 CN202010361703.2A priority Critical patent/CN111698154B/en
Publication of CN111698154A publication Critical patent/CN111698154A/en
Application granted granted Critical
Publication of CN111698154B publication Critical patent/CN111698154B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • 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
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Landscapes

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

Abstract

The application provides a method and a device for inhibiting frequent migration of host routes, wherein the method is applied to a first VTEP and comprises the following steps: receiving a first EVPN NLRI message sent by a second VTEP, wherein the first EVPN NLRI message comprises host address information; when the first VTEP locally learns the ARP information which is the same as the host address information, acquiring the host route migration times corresponding to the ARP information, and accumulating the migration time required for completing the host route migration; and if the migration times are not less than the time threshold and the migration time is less than the time threshold, inhibiting the learning of the ARP information.

Description

Method and device for inhibiting frequent migration of host route
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for suppressing frequent migration of a host route.
Background
An Ethernet Virtual Private Network (EVPN) is a two-Layer VPN technology, and its control plane uses MP-BGP to advertise Network Layer Reachability Information (NLRI); and the data plane is encapsulated and forwards the network message by adopting a Vxlan technology.
Presently, EVPN is typically networked with distributed gateways, as shown in fig. 1. In the networking, each VTEP device is an EVPN gateway, and three-layer forwarding of the local host flow is realized. Each VTEP learns ARP information of the local host through GARP, RARP sent by the local host and an ARP request for the gateway, and adds host routing entries (i.e., ARP entry and FIB entry). The local end VTEP informs the opposite end VTEP of the routing reachable message through the MP-BGP protocol. After receiving the routing reachable message, the opposite end VTEP learns and correspondingly generates an ARP table entry and an FIB table entry. When the flow is forwarded, the VTEP determines an interface by looking up an FIB table and an ARP table entry, and forwards the flow.
However, when hosts accessing different VTEPs in the same EVPN have the same IP configuration, the host traffic will trigger the host routing table entry (i.e., ARP table entry and FIB table entry) corresponding to the IP to migrate continuously between different VTEPs. In one scenario, as shown in fig. 2, site (Site) 1 and Site2 belong to the same EVPN. The IP of host 1 in site1 and IP of host 2 in site2 are both configured to be 10.1.1.10. The message interaction process between VTEP1 and VTEP2 specifically comprises:
VTEP1 learns the ARP information of host 1 and adds host routing table entries for host 1. VTEP1 announces EVPN NLRI message to far-end VTEP2 through MP-BGP protocol, the EVPN NLRI message carries route sequence number as 0.VTEP2 learns and adds the host routing table entry for host 1 according to the EVPN NLRI message advertised by VTEP 1. The VTEP2 learns the ARP information of the host 2, finds that the host routing table item of the host 1 notified by the remote VTEP1 exists locally, the VTEP2 carries out primary host routing table item migration processing, and the host routing table item of the host 2 learned locally takes effect. VTEP2 advertises again to remote VTEP1 the EVPN NLRI message carrying the routing sequence number of 1.
After receiving EVPN NLRI message announced by VTEP2, VTEP1 determines host routing table entry of host 1 that has same IP address (10.1.1.10) locally. VTEP1 compares the route sequence number, confirms that the host routing table entry of host 1 that the far-end VTEP2 of great sequence number announces is valid, and VTEP1 carries out host routing table entry migration processing again.
VTEP1 advertises the EVPN NLRI withdrawal message to the remote VTEP2 via the MP-BGP protocol. VTEP2 deletes the stored host routing table entry for host 1. Repeatedly, the VTEP1 learns the ARP information of the host 1 again and generates the host routing table entry, and the host routing table entry corresponding to the IP address (10.1.1.10) stored in the VTEP is frequently migrated between the local and remote ends. At this time, if VTEP1 and VTEP2 both issue a route corresponding to the IP address (10.1.1.10) to the opposite end, and both VTEP1 and VTEP2 take effect as a far-end route, the traffic sent by VTEP3 to host 1 or host 2 (10.1.1.10) forms a loop between VTEP1 and VTEP2, and thus the bandwidth is continuously occupied, thereby affecting the stability of the network.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for suppressing frequent migration of host routing, so as to solve the problem in the prior art that a loop is formed between VTEPs due to frequent migration of host routing table entries between VTEPs, and bandwidth is continuously occupied, thereby affecting network stability.
In a first aspect, the present application provides a method for suppressing frequent migration of host routes, where the method is applied to a first VTEP, and the method includes:
receiving a first EVPN NLRI message sent by a second VTEP, wherein the first EVPN NLRI message comprises host address information;
when the first VTEP locally learns the ARP information which is the same as the host address information, acquiring the migration times of the host routing table items corresponding to the ARP information, and accumulating the migration time required for completing the migration of the host routing table items;
and if the migration times are not less than the time threshold and the migration time is less than the time threshold, inhibiting the learning of the ARP information.
With reference to the first aspect, in a first possible implementation manner, the method further includes:
and if the migration times are smaller than the time threshold, allowing the ARP information to be learned this time.
With reference to the first aspect, in a second possible implementation manner, the method further includes:
and if the migration time is not less than the time threshold, allowing the ARP information to be learned this time.
With reference to the first and second possible implementation manners of the first aspect, in a third possible implementation manner, the first EVPN NLRI message further includes a first routing sequence number;
after receiving the first EVPN NLRI message sent by the second VTEP, the method further includes:
generating a corresponding remote host routing table entry according to the host address information;
after the allowing of the learning of the ARP information, the method further comprises:
sending a second EVPN NLRI message to the second VTEP, wherein the second EVPN NLRI message comprises the host address information and a second routing sequence number, and the second routing sequence number is greater than the first routing sequence number;
receiving an EVPN NLRI revocation message sent by the second VTEP, wherein the EVPN NLRI revocation message comprises the host address information;
and deleting the corresponding remote host routing table entry according to the host address information.
With reference to the first aspect, in a fourth possible implementation manner, the suppressing the learning of the ARP information specifically includes:
and discarding the ARP information, and sending a prompt message to a host sending the ARP information.
In a second aspect, the present application provides an apparatus for suppressing frequent migration of host routes, where the apparatus is applied to a first VTEP, and the apparatus includes:
a receiving unit, configured to receive a first EVPN NLRI message sent by a second VTEP, where the first EVPN NLRI message includes host address information;
an obtaining unit, configured to obtain, when the first VTEP locally learns ARP information that is the same as the host address information, a migration number of host routing table entries corresponding to the ARP information, and accumulate migration time required to complete host routing table entry migration;
and the inhibiting unit is used for inhibiting the current learning of the ARP information if the migration times are not less than a time threshold and the migration time is less than a time threshold.
With reference to the second aspect, in a first possible implementation manner, the apparatus further includes:
a first allowing unit, configured to allow the current learning of the ARP information if the number of times of migration is smaller than the number threshold.
With reference to the second aspect, in a second possible implementation manner, the apparatus further includes:
and a second allowing unit, configured to allow the current learning of the ARP information if the migration time is not less than the time threshold.
With reference to the first and second possible implementation manners of the second aspect, in a third possible implementation manner, the first EVPN NLRI message further includes a first routing sequence number;
the device further comprises: the generating unit is used for generating a corresponding remote host routing table entry according to the host address information;
a sending unit, configured to send a second EVPN NLRI message to the second VTEP, where the second EVPN NLRI message includes the host address information and a second routing sequence number, and the second routing sequence number is greater than the first routing sequence number;
the receiving unit is further configured to receive an EVPN NLRI revoke message sent by the second VTEP, where the EVPN NLRI revoke message includes the host address information;
the device further comprises: and the deleting unit is used for deleting the corresponding remote host routing table entry according to the host address information.
With reference to the second aspect, in a fourth possible implementation manner, the suppressing unit is specifically configured to discard the ARP information, and send a notification message to a host that sends the ARP information.
In a third aspect, the present application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to perform the method provided by the first aspect of the present application.
Therefore, by applying the method and the device for suppressing frequent migration of host routes provided by the application, the first VTEP receives a first EVPN NLRI message sent by the second VTEP, and the first EVPN NLRI message includes host address information. When the first VTEP locally learns the ARP information identical to the host address information, the first VTEP acquires the host route migration times corresponding to the ARP information, and accumulates the migration time required for completing the host route migration. And if the migration times are not less than the time threshold and the migration time is less than the time threshold, the first VTEP inhibits the learning of the ARP information. The problem of in the prior art, because host routing table item frequently migrates between VTEP, cause to form the loop between VTEP, continuously occupy the bandwidth, influence network stability is solved.
Drawings
Fig. 1 is a schematic diagram of an EVPN distributed gateway networking provided in the prior art;
FIG. 2 is a schematic diagram of message interaction between VTEPs provided in the prior art;
fig. 3 is a flowchart of a method for suppressing frequent migration of host routes according to an embodiment of the present disclosure;
fig. 4 is an EVPN distributed gateway networking diagram provided in an embodiment of the present application;
fig. 5 is a timing diagram illustrating suppression of frequent migration of host routes according to an embodiment of the present disclosure;
fig. 6 is a structural diagram of a device for suppressing frequent migration of host routes according to an embodiment of the present application;
fig. 7 is a hardware structure diagram of a network device 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 corresponding 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 "at … …" or "in response to a determination," depending on the context.
The method for suppressing frequent migration of host routes provided in the embodiments of the present application is described in detail below. Referring to fig. 3, fig. 3 is a flowchart of a method for suppressing frequent migration of host routes according to an embodiment of the present disclosure. The method is applied to a first VTEP. The method for suppressing frequent migration of host routes provided by the embodiment of the application can include the following steps.
Step 301, receiving a first EVPN NLRI message sent by a second VTEP, where the first EVPN NLRI message includes host address information.
Specifically, as shown in fig. 1, the method for suppressing frequent migration of host routes provided by the embodiment of the present application may be applied to the EVPN distributed gateway networking shown in fig. 1. The EVPN comprises a plurality of VTEPs and a plurality of hosts, and each VTEP device is an EVPN gateway to realize three-layer forwarding of local host traffic.
In this embodiment of the present application, the first host accesses the second VTEP, and when the second VTEP learns the ARP information of the first host, the second VTEP generates a host routing table entry, that is, generates an ARP table entry and a FIB table entry corresponding to the first host.
The second VTEP generates a first EVPN NLRI message that includes host address information of the first host, which may specifically include a MAC address and an IP address of the first host.
The second VTEP advertises the first EVPN NLRI message to the first VTEP via the MP-BGP protocol.
It can be understood that EVPN NLRI message includes five routing types, respectively: ethernet Auto-discovery Route (Ethernet Auto-discovery Route), MAC/IP Advertisement Route (MAC/IP Advertisement Route), inclusive Multicast Ethernet Tag Route (Inclusive Ethernet Tag Route), ethernet Segment Route (Ethernet Segment Route), and IP Prefix Route (IP Prefix Advertisement Route).
In the embodiment of the present application, the EVPN NLRI message is specifically an EVPN two-type route, that is, a MAC/IP issue route.
Step 302, when the first VTEP locally learns the ARP information that is the same as the host address information, obtaining the migration times of the host routing table entry corresponding to the ARP information, and accumulating the migration time required for completing the host routing table entry migration.
Specifically, after receiving the first EVPN NLRI message, the first VTEP obtains the host address information from the first EVPN NLRI message, and generates the remote host routing table entry according to the host address information, that is, generates the ARP table entry and the FIB table entry corresponding to the first host.
In the embodiment of the application, the second host accesses the first VTEP, and the second host and the first host have the same IP address. When the first VTEP locally learns the ARP information of the second host, the first VTEP determines that the locally learned ARP information is the same as the host address information included in the first EVPN NLRI message sent by the second VTEP, that is, the first VTEP learns the ARP information of the same IP address again.
At this time, because the first VTEP has locally stored the host routing table entry corresponding to the ARP information of the second host, that is, the remote host routing table entry corresponding to the first host, the first VTEP identifies whether the remote host routing table entry corresponding to the first host has a migration condition. The first VTEP acquires the migration times of the remote host routing table entry and accumulates the migration time required for completing the migration of the remote host routing table entry.
It should be noted that in the embodiments of the present application, "migration" specifically means: and after receiving the EVPN NLRI message sent by the remote VTEP, the home VTEP establishes a remote host routing table entry. And establishing a local host routing table entry after locally learning ARP information which is the same as the IP address included in the EVPN NLRI message. And the local VTEP sends the EVPN NLRI message to the remote VTEP again so as to trigger the remote VTEP to send the EVPN NLRI withdrawal message to the local VTEP. And deleting the routing table entry of the remote host by the local terminal VTEP according to the EVPN NLRI revocation message.
It can be understood that the process of establishing the remote host routing table entry, establishing the local host routing table entry, and deleting the remote host routing table entry by the local VTEP is a "migration" process.
And 303, if the migration times are not less than the time threshold and the migration time is less than the time threshold, inhibiting the current learning of the ARP information.
Specifically, the first VTEP determines whether the number of transitions is greater than a number threshold, and whether the transition time is greater than a time threshold.
If the number of times of migration is not less than the number threshold and the migration time is less than the time threshold, the first VTEP suppresses the current learning of the ARP information in step 302. The first VTEP discards the ARP information and sends a hint message to the second host so that a user using the second host determines that the multiple hosts having the same IP address occur within the EVPN.
Further, if the number of times of migration is less than the threshold of times, the first VTEP allows the current learning of the ARP information; or, if the migration time is not less than the time threshold, the first VTEP allows the current learning of the ARP information.
Therefore, by applying the method for suppressing frequent migration of host routes provided by the embodiment of the present application, the first VTEP receives the first EVPN NLRI message sent by the second VTEP, where the first EVPN NLRI message includes host address information. When the first VTEP locally learns the ARP information identical to the host address information, the first VTEP acquires the host route migration times corresponding to the ARP information, and accumulates the migration time required for completing the host route migration. And if the migration times are not less than the time threshold and the migration time is less than the time threshold, the first VTEP inhibits the learning of the ARP information. The problem of in the prior art, because host routing table item frequently migrates between VTEP, cause to form the loop between VTEP, continuously occupy the bandwidth, influence network stability is solved.
Optionally, in this embodiment of the application, the first EVPN NLRI message in step 301 further includes a first routing sequence number.
In step 303, the first VTEP allows the current learning of the ARP information, and the specific process is as follows:
specifically, the first VTEP learns ARP information of the second host. The first VTEP generates a host routing table entry, that is, generates an ARP table entry and a FIB table entry corresponding to the second host.
After the first VTEP allows this learning of ARP information, the method further comprises the following process:
specifically, the first VTEP generates a second EVPN NLRI message that includes host address information of the second host and a second routing sequence number. The host address information may specifically include a MAC address and an IP address of the second host; the second route sequence number is greater than the first route sequence number.
And after receiving the second EVPN NLRI message, the second VTEP acquires a second routing sequence number from the second EVPN NLRI message, and identifies the size of the second routing sequence number and the size of a first routing sequence number included in the first EVPN NLRI message sent by the second VTEP.
In the embodiment of the present application, the first routing sequence number is 0; the second route sequence number is 1. And if the second routing sequence number is greater than the first routing sequence number, the host address information of the second host included in the second EVPN NLRI message sent by the first VTEP takes effect. The second VTEP generates a remote host routing table entry, and at the same time, the second VTEP generates an EVPN NLRI withdrawal message, which includes host address information of the first host.
And the second VTEP sends an EVPN NLRI withdrawal message to the first VTEP, so that the first VTEP deletes the corresponding remote host routing table entry according to the host address information of the first host.
It can be understood that, in the embodiment of the present application, if the locally learned ARP information is valid, the route sequence number is the route sequence number sent by the far-end VTEP plus 1.
The following is a detailed description by way of an example. As shown in fig. 4 and 5, fig. 4 is a networking diagram of an EVPN distributed gateway provided in an embodiment of the present application; fig. 5 is a timing diagram illustrating suppression of frequent migration of host routes according to an embodiment of the present disclosure. As shown in fig. 4, site1, site2, and Site3 belong to the same EVPN, and one host is set in each Site, and in the embodiment of the present application, a network includes three VTEPs, and one host is accessed under each VTEP, that is, host 1 is accessed to VTEP1, host 2 is accessed to VTEP2, and host 3 is accessed to VTEP3. The IP of host 1 in Site1 and IP of host 2 in Site2 are both configured to be 10.1.1.10, and there is an IP collision.
As shown in fig. 5, first, VTEP1 is assumed to learn the ARP information of host 1 first. Based on the ARP information of host 1, VTEP1 generates an ARP entry and an FIB entry for host 1. VTEP1 generates a first EVPN NLRI message that includes the MAC address, IP address, first routing sequence number of host 1. Wherein, the first route sequence number is 0.
VTEP1 sends a first EVPN NLRI message to VTEP2 via MP-BGP protocol.
VTEP2 learns and generates ARP table entries and FIB table entries of host 1 according to the first EVPN NLRI message announced by VTEP 1.
At this time, VTEP2 learns the ARP information of host 2. In the learning process, VTEP2 determines that the IP address of host 2 has been previously learned and has generated corresponding ARP entries and FIB entries. VTEP2 identifies whether migration exists in APR table entry and FIB table entry of host 1, and starts an M second timer at the same time.
The VTEP2 obtains the migration times X of the ARP entry and the FIB entry of the host 1, and accumulates the migration time T required to complete the migration of the ARP entry and the FIB entry of the host 1.
In one implementation, when the VTEP2 obtains that the number of migration times X is 0, and the number of migration times is smaller than the number threshold N, the VTEP2 allows the current learning of the ARP information of the host 2. Or, in another implementation manner, the migration times X of the ARP entry and the FIB entry of the host 1 are 3, the VTEP accumulates that the migration time T required for completing the migration of the ARP entry and the FIB entry of the host 1 for 3 times is 24s, and if the migration time is not less than the time threshold M, the VTEP2 allows the current learning of the ARP information of the host 2.
It should be noted that the number threshold N may be set empirically by a skilled person, for example, N is 4 times. The time threshold is the maximum number of seconds of the timer, e.g., M is 20s.
Then, VTEP2 generates an ARP entry and a FIB entry corresponding to host 2. VTEP2 generates a second EVPN NLRI message that includes the MAC address, IP address, second route sequence number of host 2. Wherein, the first route serial number is 1.
VTEP2 sends a second EVPN NLRI message to VTEP1 via MP-BGP protocol.
The VTEP1 acquires the MAC address, the IP address and the second routing sequence number of the host 2 from the second EVPN NLRI message. VTEP1 determines that the ARP entry and FIB entry of the same IP address already exist locally (i.e., the ARP entry and FIB entry of host 1). VTEP1 identifies the second route sequence number and the size of the first route sequence number included in the first EVPN NLRI message sent by itself.
In the embodiment of the present application, the first routing sequence number is 0; the second route sequence number is 1. If the second route sequence number is greater than the first route sequence number, the MAC address and IP address of the host 2 included in the second EVPN NLRI message sent by the VTEP2 take effect. VTEP1 generates ARP table entry and FIB table entry of host 2, meanwhile, VTEP1 generates EVPN NLRI withdraw message, this EVPN NLRI withdraw message includes MAC address, IP address, third route sequence number of host 1.
VTEP1 sends an EVPN NLRI withdrawal message to VTEP2 through MP-BGP protocol.
And the VTEP2 deletes the ARP table entry and the FIB table entry of the host 1 which are locally stored according to the EVPN NLRI revocation message.
So far, the migration process of the host routing table entry is completed between the VTEP1 and the VTEP 2.
The above processes of ARP learning, establishing host routing table entries, and deleting host routing table entries are repeated. As shown in fig. 5, multiple times of migration of the host routing table entries occur between VTEPs, for example, 5 times of migration of the host routing table entries have occurred between VTEPs 1 and VTEP2, and the migration time for completing 5 times of migration is 19s. At this time, when VTEP2 learns ARP information of host 2 again, VTEP2 suppresses the current learning of ARP information of host 2. VTEP2 discards the ARP information and sends a hint message to host 2 to allow the user using host 2 to determine that multiple hosts with the same IP address are present within the EVPN.
Therefore, VTEP2 inhibits the frequent migration of the host routing table entry through the above process, achieves routing convergence, and avoids forming a loop between VTEPs.
Based on the same inventive concept, the embodiment of the present application further provides a device for suppressing frequent migration of a host route, which corresponds to the method for suppressing frequent migration of a host route. Referring to fig. 6, fig. 6 is a structural diagram of an apparatus for suppressing frequent migration of host routes according to an embodiment of the present application, where the apparatus is applied to a first VTEP, and the apparatus includes:
a receiving unit 610, configured to receive a first EVPN NLRI message sent by a second VTEP, where the first EVPN NLRI message includes host address information;
an obtaining unit 620, configured to obtain, when the first VTEP locally learns ARP information that is the same as the host address information, migration times of a host routing table entry corresponding to the ARP information, and accumulate migration time required to complete migration of the host routing table entry;
a suppressing unit 630, configured to suppress the current learning of the ARP information if the number of times of migration is not less than a number threshold and the migration time is less than a time threshold.
Optionally, the apparatus further comprises:
an allowing unit 640, configured to allow the current learning of the ARP information if the number of times of migration is smaller than the number threshold.
Optionally, the allowing unit 640 is further configured to allow the current learning of the ARP information if the migration time is not less than the time threshold.
Optionally, the first EVPN NLRI message further includes a first routing sequence number;
the device further comprises: a generating unit 650, configured to generate a corresponding remote host routing table entry according to the host address information;
a sending unit 660, configured to send a second EVPN NLRI message to the second VTEP, where the second EVPN NLRI message includes the host address information and a second routing sequence number, and the second routing sequence number is greater than the first routing sequence number;
the receiving unit 610 is further configured to receive an EVPN NLRI revoke message sent by the second VTEP, where the EVPN NLRI revoke message includes the host address information;
the device further comprises: a deleting unit 670, configured to delete the corresponding remote host routing table entry according to the host address information.
Optionally, the suppressing unit 630 is specifically configured to discard the ARP information, and send a prompt message to the host that sends the ARP information.
Therefore, by applying the device for suppressing frequent migration of host routes provided by the embodiment of the present application, the first VTEP receives the first EVPN NLRI message sent by the second VTEP, where the first EVPN NLRI message includes host address information. When the first VTEP locally learns the ARP information identical to the host address information, the first VTEP acquires the host route migration times corresponding to the ARP information, and accumulates the migration time required for completing the host route migration. And if the migration times are not less than the time threshold and the migration time is less than the time threshold, the first VTEP inhibits the learning of the ARP information. The problem of in the prior art, because host routing table item frequently migrates between VTEP, cause to form the loop between VTEP, continuously occupy the bandwidth, influence network stability is solved.
Based on the same inventive concept, the present application further provides a network device, as shown in fig. 7, including a processor 710, a transceiver 720, and a machine-readable storage medium 730, where the machine-readable storage medium 730 stores machine-executable instructions capable of being executed by the processor 710, and the processor 710 is caused by the machine-executable instructions to perform the method for suppressing frequent migration of host routes provided in the present application. The aforementioned device for suppressing frequent migration of host routes shown in fig. 6 can be implemented by using a hardware structure of a network device shown in fig. 7.
The computer-readable storage medium 730 may include a Random Access Memory (RAM) or a Non-volatile Memory (NVM), such as at least one disk Memory. Alternatively, the computer-readable storage medium 930 may also be at least one memory device located remotely from the processor 710.
The Processor 710 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the embodiment of the present application, the processor 710 reads the machine executable instructions stored in the machine readable storage medium 730, and the machine executable instructions cause the processor 710 itself and the transceiver 720 to perform the method for suppressing frequent migration of host routes described in the embodiment of the present application.
Additionally, embodiments of the present application provide a machine-readable storage medium 730, where the machine-readable storage medium 730 stores machine-executable instructions, which when invoked and executed by the processor 710, cause the processor 710 itself and the invoking transceiver 720 to perform the method for suppressing frequent migration of host routes described in embodiments of the present application.
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 embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment 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.
For the embodiment of the suppression device and the machine-readable storage medium for frequent migration of host routes, the content of the related method is basically similar to that of the foregoing method embodiment, so the description is relatively simple, and for relevant points, reference may be made to the partial description of the method embodiment.
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 method for suppressing frequent migration of host routes, the method being applied to a first VTEP, the method comprising:
receiving a first EVPN NLRI message sent by a second VTEP, wherein the first EVPN NLRI message comprises host address information;
when the first VTEP locally learns the ARP information which is the same as the host address information, acquiring the migration times of the host routing table items corresponding to the ARP information, and accumulating the migration time required for completing the migration of the host routing table items;
if the migration times are not less than the time threshold and the migration time is less than the time threshold, the current learning of the ARP information is inhibited;
the host address information is an MAC address and an IP address, and the migration is that a local terminal VTEP establishes a far-end host routing table entry after receiving an EVPN NLRI message sent by a far-end VTEP; after ARP information which is the same as the IP address included in the EVPN NLRI message is locally learned, a home terminal host routing table item is established; the local VTEP sends the EVPN NLRI message to the remote VTEP again so as to trigger the remote VTEP to send an EVPN NLRI revocation message to the local VTEP; and deleting the routing table entry of the remote host by the local terminal VTEP according to the EVPN NLRI revocation message.
2. The method of claim 1, further comprising:
and if the migration times are smaller than the time threshold, allowing the ARP information to be learned this time.
3. The method of claim 1, further comprising:
and if the migration time is not less than the time threshold, allowing the ARP information to be learned this time.
4. The method of claim 2 or 3, wherein the first EVPN NLRI message further comprises a first routing sequence number;
after receiving the first EVPN NLRI message sent by the second VTEP, the method further includes:
generating a corresponding remote host routing table entry according to the host address information;
after the allowing of the learning of the ARP information, the method further comprises:
sending a second EVPN NLRI message to the second VTEP, wherein the second EVPN NLRI message comprises the host address information and a second routing sequence number, and the second routing sequence number is greater than the first routing sequence number;
receiving an EVPN NLRI revocation message sent by the second VTEP, wherein the EVPN NLRI revocation message comprises the host address information;
and deleting the corresponding remote host routing table entry according to the host address information.
5. The method according to claim 1, wherein said suppressing the learning of the ARP information specifically comprises:
and discarding the ARP information, and sending a prompt message to a host sending the ARP information.
6. An apparatus for suppressing frequent migration of host routes, the apparatus being applied to a first VTEP, the apparatus comprising:
a receiving unit, configured to receive a first EVPN NLRI message sent by a second VTEP, where the first EVPN NLRI message includes host address information;
an obtaining unit, configured to obtain, when the first VTEP locally learns ARP information that is the same as the host address information, a migration number of host routing table entries corresponding to the ARP information, and accumulate migration time required to complete host routing table entry migration;
a suppressing unit, configured to suppress the current learning of the ARP information if the migration number is not less than a number threshold and the migration time is less than a time threshold;
the host address information is an MAC address and an IP address, and the migration is that a local terminal VTEP establishes a far-end host routing table entry after receiving an EVPN NLRI message sent by a far-end VTEP; after ARP information which is the same as the IP address included in the EVPN NLRI message is locally learned, a home terminal host routing table item is established; the local VTEP sends the EVPN NLRI message to the remote VTEP again so as to trigger the remote VTEP to send an EVPN NLRI revocation message to the local VTEP; and deleting the routing table entry of the remote host by the local terminal VTEP according to the EVPN NLRI revocation message.
7. The apparatus of claim 6, further comprising:
and the allowing unit is used for allowing the learning of the ARP information if the migration times are smaller than the time threshold.
8. The apparatus of claim 7, wherein the allowing unit is further configured to allow the current learning of the ARP information if the migration time is not less than the time threshold.
9. The apparatus of claim 7 or 8, wherein the first EVPN NLRI message further comprises a first routing sequence number;
the device further comprises: the generating unit is used for generating a corresponding remote host routing table entry according to the host address information;
a sending unit, configured to send a second EVPN NLRI message to the second VTEP, where the second EVPN NLRI message includes the host address information and a second routing sequence number, and the second routing sequence number is greater than the first routing sequence number;
the receiving unit is further configured to receive an EVPN NLRI revoke message sent by the second VTEP, where the EVPN NLRI revoke message includes the host address information;
the device further comprises: and the deleting unit is used for deleting the corresponding remote host routing table entry according to the host address information.
10. The apparatus of claim 6, wherein the suppression unit is configured to discard the ARP information and send a hint message to a host that sent the ARP information.
CN202010361703.2A 2020-04-30 2020-04-30 Method and device for inhibiting frequent migration of host route Active CN111698154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010361703.2A CN111698154B (en) 2020-04-30 2020-04-30 Method and device for inhibiting frequent migration of host route

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010361703.2A CN111698154B (en) 2020-04-30 2020-04-30 Method and device for inhibiting frequent migration of host route

Publications (2)

Publication Number Publication Date
CN111698154A CN111698154A (en) 2020-09-22
CN111698154B true CN111698154B (en) 2023-04-07

Family

ID=72476891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010361703.2A Active CN111698154B (en) 2020-04-30 2020-04-30 Method and device for inhibiting frequent migration of host route

Country Status (1)

Country Link
CN (1) CN111698154B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630343B (en) * 2021-06-30 2022-10-25 苏州浪潮智能科技有限公司 Method, system and terminal for processing MAC address migration inhibition based on EVPN
CN113765783B (en) * 2021-08-05 2022-11-18 新华三大数据技术有限公司 Communication method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291320A (en) * 2011-09-29 2011-12-21 杭州华三通信技术有限公司 MAC (media access control) address learning method and edge device
CN104052666A (en) * 2013-03-14 2014-09-17 杭州华三通信技术有限公司 Method and apparatus for realizing host route reachability
CN105337952A (en) * 2014-08-14 2016-02-17 杭州华三通信技术有限公司 Method and device used for inhibiting host computer from frequently migrating
CN107612834A (en) * 2017-09-13 2018-01-19 杭州迪普科技股份有限公司 A kind of EVPN route renewing methods based on virtual unit migration
CN108600099A (en) * 2018-04-19 2018-09-28 新华三技术有限公司 A kind of message forwarding method, device and Leaf equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291320A (en) * 2011-09-29 2011-12-21 杭州华三通信技术有限公司 MAC (media access control) address learning method and edge device
CN104052666A (en) * 2013-03-14 2014-09-17 杭州华三通信技术有限公司 Method and apparatus for realizing host route reachability
CN105337952A (en) * 2014-08-14 2016-02-17 杭州华三通信技术有限公司 Method and device used for inhibiting host computer from frequently migrating
CN107612834A (en) * 2017-09-13 2018-01-19 杭州迪普科技股份有限公司 A kind of EVPN route renewing methods based on virtual unit migration
CN108600099A (en) * 2018-04-19 2018-09-28 新华三技术有限公司 A kind of message forwarding method, device and Leaf equipment

Also Published As

Publication number Publication date
CN111698154A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
Sajassi et al. Bgp mpls-based ethernet vpn
US10404592B2 (en) System and method to facilitate content forwarding using bit index explicit replication (BIER) in an information-centric networking (ICN) environment
US10567279B2 (en) Egress node protection for broadcast, unknown unicast, or multicast traffic in EVPN topologies
EP3624429B1 (en) Reducing arp/nd flooding in cloud environment
CN110324226A (en) Improve the aliasing behavior of more host site flows in ether Virtual Private Network network
US10110482B2 (en) Technique for network service availability
US20160065503A1 (en) Methods, systems, and computer readable media for virtual fabric routing
CN107547510B (en) Neighbor discovery protocol security table item processing method and device
CN109525601B (en) Method and device for isolating transverse flow between terminals in intranet
EP4073986A1 (en) Efficient arp bindings distribution in vpn networks
JP6633775B2 (en) Packet transmission
CN106878288B (en) message forwarding method and device
WO2011110029A1 (en) Method and system for host route reachability in packet transport network access ring
CN111698154B (en) Method and device for inhibiting frequent migration of host route
CN109076019B (en) Addressing for customer premises LAN extensions
CN111541616A (en) Flow control method and device
CN111740961B (en) Communication method and device
CN107770294A (en) The processing method and processing device of IP address conflicts in EVPN
CN115277305A (en) Network management method, device, equipment and machine readable storage medium
CN113726653A (en) Message processing method and device
CN108306825A (en) A kind of equivalence forwarding-table item generation method and VTEP equipment
CN109862137B (en) Message transmission method and device
CN103685029A (en) Method and equipment for forwarding messages in rapid ring protection protocol networking
CN112350936A (en) Method and device for optimizing interior gateway protocol flooding and storage medium
Noghani et al. EVPN/SDN assisted live VM migration between geo-distributed data centers

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