Route slicing implementation method, system and equipment and readable storage medium
By processing sliced and non-sliced messages according to preset traffic diversion rules and forwarding strategies in the route slicing implementation method, the problems of cumbersome slicing processing procedures and complex forwarding in the existing technology are solved, and more efficient slicing adaptability and stability are achieved. sex.
Patent Information
- Application Number
- CN202410755028.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-01
AI Technical Summary
In the existing technology, the slicing implementation process is not compatible with normal non-slicing packets, resulting in cumbersome and complicated processing procedures. In addition, the message forwarding process during conventional slicing implementation is complex and requires multiple pipeline processes, which affects the stability of the routing function.
Provide a routing slicing implementation method that receives packets through the first node of the slice and diverts them to the corresponding slice according to the preset traffic diversion rules, obtains the packet information and matches the forwarding strategy, schedules the packets to the forwarding queue, and simplifies the slicing processing process , and processed independently between slice nodes to avoid repeated traffic diversion and multiple matching forwarding strategies.
It achieves greater adaptability of the slicing function, simplifies the slicing processing process, reduces the complexity of message forwarding, and does not affect other functions of routing and forwarding during multiple pipeline processes.
Smart Images

Figure CN118740732A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of Ethernet switching chips, and specifically relates to a routing slicing implementation method, system, device and readable storage medium. Background Art
[0002] With the emergence of diversified new services in the 5G and cloud era, different industries, services or users have put forward various service quality requirements for the network. For example, for services such as mobile communications, smart homes, environmental monitoring, smart agriculture and smart meter reading, the network needs to support massive device connections and frequent transmission of a large number of small messages; services such as live broadcasting, video backhaul and mobile medical care have put forward higher requirements for transmission rates.
[0003] In response to the above demands, network slicing technology has emerged. Network slicing is a new type of network architecture that provides multiple logical networks on the same shared network infrastructure, each of which serves a specific business type or industry user. Each network slice can flexibly define its own logical topology, SLA requirements, reliability and security level to meet the differentiated needs of different businesses, industries or users. Through network slicing, operators can build multiple dedicated, virtualized, and isolated logical networks on a common physical network to meet the differentiated requirements of different customers for network capabilities.
[0004] In the prior art, the slicing implementation process is not compatible with normal non-slicing messages, resulting in a cumbersome separation of the processing flow of sliced and non-sliced messages. At the same time, in the conventional slicing implementation process, the message forwarding process is complicated and requires multiple pipelines to complete the forwarding process. The processing unit is difficult to be independent, which can easily affect the stability of other routing functions during logical forwarding.
[0005] Therefore, in response to the above technical problems, it is necessary to provide an improved routing slicing implementation method, system, device and readable storage medium.
[0006] The information disclosed in this background technology section is only intended to enhance the understanding of the overall background of the invention and should not be regarded as an acknowledgment or any form of suggestion that the information constitutes the prior art already known to a person skilled in the art. Summary of the invention
[0007] The purpose of the present invention is to provide a routing slicing implementation method, system, device and readable storage medium, which can make the implementation of the slicing function more adaptable.
[0008] In order to achieve the above object, a technical solution provided by a specific embodiment of the present invention is as follows:
[0009] In a first aspect, the present invention provides a method for implementing routing slicing, which includes:
[0010] The slice head node receives the message, and if the message meets the preset diversion rule, the message is diverted to the corresponding slice based on the diversion rule;
[0011] Obtain the message information, and the slice tail node matches the corresponding forwarding strategy based on the message information;
[0012] Based on the forwarding strategy of the message, the message is scheduled to the forwarding queue of the corresponding slice and the message is forwarded.
[0013] In one or more embodiments of the present invention, the acquiring the message information includes:
[0014] If the message is a slice message, obtaining slice identification information of the message, and generating slice meta information based on the slice identification information;
[0015] If the message is a non-sliced message, characteristic information of the message is obtained, and the characteristic information includes the source IP address, source port, destination IP address, destination port and transport layer protocol of the message.
[0016] In one or more embodiments of the present invention, the method further comprises:
[0017] Based on the first mapping table, mapping the message information to corresponding update message information;
[0018] The update message information is written into the message.
[0019] In one or more embodiments of the present invention, the method further comprises:
[0020] At the slice node, determining whether the message has been directed to the corresponding slice;
[0021] If so, the message skips the operation of being directed to the corresponding slice.
[0022] In one or more embodiments of the present invention, the determining whether the message has been directed to the corresponding slice includes:
[0023] Match the source address of the received message with the preset slice-specific source prefix;
[0024] If the source address of the message matches the slice-specific source prefix, the message has been directed to the corresponding slice;
[0025] If the source address of the message does not match the slice-specific source prefix, the message is not directed to the corresponding slice.
[0026] In one or more embodiments of the present invention, directing the message to the corresponding slice includes:
[0027] The slice to be entered is determined according to the VPN forwarding table, the tunnel information table, or a custom policy.
[0028] Based on the slice information, edit the resource address field of the message.
[0029] In one or more embodiments of the present invention, the forwarding strategy based on the message, scheduling the message to a forwarding queue of a corresponding slice and forwarding the message, includes:
[0030] If the message matches multiple forwarding strategies based on the slice tail node, obtain the priority of each forwarding strategy;
[0031] The forwarding strategy with the highest priority is executed.
[0032] In a second aspect, the present invention provides a routing slicing implementation system, which includes:
[0033] The slice identification module is used to enable the slice head node to receive the message, and when the message meets the preset diversion rule, the message is diverted to the corresponding slice based on the diversion rule; obtain the message information, and enable the slice tail node to match the corresponding forwarding strategy based on the message information;
[0034] The slice processing module is used to schedule the message to the forwarding queue of the corresponding slice and forward the message based on the forwarding strategy of the slice message.
[0035] In one or more embodiments of the present invention, the routing slicing implementation system further includes:
[0036] A slice editing module, the slice editing module comprising a message information conversion unit and a flexible editing unit; the message information conversion unit is used to obtain message information corresponding to the message, convert the message information into corresponding update message information based on the first mapping table, and send the update message information to the flexible editing unit;
[0037] The flexible editing unit is used to write the update message information into the message.
[0038] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the routing slicing implementation method by executing the computer instructions.
[0039] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the routing slicing implementation method.
[0040] Compared with the prior art, the routing slicing implementation method provided by the present invention can slice and process both sliced messages and non-sliced messages based on preset diversion rules by setting up multiple logical processing units, integrating and simplifying the process strategy for slicing different messages, and enhancing the adaptability of slicing implementation. Secondly, the multiple logical units set up by the present invention are independent of each other during the slicing implementation process. When multiple pipelines are required to complete the forwarding process, the message forwarding process is further simplified without affecting other functions of routing forwarding. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 This is a schematic diagram of a routing slice implementation scenario in one embodiment of the present invention;
[0043] Figure 2 It is a flowchart of a method for implementing routing slicing in one embodiment of the present invention;
[0044] Figure 3 is a structural block diagram of a routing slice implementation system in one embodiment of the present invention;
[0045] Figure 4 is a structural block diagram of an electronic device in one embodiment of the present invention;
[0046] Figure 5 Schematic diagram of a logical processing unit of a slice identification module in one embodiment of the present invention. DETAILED DESCRIPTION
[0047] The specific implementation modes of the present invention are described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific implementation modes.
[0048] Unless explicitly stated otherwise, throughout the specification and claims, the term “comprise” or variations such as “include” or “comprising”, etc., will be understood to include the stated elements or components but not to exclude other elements or components.
[0049] Please refer to Figure 1 , which is a schematic diagram of an application scenario of the routing slicing implementation method provided by the present invention under one implementation mode, and the scenario specifically includes: a slice identification module, a slice processing module and a slice editing module.
[0050] It should be noted that communication connections are provided between the slice identification module, the slice processing module and the slice editing module, so that messages and related information can be transmitted. The communication network derived from the above communication connection may include various connection types, including but not limited to: wired connection, wireless connection or optical fiber cable connection, etc. At the same time, the communication network may be a local area network, a metropolitan area network, a wide area network or any combination of the three.
[0051] In an exemplary embodiment, the logical processing unit of the slice identification module is as follows: Figure 5 As shown, it includes: a source message slice extraction unit, a slice policy rule implementation unit, and a slice meta information generation unit. After the slice node receives the message, it first processes the message based on the slice identification module. In response to the logical units arranged in sequence, firstly, based on the comparison of message information and the slice-specific source prefix, it is determined whether the message is a slice message. If so, the slice information of the message is obtained and the slice meta information is generated accordingly. If not, the five-tuple information of the message is obtained.
[0052] When the message is received from the outside by the first node of the slice, the message feature information needs to be matched based on the preset diversion rules, and the message matching the diversion rules is diverted to the corresponding slice. When the message needs to be forwarded at the tail node of the slice, the corresponding forwarding strategy is matched based on the extracted message information.
[0053] The slice processing module responds to the forwarding strategy generated by the slice identification module, and forwards the message to the corresponding forwarding queue according to the slice strategy information. The slice editing module is preset with a first mapping table, which is used to update the message information in the case of dual homing access, and write the updated message information into the message before actual forwarding, and then complete the message forwarding according to the forwarding queue resource allocation.
[0054] It is understandable that the application scenario of the routing slice implementation method provided by the present invention also includes a user terminal for setting the diversion strategy and the first mapping table. The user terminal is installed with a computer software program that matches the routing slice implementation method provided by the present method; the user terminal may include but is not limited to a desktop computer (PC terminal), a desktop computer, a smart phone, a handheld computer, a tablet computer, a personal digital assistant (PDA), and other portable electronic devices or wearable electronic devices, and the embodiments of the present invention do not limit the above content.
[0055] Please refer to Figure 2FIG. 1 is a flow chart of a method for implementing routing slices in one embodiment of the present invention. The method for implementing routing slices specifically includes the following steps:
[0056] S201: The slice head node receives a message, and if the message satisfies a preset diversion rule, diverts the message to a corresponding slice based on the diversion rule;
[0057] It should be noted that the messages sent by external devices do not carry slice information, that is, not all messages sent by external devices received by the slice head node need to be sliced. At the same time, when the above messages are received by the slice head node, there is no slice-related information in the resource address.
[0058] Furthermore, since not all messages sent by external devices received by the slice head node need to be sliced, the above two types of messages must be distinguished at the slice head node to ensure that the objects of subsequent slice processing are correct and the implementation of routing slices is more stable. If the message meets the preset diversion rules, the message is diverted to the corresponding slice based on the diversion rules. The above diversion rules can be flexibly configured based on different usage scenarios.
[0059] It should also be noted that the method of directing the message to the corresponding slice may include but is not limited to: determining the entry slice according to the VPN forwarding table, determining the entry slice according to the tunnel information table, determining the entry slice according to a custom policy, etc. The embodiment of the present invention does not limit this. At the same time, after the message is directed to the corresponding slice, it is also necessary to edit the source address field of the message based on the slice information.
[0060] Specifically, the fields for identifying slice messages in the message source address include but are not limited to: slice-specific source prefix, NodeID, Padding, and Slice ID. In an exemplary embodiment, the slice prefix length is 48 bits (each slice prefix is the same, the planned length is 46 bits, and the 47th-48th bits are filled with zeros), which is used to enable the chip to identify whether the source address carries a Slice ID. The prefix is sent to the chip to support the planning of multiple slice prefixes; the Node ID field length is 32 bits, which is used to distinguish the source address identifiers of different devices; the Padding field length is 16 bits, which is used to fill 0 when the total length of the slice prefix and NodeID is less than 96; Slice ID is a slice identifier with a length of 32 bits.
[0061] It should be noted that the implementation of the slicing function requires the cooperation of multiple slicing nodes, but it is understandable that if the previous slicing node has already diverted the message to the corresponding slice, the subsequent slicing node does not need to repeat the diversion operation. However, each slicing node is provided with a diversion-related logic processing unit. Therefore, at the slicing node, the routing slicing implementation method provided by the present invention also includes: at the slicing node, determining whether the message has been diverted to the corresponding slice; if so, the message skips the operation of diverting to the corresponding slice. Based on the above operations, the implementation process of message slicing is simplified, avoiding the redundant slicing implementation steps caused by the repeated diversion of the diverted message at the subsequent slicing node.
[0062] Specifically, judging whether the message has been directed to the corresponding slice includes: matching the source address of the received message with the preset slice-specific source prefix; if the source address of the message matches the slice-specific source prefix, the message has been directed to the corresponding slice; if the source address of the message does not match the slice-specific source prefix, the message has not been directed to the corresponding slice. Among them, when the slice-specific source prefix in the source address of the message is consistent with the preset slice message source prefix or meets the corresponding rules, the two are considered to match, and the corresponding message has been directed to the corresponding slice.
[0063] S202: Acquire the message information, and the slice tail node matches the corresponding forwarding strategy based on the message information;
[0064] Among them, obtaining the message information includes: if the message is a slice message, obtaining the slice identification information of the message, and generating slice meta information based on the slice identification information; if the message is a non-slice message, obtaining the characteristic information of the message.
[0065] It should be noted that the above-mentioned slice identification information refers to the information written to the corresponding position of the message to identify the slice after the message is directed to the corresponding slice. The message characteristic information may include but is not limited to the source IP address, source port, destination IP address, destination port and transport layer protocol of the message. The acquisition of message characteristic information is intended to match the corresponding forwarding strategy for non-sliced messages, so the type of characteristic information obtained can be adaptively adjusted based on the mapping relationship with the forwarding strategy. Therefore, the embodiment of the present invention does not limit the type of slice identification information, the location of slice identification information, and the type of message characteristic information.
[0066] It should also be noted that the implementation of the slicing function mentioned above requires the cooperation of multiple slicing nodes, and each slicing node is configured with almost the same logical processing unit. Before forwarding the message, it is not necessary to match the corresponding forwarding strategy in advance. This further simplifies the implementation method of routing slicing and saves the computing resources of the system.
[0067] In a specific embodiment, the message is transmitted to an intermediate node of a slice. Since the message will not be directly forwarded at this node, it is preferred to skip the operation corresponding to the matching forwarding strategy in this node to avoid matching the forwarding strategy multiple times at each slice node and wasting computing resources. At the same time, even if the forwarding strategy is not matched at the subsequent node, it is easy to cause the forwarding strategy to change or be lost during the transmission process between the subsequent nodes.
[0068] In another specific embodiment, the message is transmitted to a slice node, but due to the requirements of slice implementation, the corresponding exit of this node is an internal loopback port, that is, it needs to be transmitted back to the entry of this node for related operations. In this case, the exit is an internal loopback port, which means that it will definitely not be forwarded in this node this time, so there is no need to match the forwarding strategy.
[0069] S203: Based on the forwarding strategy of the message, schedule the message to the forwarding queue of the corresponding slice and forward the message.
[0070] It should be noted that as the routing slice function becomes more complex, when matching the corresponding forwarding strategy, multiple forwarding strategies that match the message information are usually matched. If the message matches multiple forwarding strategies based on the slice tail node, it is necessary to obtain the priority of each forwarding strategy; execute the forwarding strategy with the highest priority.
[0071] For example, after the slice tail node obtains the corresponding message information, it matches forwarding strategy A, forwarding strategy B and forwarding strategy C, among which forwarding strategy A has a high priority, forwarding strategy B has a medium priority, and forwarding strategy C has a low priority. Therefore, forwarding strategy B and forwarding strategy C should be discarded and forwarding strategy A should be executed on the message.
[0072] It is understandable that in scenarios such as dual-homing access, in order to further distinguish the messages, the message information needs to be modified before forwarding. Therefore, the routing slicing implementation method provided by the present invention also includes: mapping the message information to corresponding updated message information based on a preset first mapping table; and writing the updated message information into the message.
[0073] In order to further illustrate the routing slicing implementation method provided by the present invention, a specific embodiment is now given to illustrate the detailed process of slicing processing.
[0074] In this embodiment, the slicing function needs to be processed by slicing node 1, slicing node 2 and slicing node 3. Slicing node 1 is the first node of slicing, slicing node 2 is the middle node of slicing, and slicing node 3 is the tail node of slicing.
[0075] First, slice node 1 receives an external message. At this time, since the message is not directed to the corresponding slice, there is no slice information in the source address. Slice node 1 matches the message features based on the preset diversion rules, determines that the message should be sliced, and then diverts the message to the corresponding slice, and writes the corresponding slice information in the source address. The slice information is extracted to form slice meta information and transmit the slice meta information together with the message. Since the message still needs to be processed by slice node 2 and slice node 3, the operation of matching the forwarding strategy is skipped in slice node 1.
[0076] Furthermore, in slice node 2, since the corresponding slice information has been written into the message source address and the slice meta information has been generated after the slice node 1 is diverted, the message is judged to be a slice message by matching with the preset slice message source prefix, that is, the message has been diverted to the corresponding slice at this time, so the corresponding diversion related operations are skipped at slice node 2. Slice node 3 is required to process the message later, so the operation of matching the forwarding strategy is also skipped.
[0077] Finally, in slice node 3, since the message has been directed to the corresponding slice at this time, the corresponding diversion related operations are skipped at slice node 2. However, since slice node 3 will forward the message after processing, it is necessary to match the forwarding strategy based on the slice meta information. Then, the slice message is placed in the corresponding forwarding queue based on the forwarding strategy. According to the specific implementation scenario, based on the preset first mapping table, the slice meta information is updated, and the updated information is written into the message, and the message forwarding can be completed according to the forwarding queue resource allocation.
[0078] Please refer to Figure 3 As shown, based on the same inventive concept as the aforementioned routing slice implementation method, an embodiment of the present invention provides a routing slice implementation system 300, which includes: a slice identification module 301 and a slice processing module 302.
[0079] Specifically, the slice identification module 301 is used to enable the slice head node to receive the message. When the message meets the preset diversion rule, the message is diverted to the corresponding slice based on the diversion rule; the message information is obtained, and the slice tail node is made to match the corresponding forwarding strategy based on the message information; the slice processing module 302 is used to schedule the message to the forwarding queue of the corresponding slice and forward the message based on the forwarding strategy of the slice message.
[0080] It should be noted that the routing slicing implementation system 300 provided by the present invention also includes a slice editing module, and the slice editing module includes a message information conversion unit and a flexible editing unit; the message information conversion unit is used to obtain message information corresponding to the message, convert the message information into corresponding update message information based on the first mapping table, and send the updated message information to the flexible editing unit; the flexible editing unit is used to write the updated message information into the message.
[0081] Furthermore, the slice processing module 302 is also used to obtain slice identification information of the message when the message is a slice message, and generate slice meta-information based on the slice identification information; when the message is a non-slice message, obtain characteristic information of the message, the characteristic information includes the source IP address, source port, destination IP address, destination port and transport layer protocol of the message.
[0082] The slice identification module 301 is also used to match the source address of the received message with the preset slice-specific source prefix; if the source address of the message matches the slice-specific source prefix, it is determined that the message has been directed to the corresponding slice; if the source address of the message does not match the slice-specific source prefix, it is determined that the message has not been directed to the corresponding slice. At the slice node; if the message has been directed to the corresponding slice, the message skips the operation of directing to the corresponding slice.
[0083] The slice processing module 302 is also used to determine the incoming slice according to the VPN forwarding table or the tunnel information table or the custom policy; based on the slice information, edit the resource address field of the message. If the message matches multiple forwarding strategies based on the slice tail node, obtain the priority of each forwarding strategy; execute the forwarding strategy with the highest priority.
[0084] Please refer to Figure 4 As shown, an embodiment of the present invention further provides an electronic device 400, which includes at least one processor 401, a memory 402 (for example, a non-volatile memory), a memory 403, and a communication interface 404, and the at least one processor 401, the memory 402, the memory 403, and the communication interface 404 are connected together via a bus 405. At least one processor 401 is used to call at least one program instruction stored or encoded in the memory 402, so that the at least one processor 401 performs various operations and functions of the routing slice implementation method described in various embodiments of this specification.
[0085] In an embodiment of the present specification, the electronic device 400 may include, but is not limited to, a personal computer, a server computer, a workstation, a desktop computer, a laptop computer, a notebook computer, a mobile electronic device, a smart phone, a tablet computer, a cellular phone, a personal digital assistant (PDA), a handheld device, a messaging device, a wearable electronic device, a consumer electronic device, and the like.
[0086] An embodiment of the present invention also provides a computer-readable medium, which carries computer execution instructions. When the computer execution instructions are executed by a processor, they can be used to implement various operations and functions of the routing slicing implementation method described in the various embodiments of this specification.
[0087] The computer-readable medium in the present invention 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, 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 invention, 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, device or device.
[0088] In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A 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, device, or 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.
[0089] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take 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.) containing computer-usable program code.
[0090] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatuses, systems, and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as a combination of processes and / or blocks 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 process in the flowchart. 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.
[0091] The foregoing description of specific exemplary embodiments of the present invention is for the purpose of illustration and demonstration. These descriptions are not intended to limit the present invention to the precise form disclosed, and it is clear that many changes and variations can be made based on the above teachings. The purpose of selecting and describing the exemplary embodiments is to explain the specific principles of the present invention and its practical application, so that those skilled in the art can realize and utilize various different exemplary embodiments of the present invention and various different selections and changes. The scope of the present invention is intended to be limited by the claims and their equivalents.
Claims
1. A method for implementing routing slicing, characterized in that: include: The slice head node receives the message, and if the message meets the preset diversion rule, the message is diverted to the corresponding slice based on the diversion rule; Obtain the message information, and the slice tail node matches the corresponding forwarding strategy based on the message information; Based on the forwarding strategy of the message, the message is scheduled to the forwarding queue of the corresponding slice and the message is forwarded.
2. The method for implementing routing slicing according to claim 1, characterized in that: The obtaining of the message information includes: If the message is a slice message, obtaining slice identification information of the message, and generating slice meta information based on the slice identification information; If the message is a non-sliced message, characteristic information of the message is obtained, and the characteristic information includes the source IP address, source port, destination IP address, destination port and transport layer protocol of the message.
3. The method for implementing routing slicing according to claim 1, characterized in that: The method further comprises: Based on the first mapping table, mapping the message information to corresponding update message information; The update message information is written into the message.
4. The method for implementing routing slicing according to claim 1, characterized in that: The method further comprises: At the slice node, determining whether the message has been directed to the corresponding slice; If so, the message skips the operation of being directed to the corresponding slice.
5. The method for implementing routing slicing according to claim 4, characterized in that: The determining whether the message has been directed to the corresponding slice includes: Match the source address of the received message with the preset slice-specific source prefix; If the source address of the message matches the slice-specific source prefix, the message has been directed to the corresponding slice; If the source address of the message does not match the slice-specific source prefix, the message is not directed to the corresponding slice.
6. The method for implementing routing slices according to claim 1, characterized in that: Directing the message to the corresponding slice includes: The slice to be entered is determined according to the VPN forwarding table, the tunnel information table, or a custom policy. Based on the slice information, edit the resource address field of the message.
7. The method for implementing routing slicing according to claim 1, characterized in that: The forwarding strategy based on the message, scheduling the message to a forwarding queue of a corresponding slice and forwarding the message, includes: If the message matches multiple forwarding strategies based on the slice tail node, obtain the priority of each forwarding strategy; The forwarding strategy with the highest priority is executed.
8. A routing slice implementation system, characterized in that: include: A slice identification module, used to enable the slice head node to receive the message, and when the message meets the preset diversion rule, the message is diverted to the corresponding slice based on the diversion rule; Obtain the message information, and enable the slice tail node to match the corresponding forwarding strategy based on the message information; The slice processing module is used to schedule the message to the forwarding queue of the corresponding slice and forward the message based on the forwarding strategy of the slice message.
9. The routing slicing implementation system according to claim 8, characterized in that: The routing slice implementation system also includes: A slice editing module, the slice editing module comprising a message information conversion unit and a flexible editing unit; the message information conversion unit is used to obtain message information corresponding to the message, convert the message information into corresponding update message information based on the first mapping table, and send the update message information to the flexible editing unit; The flexible editing unit is used to write the update message information into the message.
10. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the routing slicing implementation method described in any one of claims 1 to 7 by executing the computer instructions.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the routing slicing implementation method described in any one of claims 1-7.
