CN106911549B - Data message processing method and device - Google Patents

Data message processing method and device Download PDF

Info

Publication number
CN106911549B
CN106911549B CN201710113989.0A CN201710113989A CN106911549B CN 106911549 B CN106911549 B CN 106911549B CN 201710113989 A CN201710113989 A CN 201710113989A CN 106911549 B CN106911549 B CN 106911549B
Authority
CN
China
Prior art keywords
route reflector
data message
route
sending
belonging
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
CN201710113989.0A
Other languages
Chinese (zh)
Other versions
CN106911549A (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 Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201710113989.0A priority Critical patent/CN106911549B/en
Publication of CN106911549A publication Critical patent/CN106911549A/en
Application granted granted Critical
Publication of CN106911549B publication Critical patent/CN106911549B/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
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

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 embodiment of the invention provides a data message processing method and device. The method is applied to a route reflector and comprises the following steps: acquiring a data message; determining whether the data message hits any routing information in the route reflector; if yes, forwarding the data message according to the routing information hit by the data message; if not, sending the data message to at least one route reflector belonging to the same route reflector group with the data message. It is easy to see that, after the route reflector is restarted, the scheme realizes the successful forwarding of the data message by the route reflector in a simple and easy way, thereby avoiding the loss of the data message.

Description

Data message processing method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data message processing method and apparatus.
Background
With the development of communication technology, the application of EVPN (Ethernet Virtual Private Network) as a two-layer VPN (Virtual Private Network) technology is becoming more and more widespread. When the EVPN technology is used for networking, devices in the entire network generally adopt a core-branch hierarchical structure.
Disclosure of Invention
The embodiment of the invention aims to provide a data message processing method and a data message processing device, so that after a route reflector is restarted, the successful forwarding of the data message by the route reflector is realized in a simple and easy way, and the loss of the data message is avoided.
The embodiment of the invention provides a data message processing method which is applied to a route reflector and comprises the following steps:
acquiring a data message;
determining whether the data message hits any routing information in the route reflector;
if yes, forwarding the data message according to the routing information hit by the data message;
if not, the data message is sent to at least one route reflector belonging to the same route reflector group with the data message.
In a specific implementation manner of the embodiment of the present invention, the sending the data packet to at least one route reflector belonging to the same route reflector group as the data packet itself includes:
and sending the data message to at least one route reflector belonging to the same route reflector group with the route reflector by utilizing a communication tunnel which is pre-constructed between the route reflector and each route reflector belonging to the same route reflector group with the route reflector.
In a specific implementation manner of the embodiment of the present invention, the communication tunnel is established based on a border gateway protocol BGP neighbor relationship between the route reflector and each route reflector belonging to the same route reflector group as the route reflector.
In a specific implementation manner of the embodiment of the present invention, the sending the data packet to at least one route reflector belonging to the same route reflector group as the data packet itself includes:
selecting a route reflector from route reflectors belonging to the same route reflector group with the route reflector group based on the residual resource information of the route reflectors belonging to the same route reflector group with the route reflector group;
and sending the data message to the selected route reflector.
In a specific implementation manner of the embodiment of the present invention, the method further includes:
and when the data message is sent to at least one route reflector which belongs to the same route reflector group as the data message, if the data message obtains the route information hit by the data message, stopping sending the data message to at least one route reflector which belongs to the same route reflector group as the data message, and forwarding the data message according to the route information hit by the data message.
The embodiment of the invention also provides a data message processing device which is applied to the route reflector, and the device comprises:
an obtaining module, configured to obtain a data packet;
a determining module, configured to determine whether the data packet hits any routing information in the route reflector;
a forwarding module, configured to forward the data packet according to the routing information hit by the data packet if the determination result of the determination module is yes;
and the sending module is used for sending the data message to at least one route reflector belonging to the same route reflector group with the sending module under the condition that the determination result of the determining module is negative.
In a specific implementation manner of the embodiment of the present invention, the sending module is specifically configured to:
and sending the data message to at least one route reflector belonging to the same route reflector group with the route reflector by utilizing a communication tunnel which is pre-constructed between the route reflector and each route reflector belonging to the same route reflector group with the route reflector.
In a specific implementation manner of the embodiment of the present invention, the communication tunnel is established based on a border gateway protocol BGP neighbor relationship between the route reflector and each route reflector belonging to the same route reflector group as the route reflector.
In a specific implementation manner of the embodiment of the present invention, the sending module includes:
the election module is used for electing the route reflector from the route reflectors belonging to the same route reflector group as the self-routing reflector group based on the residual resource information of the route reflectors belonging to the same route reflector group as the self-routing reflector group;
and the sending submodule is used for sending the data message to the elected route reflector.
In a specific implementation manner of the embodiment of the present invention, the apparatus further includes:
and the processing module is used for stopping sending the data message to the at least one route reflector which belongs to the same route reflector group as the processing module if the processing module obtains the route information hit by the data message while sending the data message to the at least one route reflector which belongs to the same route reflector group as the processing module and forwarding the data message according to the route information hit by the data message.
In this scheme, for the route reflector, after it is restarted, if it obtains a data packet, it can determine whether the data packet hits any route information in itself. If the data message hits a certain route information in the route reflector, the route reflector can forward the data message according to the route information hit by the data message, so as to realize the successful forwarding of the data message. If the data message is not hit in any routing information in the route reflector, the route reflector sends the data message to at least one route reflector belonging to the same route reflector group with the route reflector. Thus, for the at least one route reflector, under the condition that the route reflector is not restarted, route information capable of guiding the forwarding of the data message is certainly stored in the route reflector, and the route reflector can forward the data message to a corresponding next hop according to a next hop address in the route information, so that the successful forwarding of the data message is realized. It is easy to see that, after the route reflector is restarted, the scheme realizes the successful forwarding of the data message by the route reflector in a simple and easy way, thereby avoiding the loss of the data message.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a system architecture for EVPN;
fig. 2 is a flowchart of a data message processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another system architecture for EVPN;
fig. 4 is a block diagram of a data message processing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a system architecture diagram of an ethernet virtual private network EVPN is shown. As shown in fig. 1, EVPN includes: route reflectors RR (i.e., RR1 and RR2), virtual scalable local area network tunnel endpoints VTEP (i.e., VTEP1 and VTEP2), and customer edge router devices (i.e., CE11, CE21, and CE 22). It is easy to see that core-branch hierarchical structure is adopted in EVPN, wherein RR1 and RR2 are both used as core devices of VTEP1 and VTEP2, and VTEP1 and VTEP2 are both used as branch devices of RR1 and RR 2.
In general, under normal operating conditions, RR1 and RR2 each establish a BGP neighbor relationship with their own tributary (i.e., VTEP1 and VTEP 2). Assuming that RR1 has restarted, the BGP neighbor relations between RR1 and VTEP1 and VTEP2 go through the process of release and re-establishment in turn. After the BGP neighbor relationship is reestablished, VTEP1 and VTEP2 send all routes stored by themselves to RR1, respectively, so that RR1 stores the received routes and guides forwarding of data packets received by themselves using the routes. Since a certain length of time is required for RR1 to obtain all routes from VTEP1 and VTEP2, the following may occur for a period of time after RR1 restarts: in the process of obtaining the route by RR1, RR1 receives the data packet from one of VTEP1 and VTEP2, but RR1 has not obtained the route required for forwarding the data packet from the other of VTEP1 and VTEP2, so that RR1 cannot forward the data packet, and the data packet is discarded.
In order to avoid the above problem, in the prior art, a set time length and a set cost value may be configured in advance in RR1, and the set cost value is relatively large. In the set duration after RR1 is restarted, the cost value corresponding to RR1 is the set cost value, and the set cost value is greater than the cost value corresponding to RR2, so when VTEP1 obtains a data packet, VTEP1 preferably forwards the data packet by using the next hop as the route of RR 2. It is easy to see that, although this method can successfully forward the data packet, the operator needs to pre-configure the RR1, which is troublesome to operate, and the specific values of the set duration and the set cost value are difficult to grasp.
In order to solve the problems in the prior art, embodiments of the present invention provide a data message processing method and apparatus.
First, a data message processing method provided by an embodiment of the present invention is described below.
It should be noted that the data message processing method provided by the embodiment of the present invention may be applied to a route reflector. Generally, at least two route reflectors may be included in the EVPN, and the data packet processing method is specifically applied to any one of the at least two route reflectors.
As will be understood by those skilled in the art, for EVPN, the control plane advertises routing information using MP-BGP (multi-Protocol-Border Gateway Protocol), and the data plane forwards data packets using an encapsulation method such as VXLAN (Virtual eXtensible Virtual local area network). In addition, the EVPN can provide two-layer interconnection for the same subnet of the same tenant based on the existing service provider or enterprise IP network, and the EVPN can also provide three-layer interconnection for different subnets of the same tenant through the EVPN gateway and provide three-layer interconnection with an external network for the subnet of the tenant.
Referring to fig. 2, a flow chart of a data message processing method according to an embodiment of the present invention is shown. As shown in fig. 2, the method may include the steps of:
s201, obtaining a data message.
S202, determining whether the data message hits any routing information in the route reflector; if yes, go to S203, otherwise go to S204.
For the route reflector, after obtaining the data packet, it may perform traversal lookup on the local routing table to determine whether the local routing table has the routing information whose destination address is the destination address of the data packet.
It is easy to understand that, if the data packet is searched through traversal search, the route reflector searches the route information whose destination address is the destination address of the data packet in the local route table, which indicates that the data packet hits the route information whose destination address is the destination address of the data packet and is in the route reflector, and the route information hit by the data packet can direct the forwarding of the data packet, so the route reflector can directly execute the subsequent S203.
On the contrary, if the data packet is searched in a traversal manner, the routing reflector does not find the routing information of which the destination address is the destination address of the data packet in the local routing table, which indicates that the data packet does not hit any routing information in the routing reflector, so the routing table in the routing reflector cannot guide the forwarding of the data packet. To achieve successful forwarding of the data packet, the route reflector may perform subsequent S204.
S203, according to the route information hit by the data message, the data message is forwarded.
S204, the data message is sent to at least one route reflector belonging to the same route reflector group with the data message.
It will be appreciated that the operator may pre-configure the route reflector to store within the route reflector identification information (e.g., IP address information) for the remaining route reflectors belonging to the same route reflector group as the route reflector. Thus, the route reflector can very easily determine which route reflectors belong to the same route reflector group as the route reflector according to the identification information stored in the route reflector, and execute S204 according to the determination result.
It should be noted that, the specific implementation form of sending the data packet to at least one route reflector belonging to the same route reflector group as the data packet is various, and the following description is given by way of example.
In a specific implementation manner of the embodiment of the present invention, sending the data packet to at least one route reflector belonging to the same route reflector group as the data packet itself may include:
and sending the data message to at least one route reflector belonging to the same route reflector group with the route reflector by utilizing a communication tunnel which is pre-constructed between the route reflector and each route reflector belonging to the same route reflector group with the route reflector.
In this embodiment, when a route reflector reboots itself, it can build a communication tunnel between the route reflector and each route reflector belonging to the same route reflector group as itself. Thus, when S204 is executed, the route reflector may conveniently and quickly implement successful sending of the data packet by using a pre-established communication tunnel.
In another specific implementation manner of the embodiment of the present invention, sending the data packet to at least one route reflector belonging to the same route reflector group as the data packet itself may include:
constructing a communication tunnel between the route reflector and each route reflector belonging to the same route reflector group with the route reflector;
and sending the data message to at least one route reflector belonging to the same route reflector group with the data message by using the constructed communication tunnel.
In this embodiment, the route reflector does not construct a communication tunnel in advance, and only if the determination result of S202 is no (that is, the route reflector cannot successfully forward the obtained data packet according to its own routing table), the route reflector will construct a communication tunnel and implement successful transmission of the data packet through the constructed communication tunnel.
It is understood that in the above two embodiments, each communication tunnel may be established based on a border gateway protocol BGP neighbor relationship between the route reflector and each route reflector belonging to the same route reflector group as itself.
It should be emphasized that, in the above two embodiments, the communication tunnel may be an EVPN VXLAN (Ethernet Virtual Private Network Virtual eXtensible LAN) tunnel, of course, the type of the communication tunnel is not limited thereto, and may be determined specifically according to an actual situation, which is not limited in this embodiment.
The following describes a specific implementation process of the present solution in a specific example with reference to fig. 3.
Referring to fig. 3, route reflectors RR (i.e., RR1 and RR2), virtual extensible local area network tunnel endpoints VTEP (i.e., VTEP1 and VTEP2), and virtual machines VM (i.e., VM1 and VM2) are included in the overall EVPN.
Assuming that a restart of RR1 occurs after a period of normal operation of the entire network, the BGP neighbors between RR1 and VTEP1 and VTEP2 undergo de-establishment and re-establishment in sequence. After the BGP neighbor relation is reestablished, VTEP1 and VTEP2 send all the routing information stored in themselves to RR1, respectively. Assuming that VTEP1 receives the data packet with destination address 11.1.1.100 sent by VM1 during the process of sending routing information to RR1 by VTEP1 and VTEP2, VTEP1 performs hash operation for load sharing, and forwards the data packet with destination address 11.1.1.100 to RR1 after the hash operation. Thus, the RR1 obtains the data packet with the destination address 11.1.1.100, and then, the RR1 checks whether the routing table of the RR1 has the routing information with the destination address 11.1.1.100.
If the RR1 finds the routing information with the destination address 11.1.1.100 in its own routing table, which indicates that the RR1 has currently obtained the routing information with the destination address 11.1.1.100 from the VTEP2, at this time, the RR1 forwards the data packet to the corresponding next hop according to the next hop address in the routing information.
Conversely, if RR1 does not find the routing information with destination address 11.1.1.100 in its own routing table, it indicates that RR1 has not currently obtained the routing information with destination address 11.1.1.100 from VTEP 2.
At this time, when the EVPN VXLAN tunnel is pre-constructed between RR1 and RR2, RR1 may send the obtained data packet to RR2 by using the pre-constructed EVPN VXLAN tunnel. In a specific implementation, at least one EVPN VXLAN tunnel pre-constructed between RR1 and RR2 may be provided, a correspondence may be provided between the EVPN VXLAN tunnel and a network segment address, and a correspondence relationship between the EVPN VXLAN tunnel and the network segment address may be stored in RR 1. Thus, when RR1 does not find the routing information with destination address 11.1.1.100 in its own routing table, it can determine the network segment address to which 11.1.1.100 belongs first. Then, RR1 may determine the EVPN VXLAN tunnel corresponding to the network segment address 11.1.1.100 belongs to, and finally, RR1 may send the obtained data packet to RR2 by using the determined EVPN VXLAN tunnel.
In the case that an EVPN VXLAN tunnel is not pre-constructed between RR1 and RR2, RR1 may construct an EVPN VXLAN tunnel between itself and RR2, and send the obtained data packet to RR2 by using the constructed EVPN VXLAN tunnel after the EVPN VXLAN tunnel is constructed. It should be noted that, when the EVPN VXLAN tunnel is constructed, the RR1 may construct different EVPN VXLAN tunnels for different network segment addresses, or construct the same EVPN VXLAN tunnel for different network segment addresses, and the RR1 may store the correspondence between the EVPN VXLAN tunnel and the network segment addresses. The subsequent process of sending the obtained data message to the RR2 by using the constructed EVPN VXLAN tunnel is similar to the description in the previous paragraph, and is not described again here.
It is easily understood that, in the case that no restart occurs in RR2, the routing table in RR2 will have all the routing information of VTEP2 in the past, and then the routing information with the destination address of 11.1.1.100 must exist in the routing table of RR 2. Therefore, after the RR2 obtains the data packet sent by the RR1, the RR2 can easily find the routing information with the destination address 11.1.1.100 from its own routing table, and forward the data packet to the corresponding next hop according to the next hop address in the routing information.
In this scheme, for the route reflector, after it is restarted, if it obtains a data packet, it can determine whether the data packet hits any route information in itself. If the data message hits a certain route information in the route reflector, the route reflector can forward the data message according to the route information hit by the data message, so as to realize the successful forwarding of the data message. If the data message is not hit in any routing information in the route reflector, the route reflector sends the data message to at least one route reflector belonging to the same route reflector group with the route reflector. Thus, for the at least one route reflector, under the condition that the route reflector is not restarted, route information capable of guiding the forwarding of the data message is certainly stored in the route reflector, and the route reflector can forward the data message to a corresponding next hop according to a next hop address in the route information, so that the successful forwarding of the data message is realized.
It is easy to see that, after the route reflector is restarted, the scheme realizes the successful forwarding of the data message by the route reflector in a simple and easy way, thereby avoiding the loss of the data message.
It should be noted that there are many possible situations when performing a sending operation of a data packet, and two possible situations are described below as examples.
In a specific implementation manner of the embodiment of the present invention, the sending object of the data packet is each route reflector belonging to the same route reflector group as the route reflector, and in this case, sending the data packet to at least one route reflector belonging to the same route reflector group as the data packet itself may include:
and sending the data message to each route reflector belonging to the same route reflector group with the data message.
It will be readily appreciated that for each route reflector belonging to the same route reflector group as the route reflector, upon receipt of a data packet, it can successfully forward the data packet as long as it has not been restarted.
In another specific implementation manner of the embodiment of the present invention, the sending object of the data packet is some route reflectors belonging to the same route reflector group as the route reflector, and at this time, sending the data packet to at least one route reflector belonging to the same route reflector group as the sending object of the data packet may include:
selecting a route reflector from route reflectors belonging to the same route reflector group with the route reflector group based on the residual resource information of the route reflectors belonging to the same route reflector group with the route reflector group;
and sending the data message to the selected route reflector.
For a route reflector, if it finds that a data packet obtained by itself misses any route information in itself, it may use a method in the prior art to obtain the remaining resource information of each route reflector belonging to the same route reflector group as itself. Specifically, the remaining resource information may be remaining capacity information. Next, the route reflector may select a route reflector with the largest remaining capacity from the route reflectors belonging to the same route reflector, and send the data packet to the selected route reflector. In this way, the elected route reflector can successfully forward the data packet without restarting the elected route reflector.
It is easy to see that, in the case of a restart of the route reflector, the present embodiment can implement successful forwarding of the data packet.
In a specific implementation manner of the embodiment of the present invention, the method may further include:
and when the data message is sent to at least one route reflector which belongs to the same route reflector group as the data message, if the data message obtains the route information hit by the data message, stopping sending the data message to at least one route reflector which belongs to the same route reflector group as the data message, and forwarding the data message according to the route information hit by the data message.
The following describes a specific implementation process of this embodiment with reference to fig. 3.
Assuming that, after RR1 restarts, RR1 obtains a datagram with destination address 11.1.1.100 and the datagram misses any routing information in RR1, RR1 sends the datagram to RR2 using EVPN VXLAN communication tunnel between RR1 and RR 2.
When RR1 sends the datagram with the destination address of 11.1.1.100 to RR2 through the EVPN VXLAN communication tunnel, and it is assumed that RR1 obtains the routing information hit by the datagram (i.e., the routing information with the destination address of 11.1.1.100), RR1 stops sending the datagram to RR2 through the EVPN VXLAN tunnel, and RR1 forwards the datagram by directly using the routing information hit by the datagram obtained by itself.
It is easy to see that this embodiment also better ensures the successful forwarding of the data packet by the route reflector, thereby avoiding the loss of the data packet.
In this embodiment, it is assumed that after RR1 is restarted, RR1 finally obtains 200 detailed routes from VTEP2, and from these 200 detailed routes, the following table 1 is obtained:
Figure BDA0001235166120000101
Figure BDA0001235166120000111
TABLE 1
RR1 may then perform route aggregation on the 200 detailed routes in table 1 to obtain an aggregation result, and RR1 may then obtain and store table 2 below.
Destination address Interface number Next hop address
11.1.1.1/32 Vlan14 14.14.14.2
11.1.1.2/32 Vlan14 14.14.14.2
…… Vlan14 14.14.14.2
11.1.1.100/32 Vlan14 14.14.14.2
11.1.2.1/32 Vlan14 14.14.14.2
11.1.2.2/32 Vlan14 14.14.14.2
…… Vlan14 14.14.14.2
11.1.2.100/32 Vlan14 14.14.14.2
11.1.0.0/16 Vlan14 14.14.14.2
TABLE 2
After obtaining table 2, RR1 may send the aggregated route with destination address 11.1.0.0/16, interface number Vlan14, and next hop address 14.14.14.2 to VTEP 1. At this point, VTEP1 stores the resulting aggregate route. Then, when the destination address of the data packet obtained by VTEP1 just hits the aggregation route, the aggregation route can effectively direct the forwarding of the data packet.
In this embodiment, since the route reflector sends the aggregated route to VTEP1, the number of routes that the route reflector needs to send out is effectively reduced. In addition, the number of routes required to be stored on a VTEP such as VTEP1 is effectively reduced, and the size of the routing table stored in the VTEP is greatly reduced.
In summary, after the route reflector is restarted, the embodiment implements successful forwarding of the data packet by the route reflector in a simple and easy manner, thereby avoiding loss of the data packet.
A data message processing apparatus according to an embodiment of the present invention is described below.
Referring to fig. 4, a block diagram of a data message processing apparatus according to an embodiment of the present invention is shown. As shown in fig. 4, the apparatus may be applied to a route reflector, and the apparatus may include:
an obtaining module 41, configured to obtain a data packet;
a determining module 42, configured to determine whether the data packet hits any routing information in the route reflector;
a forwarding module 43, configured to forward the data packet according to the routing information hit by the data packet if the determination result of the determining module is yes;
and the sending module 44 is configured to send the data packet to at least one route reflector belonging to the same route reflector group as the sending module if the determination result of the determining module is negative.
In this scheme, for the route reflector, after it is restarted, if it obtains a data packet, it can determine whether the data packet hits any route information in itself. If the data message hits a certain route information in the route reflector, the route reflector can forward the data message according to the route information hit by the data message, so as to realize the successful forwarding of the data message. If the data message is not hit in any routing information in the route reflector, the route reflector sends the data message to at least one route reflector belonging to the same route reflector group with the route reflector. Thus, for the at least one route reflector, under the condition that the route reflector is not restarted, route information capable of guiding the forwarding of the data message is certainly stored in the route reflector, and the route reflector can forward the data message to a corresponding next hop according to a next hop address in the route information, so that the successful forwarding of the data message is realized.
It is easy to see that, after the route reflector is restarted, the scheme realizes the successful forwarding of the data message by the route reflector in a simple and easy way, thereby avoiding the loss of the data message.
In a specific implementation manner of the embodiment of the present invention, the sending module is specifically configured to:
and sending the data message to at least one route reflector belonging to the same route reflector group with the route reflector by utilizing a communication tunnel which is pre-constructed between the route reflector and each route reflector belonging to the same route reflector group with the route reflector.
In a specific implementation manner of the embodiment of the present invention, the communication tunnel is established based on a border gateway protocol BGP neighbor relationship between the route reflector and each route reflector belonging to the same route reflector group as the route reflector.
In a specific implementation manner of the embodiment of the present invention, the sending module may include:
the election module is used for electing the route reflector from the route reflectors belonging to the same route reflector group as the self-routing reflector group based on the residual resource information of the route reflectors belonging to the same route reflector group as the self-routing reflector group;
and the sending submodule is used for sending the data message to the selected route reflector.
In a specific implementation manner of the embodiment of the present invention, the apparatus may further include:
and the processing module is used for stopping sending the data message to the at least one route reflector which belongs to the same route reflector group as the processing module if the processing module obtains the route information hit by the data message while sending the data message to the at least one route reflector which belongs to the same route reflector group as the processing module and forwarding the data message according to the route information hit by the data message.
In summary, after the route reflector is restarted, the embodiment implements successful forwarding of the data packet by the route reflector in a simple and easy manner, thereby avoiding loss of the data packet.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A data message processing method, applied to a route reflector, the method comprising:
acquiring a data message;
determining whether the data message hits any routing information in the route reflector;
if yes, forwarding the data message according to the routing information hit by the data message;
if not, the data message is sent to at least one route reflector belonging to the same route reflector group with the data message.
2. The method of claim 1, wherein sending the datagram to at least one route reflector belonging to a same route reflector group as the datagram comprises:
and sending the data message to at least one route reflector belonging to the same route reflector group with the route reflector by utilizing a communication tunnel which is pre-constructed between the route reflector and each route reflector belonging to the same route reflector group with the route reflector.
3. The method of claim 2, wherein the communication tunnel is established based on Border Gateway Protocol (BGP) neighbor relationships between the route reflector and route reflectors belonging to the same route reflector group as the route reflector.
4. The method of claim 1, wherein sending the datagram to at least one route reflector belonging to a same route reflector group as the datagram comprises:
selecting a route reflector from route reflectors belonging to the same route reflector group with the route reflector group based on the residual resource information of the route reflectors belonging to the same route reflector group with the route reflector group;
and sending the data message to the selected route reflector.
5. The method of claim 1, further comprising:
and when the data message is sent to at least one route reflector which belongs to the same route reflector group as the data message, if the data message obtains the route information hit by the data message, stopping sending the data message to at least one route reflector which belongs to the same route reflector group as the data message, and forwarding the data message according to the route information hit by the data message.
6. A data message processing apparatus, for use with a route reflector, the apparatus comprising:
an obtaining module, configured to obtain a data packet;
a determining module, configured to determine whether the data packet hits any routing information in the route reflector;
a forwarding module, configured to forward the data packet according to the routing information hit by the data packet if the determination result of the determination module is yes;
and the sending module is used for sending the data message to at least one route reflector belonging to the same route reflector group with the sending module under the condition that the determination result of the determining module is negative.
7. The apparatus of claim 6, wherein the sending module is specifically configured to:
and sending the data message to at least one route reflector belonging to the same route reflector group with the route reflector by utilizing a communication tunnel which is pre-constructed between the route reflector and each route reflector belonging to the same route reflector group with the route reflector.
8. The apparatus of claim 7, wherein the communication tunnel is established based on Border Gateway Protocol (BGP) neighbor relationships between the route reflector and route reflectors belonging to the same route reflector group as the route reflector.
9. The apparatus of claim 6, wherein the sending module comprises:
the election module is used for electing the route reflector from the route reflectors belonging to the same route reflector group as the self-routing reflector group based on the residual resource information of the route reflectors belonging to the same route reflector group as the self-routing reflector group;
and the sending submodule is used for sending the data message to the elected route reflector.
10. The apparatus of claim 6, further comprising:
and the processing module is used for stopping sending the data message to the at least one route reflector which belongs to the same route reflector group as the processing module if the processing module obtains the route information hit by the data message while sending the data message to the at least one route reflector which belongs to the same route reflector group as the processing module and forwarding the data message according to the route information hit by the data message.
CN201710113989.0A 2017-02-28 2017-02-28 Data message processing method and device Active CN106911549B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710113989.0A CN106911549B (en) 2017-02-28 2017-02-28 Data message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710113989.0A CN106911549B (en) 2017-02-28 2017-02-28 Data message processing method and device

Publications (2)

Publication Number Publication Date
CN106911549A CN106911549A (en) 2017-06-30
CN106911549B true CN106911549B (en) 2020-10-30

Family

ID=59208994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710113989.0A Active CN106911549B (en) 2017-02-28 2017-02-28 Data message processing method and device

Country Status (1)

Country Link
CN (1) CN106911549B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109218182B (en) * 2018-11-21 2021-08-27 新华三技术有限公司 Method and device for synchronizing routing information
CN111327530B (en) * 2018-12-14 2022-02-25 北京金山云网络技术有限公司 Data sending method and device, network system and switch
WO2021212424A1 (en) * 2020-04-23 2021-10-28 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for load balancing for route reflector
CN116648885A (en) * 2020-12-21 2023-08-25 华为技术有限公司 Route transmission method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281199A (en) * 2011-08-16 2011-12-14 华为数字技术有限公司 Route equipment, route reflector and route information processing method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7916729B2 (en) * 2008-09-30 2011-03-29 Cisco Technology, Inc. Automatic RD rewrite technique to achieve fast convergence in inter-as networks
US9178797B2 (en) * 2012-06-30 2015-11-03 Juniper Networks, Inc. Selective BGP graceful restart in redundant router deployments
CN106411727B (en) * 2016-09-22 2021-05-14 新华三技术有限公司 Message processing method, device and autonomous system
CN106452909B (en) * 2016-11-07 2019-04-16 迈普通信技术股份有限公司 A kind of route issuing method and Router Reflector equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281199A (en) * 2011-08-16 2011-12-14 华为数字技术有限公司 Route equipment, route reflector and route information processing method and system

Also Published As

Publication number Publication date
CN106911549A (en) 2017-06-30

Similar Documents

Publication Publication Date Title
CN108574639B (en) EVPN message processing method, device and system
US11012355B2 (en) Route processing method, device, and system
CN108574630B (en) EVPN message processing method, device and system
US10397049B2 (en) Auto-provisioning edge devices in a communication network using control plane communications
US20170163530A1 (en) Signaling aliasing capability in data centers
CN106453025B (en) Tunnel creation method and device
CN113273142B (en) Communication system and communication method
US9559951B1 (en) Providing intra-subnet and inter-subnet data center connectivity
CN113261240A (en) Multi-tenant isolation using programmable clients
US10536370B2 (en) Method and system to avoid temporary traffic loss with BGP ethernet VPN multi-homing with data-plane MAC address learning
CN111670565B (en) Method, equipment and system for controlling routing iteration
EP3065342A1 (en) Update of mac routes in evpn single-active topology
CN113302898B (en) Communication system, communication method, non-transitory computer readable medium
US20120069745A1 (en) Method and apparatus to improve ldp convergence using hierarchical label stacking
CN106911549B (en) Data message processing method and device
CN110798403B (en) Communication method, communication device and communication system
CN106878288B (en) message forwarding method and device
CN113261242A (en) Overlay network routing using programmable switches
US10313154B2 (en) Packet forwarding
EP3018866A1 (en) Signaling aliasing capability in data centers
CN113037883B (en) Method and device for updating MAC address table entries
CN106789523B (en) Method and device for creating logical tunnel
CN108768845B (en) Multi-homing host routing synchronization method and device
CN106878173B (en) Route sending method and device
WO2019061520A1 (en) Method and device for switching paths

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230625

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

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

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.