Communication method and device, electronic equipment, storage medium and program product

By generating and publishing service identifiers based on Internet protocol address prefix, the limitations of SRv6 EVPN in floating address scenarios are solved, network stability and application scope are expanded, and more scenarios and needs are supported.

CN119052171APending Publication Date: 2024-11-29CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411162896.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-22
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

SRv6 EVPN has limitations when dealing with user dynamic allocation of addresses, resulting in the problem of missing Locator or unsupported MP-BGP establishment, limiting the application scope of floating addresses to EVPN networking.

Method used

By obtaining the Internet protocol address prefix of the network device, and publishing private network routing information based on the identification, ensuring that the network device can correctly route VPN traffic. Even if the Internet protocol address changes, the service identifier remains unchanged, reducing the frequency of BGP routing updates. Enhance network stability.

Benefits of technology

Support dynamically allocated Internet protocol addresses, avoiding the problem of Locator missing and MP-BGP establishment, expanding the application scope of SRv6 EVPN networking, and improving network stability and adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052171A_ABST
    Figure CN119052171A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a communication method and device, electronic equipment, a storage medium and a program product, and relates to the technical field of wireless communication. The method comprises the following steps: acquiring an internet protocol address of first network equipment; generating a service identifier of the first network device according to the address prefix of the Internet protocol address of the first network device; and issuing private network routing information carrying the service identifier of the first network equipment to the second network equipment. The method supports the use of dynamically allocated internet protocol addresses, expands the application range of SRv6EVPN networking, and enables the SRv6EVPN networking to support more scenes and requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of wireless communication technology, and in particular, to a communication method, a communication device, an electronic device, a computer-readable storage medium, and a computer program product. Background Art

[0002] When users access the operator network, in most cases the network will dynamically assign addresses to users, that is, floating addresses. SRv6 (Segment Routing over IPv6, segment routing based on IPv6 forwarding plane) EVPN (Ethernet Virtual Private Network) is the core protocol of IPv6+ network. It combines the advantages of SRv6 and EVPN and has become the core protocol for major operators and enterprises to build networks. However, SRv6 EVPN was designed mainly for fixed address deployment scenarios, resulting in certain limitations when dealing with users' dynamically assigned addresses, that is, floating address access.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] The embodiments of the present disclosure provide a communication method, a communication device, an electronic device, a computer-readable storage medium, and a computer program product to overcome the above problems or at least partially solve the above problems.

[0005] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0006] According to one aspect of the present disclosure, a communication method is provided, which is executed by a first network device, and the method includes: obtaining an Internet Protocol address of the first network device; generating a service identifier of the first network device based on an address prefix of the Internet Protocol address of the first network device; and publishing private network routing information carrying the service identifier of the first network device to a second network device.

[0007] In some embodiments of the present disclosure, generating a service identifier of the first network device based on the address prefix of the Internet Protocol address of the first network device includes: obtaining the address prefix of the Internet Protocol address of the first network device; calculating a first extension bit number based on the number of bits of a preset segment identifier and the number of bits of the address prefix; extending the address prefix based on the first extension bit number to obtain a segment identifier of the first network device; and generating a service identifier of the first network device based on the segment identifier of the first network device.

[0008] In some embodiments of the present disclosure, generating a service identifier of the first network device based on the segment identifier of the first network device includes: obtaining a function field corresponding to the first network device; the function field is used to identify a forwarding operation performed by the first network device; and generating a service identifier of the first network device based on the segment identifier of the first network device and the function field corresponding to the first network device.

[0009] In some embodiments of the present disclosure, generating a service identifier of the first network device based on the segment identifier of the first network device and the function field corresponding to the first network device includes: splicing the segment identifier of the first network device and the function field corresponding to the first network device to obtain a spliced ​​identifier; if the number of bits of the spliced ​​identifier is equal to 128 bits, determining that the spliced ​​identifier is the service identifier of the first network device; if the number of bits of the spliced ​​identifier is less than 128 bits, calculating a second extension bit number, and expanding the spliced ​​identifier to 128 bits based on the second extension bit number to obtain the service identifier of the first network device.

[0010] In some embodiments of the present disclosure, the method also includes: establishing a peer relationship with the second network device based on the Internet Protocol address of the first network device and the Internet Protocol address of the second network device; establishing a control plane connection based on the established peer relationship; and publishing private network routing information carrying the service identifier of the first network device to the second network device includes: publishing private network routing information carrying the service identifier of the first network device to the second network device via the control plane connection.

[0011] In some embodiments of the present disclosure, publishing the private network routing information carrying the service identifier of the first network device to the second network device includes: if the Internet Protocol address of the second network device is a floating address, publishing the private network routing information to the second network device through a controller.

[0012] In some embodiments of the present disclosure, obtaining the Internet Protocol address of the first network device includes: in response to the first network device accessing through broadband, obtaining the Internet Protocol address of the first network device assigned by the broadband network gateway; in response to the first network device accessing through the 5G network, obtaining the Internet Protocol address of the first network device assigned by the user-plane network element.

[0013] In some embodiments of the present disclosure, the method further includes: receiving a service message transmitted by the second network device based on a service identifier of the first network device.

[0014] In some embodiments of the present disclosure, the first network device is a first user edge device, and the first network device accesses the bearer network through a first service provider edge device.

[0015] In some embodiments of the present disclosure, the second network device is a second user edge device or a second service provider edge device, and the second user edge device accesses the bearer network through the second service provider edge device.

[0016] According to another aspect of the present disclosure, a communication method is provided, which is executed by a second network device, and the method includes: obtaining private network routing information published by a first network device and carrying a service identifier of the first network device; the service identifier of the first network device is generated based on an address prefix of an Internet Protocol address of the first network device.

[0017] According to another aspect of the present disclosure, a communication device is provided, which is applied to a first network device, and the device includes: an address acquisition unit, used to acquire an Internet Protocol address of the first network device; an identification generation unit, used to generate a service identification of the first network device according to an address prefix of the Internet Protocol address of the first network device; and a routing publishing unit, used to publish private network routing information carrying the service identification of the first network device to a second network device.

[0018] According to another aspect of the present disclosure, a communication device is provided, which is applied to a second network device, and the device includes: a routing acquisition unit, which is used to acquire private network routing information published by a first network device and carrying a service identifier of the first network device; the service identifier of the first network device is generated based on the address prefix of the Internet Protocol address of the first network device.

[0019] According to another aspect of the present disclosure, an electronic device is provided, comprising: one or more processors; and a storage device configured to store one or more programs, so that when the one or more programs are executed by the one or more processors, the one or more processors implement the communication method as described in the above embodiments.

[0020] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the communication method as described in the above embodiments is implemented.

[0021] According to yet another aspect of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the communication method as described in the above embodiment is implemented.

[0022] The communication method provided by the embodiment of the present disclosure generates a service identifier by utilizing the address prefix of the Internet Protocol address of the first network device. Even if the Internet Protocol address of the first network device changes, as long as the address prefix remains unchanged, the service identifier remains unchanged, so that other network devices (such as the second network device) can correctly route VPN traffic according to the service identifier. Since the service identifier is generated based on the Internet Protocol address prefix rather than being directly bound to the Internet Protocol address, when the Internet Protocol address changes, there is no need to frequently update the BGP route, thereby reducing the frequency of BGP route updates and enhancing the stability of the network. The first network device is supported to use a dynamically allocated Internet Protocol address without worrying about the lack of a Locator or the lack of support for MP-BGP establishment, thereby expanding the application scope of SRv6EVPN networking and enabling it to support more scenarios and requirements.

[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0025] Figure 1 A schematic diagram of a network architecture of a communication system applicable to an embodiment of the present disclosure is shown;

[0026] Figure 2 A flow chart of a communication method according to an embodiment of the present disclosure is shown;

[0027] Figure 3 A schematic diagram showing the structure of a service identifier obtained by extending an Internet Protocol address of a first network device according to an embodiment of the present disclosure;

[0028] Figure 4 A schematic diagram of a control plane implementation of a first network device accessing an SRv6 EVPN network according to an embodiment of the present disclosure is shown;

[0029] Figure 5 A flow chart showing a communication method according to another embodiment of the present disclosure is shown;

[0030] Figure 6 A schematic diagram showing forwarding of a service message using a generated service identifier according to an embodiment of the present disclosure is shown;

[0031] Figure 7 A schematic diagram showing the structure of a communication device according to an embodiment of the present disclosure is shown;

[0032] Figure 8 A schematic structural diagram of a communication device according to another embodiment of the present disclosure is shown;

[0033] Fig. 9 A structural block diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0034] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0035] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0036] It should be noted that the ordinal numbers such as "first" and "second" mentioned in the embodiments of the present disclosure are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects, and the descriptions of "first" and "second" do not limit the objects to be different.

[0037] SRv6 EVPN relies on two components, Locator and MP-BGP, during actual deployment and configuration. Among them, Locator is used to identify the location of the node and has a positioning function. When a node is configured with Locator, a route for the Locator network segment is generated and spread within the network. Other nodes can locate the node configured with Locator through this network segment route. MP-BGP (Multi-Protocol Border Gateway Protocol) is an extended version of BGP (Border Gateway Protocol). In the application of SRv6 VPN (Virtual Private Network), MP-BGP is used to announce VPN routing information. Through MP-BGP, VPN routing information can be propagated between different autonomous domains, realizing cross-domain deployment and management of VPN services.

[0038] Figure 1 A schematic diagram of a network architecture of a communication system to which an embodiment of the present disclosure is applicable is shown. Figure 1 In the network architecture shown, CE (Customer Edge) 1 and CE2 are user edge devices, PE (Provider Edge) 1 and PE2 are service provider edge devices, CE1 accesses the bearer network through PE1, and CE2 accesses the bearer network through PE2. Figure 1 The network architecture shown also includes RR (Route Reflector), which is a special router that can serve as a central point for storing and forwarding routing entries for the entire network, reflecting the routes learned from network devices to other network devices (except the network device that initiated its routing).

[0039] based on Figure 1 In the network structure shown in the figure, the specific implementation of the existing SRv6 EVPN networking method is that the CE and PE are interconnected using fixed interface IPv4 / IPv6 addresses, and then BGP exchange routes are enabled through PE-CE, or static route pointing is adopted.

[0040] In the bearer network, the locator address space is specially planned to identify VPN service routes. Each locator represents a node or network segment in the network. In SRv6 VPN, locators are assigned to different VPN instances or tenants to identify VPN service routes through locators. VPN SID (Segment Identifier) ​​is generated based on the locator and is used to indicate VPN service routes. In SRv6 VPN, the generation of VPN SID follows certain rules and algorithms to ensure that each VPN instance has a unique and identifiable SID to achieve accurate service route forwarding in the network. The VPN SID is published to the bearer network route so that nodes in the network can identify and forward VPN traffic. SRv6EVPN is enabled between PE1 and PE2, and the EVPN routing control layer uses MP-BGP to exchange routes using the EVPN address family; PE1 and PE2 use direct or indirect methods based on the MP-BGP protocol to implement route distribution.

[0041] It can be seen that if the CE address is dynamically allocated, that is, a floating address, the Locator associated with the CE will also change accordingly, causing the original Locator to become invalid. Then other nodes or PEs in the network cannot identify or forward VPN traffic based on the original Locator. In addition, because BGP route updates are based on Internet Protocol addresses, if the CE address is not fixed, frequent updates of BGP routes may cause network instability, and may even cause MP-BGP session establishment failure or route distribution problems. Therefore, for floating address access scenarios, the existing SRv6 EVPN networking method has the problem of missing Locators or unsupported MP-BGP establishment, which limits the application of floating address access EVPN networking scenarios.

[0042] In order to solve the above problems, the present disclosure provides a communication method. Figure 2 A flow chart of a communication method according to an embodiment of the present disclosure is shown. Figure 2 The communication method provided in the embodiment may be executed by the first network device. Figure 2 The communication method specifically includes the following steps S210 to S230.

[0043] Step S210: Obtain an Internet Protocol address of a first network device.

[0044] In some embodiments of the present disclosure, the first network device is a first user edge device, and the first network device accesses the bearer network through a first service provider edge device.

[0045] Among them, the user edge device is a device in the user network, which is connected to the service provider's network through the user edge device to provide access services to users. The user edge device is usually located at the edge of the network and is the connection point between the user and the network service provider. It can include various devices, such as routers, switches, gateways, etc. At the user end, the user edge device is responsible for sending the user's data stream to the service provider's network, and is also responsible for receiving the data stream from the service provider's network and forwarding it to the user. The service provider edge device is the edge device of the service provider's network, which is used to connect the user network and the bearer network.

[0046] In the embodiment of the present disclosure, the first network device serves as a first user edge device and accesses the bearer network through the first service provider edge device. That is, the first user edge device accesses the bearer network through the first service provider edge device and transmits data through the bearer network. Figure 1 Taking an example for explanation, the first network device is CE1, and the first service provider edge device is PE1.

[0047] In step S210, the first network device accesses an operator network, such as a broadband network or a 5G network. The operator network allocates an Internet Protocol address to the first network device, and the first network device obtains the Internet Protocol address allocated to it by the operator network.

[0048] The Internet Protocol address assigned by the operator network to the first network device may be an IPv6 / 64 floating IPv6 address. An IPv6 address is a 128-bit identifier used to uniquely identify a network interface on the Internet. An IPv6 / 64 floating IPv6 address means that the first 64 bits of the address (i.e., the network prefix) are fixed, assigned by the operator network and used to identify a specific network or subnet, and the last 64 bits are dynamically assigned and used to identify a specific device or interface in the network. For example, there are one or more address pools in the operator network, and an address with a 64-bit prefix is ​​assigned from the address pool to the first network device that is connected.

[0049] The Internet Protocol address allocated by the operator network to the first network device may also be a fixed address. It can be seen that the method provided by the embodiment of the present disclosure is applicable to fixed address access scenarios and also to floating address access scenarios.

[0050] In some embodiments of the present disclosure, obtaining the Internet Protocol address of the first network device includes: in response to the first network device accessing through broadband, obtaining the Internet Protocol address of the first network device assigned by the broadband network gateway; in response to the first network device accessing through the 5G network, obtaining the Internet Protocol address of the first network device assigned by the user-plane network element.

[0051] If the first network device is connected to a broadband network, an address is allocated to the first network device through a BNG (Broadband Network Gateway). If the first network device is connected to a 5G network, an address is allocated to the first network device through a UPF (User Plane Function) network element.

[0052] Step S220: Generate a service identifier of the first network device according to the address prefix of the Internet Protocol address of the first network device.

[0053] In step S220, the first network device generates a service identifier according to the address prefix of its Internet Protocol address. The address prefix may be a portion of the Internet Protocol address used to identify a network or subnet, such as the first 64 bits of an IPv6 / 64 floating IPv6 address. The service identifier is an identifier obtained according to the address prefix of the Internet Protocol address, and the service identifier is associated with the VPN service and is used to identify and distinguish different services or data flows.

[0054] In some embodiments of the present disclosure, a service identifier of the first network device is generated based on an address prefix of an Internet Protocol address of the first network device, including: obtaining the address prefix of the Internet Protocol address of the first network device; calculating a first extension bit number based on the number of bits of a preset segment identifier and the number of bits of the address prefix; extending the address prefix based on the first extension bit number to obtain a segment identifier of the first network device; and generating a service identifier of the first network device based on the segment identifier of the first network device.

[0055] The segment identifier of the first network device refers to the Locator of the first network device, which is used to identify the first network device or location in the network.

[0056] In the embodiment of the present disclosure, the number of bits of the segment identifier is preset, and in the process of generating the service identifier of the first network device, the number of bits to be extended, i.e., the first extended number of bits, is calculated based on the number of bits of the segment identifier of the device in advance and the number of bits of the address prefix. For example, the address prefix is ​​64 bits, the number of bits of the segment identifier is preset to 96 bits, and the first extended number of bits is calculated to be 32 bits (i.e., 96 bits - 64 bits). The first extended number of bits is to ensure that the generated segment identifier has enough bits to meet the preset requirements.

[0057] After obtaining the first extension bit number, the address prefix is ​​extended according to the first extension bit number to obtain the segment identifier of the first network device. For example, if the first extension bit number is 32 bits, an additional 32 bits are filled at the end of the address prefix, and all are filled with 1 by default. Then, the service identifier of the first network device is generated according to the segment identifier of the first network device.

[0058] In some embodiments of the present disclosure, a service identifier of the first network device is generated based on the segment identifier of the first network device, including: obtaining a function field corresponding to the first network device; and generating a service identifier of the first network device based on the segment identifier of the first network device and the function field corresponding to the first network device.

[0059] The function field of the first network device is used to identify the forwarding operation performed by the first network device. Of course, the function field of the first network device can also be used to identify other network functions.

[0060] In the process of generating the service identification of the first network device, the function field corresponding to the first network device is obtained, and then the service identification of the first network device is generated according to the segment identification obtained based on the address prefix extension and the obtained function field. In this way, the service identification of the first network device not only includes the location information of the network device in the network (through the segment identification), but also includes the function of the network device in the network (through the function field).

[0061] In some embodiments of the present disclosure, a service identifier of the first network device is generated based on a segment identifier of the first network device and a function field corresponding to the first network device, including: splicing the segment identifier of the first network device and the function field corresponding to the first network device to obtain a spliced ​​identifier; if the number of bits of the spliced ​​identifier is equal to 128 bits, determining that the spliced ​​identifier is the service identifier of the first network device; if the number of bits of the spliced ​​identifier is less than 128 bits, calculating a second extension bit number, and expanding the spliced ​​identifier to 128 bits based on the second extension bit number to obtain the service identifier of the first network device.

[0062] Specifically, the segment identifier and the function field of the first network device are spliced ​​to obtain the spliced ​​identifier, and then the number of bits of the spliced ​​identifier is judged. If the number of bits of the spliced ​​identifier is equal to 128 bits, the spliced ​​identifier is determined to be the service identifier of the first network device. If the number of bits of the spliced ​​identifier is less than 128 bits, the number of bits of the pre-set service identifier and the number of bits of the spliced ​​identifier are calculated to obtain the number of bits that need to be expanded, that is, the second extended number of bits. After obtaining the second extended number of bits, the spliced ​​identifier is expanded to 128 bits according to the second extended number of bits to obtain the service identifier of the first network device. For example, the second extended number of bits is 10 bits, and an additional 10 bits are filled at the end of the spliced ​​identifier, and all are filled with 0 by default to obtain the service identifier of the first network device.

[0063] Figure 3 The structure diagram of the service identifier obtained by extending the Internet Protocol address of the first network device according to an embodiment of the present disclosure is shown. Table 1 is a field composition table of the service identifier of the first network device. Figure 3As shown in Table 1, the service identifier of the first network device includes an address prefix part (Globally Unique Prefix), a padding field part (Pading), and a function field part (Function, including Func and Args).

[0064] Among them, the address prefix part occupies Y bits, which is used to identify the address prefix of the Internet Protocol address assigned by the operator network; the padding field part occupies P bits, which is filled with all 1s by default, and the padding field part and the address prefix part constitute the segment identifier (Locator) of the first network device, which occupies X bits; the function field part occupies F bits, which is used to identify the forwarding operation or other network function performed by the first network device.

[0065] Table 1

[0066]

[0067] It should be noted that Figure 3 In the structural diagram of the service identifier provided in the embodiment of Table 1, the address prefix part, the padding part and the function field part occupy a total of 128 bits, which is the same as the number of bits of the preset service identifier, so there is no need to perform additional padding at the end of the function field. If the number of bits occupied by the address prefix part, the padding part and the function field part together is less than the number of bits of the preset service identifier, additional padding 0 is performed at the end of the function field so that the number of bits of the filled identifier is the same as the number of bits of the preset service identifier, and the service identifier of the first network device is obtained.

[0068] In the disclosed embodiment, the generated service identifier combines the network location information (through the address prefix and segment identifier) ​​and the network device function information (through the function field), so that the service identifier is unique in the network and can accurately identify the specific network device and the operations it performs, which is helpful for accurate data flow management and control in the network; by flexibly processing the pre-set number of segment identifier bits and address prefixes, and expanding the spliced ​​identifier with a possible second extension bit, it can adapt to networks of different sizes and different business needs. When the network scale expands or business needs change, this method can still maintain its effectiveness and applicability; in complex SRv6 EVPN network scenarios, different services or data flows need to be distinguished and processed. By generating service identifiers containing rich information, the needs of these complex network scenarios can be supported.

[0069] Step S230: Publishing private network routing information carrying the service identifier of the first network device to the second network device.

[0070] In some embodiments of the present disclosure, the second network device is a second user edge device or a second service provider edge device, and the second user edge device accesses the bearer network through the second service provider edge device.

[0071] The second network device refers to a device that interacts with the first network device. The second network device may be a second user edge device, which accesses the bearer network through the second service provider edge device and transmits data through the bearer network, for example Figure 1 The second network device may also be a second service provider edge device, such as Figure 1 PE2 in.

[0072] In some embodiments of the present disclosure, the method further includes: establishing a peer relationship with the second network device according to the Internet Protocol address of the first network device and the Internet Protocol address of the second network device; and establishing a control plane connection based on the established peer relationship. And, publishing private network routing information carrying the service identifier of the first network device to the second network device includes: sending the private network routing information carrying the service identifier of the first network device to the second network device through the control plane connection.

[0073] In routing protocols, peers refer to network devices that exchange routing information with each other. After the first network device obtains its Internet Protocol address, it can initiate a BGP peer relationship with the second network device. Based on the established peer relationship, the first network device and the second network device establish a control plane connection by using a routing protocol (such as BGP), and subsequently exchange routing information through the established control plane connection.

[0074] In the disclosed embodiment, if the Internet Protocol address of the second network device is fixed, the first network device can obtain the Internet Protocol address of the second network device. Then, after obtaining its own Internet Protocol address, the first network device can initiate peer establishment with the second network device.

[0075] If the Internet Protocol address of the second network device is dynamically allocated, that is, the Internet Protocol address of the second network device is a floating address, the first network device may not be able to learn the Internet Protocol address of the second network device, and the first network device cannot initiate peer establishment with the second network device. In this case, if the Internet Protocol address of the first network device is fixed, the second network device can learn the Internet Protocol address of the first network device, and the second network device can initiate peer establishment with the first network device after obtaining its own Internet Protocol address.

[0076] by Figure 1For example, after CE1 obtains the Internet Protocol address assigned to it, it initiates peer establishment with PE2, that is, SRv6 EVPN is enabled between CE1 and PE2, and the EVPN control layer adopts the MP-BGP EVPN protocol family. Alternatively, when CE2 is reachable (in this case, CE1 can know the address of CE2), CE1 initiates peer establishment with CE2, that is, SRv6 EVPN is directly enabled between CE1 and CE2, and the EVPN control layer adopts the MP-BGP EVPN protocol family.

[0077] In some embodiments of the present disclosure, private network routing information carrying a service identifier of a first network device is published to a second network device, including: if the Internet Protocol address of the second network device is a floating address, publishing the private network routing information to the second network device through a controller.

[0078] If the Internet Protocol address of the second network device is dynamically allocated, that is, the Internet Protocol address of the second network device is a floating address, in this case, routing information can be exchanged through the controller.

[0079] In the embodiment of the present disclosure, the information exchanged by the control plane connection includes private network routing information, which carries a service identifier, that is, the private network routing information may refer to routing information used in a VPN environment, and the routing information is used to guide the transmission path of data flows in the VPN network. In addition, the information exchanged by the control plane connection may also include other configuration information, policy information, security information, etc. related to the VPN, which is not limited in the embodiment of the present disclosure.

[0080] Figure 4 A control plane implementation schematic diagram of a first network device accessing an SRv6 EVPN network according to an embodiment of the present disclosure is shown. Figure 4 In the example, 5G CPE (Customer Premises Equipment) 1 and 5G CPE2 access the bearer network through gNB (i.e., 5G base station), and fixed network CPE accesses the bearer network. Service controllers and network controllers are deployed on the control plane, where the service controller is used for user-level control and management, and the network controller is used for network-level control and management.

[0081] Reference Figure 4 For explanation, the Internet Protocol address of 5G CPE1 is a floating address, and the Internet Protocol address of fixed network CPE is a static address. 5G CPE1 can directly establish a control plane connection with the fixed network CPE, and exchange routing information (including service identification) and forwarding strategy information and other related information through the control plane connection to realize data transmission between the floating access terminal and the fixed terminal.

[0082] Continue to refer to Figure 4 To explain, the network controller is responsible for the allocation and docking of logical resources of the bearer network, and synchronizes the allocation results to the service controller. The Internet Protocol addresses of 5G CPE1 and 5G CPE2 are both floating addresses. 5G CPE1 sends the routing information (including service identification) and forwarding strategy information and other related information to 5G CPE2 through the service controller, and 5G CPE2 sends the routing information (including service identification) and forwarding strategy information and other related information to 5G CPE1 through the service controller, so that the forwarding plane intercommunication between 5G CPE1 and 5G CPE2 can be realized.

[0083] In the disclosed embodiment, a first network device establishes a peer relationship with a second network device, establishes a control plane connection based on the peer relationship, and utilizes the established control plane connection to transmit private network routing information carrying a service identifier, thereby realizing service routing distribution between network devices; routing information can also be published through a controller, so that routing information interaction can be realized when the network device has a floating address.

[0084] In some embodiments of the present disclosure, the further step includes: receiving a service message transmitted by the second network device based on the service identifier of the first network device.

[0085] The service identifier of the first network device is an identifier obtained according to the address prefix of the Internet Protocol address of the first network device. The service identifier is associated with the VPN service and is used to identify and distinguish different services or data flows.

[0086] When the second network device receives a service message, it will determine which service or data flow the message belongs to based on certain attributes of the service message (such as source address, destination address, port number, etc.), and this process may involve searching a routing table, access control list, or other policy database. After determining the service or data flow to which the service message belongs, the second network device will query its internal routing table or policy database and find that the service identifier corresponding to the service or data flow is the service identifier of the first network device, that is, the service message is to be transmitted to the first network device.

[0087] Based on the service identifier found, the second network device will send the service message to the bearer network according to the forwarding decision, and transmit the service message to the first network device through the bearer network. When the service message arrives at the first network device, the first network device will determine how to further process the service message according to the attributes of the message and its own configuration and strategy.

[0088] Figure 5 A flow chart of a communication method according to another embodiment of the present disclosure is shown. Figure 5 The communication method provided in the embodiment may be executed by the second network device. Figure 5, the communication method specifically includes the following steps S510.

[0089] Step S510, obtaining private network routing information carrying a service identifier of the first network device and published by the first network device; the service identifier of the first network device is generated according to an address prefix of an Internet Protocol address of the first network device.

[0090] In some embodiments of the present disclosure, the first network device is a first user edge device, and the first network device accesses the bearer network through a first service provider edge device; the second network device is a second user edge device or a second service provider edge device, and the second user edge device accesses the bearer network through a second service provider edge device. Figure 1 CE1 in the network is connected to the bearer network through PE1. The second network device is Figure 1 CE2 or PE2 in the network, CE2 accesses the bearer network through PE2.

[0091] In the disclosed embodiment, if the Internet Protocol address of the second network device is a fixed address. In this case, after the first network device determines the Internet Protocol address assigned to it, the first network device establishes a peer relationship with the second network device, establishes a control plane connection based on the peer relationship, and exchanges private network routing information through the control plane connection. If the Internet Protocol address of the second network device is a floating address. In this case, the first network device and the second network device exchange private network routing information through the controller.

[0092] Therefore, the second network device can obtain the private network routing information of the first network device, and the private network routing information carries the service identifier of the first network device, and the service identifier is generated according to the address prefix of the Internet Protocol address of the first network device.

[0093] In some embodiments of the present disclosure, the service identifier of the first network device is generated by the first network device based on the segment identifier of the first network device, and the segment identifier of the first network device is obtained by the first network device extending the address prefix of the Internet Protocol address of the first network device based on a first extension bit number, wherein the first extension bit number is calculated by the first network device based on the pre-set number of bits of the segment identifier and the number of bits of the address prefix.

[0094] In some embodiments of the present disclosure, the service identifier of the first network device is generated by the first network device according to the segment identifier of the first network device and a function field corresponding to the first network device, wherein the function field is used to identify the forwarding operation performed by the first network device.

[0095] In the disclosed embodiment, the process of generating the service identifier of the first network device is as follows: obtaining an address prefix of the Internet Protocol address of the first network device; expanding the obtained address prefix according to the number of digits of the pre-set segment identifier to obtain the segment identifier of the first network device; splicing the segment identifier of the first network device with the function field corresponding to the first network device to obtain a spliced ​​identifier; if the number of digits of the spliced ​​identifier is the same as the number of digits of the pre-set service identifier, determining that the spliced ​​identifier is the service identifier of the first network device; if the number of digits of the spliced ​​identifier is less than the number of digits of the pre-set service identifier, performing additional padding at the end of the spliced ​​identifier according to the number of digits of the pre-set service identifier to obtain the service identifier of the first network device.

[0096] In the disclosed embodiment, the process of the second network device transmitting a service message is as follows: when the second network device receives a service message, it determines which service or data stream the message belongs to based on certain attributes of the service message (such as source address, destination address, port number, etc.); after determining the service or data stream to which the service message belongs, the second network device queries its internal routing table or policy database, and finds that the service identifier corresponding to the service or data stream is the service identifier of the first network device, indicating that the service message is to be transmitted to the first network device; based on the found service identifier, the second network device sends the service message to the bearer network according to the forwarding decision, and transmits the service message to the first network device through the bearer network.

[0097] Figure 6 A schematic diagram showing forwarding of a service message by using a generated service identifier according to an embodiment of the present disclosure is shown. Figure 6 The example shown is that in the example of using the SRv6 BE tunnel to forward from a fixed address access site to a floating address access site, the forwarding plane forwarding between sites is completed by extending the address.

[0098] Among them, the fixed network CPE is a fixed address access site, and its Internet Protocol address is fixed. 5GCPE1 is a floating address access site. When 5G CPE1 accesses the 5G network, the UPF network element dynamically allocates it the address 2001::1 / 64. After 5G CPE1 obtains the address 2001::1 / 64 from the UPF network element, it obtains the segment identifier (SRv6 Locator) 2001:FFFF:FFFF:: / 96 through address extension, and generates the service identifier (VPN SID) 2001:FFFF:FFFF::1 / 128 based on the segment identifier.

[0099] When user network B sends a service message (DA:10.1.1.1, SA:20.1.1.1) through the fixed network CPE, the fixed network CPE searches according to the forwarding policy obtained from the control plane, determines that the peer service identifier is 2001:FFFF:FFFF::1 / 128, and encapsulates the service message into the SRv6 tunnel. The bearer network forwards the service message to 5G CPE1 based on the bearer address prefix 2001::1 / 64 route search. 5G CPE1 parses the service message from the SRv6 tunnel and forwards it to user network A according to the destination address of the service message.

[0100] The communication method provided by the embodiment of the present disclosure generates a service identifier by utilizing the address prefix of the Internet Protocol address of the first network device. Even if the Internet Protocol address of the first network device changes, as long as the address prefix remains unchanged, the service identifier remains unchanged, so that other network devices (such as the second network device) can correctly route VPN traffic according to the service identifier. Since the service identifier is generated based on the Internet Protocol address prefix rather than being directly bound to the Internet Protocol address, when the Internet Protocol address changes, there is no need to frequently update the BGP route, thereby reducing the frequency of BGP route updates and enhancing the stability of the network. The first network device is supported to use a dynamically allocated Internet Protocol address without worrying about the lack of a Locator or the lack of support for MP-BGP establishment, thereby expanding the application scope of SRv6EVPN networking and enabling it to support more scenarios and requirements.

[0101] Figure 7 A schematic structural diagram of a communication device according to an embodiment of the present disclosure is shown. Figure 7 The communication device 700 is applied to a first network device, and includes an address obtaining unit 710, an identification generating unit 720 and a route publishing unit 730.

[0102] Among them, the address acquisition unit 710 is used to obtain the Internet Protocol address of the first network device; the identification generation unit 720 is used to generate the service identification of the first network device according to the address prefix of the Internet Protocol address of the first network device; the routing publishing unit 730 is used to publish private network routing information carrying the service identification of the first network device to the second network device.

[0103] In some embodiments of the present disclosure, the identification generation unit 720 is also used to: obtain the address prefix of the Internet Protocol address of the first network device; calculate the first extension bit number based on the number of bits of the pre-set segment identifier and the number of bits of the address prefix; expand the address prefix based on the first extension bit number to obtain the segment identifier of the first network device; and generate the service identifier of the first network device based on the segment identifier of the first network device.

[0104] In some embodiments of the present disclosure, the identification generation unit 720 is also used to: obtain a function field corresponding to the first network device, wherein the function field is used to identify the forwarding operation performed by the first network device; and generate a service identifier of the first network device based on the segment identifier of the first network device and the function field corresponding to the first network device.

[0105] In some embodiments of the present disclosure, the identifier generation unit 720 is also used to: splice the segment identifier of the first network device and the function field corresponding to the first network device to obtain a spliced ​​identifier; if the number of bits of the spliced ​​identifier is equal to 128 bits, determine that the spliced ​​identifier is the service identifier of the first network device; if the number of bits of the spliced ​​identifier is less than 128 bits, calculate the second extension bit number, and expand the spliced ​​identifier to 128 bits based on the second extension bit number to obtain the service identifier of the first network device.

[0106] In some embodiments of the present disclosure, the route publishing unit 730 is further used to: establish a peer relationship with the second network device according to the Internet Protocol address of the first network device and the Internet Protocol address of the second network device; and establish a control plane connection based on the established peer relationship. And, the route publishing unit 730 is further used to: send private network routing information carrying the service identifier of the first network device to the second network device through the control plane connection.

[0107] In some embodiments of the present disclosure, the route publishing unit 730 is further used to: if the Internet Protocol address of the second network device is a floating address, publish the private network routing information to the second network device through the controller.

[0108] In some embodiments of the present disclosure, the address acquisition unit 710 is also used to: in response to the first network device accessing through broadband, obtain the Internet Protocol address of the first network device assigned by the broadband network gateway; in response to the first network device accessing through the 5G network, obtain the Internet Protocol address of the first network device assigned by the user-plane network element.

[0109] In some embodiments of the present disclosure, Figure 7 The communication device 700 shown also includes a message receiving unit 740, which is used to receive a service message transmitted by the second network device based on the service identifier of the first network device.

[0110] In some embodiments of the present disclosure, the first network device is a first user edge device, and the first network device accesses the bearer network through a first service provider edge device.

[0111] In some embodiments of the present disclosure, the second network device is a second user edge device or a second service provider edge device, and the second user edge device accesses the bearer network through the second service provider edge device.

[0112] Figure 8A schematic structural diagram of a communication device according to another embodiment of the present disclosure is shown. Figure 8 The communication device 800 is applied to the second network device, and includes a route acquisition unit 810. The route acquisition unit 810 is used to: obtain private network routing information published by the first network device and carrying the service identifier of the first network device, where the service identifier of the first network device is generated according to the address prefix of the Internet Protocol address of the first network device.

[0113] In some embodiments of the present disclosure, the service identifier of the first network device is generated by the first network device based on the segment identifier of the first network device, the segment identifier of the first network device is obtained by the first network device extending the address prefix of the Internet Protocol address of the first network device based on a first extension bit number, and the first extension bit number is calculated by the first network device based on the pre-set number of bits of the segment identifier and the number of bits of the address prefix.

[0114] In some embodiments of the present disclosure, the service identifier of the first network device is generated by the first network device according to the segment identifier of the first network device and a function field corresponding to the first network device, and the function field is used to identify the forwarding operation performed by the first network device.

[0115] In some embodiments of the present disclosure, the first network device is a first user edge device, and the first network device accesses the bearer network through a first service provider edge device.

[0116] In some embodiments of the present disclosure, the second network device is a second user edge device or a second service provider edge device, and the second user edge device accesses the bearer network through the second service provider edge device. Since the principle of solving the problem in the communication device embodiment is similar to that in the above method embodiment, the real-time implementation of the communication device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0117] Fig. 9 FIG. 1 shows a structural block diagram of an electronic device in an embodiment of the present disclosure. It should be noted that: Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0118] like Fig. 9As shown, the electronic device 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0119] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.

[0120] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 909, and / or installed from a removable medium 911. When the computer program is executed by a central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present disclosure are executed.

[0121] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, terminal device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, a terminal device or a device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, a terminal device or a device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0122] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0123] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes an address acquisition unit, an identification generation unit, and a route publishing unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the address acquisition unit may also be described as a "unit for acquiring the Internet Protocol address of the first network device".

[0124] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may exist independently without being assembled into the electronic device. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the following embodiments. For example, the electronic device may implement the following Figure 2 The steps shown.

[0125] According to one aspect of the present disclosure, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in various optional implementations of the above-mentioned embodiments.

[0126] It should be understood that any number of elements in the drawings of the present disclosure is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.

[0127] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0128] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A communication method, characterized in that: Executed by a first network device, the method includes: Obtaining an Internet Protocol address of the first network device; generating a service identifier of the first network device according to an address prefix of the Internet Protocol address of the first network device; The private network routing information carrying the service identifier of the first network device is published to the second network device.

2. The method according to claim 1, characterized in that The step of generating a service identifier of the first network device according to the address prefix of the Internet Protocol address of the first network device includes: Obtaining an address prefix of an Internet Protocol address of the first network device; Calculate the first extension bit number according to the number of bits of the preset segment identifier and the number of bits of the address prefix; Extending the address prefix based on the first extension bit number to obtain a segment identifier of the first network device; A service identifier of the first network device is generated according to the segment identifier of the first network device.

3. The method according to claim 2, characterized in that The generating a service identifier of the first network device according to the segment identifier of the first network device includes: Acquire a function field corresponding to the first network device; the function field is used to identify a forwarding operation performed by the first network device; A service identifier of the first network device is generated according to the segment identifier of the first network device and a function field corresponding to the first network device.

4. The method according to claim 3, characterized in that The generating, according to the segment identifier of the first network device and the function field corresponding to the first network device, a service identifier of the first network device includes: splicing the segment identifier of the first network device and the function field corresponding to the first network device to obtain a spliced ​​identifier; If the number of bits of the spliced ​​identifier is equal to 128 bits, determining that the spliced ​​identifier is the service identifier of the first network device; If the number of bits of the spliced ​​identifier is less than 128 bits, a second extension bit number is calculated, and the spliced ​​identifier is extended to 128 bits based on the second extension bit number to obtain the service identifier of the first network device.

5. The method according to claim 1, characterized in that The method further comprises: Establishing a peer relationship with the second network device according to the Internet Protocol address of the first network device and the Internet Protocol address of the second network device; Establishing a control plane connection based on the established peer relationship; And, publishing the private network routing information carrying the service identifier of the first network device to the second network device includes: sending the private network routing information carrying the service identifier of the first network device to the second network device through the control plane connection.

6. The method according to claim 1, characterized in that The issuing of the private network routing information carrying the service identifier of the first network device to the second network device includes: If the Internet Protocol address of the second network device is a floating address, the private network routing information is published to the second network device through the controller.

7. The method according to claim 1, characterized in that The obtaining of the Internet Protocol address of the first network device includes: In response to the first network device being accessed through broadband, obtaining an Internet Protocol address of the first network device assigned by a broadband network gateway; In response to the first network device accessing the 5G network, an Internet Protocol address of the first network device allocated by a user plane network element is obtained.

8. The method according to claim 1, characterized in that The method further comprises: Receive a service message transmitted by the second network device based on the service identifier of the first network device.

9. The method according to any one of claims 1 to 8, characterized in that: The first network device is a first user edge device, and the first network device is connected to the bearer network through a first service provider edge device.

10. The method according to any one of claims 1 to 8, characterized in that: The second network device is a second user edge device or a second service provider edge device, and the second user edge device accesses the bearer network through the second service provider edge device.

11. A communication method, characterized in that: Executed by the second network device, the method includes: Acquire private network routing information published by a first network device and carrying a service identifier of the first network device; the service identifier of the first network device is generated based on an address prefix of an Internet Protocol address of the first network device.

12. A communication device, characterized in that: Applied to a first network device, the apparatus comprises: An address acquisition unit, configured to acquire an Internet Protocol address of the first network device; an identification generating unit, configured to generate a service identification of the first network device according to an address prefix of an Internet Protocol address of the first network device; The route publishing unit is used to publish the private network routing information carrying the service identifier of the first network device to the second network device.

13. A communication device, characterized in that: Applied to a second network device, the apparatus comprises: A routing acquisition unit is used to acquire private network routing information published by a first network device and carrying the service identifier of the first network device; the service identifier of the first network device is generated based on the address prefix of the Internet Protocol address of the first network device.

14. An electronic device, characterized in that: include: one or more processors; A storage device configured to store one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the communication method as described in any one of claims 1 to 10, or implement the communication method as described in claim 11.

15. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the computer program implements the communication method according to any one of claims 1 to 10, or implements the communication method according to claim 11.

16. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the communication method according to any one of claims 1 to 10, or implements the communication method according to claim 11.