SRv6 message forwarding method and device and computer readable storage medium
By carrying Slice_ID in the destination address field of the IPv6 header and combining the indication information of the segmented routing table header SRH and the flow marker field, the slice forwarding of SRv6 packets is achieved, and the problem of unreasonable Slice_ID carrying position in the prior art is solved, and the problem of unreasonable Slice_ID carrying position is improved. The forwarding efficiency and effective utilization of network slice packets are achieved, reducing the complexity of project deployment.
Patent Information
- Application Number
- CN202411350933.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2044-09-26
AI Technical Summary
In the prior art, the SRv6 network slice packets carry Slice_ID in an unreasonable position, which makes it difficult to implement the chip, affects differential services, load sharing services and traceability functions, and increases the load of network slice packets, reducing the effective utilization rate.
By carrying Slice_ID in the destination address field of the IPv6 header (the second to last 8 bit) and updating this field on the message forwarding path, combining the indication information of the segmented routing table header SRH and the flow marking field, SRv6 reports are realized The slicing forwarding of the text skips unnecessary packaging and stripping processes, reducing the resolution depth and logical complexity of the chip.
It solves the problems of chip implementation difficulty, differential service conflicts, load sharing service conflicts and traceability function conflicts, improves the forwarding efficiency and effective utilization of network slice packets, and reduces the complexity of project deployment.
Smart Images

Figure CN119094494A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network slicing technology, and specifically to an SRv6 message forwarding method, device, and computer-readable storage medium. Background Art
[0002] In a network that has deployed the SRv6 network slicing function, each independent virtual network is called a network slice instance, and each virtual network is identified by a unique network slice instance ID (also called Slice ID). When a network slice message is transmitted in a network slice instance, it needs to carry Slice_ID.
[0003] Currently, there is a solution based on the source IP carrying Slice_ID. This solution modifies the source IP of the device and has a great impact on URPF (Unicast Reverse Path Forwarding) and SBFD (Seamless Bidirectional Forwarding Detection) that require source tracing functions.
[0004] There is also a solution of inserting HBH (Hop-by-Hop Options Header) between the IPv6 header and SRH (Segment Routing Header) to carry Slice_ID. This solution increases the load of network slice messages, resulting in low effective utilization of actual forwarding of network slice messages. At the same time, HBH cannot be parsed on traditional old equipment, which brings great trouble to engineering deployment. In addition, adding HBH poses new challenges to the chip's parsing depth, parsing logic, and microcode instruction space, especially when it coexists with the DOH (Destination Options Header) extension header of the IOAM (Inband Operation Administration and Maintenance) function. The difficulty of chip implementation will be greatly increased.
[0005] There is also a solution of taking 8 bits out of the 20 bits in the flow label field of the IPv6 header to carry Slice_ID, but this will affect the effect of traffic load sharing.
[0006] There is also a solution to carry Slice_ID in the TC field in the IPv6 header, but this will affect traditional differentiated service services. Summary of the invention
[0007] The present application provides an SRv6 message forwarding method, device and computer-readable storage medium, which can solve the technical problem of unreasonable Slice_ID carrying position existing in the prior art.
[0008] In a first aspect, an embodiment of the present application provides an SRv6 message forwarding method, the SRv6 message forwarding method comprising:
[0009] For the user message received by the first station on the message forwarding path, the segment routing header SRH and Slice_ID are encapsulated into the user message to obtain an SRv6 message, and the SRv6 message is sent to the next hop, where Slice_ID is encapsulated in a specific bit in the destination address field of the IPv6 header of the user message;
[0010] For the SRv6 message received by the intermediate site on the message forwarding path, the destination address field of the IPv6 header of the SRv6 message is updated, and the Slice_ID is encapsulated in a specific bit of the destination address field of the IPv6 header to obtain a new SRv6 message and send it to the next hop.
[0011] In combination with the first aspect, in one implementation, the specific bits in the destination address field of the IPv6 header are the second to last 8 bits in the destination address field of the IPv6 header.
[0012] In combination with the first aspect, in one implementation, the SRv6 message forwarding method further includes:
[0013] For the user message received by the first site on the message forwarding path, the first indication information and the second indication information are encapsulated in the specific bit of the flow tag field of the IPv6 header of the user message. The first indication information is used to identify whether the SRv6 message needs to be forwarded through the slice channel, and the second indication information is used to identify different forwarding modes.
[0014] In combination with the first aspect, in one implementation, sending the SRv6 message to the next hop includes:
[0015] If the first indication information is the first character, the SRv6 message is sent to the next hop through the forwarding interface;
[0016] If the first indication information is the second character, query whether there is a slice channel;
[0017] If a slice channel exists, the SRv6 message is sent to the next hop through the slice channel;
[0018] If there is no slice channel and the second indication information is the third character, the SRv6 message is sent to the next hop through the forwarding interface.
[0019] In combination with the first aspect, in one implementation, the SRv6 message forwarding method further includes:
[0020] If there is no slice channel and the second indication information is the fourth character, the SRv6 message is discarded.
[0021] In combination with the first aspect, in one implementation, the step of encapsulating a segment routing header SRH for a user message includes:
[0022] When the number of segment identifiers included in the segment routing header SRH is greater than the number that can be encapsulated in one round of encapsulation process, some stages in the encapsulation process are skipped starting from the second round of encapsulation process.
[0023] In combination with the first aspect, in one implementation, the SRv6 message forwarding method further includes:
[0024] For the SRv6 message received by the penultimate station on the message forwarding path, when the number of segment identifiers contained in the segment routing header SRH in the SRv6 message is greater than the number that can be stripped in one round of stripping process, some stages in the stripping process are skipped starting from the second round of stripping process.
[0025] In combination with the first aspect, in one implementation, the SRv6 message forwarding method further includes:
[0026] For the SRv6 message received by the intermediate station on the message forwarding path, parse the IPv6 header of the SRv6 message to obtain the Locator and Function;
[0027] Using Locator as the information to be searched, searching the first-level exact matching table to obtain a first search result, wherein the first-level exact matching table is stored in a static random access memory;
[0028] The second-level exact matching table is searched using Function and the first search result as the information to be searched, and the forwarding interface of the SRv6 message is determined.
[0029] In a second aspect, an embodiment of the present application provides an SRv6 message forwarding device, wherein the SRv6 message forwarding device includes:
[0030] The first encapsulation module is used for encapsulating the user message received by the first station on the message forwarding path with a segment routing header SRH and a Slice_ID to obtain an SRv6 message, wherein the Slice_ID is encapsulated in a specific bit in the destination address field of the IPv6 header of the user message;
[0031] The sending module is used to send the SRv6 message to the next hop;
[0032] The second encapsulation module is used to update the destination address field of the IPv6 header of the SRv6 message for the SRv6 message received by the intermediate station on the message forwarding path, and encapsulate the Slice_ID in a specific bit of the destination address field of the IPv6 header to obtain a new SRv6 message;
[0033] The sending module is also used to send new SRv6 packets to the next hop.
[0034] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, on which an SRv6 message forwarding program is stored, wherein when the SRv6 message forwarding program is executed by a processor, the steps of the SRv6 message forwarding method described in the first aspect are implemented.
[0035] The beneficial effects brought by the technical solution provided in the embodiments of the present application include:
[0036] In the embodiment of the present application, for the user message received by the first station on the message forwarding path, the segment routing table header SRH and Slice_ID are encapsulated for the user message to obtain an SRv6 message, and the SRv6 message is sent to the next hop, wherein the Slice_ID is encapsulated in a specific bit in the destination address field of the IPv6 header of the user message; for the SRv6 message received by the intermediate station on the message forwarding path, the destination address field of the IPv6 header of the SRv6 message is updated, and the Slice_ID is encapsulated in a specific bit in the destination address field of the IPv6 header to obtain a new SRv6 message and send it to the next hop. Through the embodiment of the present application, the Slice_ID is carried by a specific bit in the destination address field of the IPv6 header, which solves the problems of difficult chip implementation, differential service conflicts, load sharing service conflicts, and traceability function conflicts in the existing solutions. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 This is a flow chart of an embodiment of the SRv6 message forwarding method of the present application;
[0038] Figure 2 This is a schematic diagram of the Slice_ID packaging position in an embodiment;
[0039] Figure 3 A schematic diagram of updating the destination address field of the IPv6 header for an intermediate node;
[0040] Figure 4 This is a schematic diagram of packaging positions of first indication information and second indication information in an embodiment;
[0041] Figure 5 This is a functional module diagram of an embodiment of an SRv6 message forwarding device of the present application. DETAILED DESCRIPTION
[0042] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0044] In a first aspect, an embodiment of the present application provides an SRv6 message forwarding method.
[0045] In one embodiment, referring to Figure 1 , Figure 1 This is a flow chart of an embodiment of the SRv6 message forwarding method of this application. Figure 1 As shown, the SRv6 message forwarding method includes:
[0046] Step S10: for the user message received by the first station on the message forwarding path, encapsulate the segment routing header SRH and Slice_ID for the user message to obtain an SRv6 message, and send the SRv6 message to the next hop, wherein the Slice_ID is encapsulated in a specific bit in the destination address field of the IPv6 header of the user message;
[0047] In the embodiment of the present application, the user message includes an IPv6 header and a data payload, and of course may also include an ETH header. The segment routing header SRH consists of SRH basic information and a SID (Segment ID) list, and the specific information contained in the SID list is related to the forwarding path of the user message.
[0048] The Slice_ID is encapsulated in a specific bit in the destination address field of the IPv6 header of the user message, and the specific bit is defined according to actual needs.
[0049] Furthermore, in one embodiment, the specific bits in the destination address field of the IPv6 header are the second to last 8 bits in the destination address field of the IPv6 header.
[0050] In this embodiment, Slice_ID is encapsulated in the second to last 8 bits of the destination address field of the IPv6 header of the user message, so that the first to last 8 bits of the destination address field of the IPv6 header can be reserved for the anti-loop function of VPLS BUM. Figure 2 , Figure 2Schematic diagram of Slice_ID packaging position in one embodiment.
[0051] Step S20: For the SRv6 message received by the intermediate site on the message forwarding path, the destination address field of the IPv6 header of the SRv6 message is updated, and the Slice_ID is encapsulated in a specific bit of the destination address field of the IPv6 header to obtain a new SRv6 message and send it to the next hop.
[0052] In this embodiment, the SRv6 technology inserts a segment routing header SRH (SegmentRouting Header) into the IPv6 message, pushes an explicit IPv6 address stack into the SRH, and the intermediate site continuously updates the destination address field and offset address stack of the IPv6 header to complete hop-by-hop forwarding. Figure 3 , Figure 3 Schematic diagram of updating the destination address field of the IPv6 header for an intermediate node. Figure 3 As shown, the user message includes an ETH header, an IPv6 header, and a data payload, and the SRv6 message obtained by encapsulation includes an ETH header, an IPv6 header, SRH basic information (srh_base in the figure), and a SID list (i.e., SID LIST[0] to SID LIST[n-1] in the figure). For each intermediate node, the destination address field of the IPv6 header of the SRv6 message is updated with its corresponding SID LIST[i].
[0053] In addition, each intermediate node parses the SRv6 message sent by the previous node to obtain the Slice_ID, and then encapsulates the Slice_ID in a specific bit in the destination address field of the IPv6 header, such as the second to last 8 bits in the destination address field of the IPv6 header.
[0054] In the embodiment of the present application, for the user message received by the first station on the message forwarding path, the segment routing table header SRH and Slice_ID are encapsulated for the user message to obtain an SRv6 message, and the SRv6 message is sent to the next hop, wherein the Slice_ID is encapsulated in a specific bit in the destination address field of the IPv6 header of the user message; for the SRv6 message received by the intermediate station on the message forwarding path, the destination address field of the IPv6 header of the SRv6 message is updated, and the Slice_ID is encapsulated in a specific bit in the destination address field of the IPv6 header to obtain a new SRv6 message and send it to the next hop. Through the embodiment of the present application, the Slice_ID is carried by a specific bit in the destination address field of the IPv6 header, which solves the problems of difficult chip implementation, differential service conflicts, load sharing service conflicts, and traceability function conflicts in the existing solutions.
[0055] Furthermore, in one embodiment, the SRv6 message forwarding method further includes:
[0056] For the user message received by the first site on the message forwarding path, the first indication information and the second indication information are encapsulated in the specific bit of the flow tag field of the IPv6 header of the user message. The first indication information is used to identify whether the SRv6 message needs to be forwarded through the slice channel, and the second indication information is used to identify different forwarding modes.
[0057] In this embodiment, the first indication information may be stored in the highest bit of the flow label field in the IPv6 header, and the second indication information may be stored in the second highest bit of the flow label; or the first indication information may be stored in the second highest bit of the flow label field in the IPv6 header, and the second indication information may be stored in the highest bit of the flow label. Figure 4 , Figure 4 FIG. 1 is a schematic diagram of the packaging position of the first indication information and the second indication information in an embodiment. Figure 4 As shown, SPI represents the first indication information, and S represents the second indication information.
[0058] Further, in one embodiment, sending the SRv6 message to the next hop includes:
[0059] If the first indication information is the first character, the SRv6 message is sent to the next hop through the forwarding interface;
[0060] If the first indication information is the second character, query whether there is a slice channel;
[0061] If a slice channel exists, the SRv6 message is sent to the next hop through the slice channel;
[0062] If there is no slice channel and the second indication information is the third character, the SRv6 message is sent to the next hop through the forwarding interface.
[0063] In this embodiment, if the first indication information is the first character, it indicates that the SRv6 message does not need to be forwarded through the slice channel, and the SRv6 message is sent to the next hop through the forwarding interface, wherein the forwarding interface is determined by the SID information of the current site; if the first indication information is the second character, it indicates that the SRv6 message needs to be forwarded through the slice channel, and the slice channel is searched through the information in the destination address field of the IPv6 header and the forwarding interface. If the search result is that a slice channel exists, the SRv6 message is sent to the next hop through the found slice channel. If the search result is that there is no slice channel, and the second indication information is the third character, it means that the current mode is loose mode, and the SRv6 message is sent to the next hop through the forwarding interface.
[0064] Furthermore, in one embodiment, the SRv6 message forwarding method further includes:
[0065] If there is no slice channel and the second indication information is the fourth character, the SRv6 message is discarded.
[0066] In this embodiment, if there is no slice channel and the second indication information is the fourth character, it means that the current mode is strict, and the SRv6 message is discarded.
[0067] The first character, the second character, the third character and the fourth character are all set according to actual needs. It is only necessary to define that the first character is different from the second character, and the third character is different from the fourth character, and define the meaning of each character representation.
[0068] Further, in one embodiment, the encapsulation of the segment routing header SRH for the user message includes:
[0069] When the number of segment identifiers included in the segment routing header SRH is greater than the number that can be encapsulated in one round of encapsulation process, some stages in the encapsulation process are skipped starting from the second round of encapsulation process.
[0070] In this embodiment, when the segment routing header SRH is encapsulated for the user message, if the message forwarding path passes through more sites, the number of segment identifiers contained in the SRH will also be more, but the number of segment identifiers that can be encapsulated in one round of encapsulation process is determined based on the chip performance. If the number of segment identifiers contained in the SRH is 10, and the number of segment identifiers that can be encapsulated in one round of encapsulation process is 5, at least two rounds of encapsulation process are required, which increases the forwarding delay and jitter, and may not meet some scenarios with high requirements for delay and jitter.
[0071] Assume that one round of packaging process needs to traverse modules 1 to 50 in the chip in sequence. After the first round of packaging process is completed, when the subsequent rounds of packaging process are performed, only the preset modules are traversed, such as module 3, module 7, and module 10. In this way, some stages in the packaging process can be skipped, thereby reducing forwarding delay and jitter.
[0072] Furthermore, in one embodiment, the SRv6 message forwarding method further includes:
[0073] For the SRv6 message received by the penultimate station on the message forwarding path, when the number of segment identifiers contained in the segment routing header SRH in the SRv6 message is greater than the number that can be stripped in one round of stripping process, some stages in the stripping process are skipped starting from the second round of stripping process.
[0074] In this embodiment, for the SRv6 message received by the penultimate site on the message forwarding path, the SRH needs to be stripped. If the message forwarding path passes through more sites, the number of segment identifiers contained in the SRH will also be more, but the number of segment identifiers that can be stripped in one round of stripping process is determined based on chip performance. If the number of segment identifiers contained in the SRH is 10, and the number of segment identifiers that can be stripped in one round of stripping process is 5, at least two rounds of stripping process are required, which increases the forwarding delay and jitter, and may not meet some scenarios with high requirements for delay and jitter.
[0075] Assuming that one round of stripping process needs to traverse modules 1 to 50 in the chip in sequence, after the first round of stripping process is completed, when the subsequent rounds of stripping process are performed, only the preset modules are traversed, such as module 3, module 7, and module 10. In this way, some stages in the stripping process can be skipped, thereby reducing forwarding delay and jitter.
[0076] Furthermore, in one embodiment, the SRv6 message forwarding method further includes:
[0077] For the SRv6 message received by the intermediate site on the message forwarding path, the IPv6 header of the SRv6 message is parsed to obtain the Locator and Function; the first-level exact matching table is searched with the Locator as the information to be searched, and the first search result is obtained. The first-level exact matching table is stored in the static random access memory; the second-level exact matching table is searched with the Function and the first search result as the information to be searched, and the forwarding interface of the SRv6 message is determined.
[0078] In this embodiment, the forwarding interface is determined by replacing the conventional solution of TCAM+EM two-level table lookup by EM+EM two-level table lookup. Among them, the hardware of the EM table (exact match table) is a static random access memory SRAM, and the hardware cost of SRAM is lower than that of the hardware carrying TCAM, that is, the hardware cost is reduced by this embodiment.
[0079] In a second aspect, an embodiment of the present application also provides an SRv6 message forwarding device.
[0080] In one embodiment, referring to Figure 5 , Figure 5 This is a functional module diagram of an embodiment of the SRv6 message forwarding device of the present application. Figure 5 As shown, the SRv6 message forwarding device includes:
[0081] The first encapsulation module is used for encapsulating the user message received by the first station on the message forwarding path with a segment routing header SRH and a Slice_ID to obtain an SRv6 message, wherein the Slice_ID is encapsulated in a specific bit in the destination address field of the IPv6 header of the user message;
[0082] The sending module is used to send the SRv6 message to the next hop;
[0083] The second encapsulation module is used to update the destination address field of the IPv6 header of the SRv6 message for the SRv6 message received by the intermediate station on the message forwarding path, and encapsulate the Slice_ID in a specific bit of the destination address field of the IPv6 header to obtain a new SRv6 message;
[0084] The sending module is also used to send new SRv6 packets to the next hop.
[0085] Furthermore, in one embodiment, the specific bits in the destination address field of the IPv6 header are the second to last 8 bits in the destination address field of the IPv6 header.
[0086] Furthermore, in one embodiment, the SRv6 message forwarding device further includes a third encapsulation module, which is used to:
[0087] For the user message received by the first site on the message forwarding path, the first indication information and the second indication information are encapsulated in the specific bit of the flow tag field of the IPv6 header of the user message. The first indication information is used to identify whether the SRv6 message needs to be forwarded through the slice channel, and the second indication information is used to identify different forwarding modes.
[0088] Furthermore, in one embodiment, the sending module is used to:
[0089] If the first indication information is the first character, the SRv6 message is sent to the next hop through the forwarding interface;
[0090] If the first indication information is the second character, query whether there is a slice channel;
[0091] If a slice channel exists, the SRv6 message is sent to the next hop through the slice channel;
[0092] If there is no slice channel and the second indication information is the third character, the SRv6 message is sent to the next hop through the forwarding interface.
[0093] Furthermore, in one embodiment, the sending module is used to:
[0094] If there is no slice channel and the second indication information is the fourth character, the SRv6 message is discarded.
[0095] Furthermore, in one embodiment, the first encapsulation module is used to:
[0096] When the number of segment identifiers included in the segment routing header SRH is greater than the number that can be encapsulated in one round of encapsulation process, some stages in the encapsulation process are skipped starting from the second round of encapsulation process.
[0097] Furthermore, in one embodiment, the SRv6 message forwarding device further includes a stripping module, which is used to:
[0098] For the SRv6 message received by the penultimate station on the message forwarding path, when the number of segment identifiers contained in the segment routing header SRH in the SRv6 message is greater than the number that can be stripped in one round of stripping process, some stages in the stripping process are skipped starting from the second round of stripping process.
[0099] Furthermore, in one embodiment, the SRv6 message forwarding device further includes a search module, which is used to:
[0100] For the SRv6 message received by the intermediate station on the message forwarding path, parse the IPv6 header of the SRv6 message to obtain the Locator and Function;
[0101] Using Locator as the information to be searched, searching the first-level exact matching table to obtain a first search result, wherein the first-level exact matching table is stored in a static random access memory;
[0102] The second-level exact matching table is searched using Function and the first search result as the information to be searched, and the forwarding interface of the SRv6 message is determined.
[0103] Among them, the functional implementation of each module in the above-mentioned SRv6 message forwarding device corresponds to the steps in the above-mentioned SRv6 message forwarding method embodiment, and its functions and implementation processes are no longer repeated here one by one.
[0104] In a third aspect, an embodiment of the present application also provides a computer-readable storage medium.
[0105] The computer-readable storage medium of the present application stores an SRv6 message forwarding program, wherein when the SRv6 message forwarding program is executed by a processor, the steps of the SRv6 message forwarding method as described above are implemented.
[0106] Among them, the method implemented when the SRv6 message forwarding program is executed can refer to the various embodiments of the SRv6 message forwarding method of the present application, and will not be repeated here.
[0107] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.
[0108] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.
[0109] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.
[0110] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.
[0111] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.
[0112] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.
[0113] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A SRv6 message forwarding method, characterized in that: The SRv6 message forwarding method includes: For the user message received by the first station on the message forwarding path, the segment routing header SRH and Slice_ID are encapsulated into the user message to obtain an SRv6 message, and the SRv6 message is sent to the next hop, where Slice_ID is encapsulated in a specific bit in the destination address field of the IPv6 header of the user message; For the SRv6 message received by the intermediate site on the message forwarding path, the destination address field of the IPv6 header of the SRv6 message is updated, and the Slice_ID is encapsulated in a specific bit of the destination address field of the IPv6 header to obtain a new SRv6 message and send it to the next hop.
2. The SRv6 message forwarding method according to claim 1, characterized in that: The specific bits in the destination address field of the IPv6 header are the second to last 8 bits in the destination address field of the IPv6 header.
3. The SRv6 message forwarding method according to claim 1, characterized in that: The SRv6 message forwarding method further includes: For the user message received by the first site on the message forwarding path, the first indication information and the second indication information are encapsulated in the specific bit of the flow tag field of the IPv6 header of the user message. The first indication information is used to identify whether the SRv6 message needs to be forwarded through the slice channel, and the second indication information is used to identify different forwarding modes.
4. The SRv6 message forwarding method according to claim 3, characterized in that: The sending of the SRv6 message to the next hop includes: If the first indication information is the first character, the SRv6 message is sent to the next hop through the forwarding interface; If the first indication information is the second character, query whether there is a slice channel; If a slice channel exists, the SRv6 message is sent to the next hop through the slice channel; If there is no slice channel and the second indication information is the third character, the SRv6 message is sent to the next hop through the forwarding interface.
5. The SRv6 message forwarding method according to claim 4, characterized in that: The SRv6 message forwarding method further includes: If there is no slice channel and the second indication information is the fourth character, the SRv6 message is discarded.
6. The SRv6 message forwarding method according to claim 1, characterized in that: The segment routing header SRH for encapsulating the user message includes: When the number of segment identifiers included in the segment routing header SRH is greater than the number that can be encapsulated in one round of encapsulation process, some stages in the encapsulation process are skipped starting from the second round of encapsulation process.
7. The SRv6 message forwarding method according to claim 1, characterized in that: The SRv6 message forwarding method further includes: For the SRv6 message received by the penultimate station on the message forwarding path, when the number of segment identifiers contained in the segment routing header SRH in the SRv6 message is greater than the number that can be stripped in one round of stripping process, some stages in the stripping process are skipped starting from the second round of stripping process.
8. The SRv6 message forwarding method according to claim 1, characterized in that: The SRv6 message forwarding method further includes: For the SRv6 message received by the intermediate station on the message forwarding path, parse the IPv6 header of the SRv6 message to obtain the Locator and Function; Using Locator as the information to be searched, searching the first-level exact matching table to obtain a first search result, wherein the first-level exact matching table is stored in a static random access memory; The second-level exact matching table is searched using Function and the first search result as the information to be searched, and the forwarding interface of the SRv6 message is determined.
9. An SRv6 message forwarding device, characterized in that: The SRv6 message forwarding device includes: The first encapsulation module is used for encapsulating the user message received by the first station on the message forwarding path with the segment routing header SRH and Slice_ID to obtain an SRv6 message, and sending the SRv6 message to the next hop, wherein the Slice_ID is encapsulated in a specific bit in the destination address field of the IPv6 header of the user message; The second encapsulation module is used to update the destination address field of the IPv6 header of the SRv6 message received by the intermediate site on the message forwarding path, and encapsulate the Slice_ID in a specific bit of the destination address field of the IPv6 header to obtain a new SRv6 message and send it to the next hop.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an SRv6 message forwarding program, wherein when the SRv6 message forwarding program is executed by a processor, the steps of the SRv6 message forwarding method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Message forwarding control method and device and electronic equipment
CN112422435A
Segmented routing message forwarding method, configuration method and equipment based on IPV6 (Internet Protocol Version 6)
CN115242713A
Message processing method, device and system
CN115426305A
Data message forwarding method and device and routing equipment
CN115567434A
Data transmission method and system in software defined wide area network SD-WAN
CN116389018A
Cited By
Method and equipment for realizing strict mode of source address encapsulation slice instance
CN119996282A
