CN117729142A - Route establishment method, route device, route system, and computer-readable storage medium - Google Patents

Route establishment method, route device, route system, and computer-readable storage medium Download PDF

Info

Publication number
CN117729142A
CN117729142A CN202311842322.6A CN202311842322A CN117729142A CN 117729142 A CN117729142 A CN 117729142A CN 202311842322 A CN202311842322 A CN 202311842322A CN 117729142 A CN117729142 A CN 117729142A
Authority
CN
China
Prior art keywords
routing
target
route
information
equipment
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.)
Pending
Application number
CN202311842322.6A
Other languages
Chinese (zh)
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.)
China United Network Communications Group Co Ltd
China Information Technology Designing and Consulting Institute Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
China Information Technology Designing and Consulting Institute 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 China United Network Communications Group Co Ltd, China Information Technology Designing and Consulting Institute Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202311842322.6A priority Critical patent/CN117729142A/en
Publication of CN117729142A publication Critical patent/CN117729142A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a route establishment method, a route device, a route system and a computer readable storage medium, relates to the field of communication, and can establish a route through a virtual route device under the condition that a communication protocol is SRv. The method is applied to the first routing device, and comprises the following steps: acquiring configuration information of a virtual private network VPN route of the second routing equipment; the configuration information comprises target route information, target destination address and target group attribute; determining a target SRv tunnel in the plurality of SRv tunnels according to the target destination address and the target community attribute; the destination address of the target SRv tunnel is a target destination address, and the community attribute of the target SRv tunnel is a target community attribute; converting the target routing information into the first internet protocol version 6 IPv6 routing information; sending a first routing message to a source device; the first routing message includes first IPv6 routing information.

Description

Route establishment method, route device, route system, and computer-readable storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a route establishment method, a route device, a system, and a computer readable storage medium.
Background
With the development of services such as cloud computing, more and more virtual network elements, such as virtual routing devices, are applied. To establish routes through virtual routing devices, one existing solution is to establish routes based on a data plane development suite (data plane development kit, DPDK).
However, this scheme can only establish normal internet protocol (internet protocol, IP) routing, with the stepwise application of the segment routing internet protocol version 6 (segmented routing internet protocol version, srv 6), resulting in the scheme being unable to establish routing through virtual routing devices with a communication protocol of SRv 6.
Disclosure of Invention
The application provides a route establishment method, a route device, a route system and a computer readable storage medium, which can establish a route through a virtual route device under the condition that a communication protocol is SRv.
In order to achieve the above purpose, the present application adopts the following technical scheme:
in a first aspect, a route establishment method is provided, where the method is applied to a first routing device, and the method includes: acquiring configuration information of a virtual private network VPN route of the second routing equipment; the configuration information comprises target route information, target destination address and target group attribute; the method comprises the steps that target routing information is the routing information between source equipment and destination equipment, first routing equipment is virtual routing equipment of the source equipment, second routing equipment is virtual routing equipment of the destination equipment, and a plurality of segmented routing Internet protocol version 6 SRv tunnels exist between the first routing equipment and the second routing equipment; determining a target SRv tunnel in the plurality of SRv tunnels according to the target destination address and the target community attribute; the destination address of the target SRv tunnel is a target destination address, and the community attribute of the target SRv tunnel is a target community attribute; converting the target routing information into the first internet protocol version 6 IPv6 routing information; sending a first routing message to a source device; the first routing message includes first IPv6 routing information.
Based on the scheme, the first routing device receives configuration information of VPN routing including target routing information, target destination address and target community attribute of the second routing device, then determines a target SRv tunnel in the plurality of SRv tunnels according to the target destination address and the target community attribute, finally converts the target routing information into first IPv6 routing information, and sends the first routing message including the first IPv6 routing information to the source device. Because the target address of the target SRv tunnel is the target destination address in the configuration information of the VPN route, the community attribute is the target community attribute in the configuration information of the VPN route, and the VPN route information is the route information between the source device and the destination device, so that the SRv tunnel corresponding to the VPN route can be determined under the condition that a SRv tunnel exists between the first route device and the second route device, after the first route message including the first IPv6 route information is sent to the source device, the route between the source device and the destination device can be established, and therefore, under the condition that the communication protocol is SRv6, the route can be established through the virtual route device.
With reference to the first aspect, in certain implementation manners of the first aspect, acquiring configuration information of a VPN route of the second routing device includes: receiving a broadcast message of a second routing device; the broadcast message comprises a target route identification and configuration information of the VPN route; verifying the target route identifier to obtain a verification result; and acquiring configuration information in the broadcast message under the condition that the verification result indicates that the target route identification passes verification.
Based on the scheme, the first routing device obtains the configuration information in the broadcast message by receiving the broadcast message of the second routing device, which comprises the target routing identifier and the configuration information of the VPN route, and then verifying the target routing identifier to obtain a verification result, and the scheme of obtaining the configuration information of the VPN route of the second routing device can be realized under the condition that the verification result indicates that the target routing identifier passes verification.
In a second aspect, a route establishment method is provided, where the method is applied to a second routing device, and the second routing device is a virtual routing device of a destination device, and the method includes: receiving a second routing message; the second routing message comprises IPv6 routing information of a 6 th version of a second Internet protocol, and the second IPv6 routing information is the routing information between the source equipment and the destination equipment; generating a broadcast message according to the second IPv6 routing information; the broadcast message comprises a target route identifier of a VPN route and configuration information of the VPN route, wherein the configuration information comprises target route information, a target destination address and a target group attribute, and the target route information is route information between source equipment and destination equipment; transmitting a broadcast message to a first routing device; the first routing device is a virtual routing device of the source device.
Based on the scheme, the second routing device receives the second routing message including the second IPv6 routing information, then determines a broadcast message including the target routing identifier of the VPN route and the configuration information of the VPN route according to the second IPv6 routing information, and finally sends the broadcast message to the first routing device. Because the broadcast message includes the target route identifier of the VPN route and the configuration information of the VPN route, the first routing device is enabled to learn the target route identifier of the VPN route and the configuration information of the VPN route, so as to establish the route between the source device and the destination device subsequently.
With reference to the second aspect, in certain implementations of the second aspect, generating the broadcast message according to the second IPv6 routing information includes: converting the second IPv6 routing information into target routing information; determining a target route identifier, a target destination address and a target group attribute according to the attribute information of the control surface of the second routing equipment; and generating the broadcast message according to the target route identification, the target route information, the target destination address and the target community attribute.
Based on the scheme, the second routing equipment converts the second IPv6 routing information into the target routing information, then determines the target routing identifier, the target destination address and the target group attribute according to the attribute information of the control surface of the second routing equipment, and finally can generate the broadcast message according to the target routing identifier, the target routing information, the target destination address and the target group attribute.
In a third aspect, a first routing device is provided for implementing the route establishment method of the first aspect. The first routing device includes a corresponding module, unit, or means (means) for implementing the above method, where the module, unit, or means may be implemented by hardware, software, or implemented by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above.
With reference to the third aspect, in certain embodiments of the third aspect, the first routing device includes: a transceiver module and a processing module; the receiving and transmitting module is used for acquiring configuration information of a virtual private network VPN route of the second routing equipment; the configuration information comprises target route information, target destination address and target group attribute; the method comprises the steps that target routing information is the routing information between source equipment and destination equipment, first routing equipment is virtual routing equipment of the source equipment, second routing equipment is virtual routing equipment of the destination equipment, and a plurality of segmented routing Internet protocol version 6 SRv tunnels exist between the first routing equipment and the second routing equipment; a processing module, configured to determine a target SRv tunnel of the plurality of SRv tunnels according to the target destination address and the target community attribute; the destination address of the target SRv tunnel is a target destination address, and the community attribute of the target SRv tunnel is a target community attribute; the processing module is also used for converting the target routing information into the IPv6 routing information of the 6 th version of the first Internet protocol; the receiving and transmitting module is also used for transmitting a first routing message to the source equipment; the first routing message includes first IPv6 routing information.
With reference to the third aspect, in some implementations of the third aspect, the transceiver module is configured to obtain configuration information of a VPN route of the second routing device, including: receiving a broadcast message of a second routing device; the broadcast message comprises a target route identification and configuration information of the VPN route; verifying the target route identifier to obtain a verification result; and acquiring configuration information in the broadcast message under the condition that the verification result indicates that the target route identification passes verification.
In a fourth aspect, a second routing device is provided for implementing the route establishment method of the second aspect. The second routing device includes a corresponding module, unit, or means (means) for implementing the above method, where the module, unit, or means may be implemented by hardware, software, or implemented by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the functions described above.
With reference to the fourth aspect, in some implementations of the fourth aspect, the second routing device is a virtual routing device of the destination device, and the second routing device includes: a transceiver module and a processing module; the receiving and transmitting module is used for receiving the second routing message; the second routing message comprises IPv6 routing information of a 6 th version of a second Internet protocol, and the second IPv6 routing information is the routing information between the source equipment and the destination equipment; the processing module is used for generating a broadcast message according to the second IPv6 routing information; the broadcast message comprises a target route identifier of a VPN route and configuration information of the VPN route, wherein the configuration information comprises target route information, a target destination address and a target group attribute, and the target route information is route information between source equipment and destination equipment; the receiving and transmitting module is also used for transmitting a broadcast message to the first routing equipment; the first routing device is a virtual routing device of the source device.
With reference to the fourth aspect, in certain embodiments of the fourth aspect, the processing module is specifically configured to: converting the second IPv6 routing information into target routing information; determining a target route identifier, a target destination address and a target group attribute according to the attribute information of the control surface of the second routing equipment; and generating the broadcast message according to the target route identification, the target route information, the target destination address and the target community attribute.
In a fifth aspect, there is provided a first routing device comprising: at least one processor, a memory for storing instructions executable by the processor; wherein the processor is configured to execute instructions to implement a method as provided by the first aspect and any one of its possible implementations.
In a sixth aspect, there is provided a second routing device, comprising: at least one processor, a memory for storing instructions executable by the processor; wherein the processor is configured to execute instructions to implement a method as provided by the second aspect and any one of its possible embodiments.
In a seventh aspect, a computer readable storage medium is provided, which when executed by a processor of a first routing device, enables the first routing device to perform the method as provided in the first aspect and any possible implementation thereof.
In an eighth aspect, a computer readable storage medium is provided, which when executed by a processor of a second routing device, enables the second routing device to perform the method as provided in the second aspect and any one of its possible implementations.
In a ninth aspect, there is provided a computer program product comprising instructions which, when run on a computer, enable the computer to perform the method provided by the first aspect and any one of its possible embodiments.
In a tenth aspect, there is provided a computer program product comprising instructions which, when run on a computer, enable the computer to perform the method provided by the second aspect and any one of its possible embodiments.
In an eleventh aspect, there is provided a chip system comprising: a processor and interface circuit; interface circuit for receiving computer program or instruction and transmitting to processor; the processor is configured to execute a computer program or instructions to cause the chip system to perform a method as provided in the first aspect and any one of its possible embodiments described above.
In a twelfth aspect, there is provided a chip system comprising: a processor and interface circuit; interface circuit for receiving computer program or instruction and transmitting to processor; the processor is configured to execute a computer program or instructions to cause the chip system to perform a method as provided in the second aspect and any one of its possible embodiments.
In a thirteenth aspect, a route creation system is provided, the route creation system including a first routing device and a second routing device; the first routing device is for performing the method as provided in the first aspect and any one of its possible implementations described above; the second routing device is arranged to perform the method as provided in the second aspect and any one of its possible embodiments described above.
The technical effects of any one of the embodiments of the third aspect to the thirteenth aspect may be referred to the technical effects of the different embodiments of the corresponding aspects, which are not described herein.
Drawings
Fig. 1 is a schematic architecture diagram of a route establishment system provided in the present application;
fig. 2 is a schematic architecture diagram of yet another route establishment system provided in the present application;
fig. 3 is a schematic flow chart of a route establishment method provided in the present application;
fig. 4 is a flow chart of another route establishment method provided in the present application;
fig. 5 is a flow chart of another route establishment method provided in the present application;
fig. 6 is a flow chart of another route establishment method provided in the present application;
fig. 7 is a flow chart of another route establishment method provided in the present application;
Fig. 8 is a schematic structural diagram of a routing device provided in the present application;
fig. 9 is a schematic structural diagram of still another routing device provided in the present application.
Detailed Description
In the description of the present application, unless otherwise indicated, "a plurality" means two or more than two. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", and the like are used to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
Meanwhile, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as examples, illustrations, or descriptions. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion that may be readily understood.
It is appreciated that reference throughout this specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, various embodiments are not necessarily referring to the same embodiments throughout the specification. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present application, the sequence number of each process does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
It is to be understood that in this application, the terms "when …," "if," and "if" are used to indicate that the corresponding process is to be performed under some objective condition, and are not intended to limit the time, nor do they require that the acts be performed with a judgment, nor are they intended to imply that other limitations are present.
It can be appreciated that some optional features of the embodiments of the present application may be implemented independently in some scenarios, independent of other features, such as the scheme on which they are currently based, to solve corresponding technical problems, achieve corresponding effects, or may be combined with other features according to requirements in some scenarios. Accordingly, the apparatus provided in the embodiments of the present application may also implement these features or functions accordingly, which is not described herein.
Throughout this application, unless specifically stated otherwise, identical or similar parts between the various embodiments may be referred to each other. In the present application, unless specifically stated or logic conflict, terms and/or descriptions between different embodiments and between implementation methods in the embodiments are consistent and may be mutually cited, technical features in the different embodiments and implementation methods in the embodiments may be combined to form a new embodiment, implementation, method, or implementation method according to their inherent logic relationship. The following embodiments of the present application are not to be construed as limiting the scope of the present application.
Fig. 1 is a schematic architecture diagram of a route establishment system provided in the present application, and the technical solution of the embodiment of the present application may be applied to the route establishment system shown in fig. 1, where, as shown in fig. 1, the route establishment system 10 includes a first routing device 11, a second routing device 12, a source device 13, and a destination device 14.
The first routing device 11 and the source device 13 have a common border gateway protocol (border gateway protocol, BGP) connection relationship, the first routing device 11 also has a Multiprotocol (MP) -BGP connection relationship with the second routing device 12 through the internet, and the second routing device 12 has a common BGP connection relationship with the destination device 14.
The first routing device 11 may also be referred to as a provider device (provider equipment, PE) -a.
The second routing device 12 may also be referred to as PE-Z.
The source device 13 may also be referred to as a client device (CE) -a.
The destination device 14 may also be referred to as CE-Z.
Further, on the basis of fig. 1, fig. 2 is a schematic architecture diagram of another route establishment system provided in the present application, and the technical solution of the embodiment of the present application may also be applied to the route establishment system shown in fig. 2, where, as shown in fig. 2, the route establishment system 10 includes a first routing device 11, a second routing device 12, a source device 13, and a destination device 14.
Wherein the first routing device 11 comprises a first control plane 111 and a first forwarding plane 112.
The second routing device 12 comprises a second control plane 121 and a second forwarding plane 122.
The first control surface 111 and the second control surface 121 are connected through the internet.
The first forwarding plane 112 and the second forwarding plane 122 are connected through a SRv tunnel.
The source device 13 is connected to a first control plane 111 and a first forwarding plane 112, respectively.
The destination device 14 is connected to the second control plane 121 and the second forwarding plane 122, respectively.
In practical applications, the route establishment method provided in the embodiment of the present application may be applied to the first routing device 11, or may be applied to a device included in the first routing device 11. Alternatively, the route establishment method provided in the embodiment of the present application may be applied to the second routing device 12, or may be applied to an apparatus included in the second routing device 12.
The route establishment method provided in the embodiment of the present application will be described below by taking an example in which the route establishment method is applied to the first routing device 11 with reference to the accompanying drawings.
Fig. 3 is a schematic flow chart of a route establishment method provided in the present application, where the method is applied to a first routing device, as shown in fig. 3, and the method includes the following steps:
s301, the first routing device acquires configuration information of a virtual private network (virtual private network, VPN) route of the second routing device.
The configuration information comprises target routing information, a target destination address and a target group attribute; the target routing information is the routing information between the source device and the destination device, the first routing device is the virtual routing device of the source device, the second routing device is the virtual routing device of the destination device, and a plurality of SRv tunnels exist between the first routing device and the second routing device.
As an example, the configuration parameters of the first routing device may be as follows:
Loopback0:2::2
Locator:A2::/64
End SID:A2::1
DT6 SID:A2::100
SRv6 Policy:
color:100
endpoint:A1::100
candidate-path:
segment-list:<XXX,YYY,A1::1>
the configuration parameters of the second routing device may be as follows:
Loopback0:1::1
Locator:A1::/64
End SID:A1::1
DT6 SID:A1::100
the specific description of each parameter in the above examples may refer to the existing scheme, and will not be described herein.
The target destination address may also be referred to as Prefix and the target Community attribute may also be referred to as Community.
As a possible implementation manner, the first routing device receives the broadcast message of the second routing device, then verifies the target routing identifier to obtain a verification result, and obtains configuration information in the broadcast message when the verification result indicates that the target routing identifier passes verification.
Wherein the broadcast message includes a destination route identification and configuration information for the VPN route.
It should be noted that, for a specific description of this possible implementation manner, reference may be made to the related description in the subsequent part of the specific embodiment of the present application, which is not described herein.
As yet another possible implementation manner, the control plane of the first routing device receives an announcement message of the control plane of the first routing device, where the announcement message includes configuration information of a VPN route of the second routing device, and the first routing device obtains the configuration information of the VPN route of the second routing device from the announcement message, and stores the configuration information in the forwarding plane of the first routing device.
S302, the first routing device determines a target SRv tunnel in the plurality of SRv tunnels according to the target destination address and the target community attribute.
The destination address of the target SRv tunnel is a target destination address, and the community attribute of the target SRv tunnel is a target community attribute.
As one possible implementation manner, the first routing device searches for a SRv tunnel with a destination address as a target destination address and a community attribute as a target community attribute in a plurality of SRv tunnels of a forwarding plane of the first routing device, and determines the SRv6 tunnel as a target SRv tunnel.
S303, the first routing device converts the target routing information into first Internet protocol version 6 (internet protocol version, IPv 6) routing information.
As a possible implementation manner, the first routing device creates a blank IPv6 routing information, and then configures the blank IPv6 routing information according to the target routing information to obtain the first IPv6 routing information.
It should be noted that, the specific solution of this possible implementation may refer to the existing solution, which is not described here.
S304, the first routing device sends a first routing message to the source device.
Wherein the first routing message includes first IPv6 routing information.
As a possible implementation manner, the first routing device encapsulates the first IPv6 routing information to obtain a first routing message, and then sends the first routing message to the source device through a data transmission channel between the first routing device and the source device.
It can be appreciated that after the source device receives the first routing message, the source device can learn the first IPv6 routing information in the first routing message, and when the subsequent source device needs to send data, the source device can send data based on the first IPv6 routing information.
Based on the scheme, the first routing device receives configuration information of VPN routing including target routing information, target destination address and target community attribute of the second routing device, then determines a target SRv tunnel in the plurality of SRv tunnels according to the target destination address and the target community attribute, finally converts the target routing information into first IPv6 routing information, and sends the first routing message including the first IPv6 routing information to the source device. Because the target address of the target SRv tunnel is the target destination address in the configuration information of the VPN route, the community attribute is the target community attribute in the configuration information of the VPN route, and the VPN route information is the route information between the source device and the destination device, so that the SRv tunnel corresponding to the VPN route can be determined under the condition that a SRv tunnel exists between the first route device and the second route device, after the first route message including the first IPv6 route information is sent to the source device, the route between the source device and the destination device can be established, and therefore, under the condition that the communication protocol is SRv6, the route can be established through the virtual route device.
The route establishment method provided by the present application is generally described above, and the route establishment method provided by the present application will be further described below with reference to the accompanying drawings.
In one design, fig. 4 is a schematic flow chart of another route establishment method provided in the present application, as shown in fig. 4, and S301 provided in the specific embodiment of the present application may specifically include the following steps:
s401, the first routing device receives the broadcast message of the second routing device.
Wherein the broadcast message includes a destination route identification and configuration information for the VPN route.
It should be noted that the destination route identifier may include a route identifier (route distinguisher, RD) or a route destination (RT).
As a possible implementation manner, the control plane of the first routing device receives the broadcast message of the second routing device through a data transmission channel with the control plane of the second routing device.
S402, the first routing equipment verifies the target routing identification to obtain a verification result.
As a possible implementation manner, the first routing device determines whether the target route identifier is in the virtual route forwarding (virtual routing forwarding, VRF) routing table, if so, determines that the verification result is verification passing, and if not, determines that the verification result is verification failing.
Wherein the VRF routing table includes a plurality of route identifications.
S403, the first routing device acquires configuration information in the broadcast message under the condition that the verification result indicates that the target routing identification passes verification.
As a possible implementation manner, taking the implementation manner in S402 as an example, the first routing device determines whether the verification result is verification passing, if so, determines that the verification result indicates that the target route identifier passes verification, and the first routing device obtains configuration information from the broadcast message. If not, determining that the verification result does not indicate that the target route identification passes the verification, and sending a response failure message to the second routing equipment.
Based on the scheme, the first routing device obtains the configuration information in the broadcast message by receiving the broadcast message of the second routing device, which comprises the target routing identifier and the configuration information of the VPN route, and then verifying the target routing identifier to obtain a verification result, and the scheme of obtaining the configuration information of the VPN route of the second routing device can be realized under the condition that the verification result indicates that the target routing identifier passes verification.
The route establishment method provided in the present application is described above in general from the perspective of the first routing device, and the route establishment method provided in the present application will be described below from the perspective of the second routing device.
Fig. 5 is a schematic flow chart of another route establishment method provided in the present application, where the method is applied to a second routing device, and the second routing device is a virtual routing device of a destination device, as shown in fig. 5, and the method includes the following steps:
s501, the second routing device receives the second routing message.
The second routing message includes second IPv6 routing information, where the second IPv6 routing information is routing information between the source device and the destination device.
As an example, the second IPv6 routing information may be Prefix 2001:1:1:1:1/128, nextHop:A12:1.
As a possible implementation manner, the control plane of the second routing device receives the second routing message from the destination device through a data transmission channel with the destination device.
S502, the second routing equipment generates a broadcast message according to the second IPv6 routing information.
The broadcast message comprises a target route identifier of the VPN route and configuration information of the VPN route, wherein the configuration information comprises target route information, a target destination address and a target group attribute, and the target route information is route information between source equipment and destination equipment.
As a possible implementation manner, the second routing device converts the second IPv6 routing information into the target routing information, then determines the target routing identifier, the target destination address, and the target community attribute according to the attribute information of the control plane of the second routing device, and finally generates the broadcast message according to the target routing identifier, the target routing information, the target destination address, and the target community attribute.
It should be noted that, for a specific description of this possible implementation manner, reference may be made to the related description in the subsequent part of the specific embodiment of the present application, which is not described herein.
S503, the second routing device sends a broadcast message to the first routing device.
The first routing device is a virtual routing device of the source device.
As a possible implementation manner, the control plane of the second routing device sends the broadcast message to the first routing device through a data transmission channel with the control plane of the first routing device.
Based on the scheme, the second routing device receives the second routing message including the second IPv6 routing information, then determines a broadcast message including the target routing identifier of the VPN route and the configuration information of the VPN route according to the second IPv6 routing information, and finally sends the broadcast message to the first routing device. Because the broadcast message includes the target route identifier of the VPN route and the configuration information of the VPN route, the first routing device is enabled to learn the target route identifier of the VPN route and the configuration information of the VPN route, so as to establish the route between the source device and the destination device subsequently.
In one design, fig. 6 is a schematic flow chart of another route establishment method provided in the present application, as shown in fig. 6, where S502 provided in the specific embodiment of the present application may specifically include the following steps:
S601, the second routing equipment converts the second IPv6 routing information into target routing information.
As a possible implementation manner, the second routing device creates a blank VPN routing information, and then configures the blank VPN routing information according to the second IPv6 routing information, so as to obtain the target routing information.
S602, the second routing equipment determines a target route identification, a target destination address and a target community attribute according to the attribute information of the control surface of the second routing equipment.
As an example, the attribute information of the control plane of the second routing device may be:
router bgp 2vrf vrf10
neighbor A12::1remote-as 200
address-family ipv6 unicast
redistribute connected
neighbor A12::1activate
neighbor A12::1route-map vrf10 in
sid vpn export 100
rd vpn export 1:1
rt vpn both 1:1
export vpn
import vpn
route-map vrf10 permit 10
set community 0:100
the specific description of each parameter in the attribute information may refer to the existing scheme, and will not be described herein.
As one possible implementation manner, the second routing device establishes a blank routing identifier, a blank destination address and a blank group attribute, and then determines a parameter value of the blank routing identifier, a parameter value of the blank destination address and a parameter value of the blank group attribute based on attribute information of a control plane of the second routing device, so as to obtain a target routing identifier, a target destination address and a target group attribute.
It should be noted that, the specific solution of this possible implementation may refer to the existing solution, which is not described here.
S603, the second routing device generates a broadcast message according to the target route identification, the target route information, the target destination address and the target community attribute.
As a possible implementation manner, the second routing device encapsulates the target route identifier, the target route information, the target destination address and the target community attribute, so as to obtain the broadcast message.
Based on the scheme, the second routing equipment converts the second IPv6 routing information into the target routing information, then determines the target routing identifier, the target destination address and the target group attribute according to the attribute information of the control surface of the second routing equipment, and finally can generate the broadcast message according to the target routing identifier, the target routing information, the target destination address and the target group attribute.
It should be noted that, the scheme shown in fig. 6 may also be referred to as route dyeing, and in some embodiments, the granularity of route dyeing may correspond to one color for one destination device, or may correspond to one color for one second routing device, or may correspond to one color for one VRF routing table.
The route establishment method provided by the present application is described above from the perspective of the routing device, and the route establishment method provided by the present application will be described below from the perspective of the interaction of the routing device.
Fig. 7 is a flow chart of another route establishment method provided in the present application, as shown in fig. 7, the method includes the following steps:
s701, the second routing device receives the second routing message.
It should be noted that, the specific description of S701 may refer to the related description of S501, which is not described herein.
S702, the second routing equipment generates a broadcast message according to the second IPv6 routing information.
It should be noted that, the specific description of S702 may refer to the related description of S502, which is not described herein.
S703, the second routing device sends a broadcast message to the first routing device.
It should be noted that, the specific description of S703 may refer to the related description of S503, which is not described herein.
S704, the first routing device receives the broadcast message of the second routing device.
It should be noted that, the specific description of S704 may refer to the related description of S401, which is not described herein.
S705, the first routing equipment verifies the target routing identification to obtain a verification result.
It should be noted that, the specific description of S705 may refer to the related description of S402, which is not described herein.
S706, the first routing device acquires configuration information in the broadcast message under the condition that the verification result indicates that the target route identification passes verification.
It should be noted that, the specific description of S706 may refer to the related description of S403, which is not described herein.
S707, the first routing device determines a target SRv tunnel of the plurality of SRv tunnels according to the target destination address and the target community attribute.
It should be noted that, the specific description of S707 may refer to the related description of S302, which is not described herein.
S708, the first routing device converts the target routing information into first IPv6 routing information.
It should be noted that, the specific description of S708 may refer to the related description of S303, which is not described herein.
S709, the first routing device sends the first routing message to the source device.
It should be noted that, the specific description of S709 may refer to the related description of S304, which is not described herein.
The route establishment method provided by the application can realize the announcement and the reception of the SRv route based on open source software, thereby providing SRv functional support for the virtual router. The route establishment method provided by the application can be applied to network function virtualization (network function virtualization, NFV) scenes, and has wide application scenes in cloud networks of telecom operators.
The above description has been presented mainly in terms of the routing device performing the route establishment method. To achieve the above functions, the routing device includes a hardware structure and/or a software module that performs the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application may divide the functional modules of the routing device according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. Optionally, the division of the modules in the embodiments of the present application is schematic, which is merely a logic function division, and other division manners may be actually implemented. Further, "module" herein may refer to an application-specific integrated circuit (ASIC), an electrical circuit, a processor and memory that execute one or more software or firmware programs, an integrated logic circuit, and/or other devices that can provide the above-described functionality.
Fig. 8 shows a schematic diagram of a routing device in the case of functional module division. As shown in fig. 8, the routing device 80 includes a transceiver module 801 and a processing module 802.
In some embodiments, the routing device 80 may also include a memory module (not shown in fig. 8) for storing program instructions and data.
Wherein, in case that the routing device is a first routing device, the transceiver module 801 is configured to obtain configuration information of a virtual private network VPN route of the second routing device; the configuration information comprises target route information, target destination address and target group attribute; the method comprises the steps that target routing information is the routing information between source equipment and destination equipment, first routing equipment is virtual routing equipment of the source equipment, second routing equipment is virtual routing equipment of the destination equipment, and a plurality of segmented routing Internet protocol version 6 SRv tunnels exist between the first routing equipment and the second routing equipment; a processing module 802, configured to determine a target SRv tunnel of the plurality of SRv tunnels according to the target destination address and the target community attribute; the destination address of the target SRv tunnel is a target destination address, and the community attribute of the target SRv tunnel is a target community attribute; a processing module 802, further configured to convert the target routing information into first internet protocol version 6 IPv6 routing information; the transceiver module 801 is further configured to send a first routing message to a source device; the first routing message includes first IPv6 routing information.
Optionally, the transceiver module 801 is configured to obtain configuration information of VPN routes of the second routing device, and includes: receiving a broadcast message of a second routing device; the broadcast message comprises a target route identification and configuration information of the VPN route; verifying the target route identifier to obtain a verification result; and acquiring configuration information in the broadcast message under the condition that the verification result indicates that the target route identification passes verification.
In the case that the routing device is a second routing device, a transceiver module 801 is configured to receive a second routing message; the second routing message comprises IPv6 routing information of a 6 th version of a second Internet protocol, and the second IPv6 routing information is the routing information between the source equipment and the destination equipment; a processing module 802, configured to generate a broadcast message according to the second IPv6 routing information; the broadcast message comprises a target route identifier of a VPN route and configuration information of the VPN route, wherein the configuration information comprises target route information, a target destination address and a target group attribute, and the target route information is route information between source equipment and destination equipment; the transceiver module 801 is further configured to send a broadcast message to the first routing device; the first routing device is a virtual routing device of the source device.
Optionally, the processing module 802 is specifically configured to: converting the second IPv6 routing information into target routing information; determining a target route identifier, a target destination address and a target group attribute according to the attribute information of the control surface of the second routing equipment; and generating the broadcast message according to the target route identification, the target route information, the target destination address and the target community attribute.
All relevant contents of each step related to the above method embodiment may be cited to the functional descriptions of the corresponding functional modules, which are not described herein.
In the case of implementing the functions of the above-described functional modules in the form of hardware, fig. 9 shows a schematic diagram of still another routing device. As shown in fig. 9, the routing device 90 includes a processor 901, a memory 902, and a bus 903. The processor 901 and the memory 902 may be connected by a bus 903.
Processor 901 is a control center of routing device 90, and may be a single processor or a collective term of multiple processing elements. For example, the processor 901 may be a general-purpose central processing unit (central processing unit, CPU), or may be another general-purpose processor. Wherein the general purpose processor may be a microprocessor or any conventional processor or the like.
As one example, processor 901 may include one or more CPUs, such as CPU 0 and CPU 1 shown in fig. 9.
The memory 902 may be, but is not limited to, read-only memory (ROM) or other type of static storage device that can store static information and instructions, random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, as well as electrically erasable programmable read-only memory (EEPROM), magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
As a possible implementation, the memory 902 may exist separately from the processor 901, and the memory 902 may be connected to the processor 901 by a bus 903 for storing instructions or program code. The processor 901, when calling and executing instructions or program codes stored in the memory 902, can implement the route establishment method provided in the embodiment of the present application.
In another possible implementation, the memory 902 may also be integrated with the processor 901.
Bus 903 may be an industry standard architecture (Industry Standard Architecture, ISA) bus, a peripheral component interconnect (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in fig. 9, but not only one bus or one type of bus.
It should be noted that the structure shown in fig. 9 does not constitute a limitation of the routing device 90. The routing device 90 may include more or fewer components than shown in fig. 9, or may combine certain components or a different arrangement of components.
As an example, in connection with fig. 8, the transceiver module 801 and the processing module 802 in the routing device 80 implement the same functions as the processor 901 in fig. 9.
Optionally, as shown in fig. 9, the routing device 90 provided in the embodiment of the present application may further include a communication interface 904.
A communication interface 904 for connecting with other devices via a communication network. The communication network may be an ethernet, a radio access network, a wireless local area network (wireless local area networks, WLAN), etc. The communication interface 904 may include a receiving unit for receiving data and a transmitting unit for transmitting data.
In a possible implementation manner, in the routing device 90 provided in the embodiment of the present application, the communication interface 904 may also be integrated in the processor 901, which is not specifically limited in the embodiment of the present application.
As one possible product form, the routing device of the embodiments of the present application may also be implemented using the following: one or more field programmable gate arrays (field programmable gate array, FPGA), programmable logic devices (programmable logic device, PLD), controllers, state machines, gate logic, discrete hardware components, any other suitable circuit or combination of circuits capable of performing the various functions described throughout this application.
From the above description of embodiments, it will be apparent to those skilled in the art that the foregoing functional unit divisions are merely illustrative for convenience and brevity of description. In practical applications, the above-mentioned function allocation may be performed by different functional units, i.e. the internal structure of the routing device is divided into different functional units, as needed, to perform all or part of the functions described above. The specific working processes of the above-described systems, devices and units may refer to the corresponding processes in the foregoing method embodiments, which are not described herein.
The present application also provides a computer-readable storage medium, on which a computer program or instructions are stored, which when executed cause a computer to perform the steps of the method flow shown in the above-described method embodiments.
Embodiments of the present application provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the steps of the method flows shown in the method embodiments described above.
An embodiment of the present application provides a chip system, including: a processor and interface circuit; interface circuit for receiving computer program or instruction and transmitting to processor; the processor is configured to execute the computer program or instructions to cause the chip system to perform the steps of the method flow shown in the method embodiments described above.
The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: electrical connections having one or more wires, portable computer diskette, hard disk. Random access Memory (Random Access Memory, RAM), read-Only Memory (ROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), registers, hard disk, optical fiber, portable compact disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any other form of computer-readable storage medium suitable for use by a person or persons of skill in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium may be integral to the processor. The processor and the storage medium may reside in a special purpose ASIC. In the context of the present application, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
Since the routing device, the computer readable storage medium and the computer program product provided in this embodiment can be applied to the route establishment method provided in this embodiment, the technical effects that can be obtained by the method may also refer to the method embodiment described above, and the embodiments of this application are not repeated here.
Although the present application has been described herein in connection with various embodiments, other variations to the disclosed embodiments can be understood and effected by those skilled in the art in practicing the claimed application, from a review of the figures, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other elements or steps, and the "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
Although the present application has been described in connection with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made without departing from the spirit and scope of the application. Accordingly, the specification and drawings are merely exemplary illustrations of the present application as defined in the appended claims and are considered to cover any and all modifications, variations, combinations, or equivalents that fall within the scope of the present application. It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (11)

1. A method of route establishment, the method being applied to a first routing device, the method comprising:
acquiring configuration information of a virtual private network VPN route of the second routing equipment; the configuration information comprises target routing information, target destination addresses and target community attributes; the target routing information is the routing information between source equipment and destination equipment, the first routing equipment is the virtual routing equipment of the source equipment, the second routing equipment is the virtual routing equipment of the destination equipment, and a plurality of segmented routing Internet protocol version 6 SRv tunnels exist between the first routing equipment and the second routing equipment;
determining a target SRv tunnel of the plurality of SRv tunnels according to the target destination address and the target community attribute; the destination address of the target SRv tunnel is the target destination address, and the community attribute of the target SRv tunnel is the target community attribute;
converting the target routing information into a first internet protocol version 6 IPv6 routing information;
sending a first routing message to the source device; the first routing message includes the first IPv6 routing information.
2. The method of claim 1, wherein the obtaining configuration information of the VPN route of the second routing device comprises:
receiving a broadcast message of the second routing device; the broadcast message comprises a target route identification of the VPN route and the configuration information;
verifying the target route identifier to obtain a verification result;
and acquiring the configuration information in the broadcast message under the condition that the verification result indicates that the target route identification passes verification.
3. A route establishment method, wherein the method is applied to a second routing device, the second routing device being a virtual routing device of a destination device, the method comprising:
receiving a second routing message; the second routing message comprises second internet protocol version 6 IPv6 routing information, and the second IPv6 routing information is the routing information between the source equipment and the destination equipment;
generating a broadcast message according to the second IPv6 routing information; the broadcast message comprises a target route identifier of a virtual private network VPN route and configuration information of the VPN route, wherein the configuration information comprises target route information, a target destination address and a target group attribute, and the target route information is route information between the source equipment and the destination equipment;
Transmitting the broadcast message to a first routing device; the first routing device is a virtual routing device of the source device.
4. The method of claim 3, wherein the generating a broadcast message from the second IPv6 routing information comprises:
converting the second IPv6 routing information into the target routing information;
determining the target route identifier, the target destination address and the target group attribute according to the attribute information of the control surface of the second routing equipment;
and generating the broadcast message according to the target route identification, the target route information, the target destination address and the target community attribute.
5. A first routing device, the first routing device comprising: a transceiver module and a processing module;
the receiving and transmitting module is used for acquiring configuration information of a virtual private network VPN route of the second routing equipment; the configuration information comprises target routing information, target destination addresses and target community attributes; the target routing information is the routing information between source equipment and destination equipment, the first routing equipment is the virtual routing equipment of the source equipment, the second routing equipment is the virtual routing equipment of the destination equipment, and a plurality of segmented routing Internet protocol version 6 SRv tunnels exist between the first routing equipment and the second routing equipment;
The processing module is configured to determine a target SRv tunnel of the plurality of SRv tunnels according to the target destination address and the target community attribute; the destination address of the target SRv tunnel is the target destination address, and the community attribute of the target SRv tunnel is the target community attribute;
the processing module is further configured to convert the target routing information into first internet protocol version 6 IPv6 routing information;
the transceiver module is further configured to send a first routing message to the source device; the first routing message includes the first IPv6 routing information.
6. The first routing device of claim 5, wherein the transceiver module, configured to obtain configuration information of the VPN route of the second routing device, comprises:
receiving a broadcast message of the second routing device; the broadcast message comprises a target route identification of the VPN route and the configuration information;
verifying the target route identifier to obtain a verification result;
and acquiring the configuration information in the broadcast message under the condition that the verification result indicates that the target route identification passes verification.
7. A second routing device, wherein the second routing device is a virtual routing device of a destination device, the second routing device comprising: a transceiver module and a processing module;
The transceiver module is used for receiving a second routing message; the second routing message comprises second internet protocol version 6 IPv6 routing information, and the second IPv6 routing information is the routing information between the source equipment and the destination equipment;
the processing module is used for generating a broadcast message according to the second IPv6 routing information; the broadcast message comprises a target route identifier of a virtual private network VPN route and configuration information of the VPN route, wherein the configuration information comprises target route information, a target destination address and a target group attribute, and the target route information is route information between the source equipment and the destination equipment;
the transceiver module is further configured to send the broadcast message to a first routing device; the first routing device is a virtual routing device of the source device.
8. The second routing device of claim 7, wherein the processing module is specifically configured to:
converting the second IPv6 routing information into the target routing information;
determining the target route identifier, the target destination address and the target group attribute according to the attribute information of the control surface of the second routing equipment;
And generating the broadcast message according to the target route identification, the target route information, the target destination address and the target community attribute.
9. A route establishment system, characterized in that the route establishment system comprises a first routing device and a second routing device;
the first routing device being for performing the method of any one of claims 1 to 2;
the second routing device is configured to perform the method of any of claims 3 to 4.
10. A routing device, the routing device comprising: a processor coupled with a memory for storing a program or instructions that, when executed by the processor, cause the routing device to perform the method of any one of claims 1 to 2 or cause the routing device to perform the method of any one of claims 3 to 4.
11. A computer-readable storage medium, on which a computer program or instructions is stored, which when executed causes a computer to perform the method of any one of claims 1 to 2, or which when executed causes a computer to perform the method of any one of claims 3 to 4.
CN202311842322.6A 2023-12-28 2023-12-28 Route establishment method, route device, route system, and computer-readable storage medium Pending CN117729142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311842322.6A CN117729142A (en) 2023-12-28 2023-12-28 Route establishment method, route device, route system, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311842322.6A CN117729142A (en) 2023-12-28 2023-12-28 Route establishment method, route device, route system, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
CN117729142A true CN117729142A (en) 2024-03-19

Family

ID=90208783

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311842322.6A Pending CN117729142A (en) 2023-12-28 2023-12-28 Route establishment method, route device, route system, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN117729142A (en)

Similar Documents

Publication Publication Date Title
CN107872392B (en) Method and device for distributing service function chain data and service function instance data
US11563602B2 (en) Method and apparatus for providing a point-to-point connection over a network
US10225146B2 (en) Using virtual networking devices to manage routing information
US10735217B2 (en) Distributed internet access in an overlay fabric using combined local and remote extranet policies
EP2499787B1 (en) Smart client routing
US10298717B2 (en) Context export from an access point to a fabric infrastructure
CN107592270B (en) FlowSpec message processing method, device and system
EP2915314B1 (en) Downlink service path determination for multiple subscription based services in provider edge network
CN103580980A (en) Automatic searching and automatic configuration method and device of VN
US11863438B2 (en) Method and apparatus for sending routing information for network nodes
CN110324159B (en) Link configuration method, controller and storage medium
CN113810206B (en) Network automation arrangement management method, entity, controller and electronic equipment
EP4099648A1 (en) Method for processing segment id, and apparatus
CN110474960B (en) Method and device for service deployment in virtual network
Rodriguez-Natal et al. Programmable overlays via openoverlayrouter
CN106507414A (en) Message forwarding method and device
CN115695374A (en) IPv6 subnet prefix advertisement implementation method, device, equipment and storage medium
CN106027396B (en) A kind of route control method, device and system
CN107294849B (en) Method, device and system for establishing service path
EP4068705A1 (en) Packet transmission method and apparatus and storage medium
CN111464443B (en) Message forwarding method, device, equipment and storage medium based on service function chain
CN114978986B (en) Data transmission method, device and storage medium
CN112737850B (en) Mutually exclusive access method and device
CN115865802A (en) Virtual instance flow mirroring method and device, virtual machine platform and storage medium
CN117729142A (en) Route establishment method, route device, route system, and computer-readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination