[go: up one dir, main page]

CN111107005B - Route filtering method and device, electronic equipment and computer readable storage medium - Google Patents

Route filtering method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN111107005B
CN111107005B CN201911315757.9A CN201911315757A CN111107005B CN 111107005 B CN111107005 B CN 111107005B CN 201911315757 A CN201911315757 A CN 201911315757A CN 111107005 B CN111107005 B CN 111107005B
Authority
CN
China
Prior art keywords
routing
branch
vni
group
route
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
CN201911315757.9A
Other languages
Chinese (zh)
Other versions
CN111107005A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201911315757.9A priority Critical patent/CN111107005B/en
Publication of CN111107005A publication Critical patent/CN111107005A/en
Application granted granted Critical
Publication of CN111107005B publication Critical patent/CN111107005B/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/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

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 invention relates to a route filtering method, a device, electronic equipment and a computer readable storage medium.A core device obtains and stores a routing message announced by a branch device, and adds a device identifier included in the routing message into a corresponding announcement group when confirming that the announcement group corresponding to a network identifier included in the routing message exists; then the core device advertises the routing message to the branch devices corresponding to the other device identifiers included in the corresponding advertising group through the routing table corresponding to the routing identifier included in the routing message. In the process, the core device only matches the query action of the advertisement group, and only traverses the branch devices corresponding to other device identification members in the corresponding advertisement group, so that the filtering efficiency can be improved compared with the prior art in which the core device traverses all the branch devices establishing the neighbor relationship with the core device and each neighbor needs one query and matching.

Description

Route filtering method and device, electronic equipment and computer readable storage medium
Technical Field
The application belongs to the field of communication, and particularly relates to a route filtering method and device, electronic equipment and a computer readable storage medium.
Background
The network topology of the data center operating in the VXLAN (virtual extensible local area network) + EVPN (ethernet virtual private network) network environment mostly adopts a spin-LEAF structure (SPINE structure), and includes a core device and a branch device connected to the core device. Each branch device establishes a neighbor relationship with and only with the core device. The core device needs to assume the role of EVPN route reflector in addition to the central node role of IP forwarding.
Each branch device sends a route to the core device, and the core device records the route and reflects the route to other branch devices. However, each branch device is accessed to different tenants, and only the same tenant has intercommunication requirement, which means that the designated branch device only needs to receive the route of the remote branch device accessed by the same tenant. However, in actual deployment, the core device performs indiscriminate notification, which wastes a lot of resources and occupies network bandwidth, so that when the core device reflects the route, the core device needs to filter the route, that is, the route is sent to the branch device having the acquisition requirement.
In a traditional filtering mode, core equipment needs to filter based on each neighbor after traversing all the branch equipment with neighbor relation established, and the filtering efficiency is low.
Disclosure of Invention
In view of the above, an object of the present application is to provide a method, an apparatus, an electronic device and a computer-readable storage medium for route filtering, so as to improve filtering efficiency.
In a first aspect, an embodiment of the present application provides a route filtering method, which is applied to a core device included in a data center, where the data center further includes a plurality of branch devices communicatively connected to the core device, and the data center operates in a virtual extensible local area network and an ethernet virtual private network, where the method includes: obtaining and storing a routing message announced by any branch device, wherein the routing message comprises a network identifier VNI and a routing identifier RD; and when determining that an advertisement group corresponding to the VNI exists and the any branch device is not in the advertisement group, adding the any branch device into the advertisement group, and advertising the routing message to other branch devices in the advertisement group through a routing table corresponding to the RD. In the process, the core device only matches the query action of the advertisement group, and only traverses the branch devices corresponding to other device identification members in the corresponding advertisement group, so that the filtering efficiency can be improved compared with the prior art in which the core device traverses all the branch devices establishing the neighbor relationship with the core device and each neighbor needs one query and matching.
With reference to the embodiment of the first aspect, in one possible implementation manner, the method further includes: upon determining that there is no advertising group corresponding to the VNI, creating an advertising group corresponding to the VNI and joining the any of the branch devices into the advertising group.
With reference to the embodiment of the first aspect, in one possible implementation manner, the method further includes: creating a routing map group corresponding to the VNI, and adding the RD to the routing map group corresponding to the VNI.
With reference to the embodiment of the first aspect, in a possible implementation manner, after joining the any branch device to the announcement group, the method further includes: and announcing the corresponding route of the route message announced by other branch equipment in the announcement group to any branch equipment.
With reference to the embodiment of the first aspect, in a possible implementation manner, the notifying, to any one of the branch devices, a route corresponding to a route packet notified by another branch device in the notification group includes: traversing a route mapping group corresponding to the VNI, notifying a route including the VNI in a routing table corresponding to the RD included in the route mapping group to any branch device, and adding the RD into the route mapping group.
With reference to the embodiment of the first aspect, in one possible implementation manner, the method further includes: when determining that an advertisement group corresponding to the VNI exists and any one of the branch devices is in the advertisement group, directly advertising the routing message to other branch devices of the advertisement group through a routing table corresponding to the RD, and adding the RD to a routing mapping group corresponding to the VNI.
In a second aspect, an embodiment of the present application provides a routing filtering apparatus, which is applied to a core device included in a data center, where the data center further includes a plurality of branch devices communicatively connected to the core device, and the data center runs in a virtual extensible local area network and an ethernet virtual private network, and the apparatus includes: the device comprises an acquisition module and an execution module. The device comprises an acquisition module, a routing module and a routing module, wherein the acquisition module is used for acquiring and storing a routing message announced by any branch device, and the routing message comprises a network identifier VNI and a routing identifier RD; and the execution module is configured to, when it is determined that an advertisement group corresponding to the VNI exists and the any one of the branch devices is not in the advertisement group, add the any one of the branch devices to the advertisement group, and advertise the routing packet to other branch devices in the advertisement group through a routing table corresponding to the RD.
With reference to the second aspect, in a possible implementation manner, the execution module is further configured to, when it is determined that there is no advertisement group corresponding to the VNI, create an advertisement group corresponding to the VNI, and join the any of the branch devices into the advertisement group.
With reference to the second aspect, in a possible implementation manner, the apparatus further includes a creating module, configured to create a routing map group corresponding to the VNI, and add the RD to the routing map group corresponding to the VNI.
With reference to the second aspect, in a possible implementation manner, the apparatus further includes an advertisement module, configured to advertise a route corresponding to a route packet advertised by other branch devices in the advertisement group to any one of the branch devices.
With reference to the second aspect, in a possible implementation manner, the advertisement module is configured to traverse a route mapping group corresponding to the VNI, advertise a route including the VNI in a routing table corresponding to an RD included in the route mapping group to the any of the branch devices, and add the RD to the route mapping group.
With reference to the second aspect embodiment, in a possible implementation manner, the executing module is further configured to, when it is determined that an advertisement group corresponding to the VNI exists and the any one of the branch devices is already in the advertisement group, directly notify the routing packet to other branch devices in the advertisement group through a routing table corresponding to the RD, and add the RD to a routing mapping group corresponding to the VNI.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a memory and a processor, the memory and the processor connected; the memory is used for storing programs; the processor calls a program stored in the memory to perform the method of the first aspect embodiment and/or any possible implementation manner of the first aspect embodiment.
In a fourth aspect, the present application further provides a non-transitory computer-readable storage medium (hereinafter, referred to as a computer-readable storage medium), on which a computer program is stored, where the computer program is executed by a computer to perform the method in the foregoing first aspect and/or any possible implementation manner of the first aspect.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts. The foregoing and other objects, features and advantages of the application will be apparent from the accompanying drawings. Like reference numerals refer to like parts throughout the drawings. The drawings are not intended to be to scale as practical, emphasis instead being placed upon illustrating the subject matter of the present application.
Fig. 1 shows a structural topology diagram of a data center provided in an embodiment of the present application.
Fig. 2 shows a flowchart of a route filtering method according to an embodiment of the present application.
Fig. 3 shows a block diagram of a route filtering apparatus according to an embodiment of the present application.
Fig. 4 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Reference numbers: 11-core devices; 12-a branch device; 100-an electronic device; 110-a processor; 120-a memory; 130-a transceiver; 400-route filtering means; 410-an obtaining module; 420-execution module.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Further, the term "and/or" in the present application is only one kind of association relationship describing the associated object, and means that three kinds of relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In addition, the drawback of low filtering efficiency of the routing filtering method in the prior art is also the result after the applicant has practiced and studied carefully, and therefore, the discovery process of the aforesaid drawback and the solution proposed by the embodiments of the present application in the following for the aforesaid drawback should be the contribution of the applicant to the present application in the course of the present application.
In order to solve the foregoing problems, embodiments of the present application provide a method and an apparatus for route filtering, an electronic device, and a computer-readable storage medium, so as to improve the efficiency of route filtering.
The technology can be realized by adopting corresponding software, hardware and a combination of software and hardware. The following describes embodiments of the present application in detail.
Fig. 1 is a structural topology diagram of a data center operating in a VXLAN + EVPN network environment according to an embodiment of the present disclosure. In this topology, the core device 11 and the branch devices 12 connected to the core device 11 are included, where the core device 11 and the branch devices 12 may be network devices such as switches.
EVPN neighbor relations are established between the core device 11 and the respective branch devices 12. The core device 11 is configured to forward the packet according to the IP address of the packet sent by each branch device 12, and in addition, the core device 11 is further configured to perform a reflection notification on the routing packet sent by each branch device 12.
The branch device 12 is in communication connection with the virtual machine and the server, and a user can perform data interaction with the branch device 12 through the server, so that a lease relationship with the virtual machine is established.
The route filtering method applied to the core device 11 according to the embodiment of the present application will be described in detail below with reference to the above topology diagram. Referring to fig. 2, the method includes the following steps.
The steps involved will be described below in conjunction with fig. 2.
Step S110: and obtaining and storing a routing message announced by any branch device, wherein the routing message comprises a network identifier (VNI), a device identifier and a routing identifier (RD).
The routing messages sent by the branch device 12 to the core device 11 are of five types, which are a first type routing message, a second type routing message, a third type routing message, a fourth type routing message, and a fifth type routing message.
In this embodiment, the routing packet refers to a type two routing packet, a type three routing packet, and a type five routing packet. The number of the second type of routing messages is related to the number of virtual machines in the whole network, the number of the third type of routing messages is related to the product of the number of VXLAN instances in the whole network and the number of VTEPs (VXLAN Tunneling Point, VXLAN tunnel terminals), and the number of the fifth type of routing messages is related to the product of the number of VRFs (virtual routing and forwarding) in the whole network and the number of subnet segments under each VRF.
And aiming at each routing message, the routing message comprises an identification field and a data field.
It is worth pointing out that, when a tenant establishes a lease relationship with a virtual machine according to the branch device 12, a network configurator configures an identifier corresponding to the tenant on the branch device 12, and accordingly, an identifier field of a routing packet originating from the tenant includes the identifier corresponding to the tenant.
Wherein the identification field includes a VNI, a device identification, and a RD.
The VNI is used to identify a tenant from which the routing packet comes, the LEAF is used to identify a branch device 12 from which the routing packet comes, the RD is used to identify a routing table corresponding to the routing packet, and the RD and the VNI have a unique mapping relationship on the branch device 12.
The device identifier is used to uniquely identify the branch device, and may be a device IP, a device MAC address, or a device ID of the branch device. The device identifier may be extracted from the routing message.
After obtaining the routing packet, the core device 11 parses the routing packet, obtains the VNI, the device identifier, and the RD included in the routing packet, and stores the routing packet in the routing table corresponding to the RD.
Step S120: upon determining that an advertising group corresponding to the VNI exists and that the any of the branch devices is not in the advertising group, joining the any of the branch devices to the advertising group.
It should be noted that, when acquiring a new VNI for the first time, the core device 11 may create an advertisement group corresponding to the new VNI, and add the branch device that sends the route packet including the new VNI to the advertisement group as a member of the advertisement group. Wherein joining the branch device to the advertised group may be joining a device identification of the branch device to the advertised group.
For example, the core device 11 obtains a two-type routing packet (VNI is VNI10, device identifier is ID1, and RD is RD1), a three-type routing packet (VNI is VNI20, device identifier is ID1, and RD is RD2), and a five-type routing packet (VNI is VNI30, device identifier is ID1, and RD is RD3) sent by the branch device 12(ID 1). Assuming that VNI10, VNI20, and VNI30 are all acquired by the core device 11 for the first time, the core device creates a corresponding advertisement group based on VNI10, VNI20, and VNI30, respectively, and adds a device identifier (ID1) included in a routing packet corresponding to the VNI acquired for the first time to the corresponding advertisement group. The advertisement group created by the core device 11 is shown in table 1.
TABLE 1
VNI10 VNI20 VNI30
ID1 ID1 ID1
Subsequently, after acquiring the routing packet, the core device 11 first determines whether an advertisement group corresponding to the VNI included in the currently acquired routing packet exists.
When there is an advertisement group corresponding to the VNI included in the currently acquired routing packet and the device identifier of the branch device 12 that transmits the currently acquired routing packet is not in the advertisement group, the core device 11 adds the device identifier included in the currently acquired routing packet to the advertisement group corresponding to the VNI included in the currently acquired routing packet.
Assuming that the advertisement group shown in table 1 exists, subsequently, the core device 11 obtains a two-type routing packet (VNI is VNI10, device identifier is ID2, and RD is RD1), a three-type routing packet (VNI is VNI20, device identifier is ID2, and RD is RD2), and a five-type routing packet (VNI is VNI40, device identifier is ID2, and RD is RD4) sent by the branch device 12(ID 2). According to the above rules, for the second-class routing packet sent by the branch device 12 corresponding to the ID2, the VNI (VNI10) included in the second-class routing packet already has a corresponding advertisement group, and the core device 11 adds the device identifier (ID2) included in the second-class routing packet into the advertisement group corresponding to the VNI 10; for the three types of routing packets sent by the branch device 12 corresponding to the ID2, the VNI (VNI20) included in the three types of routing packets already has a corresponding advertisement group, and the core device 11 adds the device identifier (ID2) included in the three types of routing packets to the advertisement group corresponding to VNI 20; for the five types of routing packets sent by the branch device 12 corresponding to the ID2, the VNI (VNI40) included in the routing packet does not have a corresponding advertisement group, and the core device 11 creates an advertisement group corresponding to the VNI40 and adds the device identifier (ID2) to the advertisement group, so that table 1 is updated to table 2.
TABLE 2
VNI10 VNI20 VNI30 VNI40
ID1 ID1 ID1 ID2
ID2 ID2
Step S130: and announcing the routing message to other branch devices of the announcing group through the routing table corresponding to the RD.
After the core device 11 adds the device identifier included in the currently acquired routing packet to the corresponding advertisement group, the core device 11 queries a routing table corresponding to the RD included in the currently acquired routing packet, and advertises the currently acquired routing packet to other branch devices 12 in the advertisement group corresponding to the VNI included in the currently acquired routing packet according to the queried routing table, thereby implementing routing filtering.
It is assumed that table 2 already exists, and the core device 11 currently acquires a class-two routing packet sent by the branch device 12(ID3) (VNI is VNI10, device identifier is ID3, and RD is RD 1).
According to the above description, the core device 11 adds the ID3 to the advertisement group corresponding to the VNI10, and updates the advertisement group to table 3.
TABLE 3
VNI10 VNI20 VNI30 VNI40
ID1 ID 1 ID 1 ID 2
ID2 ID 2
ID 3
Subsequently, the core device 11 queries a routing table corresponding to the RD (i.e., RD1) included in the currently acquired routing packet, and notifies the currently acquired routing packet to other branch devices 12 in the notification group corresponding to the VNI10 according to the queried routing table (i.e., the branch device 12 corresponding to the device identifier ID1 and the branch device 12 corresponding to the device identifier ID2), thereby implementing routing filtering.
In the process of sending the currently acquired routing packet to other branch devices 12 in the corresponding advertisement group, the core device 11 only matches the query action of the advertisement group, and only traverses other branch devices 12 in the corresponding advertisement group, so that compared with the prior art in which the core device 11 traverses all branch devices 12 that establish a neighbor relationship with itself, and each neighbor needs to query and match once, the filtering efficiency can be improved.
Of course, when the core device 11 acquires the routing packet and determines whether there is an advertisement group corresponding to the VNI included in the currently acquired routing packet, a situation may occur that there is an advertisement group corresponding to the VNI included in the currently acquired routing packet, but the device identifier included in the currently acquired routing packet is already stored in the corresponding advertisement group, and at this time, the core device 11 may directly notify the currently acquired routing packet to the other branch devices 12 in the corresponding advertisement group through the routing table corresponding to the RD included in the routing packet.
In addition, as an optional implementation manner, after the core device 11 adds a device identifier (for convenience of description, referred to as a current device identifier) included in the currently acquired routing packet to an advertisement group corresponding to a VNI (for convenience of description, referred to as a current VNI) included in the core device 11, the core device 11 further needs to advertise a route corresponding to a routing packet including the current VNI, which is advertised by other branch devices 12 in the corresponding advertisement group, to the branch device 12 corresponding to the current device identifier. When the core device 11 advertises the route corresponding to the route packet of the other branch device 12 to the branch device 12 corresponding to the current device identifier, the core device advertises the route through the route table corresponding to the RD included in the route packet of the other branch device 12.
It is worth pointing out that, when the core device 11 first acquires a new VNI, it may also create a route mapping group corresponding to the new VNI, and add the RD included in the route packet including the new VNI to the route mapping group as a member of the route mapping group.
For example, the core device 11 obtains a two-type routing packet (VNI is VNI10, device identifier is ID1, and RD is RD1), a three-type routing packet (VNI is VNI20, device identifier is ID1, and RD is RD2), and a five-type routing packet (VNI is VNI30, device identifier is ID1, and RD is RD3) sent by the branch device 12(ID 1). Assuming that VNI10, VNI20, and VNI30 are all acquired by the core device 11 for the first time, the core device 11 creates a corresponding routing mapping group based on VNI10, VNI20, and VNI30, respectively, and adds RD included in a routing packet corresponding to the VNI acquired for the first time to the corresponding routing mapping group. The routing map set created by the core device 11 is shown in table 4.
TABLE 4
VNI10 VNI20 VNI30
RD1 RD2 RD3
When the core device 11 advertises, to the branch device 12 corresponding to the current device identifier, the route corresponding to the route packet advertised by the other branch device 12 in the advertisement group corresponding to the current VNI, it first determines whether a route mapping group corresponding to the current VNI exists.
When there is a route mapping group corresponding to the current VNI, the core device 11 traverses the route mapping group, queries the RD included in the route packet including the current VNI advertised by the other branch device 12, and then advertises, to the branch device 12 corresponding to the current device identifier, the route corresponding to the route packet including the current VNI advertised by the other branch device 12 through the route table corresponding to the RD. Of course, the core device 11 also adds the RD included in the currently acquired routing packet to the routing mapping group corresponding to the current VNI.
Still taking the above example as an example, assume that the route map set of table 4 above already exists.
After the core device 11 advertises the currently acquired routing packet to other branch devices 12 in the advertising group corresponding to the VNI10 (i.e. the branch device 12 with the device ID1 and the branch device 12 with the device ID2), the core device 11 further advertises, to the branch device 12 corresponding to the current device identifier (ID3), the route packet including the current VNI (VNI10) advertised by other branch devices 12 in the VNI10 (i.e., the branch device 12 whose device identifier is ID1 and the branch device 12 whose device identifier is ID2) through the route table corresponding to RD (only RD1) in the route mapping group corresponding to VNI10, and adding the RD (RD1) included in the currently acquired routing message into the routing mapping group corresponding to the current VNI, since the RD of all routing packets with the same VNI is the same in the above example, the routing mapping set shown in table 4 is not changed.
It is worth pointing out that, in order to facilitate unified planning management, in a data center, the mapping relationship between VNIs and RDs on all network devices is generally set to be consistent, that is, the following cases in the above example are corresponded: when VNIs of routing packets from different branch devices 12 are the same, RD included in the routing packets is also the same.
It may be understood that, when the RD included in the route packet advertised by different branch devices 12 in the above example includes the same VNI is different, the core device 11 advertises the route packet including the current VNI, which is issued by the branch device 12, to the branch device 12 corresponding to the current device identifier (ID3) through the mapping table corresponding to the RD included in the route packet.
In the process of announcing the routing packet including the current VNI announced by the other branch devices 12 in the corresponding announcing group to the branch device 12 corresponding to the current device identifier through the routing table corresponding to the RD included in the routing mapping group, the core device 11 may determine the corresponding routing table only by traversing the routing mapping group corresponding to the current VNI, whereas in the prior art, the core device 11 needs to traverse all existing RDs, so that efficiency is improved compared with the prior art.
Of course, as an optional implementation manner, the core device 11 may advertise the route packet including the current VNI advertised by the other branch devices 12 in the corresponding advertisement group to the branch device 12 corresponding to the current device identifier in batch through the routing table corresponding to the RD included in the route mapping group corresponding to the current VNI, so as to further improve the filtering efficiency.
In the method for filtering a route provided in the embodiment of the present application, a core device 11 obtains and stores a route packet advertised by a certain branch device 12, and when it is determined that an advertisement group corresponding to a VNI included in the route packet exists and the branch device 12 is not in the advertisement group, adds the branch device 12 to the corresponding advertisement group; then, the core device 11 advertises the routing packet to the other branch devices 12 included in the corresponding advertising group through the routing table corresponding to the RD included in the routing packet. In this process, the core device 11 only has the query action of matching the advertisement group, and only traverses the other branch devices 12 in the corresponding advertisement group, so that the filtering efficiency can be improved compared with the prior art in which the core device 11 traverses all the branch devices 12 establishing a neighbor relationship with itself, and each neighbor needs to query for matching once.
Referring to fig. 3, referring to fig. 2, an embodiment of the present application further provides a route filtering apparatus 400, where the route filtering apparatus 400 may include: an acquisition module 410 and an execution module 420.
An obtaining module 410, configured to obtain and store a routing packet advertised by any branch device, where the routing packet includes a network identifier (VNI) and a routing identifier (RD);
an executing module 420, configured to, when it is determined that an advertisement group corresponding to the VNI exists and the any one of the branch devices is not in the advertisement group, add the any one of the branch devices to the advertisement group, and advertise the routing packet to other branch devices in the advertisement group through a routing table corresponding to the RD.
Optionally, the executing module 420 is further configured to, when it is determined that there is no advertising group corresponding to the VNI, create an advertising group corresponding to the VNI, and join the any of the branch devices into the advertising group.
Optionally, the apparatus further includes a creating module, configured to create a routing map group corresponding to the VNI, and add the RD to the routing map group corresponding to the VNI.
Optionally, the apparatus further includes an advertisement module, configured to advertise a route corresponding to a route packet advertised by other branch devices in the advertisement group to any of the branch devices.
Optionally, the advertisement module is configured to traverse a route mapping group corresponding to the VNI, advertise a route including the VNI in a routing table corresponding to an RD included in the route mapping group to the any of the branch devices, and add the RD to the route mapping group.
Optionally, the executing module 420 is further configured to, when it is determined that an advertisement group corresponding to the VNI exists and the any one of the branch devices is already in the advertisement group, directly advertise the routing packet to other branch devices in the advertisement group through a routing table corresponding to the RD, and add the RD to a routing mapping group corresponding to the VNI.
Optionally, the routing packet is a second type routing packet, a third type routing packet, or a fifth type routing packet.
The implementation principle and the resulting technical effect of the route filtering apparatus 400 provided in the embodiment of the present application are the same as those of the foregoing method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the foregoing method embodiments for parts of the embodiments that are not mentioned in the description.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a computer, the method for route filtering as described above is performed.
In addition, please refer to fig. 4, an electronic device 100 is further provided in an embodiment of the present application.
The electronic device 100 may be a core device in the foregoing, and includes a processor 110, and a memory 120 and a transceiver 130 connected to the processor 110.
The processor 110, the memory 120, and the transceiver 130 may be connected by a communication bus as shown in fig. 4, or may be connected by other connection methods.
The memory 120 stores therein a computer program that, when executed by the processor 110, causes the electronic device 100 to perform: obtaining and storing a routing message advertised by any of the branch devices 12, where the routing message includes a network identifier (VNI) and a routing identifier (RD); upon determining that an advertising group corresponding to the VNI exists and that the any of the branch devices is not in the advertising group, joining the any of the branch devices to the advertising group; and announcing the routing message to other branch devices 12 of the announcing group through the routing table corresponding to the RD.
Of course, the method disclosed in any of the embodiments of the present application can be applied to the processor 110, or implemented by the processor 110.
To sum up, in the route filtering method, the apparatus, the electronic device, and the computer-readable storage medium according to the embodiments of the present invention, the core device 11 obtains and stores a route packet advertised by a certain branch device 12, and when it is determined that an advertisement group corresponding to a VNI included in the route packet exists and the branch device 12 is not in the advertisement group, adds the branch device 12 to the corresponding advertisement group; then, the core device 11 advertises the routing packet to the other branch devices 12 included in the corresponding advertising group through the routing table corresponding to the RD included in the routing packet. In this process, the core device 11 only has the query action of matching the advertisement group, and only traverses the other branch devices 12 in the corresponding advertisement group, so that the filtering efficiency can be improved compared with the prior art in which the core device 11 traverses all the branch devices 12 establishing a neighbor relationship with itself, and each neighbor needs to query for matching once.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a notebook computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application.

Claims (10)

1. A route filtering method applied to a core device included in a data center, the data center further including a plurality of branch devices communicatively connected to the core device, the data center operating in a virtual extensible local area network and an ethernet virtual private network, the method comprising:
obtaining and storing a routing message announced by any branch device, wherein the routing message comprises a network identifier VNI and a routing identifier RD;
when determining that an advertisement group corresponding to the VNI exists and any branch device is not in the advertisement group, adding the branch device into the advertisement group, and advertising the routing message to other branch devices in the advertisement group through a routing table corresponding to the RD;
after joining the any of the branch devices to the advertised group, the method further comprises:
and announcing the corresponding route of the route message announced by other branch equipment in the announcement group to any branch equipment.
2. The method of claim 1, further comprising:
upon determining that there is no advertising group corresponding to the VNI, creating an advertising group corresponding to the VNI and joining the any of the branch devices into the advertising group.
3. The method of claim 2, further comprising:
creating a routing map group corresponding to the VNI, and adding the RD to the routing map group corresponding to the VNI.
4. The method according to claim 1, wherein the notifying the route corresponding to the route packet notified by the other branch device in the notification group to the any branch device includes:
traversing a route mapping group corresponding to the VNI, notifying a route including the VNI in a routing table corresponding to the RD included in the route mapping group to any branch device, and adding the RD into the route mapping group.
5. The method of claim 1, further comprising:
when determining that an advertisement group corresponding to the VNI exists and any one of the branch devices is in the advertisement group, directly advertising the routing message to other branch devices of the advertisement group through a routing table corresponding to the RD, and adding the RD to a routing mapping group corresponding to the VNI.
6. A routing filtering apparatus, applied to a core device included in a data center, the data center further including a plurality of branch devices communicatively connected to the core device, the data center operating in a virtual extensible local area network and an ethernet virtual private network, the apparatus comprising:
the device comprises an acquisition module, a routing module and a routing module, wherein the acquisition module is used for acquiring and storing a routing message announced by any branch device, and the routing message comprises a network identifier VNI and a routing identifier RD;
an execution module, configured to, when it is determined that an advertisement group corresponding to the VNI exists and the any one of the branch devices is not in the advertisement group, add the any one of the branch devices to the advertisement group, and advertise the routing packet to other branch devices in the advertisement group through a routing table corresponding to the RD;
and the notification module is used for notifying the corresponding route of the route message notified by other branch equipment in the notification group to any branch equipment.
7. The apparatus of claim 6, wherein the execution module is further configured to, upon determining that no advertisement group corresponding to the VNI exists, create an advertisement group corresponding to the VNI and join the any of the branch devices into the advertisement group.
8. The apparatus of claim 6, wherein the executing module is further configured to, when it is determined that an advertisement group corresponding to the VNI exists and the any one of the forking devices is already in the advertisement group, directly advertise the routing packet to other forking devices of the advertisement group through a routing table corresponding to the RD, and add the RD to a routing mapping group corresponding to the VNI.
9. An electronic device, comprising: a memory and a processor, the memory and the processor connected;
the memory is used for storing programs;
the processor calls a program stored in the memory to perform the method of any of claims 1-5.
10. A computer-readable storage medium, on which a computer program is stored which, when executed by a computer, performs the method of any one of claims 1-5.
CN201911315757.9A 2019-12-18 2019-12-18 Route filtering method and device, electronic equipment and computer readable storage medium Active CN111107005B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911315757.9A CN111107005B (en) 2019-12-18 2019-12-18 Route filtering method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911315757.9A CN111107005B (en) 2019-12-18 2019-12-18 Route filtering method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN111107005A CN111107005A (en) 2020-05-05
CN111107005B true CN111107005B (en) 2022-02-22

Family

ID=70422506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911315757.9A Active CN111107005B (en) 2019-12-18 2019-12-18 Route filtering method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111107005B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005458A (en) * 2007-01-30 2007-07-25 华为技术有限公司 Method, device and system for down sending route
CN106921573A (en) * 2015-12-28 2017-07-04 华为技术有限公司 It is used to issue the method and device of tenant's route in NVo3 networks
CN107409083A (en) * 2015-03-26 2017-11-28 思科技术公司 Expansible processing to the bgp routing information in the VXLAN with EVPN control planes
CN108494686A (en) * 2018-02-28 2018-09-04 新华三技术有限公司 Route processing method and device
CN109756419A (en) * 2017-11-07 2019-05-14 中国电信股份有限公司 Routing iinformation distribution method, device and RR

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018020293A1 (en) * 2016-07-25 2018-02-01 Telefonaktiebolaget Lm Ericsson (Publ) Efficient vpn route refresh mechanism for bgp based vpn technologies

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005458A (en) * 2007-01-30 2007-07-25 华为技术有限公司 Method, device and system for down sending route
CN107409083A (en) * 2015-03-26 2017-11-28 思科技术公司 Expansible processing to the bgp routing information in the VXLAN with EVPN control planes
CN106921573A (en) * 2015-12-28 2017-07-04 华为技术有限公司 It is used to issue the method and device of tenant's route in NVo3 networks
CN109756419A (en) * 2017-11-07 2019-05-14 中国电信股份有限公司 Routing iinformation distribution method, device and RR
CN108494686A (en) * 2018-02-28 2018-09-04 新华三技术有限公司 Route processing method and device

Also Published As

Publication number Publication date
CN111107005A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN109729012B (en) Unicast message transmission method and device
US9882802B2 (en) Auto management of a virtual device context enabled network infrastructure
CN110505152B (en) Route filtering method and device and electronic equipment
CN109660442B (en) Method and device for multicast replication in Overlay network
US20140351419A1 (en) Automatic data ring discovery and configuration
CN104320459A (en) Node management method and device
US11374860B2 (en) Method and apparatus for sending routing information for network nodes
CN107404509B (en) Distributed service configuration system and information management method
CN105827687A (en) Cluster management method and management system thereof
CN109412949B (en) Data message transmission method and device
CN112953982B (en) Service processing method, service configuration method and related device
US10051552B2 (en) Method for realizing resource attribute notification, and common service entity
CN114024886B (en) Cross-resource-pool network intercommunication method, electronic equipment and readable storage medium
CN105142116A (en) Communication network switching method and switching system for intelligent equipment
WO2011038692A1 (en) Network node configuration information processing method, network node, and communication system
CN104022896A (en) Configuration management method and device and network equipment
CN103581353A (en) Method and system of automatic configuration of gateway device
CN111107005B (en) Route filtering method and device, electronic equipment and computer readable storage medium
CN104301131A (en) Fault management method and device
US20180069768A1 (en) Method and apparatus for establishing interface between vnfms, and system
CN100384146C (en) Method for managing distributed network devices
CN103889021A (en) Low power and lossy network member updating method and DODAG root node
CN102769571A (en) Graceful restart realization method and equipment
CN115834290B (en) A method, device, equipment and medium for dynamically establishing a tunnel
CN106559490B (en) A management method for storage cluster 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