Method, device, equipment and storage medium for diverting backhaul traffic in computing power network
By replacing the source IP address of the backhaul data packet in the egress router and determining the SRv6 Policy tunnel based on the service identification, the problem of multiple service backhaul traffic sharing the same destination IP address in the computing power network is solved, and different services are realized The backhaul traffic is drained to different paths respectively.
Patent Information
- Application Number
- CN202211339128.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-28
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2042-10-28
AI Technical Summary
The existing traffic drainage methods in computing power networks cannot effectively complete the backhaul traffic drainage of multiple services in the same terminal.
Receive the backhaul data packet sent by the edge computing node in the egress router, replace the source IP address in the backhaul data packet, change the identification of the edge computing node to the identification of the target service, and determine the target SRv6 Policy tunnel identifier based on the identification. The transmission of backhaul data packets is carried out through this tunnel.
It realizes the traffic flow for backhaul traffic of different services, and diverts backhaul traffic of different services to different paths, solving the problem that multiple service backhaul traffic shares the same destination IP address, which makes it impossible to drain traffic.
Smart Images

Figure CN115695284B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device, equipment and storage medium for diverting return traffic in a computing network. Background Art
[0002] Computing Force Network-dynamic anycast (CFN-dyncast) is a new network architecture that deeply integrates computing power and network. It is a new type of information infrastructure that allocates and flexibly schedules computing resources, storage resources and network resources on demand between cloud computing, edge computing and terminal sides according to business needs. It is a distributed technology that schedules user business needs to the optimal MEC node based on the computing power load and network status of multiple edge computing nodes (Multi-access Edge Computing, MEC).
[0003] The purpose of the computing network is to enable data traffic to select the optimal path and optimal computing node in the outbound process, and to select the optimal path in the return process. The current traffic diversion solutions generally include the following three:
[0004] Method 1: Binding SID (Binding Segment ID) diversion: Create an SRv6 (Segmet Routing IPv6) Policy tunnel, a Binding SID of the SRv6 Policy tunnel, and a Segment list corresponding to the Binding SID on the IR (IngressRouter). The service data traffic message sent by the upstream node to the IR contains the Binding SID. When the IR processes the service data message, it will divert the traffic corresponding to the service data message to the SRv6 Policy tunnel corresponding to the Binding SID to complete the diversion of the service data.
[0005] Method 2: Color diversion: SRv6 Policy uses the following triplet as Key (key value): Headend (head node), Color (color), Endpoint (destination node). Key can uniquely identify an SRv6 Policy, and Color is used to identify the ID of the SRv6 Policy. Color can be carried as an extended community attribute of BGP (Border Gateway Protocol) routing and associated with the service routing on ER (Egress Router). The association information is passed from ER to IR through BGP routing. In this way, after the service data packet reaches IR, it enters the SRv6 Policy tunnel corresponding to Color through routing iteration to complete the diversion of service data.
[0006] Method 3: DSCP (Differentiated Services Code Point) diversion: Drain traffic by using the DSCP value encapsulated in the IP (Internet Protocol) message header, specify the mapping relationship between each SRv6Policy and the DSCP value, and divert the traffic corresponding to the service data message to the SRv6Policy tunnel corresponding to the DSCP value to complete the diversion of service data.
[0007] However, the above-mentioned diversion methods only achieve diversion of outbound traffic, but cannot achieve diversion of return traffic of multiple services with the same destination IP address (ie, the IP address of the UE).
[0008] In view of the above technical problems, we will take Color drainage as an example to illustrate. Figure 1As shown, the terminal UE_A accesses the computing network through the access network. The IP address of UE_A is: IPA (IP_A). UE_A has two services: Service 1 and Service 2, both of which are provided by the edge computing node MEC2. In the outbound process, the data message of Service 1 is transmitted to MEC2 through the ordinary path, and the data message of Service 2 is transmitted to MEC2 through the low-latency path. Assume that the ordinary path is: UE_A→IR1→…→ER2→MEC2, and the low-latency path is: UE_A→IR1→ER2→MEC2. In the ordinary path, other transit routing devices are also included between IR1 and ER2. The identifier of Service 1 is SID (Service ID) 1, and the identifier of Service 2 is SID2. In the edge computing node MEC2, BID21 represents the identifier of MEC2 corresponding to Service 1, and BID22 represents the identifier of MEC2 corresponding to Service 2. In scenario 1, when UE_A currently has only one service (such as service 1), only one return route is required. ER2 creates an SRv6 Policy tunnel. Assume that the Color value corresponding to the ordinary path of service 1 is 10. On the outbound path, the outbound data message of service 1 carries the Color value 10. After being directed to ER2 through IR1, ER2 directs the traffic corresponding to the outbound data message of service 1 to the SRv6Policy1 tunnel corresponding to the Color value 10 to complete the outbound traffic diversion. On the return path, the source IP address contained in the return data message of service 1 is the MEC2 identifier: BID21, and the destination IP address is: IPA. ER2 directs the traffic of the return data message of service 1 to the SRv6Policy1 tunnel to complete the return traffic diversion. However, in scenario 2, when UE_A currently has two services: service 1 and service 2, two return routes are required. Assuming that the Color value corresponding to the low-latency path corresponding to service 2 is 20, during the return, the source IP address contained in the return data packet of service 1 is the MEC2 identifier: BID21, and the destination IP address is: IPA. The source IP address contained in the return data packet of service 2 is the MEC2 identifier: BID22, and the destination IP address is: IPA. The return data packets of service 1 and service 2 contain the same destination IP address IPA. The same destination IP address corresponds to two different services. On the data plane (i.e., the forwarding plane), ER2 cannot perform different route iteration selections based on the same destination IP. On the control plane, IR1 cannot mark the route with the address of IPA in the same entry as two colors: Color10 and Color20. Therefore, the return traffic cannot be diverted. The Binding SID diversion and DSCP diversion methods also have the same problem. Summary of the invention
[0009] In order to solve the problem that common traffic diversion methods in computing power networks cannot complete the return traffic diversion of multiple services of the same terminal, the embodiments of the present application provide a return traffic diversion method, device, equipment and storage medium in a computing power network.
[0010] In a first aspect, an embodiment of the present application provides a method for diverting backhaul traffic in a computing power network, which is applied to an egress router connected to an edge computing node in the computing power network, wherein the egress router is configured with at least two IPv6-based segment routing policy SRv6 Policy tunnels, and the method includes:
[0011] Receiving a return data message for a target service sent by the edge computing node;
[0012] Replacing the source IP address in the return data message from the identifier of the edge computing node to the identifier of the target service;
[0013] Determine a target SRv6 Policy tunnel identifier based on the identifier of the target service;
[0014] The return data message is transmitted through the SRv6 Policy tunnel corresponding to the target SRv6 Policy tunnel identifier.
[0015] In a possible implementation manner, determining the target SRv6Policy tunnel identifier based on the identifier of the target service includes:
[0016] Determine the head node information of the target SRv6 Policy tunnel based on the identification information of the egress router;
[0017] Determine the destination node information of the target SRv6 Policy tunnel based on the destination IP address in the return data message;
[0018] Determine a Color value of the target SRv6 Policy tunnel based on the identifier of the target service;
[0019] The target SRv6 Policy tunnel identifier is determined according to the head node information, the destination node information, and the determined Color value.
[0020] In a possible implementation manner, determining the Color value of the target SRv6Policy tunnel based on the identifier of the target service includes:
[0021] Determine the target color value corresponding to the identifier of the target service according to the correspondence between the identifier of the preset service and the preset color value;
[0022] The target Color value is determined as the Color value of the target SRv6 Policy tunnel.
[0023] In a possible implementation manner, determining the Color value of the target SRv6Policy tunnel based on the identifier of the target service includes:
[0024] Determine a target DSCP value corresponding to the identifier of the target service based on a correspondence between an identifier of a preset service and a Differentiated Services Code Point (DSCP) value;
[0025] Determine a target color value corresponding to the target DSCP value based on a correspondence between a preset DSCP value and a color value;
[0026] The target Color value is determined as the Color value of the target SRv6 Policy tunnel.
[0027] In a possible implementation manner, the at least two SRv6 Policy tunnels are created by the egress router; or,
[0028] The at least two SRv6 Policy tunnels are created by the controller and then sent to the egress router.
[0029] In a second aspect, an embodiment of the present application provides a return traffic diversion device in a computing power network, which is applied to an egress router connected to an edge computing node in the computing power network, wherein the egress router is configured with at least two IPv6-based segment routing strategy SRv6 Policy tunnels, and the device includes:
[0030] A receiving unit, configured to receive a return data message for a target service sent by the edge computing node;
[0031] A replacement unit, configured to replace the source IP address in the return data message from the identifier of the edge computing node to the identifier of the target service;
[0032] A determination unit, configured to determine a target SRv6 Policy tunnel identifier based on an identifier of the target service;
[0033] The traffic diversion unit is used to transmit the return data message through the SRv6 Policy tunnel corresponding to the target SRv6 Policy tunnel identifier.
[0034] In a possible implementation, the determination unit is used to determine the head node information of the target SRv6 Policy tunnel based on the identification information of the egress router; determine the destination node information of the target SRv6 Policy tunnel based on the destination IP address in the return data message; determine the Color value of the target SRv6 Policy tunnel based on the identification of the target service; and determine the target SRv6 Policy tunnel identification according to the head node information, the destination node information and the determined Color value.
[0035] In a possible implementation, the determination unit is configured to determine a target Color value corresponding to the identifier of the target service according to a correspondence between an identifier of a preset service and a preset Color value; and determine the target Color value as the Color value of the target SRv6 Policy tunnel.
[0036] In a possible implementation, the determination unit is used to determine a target DSCP value corresponding to the identifier of the target service based on a correspondence between an identifier of a preset service and a differentiated service code point DSCP value; determine a target Color value corresponding to the target DSCP value based on a correspondence between a preset DSCP value and a Color value; and determine the target Color value as the Color value of the target SRv6 Policy tunnel.
[0037] In a possible implementation manner, the at least two SRv6 Policy tunnels are created by the egress router; or,
[0038] The at least two SRv6 Policy tunnels are created by the controller and then sent to the egress router.
[0039] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, the method for diverting return traffic in a computing power network described in the present application is implemented.
[0040] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, which, when executed by a processor, implements the steps of the return traffic diversion method in the computing power network described in the present application.
[0041] The beneficial effects of this application are as follows:
[0042] The return traffic diversion method, apparatus, device and storage medium in a computing power network provided in an embodiment of the present application are applied to an egress router connected to an edge computing node in the computing power network. The egress router is configured with at least two SRv6Policy tunnels. The egress router receives a return data message for a target service sent by the edge computing node, replaces the source IP address in the return data message of the target service from the identifier of the edge computing node to the identifier of the target service, obtains an updated return data message, determines a target SRv6 Policy tunnel identifier based on the identifier of the target service, and transmits the return data message through an SRv6 Policy tunnel corresponding to the SRv6 Policy tunnel identifier corresponding to the target SRv6 Policy tunnel identifier. Therefore, when the destination IP addresses of return data packets of multiple different services are the same (that is, the return data packets of different services are returned to the same terminal), in the present application, for each service, the source IP address of the return data packet can be replaced by the identifier of the edge computing node with the identifier of the service, and then the corresponding SRv6Policy is selected for diversion according to the respective service identifiers. In this way, the return traffic of different services can be diverted separately, and the return traffic of different services can be diverted to different paths.
[0043] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0045] Figure 1 A schematic diagram of the application scenario of Color drainage in the computing power network;
[0046] Figure 2 A schematic diagram of an application scenario of the method for diverting backhaul traffic in a computing network provided in an embodiment of the present application;
[0047] Figure 3 A schematic diagram of the implementation process of the method for diverting backhaul traffic in a computing network provided in an embodiment of the present application;
[0048] Figure 4 A schematic diagram of an implementation process for determining a target SRv6 Policy tunnel identifier provided in an embodiment of the present application;
[0049] Figure 5A schematic diagram of an implementation process for determining the Color value of a target SRv6 Policy tunnel provided in an embodiment of the present application;
[0050] Figure 6 A schematic diagram of another implementation process for determining the Color value of a target SRv6 Policy tunnel provided in an embodiment of the present application;
[0051] Figure 7 A schematic diagram of the structure of a return traffic diversion device in a computing power network provided in an embodiment of the present application;
[0052] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] In order to solve the problem that common traffic diversion methods in computing power networks cannot complete the return traffic diversion of multiple services of the same terminal, the embodiments of the present application provide a return traffic diversion method, device, equipment and storage medium in a computing power network.
[0054] The following describes the embodiments of the present application in conjunction with the drawings in the specification. It should be understood that the embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments in the present application and the features in the embodiments may be combined with each other if there is no conflict.
[0055] In this article, it is necessary to understand that the technical terms involved in this application are:
[0056] 1. Segment Routing (SR): Segment routing technology achieves network programmability by encapsulating an ordered segment list at the source node and instructing the network to execute corresponding instructions at the specified node.
[0057] 2. SRv6 Policy: By encapsulating a series of SRv6 Segment IDs (SRv6 SIDs) in the SRH (Segment Routing Header), the service data packets can be explicitly guided to be forwarded along the planned path, and the end-to-end fine-grained control of the forwarding path can be achieved to meet the service requirements of high reliability, large bandwidth, and low latency. SRv6 Policy uses the following triple as the key: Headend, Color, and Endpoint. The Key can uniquely identify an SRv6 Policy. Among them, Headend identifies the head node of SRv6 Policy, and Headend can import data traffic into an SRv6 Policy tunnel; Color is used to identify the ID of SRv6 Policy, which can be associated with a series of service attributes, such as low latency, high bandwidth, etc., and can be understood as the service requirement template ID. The Color value can be configured by the user according to the needs. For example, the measurement of end-to-end latency less than 10 milliseconds can be assigned a Color of 100; Endpoint is used to identify the destination address of SRv6 Policy. When SRv6 Policy is sent to the headend, since the Headend field of all SRv6 Policies is this node, a SRv6 Policy can be uniquely identified on the headend, so the traffic is guided into the SRv6 Policy tunnel on the headend. SRv6 Policy is designed for business. Color describes the requirements of the business on the network, such as latency, bandwidth, reliability, etc. This design of SRv6 Policy enables SRv6 Policy to interact directly with the business.
[0058] First reference Figure 2 , which is a schematic diagram of an application scenario of the method for diverting return traffic in a computing network provided in an embodiment of the present application, and the scenario is Figure 1 In scenario 2, the terminal UE_A having two services is still used as an example for explanation. Figure 2As shown, the terminal UE_A accesses the computing network through the access network. The IP address of UE_A is: IPA. UE_A has two services: Service 1 and Service 2, both of which are provided by the edge computing node MEC2. In the outbound process, the data message of Service 1 is transmitted to MEC2 through the ordinary path, and the data message of Service 2 is transmitted to MEC2 through the low-latency path. Assume that the ordinary path is: UE_A→IR1→…→ER2→MEC2, and the low-latency path is: UE_A→IR1→ER2→MEC2. In the ordinary path, other transit routing devices are also included between the ingress router IR1 and the egress router ER2. The identifier of Service 1 is SID1 (Service ID 1), and the identifier of Service 2 is SID2 (Service ID 2). In the edge computing node MEC2, BID21 (Binding ID 21) represents the identifier of MEC2 corresponding to Service 1, and BID22 (Binding ID 22) represents the identifier of MEC2 corresponding to Service 2. The return data packets of service 1 and service 2 are both returned from the edge computing node MEC2 to the egress router ER2 connected thereto.
[0059] Based on the above application scenarios, the following will refer to the attached Figures 3 to 6 The exemplary embodiments of the present application are described in more detail. It should be noted that the above application scenarios are only shown to facilitate understanding of the spirit and principle of the present application, and the implementation of the present application is not limited in any way. On the contrary, the implementation of the present application can be applied to any applicable scenario.
[0060] like Figure 3 As shown, it is a schematic diagram of the implementation process of the return traffic diversion method in the computing power network provided in an embodiment of the present application. The return traffic diversion method in the computing power network can be applied to the egress router connected to the edge computing node in the above computing power network, and can specifically include the following steps:
[0061] S11. The egress router receives a return data message for a target service sent by an edge computing node.
[0062] In specific implementation, the edge computing node is a node connected to the egress router and providing services for the target business.
[0063] exist Figure 2In the application scenario shown in , the return data packets of service 1 and service 2 are both returned from the edge computing node MEC2 to the egress router ER2 connected thereto. The source IP address (SA) contained in the return data packet of service 1 is the identifier of MEC2: BID21, and the destination IP address (DA) is: IPA. The source IP address (SA) contained in the return data packet of service 2 is the identifier of MEC2: BID22, and the destination IP address (DA) is: IPA. The two have the same destination IP address. The return data traffic of service 1 and the return data traffic of service 2 need to be directed to different SRv6 Policy tunnels for transmission to return to the terminal UE_A.
[0064] S12: Replace the source IP address in the return data message from the identifier of the edge computing node to the identifier of the target service.
[0065] Continuing with the above example, Figure 2 In the figure, after the egress router ER2 receives the return data packets of service 1 and service 2 sent by the edge computing node MEC2, the source IP address in the return data packet of service 1 is replaced from BID21 to the identifier SID1 of service 1, and the source IP address in the return data packet of service 2 is replaced from BID22 to the identifier SID2 of service 2. The destination IP address remains unchanged, and is still the IP address of terminal UE_A: IPA.
[0066] S13: Determine a target SRv6 Policy tunnel identifier based on the identifier of the target service.
[0067] The service identifier corresponds to the color value of the SRv6 Policy tunnel.
[0068] In specific implementation, the egress router is configured with at least two SRv6 Policy tunnels. The egress router can establish multiple SRv6 Policy tunnels between an ingress router IR and an egress router ER. Each SRv6 Policy tunnel is identified by its own triplet (i.e., head node Headend, destination node Endpoint, and color value). These SRv6 Policy tunnels have the same head node, the same destination node, and different Color values. The user can set the Color value in advance according to the service attributes.
[0069] As a possible implementation manner, the at least two SRv6 Policy tunnels may also be created by the controller and then sent to the egress router, which is not limited in this embodiment of the present application.
[0070] Specifically, you can follow the following Figure 4The process shown in the figure determines the target SRv6 Policy tunnel identifier, including the following steps:
[0071] S21. Determine the head node information of the target SRv6 Policy tunnel based on the identification information of the egress router.
[0072] In this step, the egress router is the head node of the target SRv6 Policy tunnel, and the identifier of the egress router is marked as the head node information of the target SRv6 Policy tunnel.
[0073] S22. Determine the destination node information of the target SRv6 Policy tunnel based on the destination IP address in the return data message.
[0074] In this step, the egress router may determine the destination node information of the target SRv6Policy tunnel based on the sending node of the VPN SID (Virtual Private Network Segment ID) corresponding to the destination IP address in the return data message.
[0075] In specific implementation, when the terminal accesses the computing network through the ingress router IR to send a service data packet, the ingress router IR will allocate a VPN SID and generate a correspondence between the VPN SID and the IP address of the terminal. The ingress router IR sends the VPN SID and the correspondence between the VPN SID and the IP address of the terminal to the egress router ER. When the egress router ER receives the return data packet of the service, it matches the corresponding VPN SID according to the destination IP address in the return data packet (that is, the IP address of the terminal). The sending node of the VPN SID is the destination node of the target SRv6 Policy tunnel, and the identifier of the sending node of the VPNSID is recorded as the destination node information of the target SRv6 Policy tunnel.
[0076] S23: Determine a Color value of a target SRv6 Policy tunnel based on the identifier of the target service.
[0077] In one implementation, the egress router may pre-set and store the corresponding relationship between the service identifier and the Color value. In this implementation, the egress router may pre-set and store the corresponding relationship between the service identifier and the Color value. Figure 5 The process shown determines the Color value of the target SRv6Policy tunnel and includes the following steps:
[0078] S31. The egress router determines a target color value corresponding to the identifier of the target service according to the correspondence between the identifier of the preset service and the preset color value.
[0079] During specific implementation, the egress router may pre-configure and store the correspondence between the service identifier and the preset Color value according to the network requirements of the service expected by the user (such as service attributes such as low latency and high bandwidth). For example, assuming that service A is an ordinary service, the Color value corresponding to service A may be set to Color1. Service B requires low latency, and the Color value corresponding to service B may be set to Color2. Service C requires high bandwidth, and the Color value corresponding to service C may be set to Color3. The specific values of Color1, Color2, and Color3 may be set by the user. For example, Color1 is 10, Color2 is 20, and Color3 is 30. This is not limited to the embodiments of the present application.
[0080] During implementation, the egress router may search for a target color value corresponding to the identifier of the target service in the correspondence between the identifier of the preset service and the preset color value.
[0081] S32. Determine the target Color value as the Color value of the target SRv6 Policy tunnel.
[0082] In this step, the egress router uses the target Color value corresponding to the identifier of the target service as the Color value of the target SRv6 Policy tunnel. In this way, the source IP address of the return data packet (that is, the replaced source IP address: the identifier of the target service) can be associated with the Color attribute of the SRv6 Policy tunnel, and then the traffic corresponding to the service data packet can be introduced into the corresponding SRv6 Policy tunnel.
[0083] In another implementation manner, the egress router may also pre-set and store the corresponding relationship between the service identifier and the DSCP value, and pre-set and store the corresponding relationship between the DCSP value and the Color value.
[0084] In this embodiment, the Figure 6 The process shown in the figure determines the color value of the target SRv6 Policy tunnel, including the following steps:
[0085] S41. Determine a target DSCP value corresponding to the identifier of the target service based on a correspondence between the identifier of the preset service and the DSCP value.
[0086] During specific implementation, the egress router may search for the target DSCP corresponding to the target service identifier from the preset correspondence between the service identifier and the DSCP value.
[0087] S42: Determine a target Color value corresponding to the target DSCP value based on a correspondence between a preset DSCP value and a Color value.
[0088] In this step, after determining the target DSCP value corresponding to the target service identifier, the egress router may search for the target Color value corresponding to the target DSCP value from the preset correspondence between the DSCP value and the Color value.
[0089] S43. Determine the target Color value as the Color value of the target SRv6 Policy tunnel.
[0090] In this step, the egress router uses the target color value corresponding to the target service identifier as the color value of the target SRv6Policy tunnel. In this way, the source IP address of the return data packet, that is, the identifier of the target service, can be associated with the DSCP value, and then the DSCP value can be associated with the color attribute of the SRv6 Policy tunnel, and then the traffic corresponding to the service data packet can be introduced into the corresponding SRv6Policy tunnel.
[0091] S24. Determine the target SRv6 Policy tunnel identifier based on the head node information, destination node information, and Color value of the target SRv6 Policy tunnel.
[0092] During specific implementation, the head node, the destination node, and the color value can uniquely identify an SRv6 Policy tunnel identifier. The correspondence between the head node identifier, the destination node identifier, the color value, and the SRv6 Policy tunnel identifier is pre-stored. During implementation, the SRv6 Policy tunnel identifier corresponding to the head node identifier, the destination node identifier, and the color value of the target SRv6 Policy tunnel is searched from the stored correspondence between the head node identifier, the destination node identifier, the color value, and the SRv6 Policy tunnel identifier, which is the target SRv6 Policy tunnel identifier.
[0093] Assumptions Figure 2In the example, the egress router ER2 creates N SRv6 Policy tunnels between the ingress router IR1 and the egress router ER2: SRv6 Policy 1 to SRv6 Policy N. The head nodes of SRv6 Policy 1 to SRv6 Policy N configured on the egress router ER2 are all ER2, and the destination nodes of SRv6 Policy 1 to SRv6 Policy N are all IR1. The Color value corresponding to the common service path is 10. When the Color value is 10, the corresponding SRv6 Policy tunnel is SRv6Policy 1. The Color value corresponding to the low-latency service path is 20. When the Color value is 20, the corresponding SRv6 Policy tunnel is SRv6Policy 2. The egress router ER2 pre-configures and stores the correspondence between the service identifier and the Color value according to the user's expected service requirements for the network. It is assumed that the Color value corresponding to the identifier SID1 of service 1 is 10, and the Color value corresponding to the identifier SID2 of service 2 is 20. The egress router ER2 may also pre-set and store the correspondence between the service identifier and the DSCP value, and pre-set and store the correspondence between the DCSP value and the Color value. Assuming that the DSCP value corresponding to the identifier of service 1 is DSCP1, and the Color value corresponding to DSCP1 is 10, the Color value corresponding to service 1 determined by the egress router ER2 is 10. Assuming that the DSCP value corresponding to the identifier of service 2 is DSCP2, and the Color value corresponding to DSCP2 is 20, the Color value corresponding to service 2 determined by the egress router ER2 is 20.Since the destination IP address in the return data message of service 1 and the return data message of service 2 is the IP address of the same terminal UE_A: IPA, when terminal UE_A accesses the computing network to send the data messages of service 1 and service 2, the inlet router it is connected to is IR1, and the VPN SID assigned by IR1 to terminal UE_A is VPN SID1, and a corresponding relationship between VPN SID1 and IPA is established. IPR1 sends VPN SID1 and the corresponding relationship between VPN SID1 and IPA to the egress router ER2. Then, when the egress router ER2 receives the return data message of service 1 and the return data message of service 2, it can match the VPN SID corresponding to the IPA according to the destination IP address IPA in the return data message: VPN SID1. In this way, it can be determined that the node IR1 that sends VPN SID1 is the destination node of the target SRv6 Policy tunnel. Since the egress router ER2 is the head node of the SRv6Policy tunnel, the inlet router IR1 is SRv6 Policy tunnel, the egress router ER2 can determine that the target SRv6 Policy tunnel identifier corresponding to the head node ER2, the destination node IR1 and the Color value 10 (the Color value corresponding to service 1) is SRv6 Policy 1 according to the pre-stored correspondence between the head node, the destination node, the Color value and the SRv6 Policy tunnel identifier. That is, the target SRv6 Policy tunnel identifier corresponding to service 1 is SRv6 Policy 1. The egress router ER2 can determine that the target SRv6 Policy tunnel identifier corresponding to the head node ER2, the destination node IR1 and the Color value 20 (the Color value corresponding to service 2) is SRv6 Policy 2. That is, the target SRv6 Policy tunnel identifier corresponding to service 2 is SRv6 Policy 2.
[0094] S14. Transmit the return data message through the SRv6 Policy tunnel corresponding to the target SRv6 Policy tunnel identifier.
[0095] In the specific implementation, after the egress router modifies the source IP address (BID) in the return data message to the service identifier (SID), it encapsulates the IPv6 (outer layer) message header, the segment routing extension header (Segment Routing Header, SRH), and the service message header in the return data message header, wherein the segment routing extension header contains the target SRv6 Policy tunnel identifier and VPNSID, and the service message header contains the replaced source IP address (i.e., the identifier of the target service: SID) and the destination IP address. The egress router introduces the traffic corresponding to the return data message into the SRv6 Policy tunnel corresponding to the target Rv6 Policy tunnel identifier for transmission through routing iteration. In the embodiment of the present application, the route is selected based on the source IP address, i.e., the service identifier, and the return traffic of different services is introduced into different SRv6 Policy tunnels for transmission.
[0096] like Figure 2 In the example, the egress router ER2 directs the return data packet traffic of service 1 to SRv6 Policy 1 for transmission, and directs the return data packet traffic of service 2 to SRv6 Policy 2 for transmission, thereby directing the return traffic of service 1 and the return traffic of service 2 to different paths.
[0097] In the method for diverting return traffic in a computing power network provided in an embodiment of the present application, the egress router in the computing power network is configured with at least two SRv6 Policy tunnels, the egress router receives the return data message for the target service sent by the edge computing node, replaces the source IP address in the return data message of the target service from the identifier of the edge computing node to the identifier of the target service, determines the target SRv6 Policy tunnel identifier based on the identifier of the target service, and transmits the return data message of the target service through the SRv6 Policy tunnel corresponding to the SRv6 Policy tunnel identifier corresponding to the target SRv6 Policy tunnel identifier. Thus, when the destination IP addresses of the return data messages of multiple different services are the same (i.e., the return data messages of different services are returned to the same terminal), the present application can replace the source IP address of the return data message from the identifier of the edge computing node to the identifier of the service for each service, and then select the corresponding SRv6 Policy for diversion according to their respective service identifiers (i.e., the modified source IP address), so that the return traffic for different services is diverted separately, and the return traffic of different services is diverted to different paths.
[0098] Based on the same inventive concept, an embodiment of the present application also provides a return traffic diversion device in a computing power network. Since the principle of solving the problem by the return traffic diversion device in the above-mentioned computing power network is similar to the return traffic diversion method in the above-mentioned computing power network, the implementation of the above-mentioned device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0099] like Figure 7 As shown, it is a structural schematic diagram of a return traffic diversion device in a computing power network provided in an embodiment of the present application. The return traffic diversion device in the computing power network is applied to an egress router connected to an edge computing node in the computing power network. The egress router is configured with at least two IPv6-based segment routing strategy SRv6 Policy tunnels. The device includes:
[0100] A receiving unit 51, configured to receive a return data message for a target service sent by the edge computing node;
[0101] A replacement unit 52, configured to replace the source IP address in the return data message from the identifier of the edge computing node to the identifier of the target service;
[0102] A determination unit 53, configured to determine a target SRv6 Policy tunnel identifier based on the identifier of the target service;
[0103] A traffic diversion unit 54, configured to transmit the return data message through the SRv6 Policy tunnel corresponding to the target SRv6 Policy tunnel identifier. A receiving unit, configured to receive the return data message for the target service sent by the edge computing node;
[0104] In a possible implementation, the determination unit 53 is used to determine the head node information of the target SRv6 Policy tunnel based on the identification information of the egress router; determine the destination node information of the target SRv6 Policy tunnel based on the destination IP address in the return data message; determine the Color value of the target SRv6 Policy tunnel based on the identification of the target service; and determine the target SRv6 Policy tunnel identification according to the head node information, the destination node information and the determined Color value.
[0105] In a possible implementation, the determination unit 53 is used to determine the target Color value corresponding to the identifier of the target service according to the correspondence between the identifier of the preset service and the preset Color value; and determine the target Color value as the Color value of the target SRv6 Policy tunnel.
[0106] In a possible implementation, the determination unit 53 is used to determine a target DSCP value corresponding to the identifier of the target service based on a correspondence between an identifier of a preset service and a differentiated service code point DSCP value; determine a target Color value corresponding to the target DSCP value based on a correspondence between a preset DSCP value and a Color value; and determine the target Color value as the Color value of the target SRv6 Policy tunnel.
[0107] In a possible implementation manner, the at least two SRv6 Policy tunnels are created by the egress router; or,
[0108] The at least two SRv6 Policy tunnels are created by the controller and then sent to the egress router.
[0109] Based on the same technical concept, the present application embodiment also provides an electronic device 600, referring to Figure 8 As shown, the electronic device 600 is used to implement the return traffic diversion method in the computing power network recorded in the above method embodiment. The electronic device 600 of this embodiment may include: a memory 601, a processor 602, and a computer program stored in the memory and executable on the processor, such as a return traffic diversion program in the computing power network. When the processor executes the computer program, the steps in the above-mentioned embodiments of the return traffic diversion method in the computing power network are implemented.
[0110] The specific connection medium between the memory 601 and the processor 602 is not limited in the embodiment of the present application. Figure 8 In the embodiment, the memory 601 and the processor 602 are connected via a bus 603. The bus 603 is Figure 8 The connection between other components is shown by bold lines, which is only for schematic illustration and is not intended to be limiting. The bus 603 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0111] The memory 601 may be a volatile memory, such as a random-access memory (RAM); the memory 601 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or the memory 601 may be any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 601 may be a combination of the above memories.
[0112] Processor 602 is used to implement various exemplary return traffic diversion methods in computing power networks provided in embodiments of the present application.
[0113] An embodiment of the present application also provides a computer-readable storage medium that stores computer-executable instructions required to execute the above-mentioned processor, which includes a program required to execute the above-mentioned processor.
[0114] In some possible implementations, various aspects of the return traffic diversion method in a computing power network provided in the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on an electronic device, the program code is used to enable the electronic device to execute the steps of the return traffic diversion method in a computing power network according to various exemplary implementations of the present application described above in this specification.
[0115] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, devices, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0116] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (apparatus), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0117] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0118] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0119] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0120] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A method for diverting backhaul traffic in a computing network, characterized in that: Applied to an egress router connected to an edge computing node in the computing network, the egress router is configured with at least two IPv6-based segment routing policy SRv6Policy tunnels, the method comprising: Receiving a return data message for a target service sent by the edge computing node; Replacing the source IP address in the return data message from the identifier of the edge computing node to the identifier of the target service; Determining a target SRv6 Policy tunnel identifier based on the identifier of the target service, including: determining the head node information of the target SRv6 Policy tunnel based on the identifier information of the egress router; determining the destination node information of the target SRv6 Policy tunnel based on the destination IP address in the return data message; determining the Color value of the target SRv6 Policy tunnel based on the identifier of the target service; determining the target SRv6 Policy tunnel identifier according to the head node information, the destination node information and the determined Color value; The return data message is transmitted through the SRv6 Policy tunnel corresponding to the target SRv6 Policy tunnel identifier.
2. The method according to claim 1, characterized in that The determining, based on the identifier of the target service, a Color value of the target SRv6 Policy tunnel includes: Determine the target color value corresponding to the identifier of the target service according to the correspondence between the identifier of the preset service and the preset color value; The target Color value is determined as the Color value of the target SRv6 Policy tunnel.
3. The method according to claim 1, characterized in that The determining, based on the identifier of the target service, a Color value of the target SRv6 Policy tunnel includes: Determine a target DSCP value corresponding to the identifier of the target service based on a correspondence between an identifier of a preset service and a Differentiated Services Code Point (DSCP) value; Determine a target color value corresponding to the target DSCP value based on a correspondence between a preset DSCP value and a color value; The target Color value is determined as the Color value of the target SRv6 Policy tunnel.
4. The method according to claim 1, characterized in that The at least two SRv6 Policy tunnels are created by the egress router; or, The at least two SRv6 Policy tunnels are created by the controller and then sent to the egress router.
5. A return traffic diversion device in a computing network, characterized in that: Applied to an egress router connected to an edge computing node in the computing network, the egress router is configured with at least two IPv6-based segment routing policy SRv6Policy tunnels, the device comprising: A receiving unit, configured to receive a return data message for a target service sent by the edge computing node; A replacement unit, configured to replace the source IP address in the return data message from the identifier of the edge computing node to the identifier of the target service; A determination unit, configured to determine a target SRv6 Policy tunnel identifier based on an identifier of the target service; The determination unit is used to determine the head node information of the target SRv6 Policy tunnel based on the identification information of the egress router; determine the destination node information of the target SRv6 Policy tunnel based on the destination IP address in the return data message; determine the Color value of the target SRv6 Policy tunnel based on the identification of the target service; determine the target SRv6 Policy tunnel identification according to the head node information, the destination node information and the determined Color value; The traffic diversion unit is used to transmit the return data message through the SRv6 Policy tunnel corresponding to the target SRv6 Policy tunnel identifier.
6. The device according to claim 5, characterized in that The determination unit is used to determine the target color value corresponding to the identifier of the target service according to the correspondence between the identifier of the preset service and the preset color value; and determine the target color value as the color value of the target SRv6 Policy tunnel.
7. The device according to claim 5, characterized in that The determining unit is used to determine the target DSCP value corresponding to the identifier of the target service based on the correspondence between the identifier of the preset service and the Differentiated Services Code Point DSCP value; Determine a target color value corresponding to the target DSCP value based on a correspondence between a preset DSCP value and a color value; The target Color value is determined as the Color value of the target SRv6 Policy tunnel.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the return traffic diversion method in the computing power network as described in any one of claims 1 to 4 is implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the return traffic diversion method in a computing power network as described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Routing flow drainage system, method and device and medium
CN109996309A
DSCP (Differential Service Code Point) drainage method and device
CN113381934A