Information processing method and device
In the scenario where SR and traditional tunnel technologies coexist, the first network device is used to determine and send the tunnel status information of the non-SR domain, and the second network device performs corresponding processing actions, solving the problem of business traffic interruption and achieving the stability of business traffic. transmission.
Patent Information
- Application Number
- CN202310402221.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-11
- Publication Date
- 2024-10-18
AI Technical Summary
In scenarios where SR and traditional tunnel technologies coexist, service traffic may be interrupted.
The first network device determines the tunnel status information of the non-SR domain and sends it to the second network device in the SR domain. The second network device performs corresponding tunnel processing behavior based on the received tunnel status information to avoid uncertainty. When the non-SR domain tunnel is in the tunnel state, the service traffic is forwarded through the SR tunnel, which causes the service traffic to be interrupted at the cross-domain device between the non-SR domain and the SR domain.
It effectively avoids interruption of business traffic in scenarios where SR and traditional tunnel technologies coexist, ensuring stable transmission of business traffic.
Smart Images

Figure CN118802686A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communications, and in particular to an information processing method and device. Background Art
[0002] Segment routing (SR) is a tunnel technology that can replace Multi-Protocol Label Switching (MPLS). Due to its ability to simplify network deployment and management, better scalability and programmability, SR is increasingly widely used. Traditional tunnel technology is also widely used in the network. Therefore, in some scenarios, SR and traditional tunnel technology coexist. For example, in the process of evolving from traditional tunnel technology to SR, SR and traditional tunnel technology coexist.
[0003] Currently, when SR and traditional tunnel technologies coexist, service traffic interruption may occur.
[0004] Therefore, a solution is urgently needed to solve the above problems. Summary of the invention
[0005] The embodiments of the present application provide an information processing method and device, which can avoid service traffic interruption in a scenario where SR and traditional tunnel technologies coexist.
[0006] On the first aspect, an embodiment of the present application provides an information processing method, which can be applied to a first network device, where the first network device is a cross-domain device of an SR domain and a non-SR domain based on tunnel forwarding. The first network device can determine the tunnel status information of the non-SR domain and send the tunnel status information to the second network device in the SR domain. In this way, the second network device can determine the tunnel status information of the non-SR domain, and accordingly, can perform corresponding tunnel processing behaviors to avoid forwarding service traffic through the SR tunnel without determining the tunnel status information of the non-SR domain, thereby causing service traffic to be interrupted at the cross-domain device of the non-SR domain and the SR domain. It can be seen that by utilizing the solution of the embodiment of the present application, service traffic interruption can be avoided in a scenario where SR and traditional tunnel technologies coexist.
[0007] In a possible implementation, the tunnel status information may include tunnel link status information. The tunnel link status information may be the connectivity status of the tunnel link. For example, the tunnel link status information may be that the tunnel link is not connected; for another example, the tunnel link status information may be that the tunnel link is connected. In this case, the second network device may determine the connectivity of the tunnel in the non-SR domain based on the tunnel link status information.
[0008] In another possible implementation, the tunnel status information may include tunnel link quality information. The tunnel link quality information is used to indicate the quality of service that the tunnel can provide. In one example, the tunnel link quality information may include at least one tunnel link quality parameter, and the tunnel link quality parameters mentioned here include but are not limited to parameters such as latency, packet loss, bit error rate, congestion, and jitter. For this case, the second network device can determine the quality of service that the tunnel in the non-SR domain can provide based on the tunnel link status information.
[0009] In a possible implementation, considering that both the first network device and the second network device belong to the SR domain, and the SR domain can run the Interior Gateway Protocol (IGP), the first network device can carry the tunnel status information in the IGP message and send it to the second network device. In this way, the second network device can obtain the tunnel status information through the IGP message and further perform corresponding tunnel processing behavior to avoid forwarding service traffic through the SR tunnel without determining the tunnel status information of the non-SR domain, thereby causing the service traffic to be interrupted at the cross-domain device of the non-SR domain and the SR domain.
[0010] In a possible implementation, the IGP message may include a type length value (TLV), and the corresponding tunnel state information may be carried by the TLV field. In this case, the second network device may obtain the tunnel state information through the TLV, and further perform corresponding tunnel processing behavior to avoid forwarding service traffic through the SR tunnel without determining the tunnel state information of the non-SR domain, thereby causing service traffic to be interrupted at the cross-domain device between the non-SR domain and the SR domain.
[0011] In one possible implementation, in order to enable the second network device in the SR domain to determine the device role included in the tunnel in the aforementioned non-SR domain, so that the second network device determines which device the service traffic enters into the tunnel in the non-SR domain and forwards it, the first network device may also send the device role information in the tunnel in the non-SR domain to the second network device.
[0012] In a possible implementation, the device role information may include device information corresponding to at least one device role of the tunnel in the non-SR domain. As an example, the device role information may include tunnel entry device information and transmission device information. Among them: tunnel entry device information can be understood as information about tunnel entry devices, and tunnel entry devices can be understood as devices that perform tunnel entry operations for service traffic. Transmission device information can be understood as information about transmission devices, and transmission devices can be devices in the tunnel other than tunnel entry devices.
[0013] In a possible implementation, the transmission device may include a third network device in the non-SR network domain, and the transmission device information may include information of the third network device. The information of the third network device may, for example, include a device identifier of the third network device and a device role of the third network device. In one example, the network prefix corresponding to the third network device has a corresponding segment identifier (SID). For this case, using the solution of an embodiment of the present application, the second network device in the SR domain can establish a corresponding SR forwarding table entry for the third network device based on the network prefix and the corresponding SID of the third network device, so that the service traffic reaching the third network device can be forwarded in the SR tunnel.
[0014] In a possible implementation, if the network prefix of the third network device has a corresponding SID, the first network device may further determine that the network prefix of the third network device has a corresponding SID before sending the tunnel status information to the second network device. If it is determined that the network prefix corresponding to the third network device has a corresponding SID, the tunnel status information is further sent to the second network device, so that the second network device can determine the tunnel status information of the non-SR domain, and accordingly, can perform corresponding tunnel processing behavior to avoid forwarding service traffic through the SR tunnel without determining the tunnel status information of the non-SR domain, thereby causing service traffic to be interrupted at the cross-domain device between the non-SR domain and the SR domain.
[0015] In a possible implementation, the non-SR domain may be any non-SR network domain capable of tunnel forwarding. In one example, the non-SR domain may be a Label Distribution Protocol (LDP) domain. In this case, using the solution of the embodiment of the present application, service flow interruption can be avoided in a scenario where SR and LDP-based tunneling technologies coexist.
[0016] On the second aspect, an embodiment of the present application provides an information processing method, which can be applied to a second network device, and the second network device belongs to an SR domain. The second network device can receive tunnel status information of a non-SR domain sent by a first network device, and the first network device is a cross-domain device of an SR domain and a non-SR domain based on tunnel forwarding. After the second network device receives the tunnel status information, it can determine the processing measures of the SR tunnel based on the tunnel status information to avoid forwarding service traffic through the SR tunnel when the tunnel status information of the non-SR domain is uncertain, thereby causing the service traffic to be transmitted at the cross-domain device of the non-SR domain and the SR domain. It can be seen that by utilizing the solution of the embodiment of the present application, service traffic interruption can be avoided in a scenario where SR and traditional tunnel technologies coexist.
[0017] In one possible implementation, if the second network device determines, based on the tunnel status information, that the tunnel in the non-SR domain is in a normal state, the second network device may create an SR tunnel from the second network device to the first network device, so that after the service traffic is forwarded to the first network device through the SR tunnel, it can continue to be forwarded to the destination device based on the tunnel in the non-SR domain.
[0018] In one possible implementation, if the second network device determines, based on the tunnel status information, that the tunnel in the non-SR domain is in an abnormal state, the second network device may not create an SR tunnel from the second network device to the first network device, thereby avoiding packet loss after the service traffic is forwarded to the first network device through the SR tunnel.
[0019] In a possible implementation, the second network device receives the tunnel status information of the non-SR domain sent by the first network device, including: the second network device receives an internal gateway protocol IGP message sent by the first network device, and the IGP message includes the tunnel status information.
[0020] In a possible implementation manner, the IGP message includes a type-length-value TLV, and the TLV includes the tunnel state information.
[0021] In a possible implementation manner, the method further includes: the second network device receiving the device role information in the tunnel in the non-SR domain sent by the first network device.
[0022] In a possible implementation manner, the device role information includes: tunnel ingress device information and transmission device information.
[0023] In a possible implementation manner, the transmission device information includes: a network prefix corresponding to the third network device in the non-SR domain, and the network prefix has a corresponding segment identifier SID.
[0024] In one possible implementation, the first network device can determine the processing measures of the SR tunnel based on the tunnel status information when it is determined that the third network device has the corresponding SID, so as to avoid forwarding the service traffic through the SR tunnel without determining the tunnel status information of the non-SR domain, thereby causing the service traffic to be interrupted at the cross-domain devices in the non-SR domain and the SR domain.
[0025] In a possible implementation manner, the non-SR domain includes: a label distribution protocol LDP domain.
[0026] In the third aspect, an embodiment of the present application provides an information processing device, which is applied to a first network device, wherein the first network device is a cross-domain device of a segment routing SR domain and a non-SR domain based on tunnel forwarding, and the device includes: a processing unit, used to determine the tunnel status information of the non-SR domain; and a sending unit, used to send the tunnel status information to a second network device in the SR domain.
[0027] In a possible implementation manner, the tunnel state information includes: tunnel link state information and / or tunnel link quality information.
[0028] In a possible implementation manner, the sending unit is used to send an Internal Gateway Protocol IGP message including the tunnel state information to the second network device.
[0029] In a possible implementation manner, the IGP message includes a type-length-value TLV, and the TLV includes the tunnel state information.
[0030] In a possible implementation manner, the sending unit is further configured to: send the device role information in the tunnel in the non-SR domain to the second network device.
[0031] In a possible implementation manner, the device role information includes: tunnel ingress device information and transmission device information.
[0032] In a possible implementation manner, the transmission device information includes: a network prefix corresponding to the third network device in the non-SR domain, and the network prefix has a corresponding segment identifier SID.
[0033] In a possible implementation, the processing unit is further used to determine whether the network prefix has a corresponding SID and does not have an SR next hop that can reach the network prefix before sending the device information in the tunnel in the non-SR domain to the tunnel in the non-SR domain of the second network device.
[0034] In a possible implementation manner, the non-SR domain includes: a label distribution protocol LDP domain.
[0035] In a fourth aspect, an embodiment of the present application provides an information processing device, which is applied to a second network device, wherein the second network device is a device in a segment routing SR domain, and the device includes: a receiving unit, which is used to receive tunnel status information of a non-SR domain sent by a first network device, and the first network device is a cross-domain device of the SR domain and the non-SR domain based on tunnel forwarding; a processing unit, which is used to determine the processing measures of the SR tunnel based on the tunnel status information.
[0036] In a possible implementation manner, the tunnel state information includes: tunnel link state information and / or tunnel link quality information.
[0037] In one possible implementation, the processing unit is used to: if it is determined according to the tunnel status information that the tunnel in the non-SR domain is in a normal state, determine to create an SR tunnel from the second network device to the first network device; or, if it is determined according to the tunnel status information that the tunnel in the non-SR domain is in an abnormal state, determine not to create an SR tunnel from the second network device to the first network device.
[0038] In a possible implementation manner, the receiving unit is used to: receive an internal gateway protocol IGP message sent by the first network device, where the IGP message includes the tunnel state information.
[0039] In a possible implementation manner, the IGP message includes a type-length-value TLV, and the TLV includes the tunnel state information.
[0040] In a possible implementation manner, the receiving unit is further configured to: receive device role information in the tunnel in the non-SR domain sent by the first network device.
[0041] In a possible implementation manner, the device role information includes: tunnel ingress device information and transmission device information.
[0042] In a possible implementation manner, the transmission device information includes: a network prefix corresponding to the third network device in the non-SR domain, and the network prefix has a corresponding segment identifier SID.
[0043] In a possible implementation manner, the processing unit is configured to: determine a processing measure for the SR tunnel according to the tunnel state information when it is determined that the network prefix has a corresponding SID.
[0044] In a possible implementation manner, the non-SR domain includes: a label distribution protocol LDP domain.
[0045] In a fifth aspect, an embodiment of the present application provides a device. The device includes a processor and a memory. The memory is used to store instructions or computer programs. The processor is used to execute the instructions or computer programs in the memory, execute any one of the methods described in the first aspect above, or execute any one of the methods described in the second aspect above.
[0046] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions or a computer program, which, when executed on a computer, enables the computer to execute any of the methods described in the first aspect above, or execute any of the methods described in the second aspect above.
[0047] In the seventh aspect, an embodiment of the present application provides a computer program product comprising instructions or a computer program, which, when executed on a computer, enables the computer to execute any method described in the first aspect above, or execute any method described in the second aspect above.
[0048] In an eighth aspect, an embodiment of the present application provides a communication system, comprising: a first communication device for executing the method described in any one of the first aspects above, and a second communication device for executing the method described in any one of the second aspects above. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 A schematic diagram of an exemplary application scenario provided for an embodiment of the present application;
[0051] Figure 2 A signaling interaction diagram of an information processing method provided in an embodiment of the present application;
[0052] Figure 3 A schematic diagram of the structure of a TLV provided in an embodiment of the present application;
[0053] Figure 4 A schematic diagram of the structure of an information processing device provided in an embodiment of the present application;
[0054] Figure 5 A schematic diagram of the structure of another information processing device provided in an embodiment of the present application;
[0055] Figure 6 A schematic diagram of the structure of a device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The embodiments of the present application provide an information processing method and device, which can avoid service traffic interruption in a scenario where SR and traditional tunnel technologies coexist.
[0057] At present, in order to realize cross-domain forwarding between the SR domain and the non-SR domain based on tunnel forwarding, the corresponding SID can be assigned to the network device in the non-SR domain, and the corresponding relationship between the SID and the network prefix of the network device can be established, and the corresponding relationship can be flooded through the IGP. The network device in the SR domain that can correctly resolve the corresponding relationship can establish an SR forwarding table entry for the network device in the non-SR domain based on the corresponding relationship, so that the service traffic with the destination address of the network device in the non-SR domain is forwarded in the SR domain. For cross-domain devices between the SR domain and the non-SR domain, it can establish a forwarding table entry corresponding to the non-SR tunnel for the network device in the aforementioned non-SR domain, so that the service traffic with the destination address of the network device in the non-SR domain is forwarded in the non-SR domain, thereby realizing cross-domain forwarding of service traffic in the SR domain and the non-SR domain. The SR domain mentioned here can be understood as a network domain to which SR is applied, and the non-SR domain mentioned here can be understood as a network domain to which other tunnel technologies other than SR are applied.
[0058] Can be combined Figure 1 To understand, Figure 1 A schematic diagram of an exemplary application scenario provided for an embodiment of the present application.
[0059] like Figure 1As shown, network devices RTG, RTA and RTB belong to the SR domain, network devices RTB, RTD, RTE and RTF belong to the non-SR domain, and RTB is a cross-domain device between the SR domain and the non-SR domain. The loopback address of RTF is 1.1.1.1 / 32, SID1 can be assigned to RTF, and the correspondence between SID1 and the loopback address 1.1.1.1 / 32 is flooded in the SR domain and the non-SR domain. RTG in the SR domain can establish an SR forwarding table entry based on the correspondence, and based on the SR forwarding table entry, forward the service traffic with the destination device RTF through the SR tunnel in the SR domain. Correspondingly, the cross-domain device RTB can establish a forwarding table entry corresponding to the non-SR tunnel for the loopback address 1.1.1.1 / 32. In this way, when the aforementioned service traffic is forwarded to RTB through the SR tunnel, RTB can switch the service traffic to the non-SR tunnel based on the forwarding table entry of the non-SR tunnel and forward it to the destination device RTF. If the status of the aforementioned non-SR tunnel is normal, then through the above process, the service traffic can be forwarded through the SR tunnel first, and then forwarded to the destination device through the non-SR tunnel. However, if the status of the aforementioned non-SR tunnel is abnormal, the aforementioned service traffic cannot be normally switched to the non-SR tunnel for forwarding after being forwarded to the cross-domain device RTB, resulting in the service traffic being unable to continue to be forwarded in the non-SR domain, thereby causing service traffic interruption.
[0060] In order to solve the above technical problems, an embodiment of the present application provides an information processing method and device. Next, the information processing method and device provided by the embodiment of the present application are introduced in conjunction with the accompanying drawings.
[0061] See also Figure 2 , this figure is a signaling interaction diagram of an information processing method provided in an embodiment of the present application. Figure 2 The information processing method shown in the figure may include, for example, the following S101-S104. Figure 2 In the information processing method shown, the first network device is a cross-domain device of the SR domain and the non-SR domain, and the second network device is a network device in the SR domain. Figure 1 In the application scenario shown, the first network device may correspond to Figure 1 As shown in RTB, the second network device may correspond to Figure 1 RTG shown.
[0062] S101: A first network device determines tunnel state information of a non-SR domain.
[0063] In an embodiment of the present application, the non-SR domain may be any non-SR network domain capable of tunnel forwarding. In one example, the non-SR domain may be an LDP domain; in another example, the SR domain may be a Resource Reservation Protocol-Traffic Engineering (RSVP-TE) domain based on traffic engineering extension.
[0064] The tunnel status information of the non-SR domain in the embodiment of the present application may be the status information of the tunnel in the non-SR domain. The tunnel status information may be information that can be used to indicate the status of the tunnel in the non-SR domain. As an example, the tunnel status information may include tunnel link status information. The tunnel link status information may be the connectivity status of the tunnel link. For example, the tunnel link status information may be that the tunnel link is not connected; for another example, the tunnel link status information may be that the tunnel link is connected. As another example, the tunnel status information may include tunnel link quality information. Tunnel link quality information is used to indicate the quality of service that the tunnel can provide. In one example, the tunnel link quality information may include at least one tunnel link quality parameter. The tunnel link quality parameters mentioned here include, but are not limited to, parameters such as latency, packet loss, bit error rate, congestion, and jitter.
[0065] In one example, the first network device may determine the tunnel state information of the non-SR domain through tunnel state detection technology. For example, when the non-SR domain is an LDP domain, the first network device may, for example, perceive the tunnel state information of the non-SR domain through protocol messages. For another example, when the non-SR domain is an RSVP-TE domain, the first network device may, for example, determine the tunnel state information of the non-SR domain through bidirectional forwarding detection (BFD) technology.
[0066] S102: The first network device sends the tunnel status information to the second network device in the SR domain.
[0067] After the first network device determines the tunnel status information, the tunnel status information can be sent to the second network device in the SR domain. In one example, considering that both the first network device and the second network device belong to the SR domain, and the SR domain can run IGP, the first network device can carry the tunnel status information in an IGP message and send it to the second network device. In one example, the IGP message may include a TLV, and the tunnel status information can be carried through the TLV field. In another example, the tunnel status information can also be carried through other fields in the IGP message, for example, it can be carried through other fields in the IGP message that have not been used, which is not specifically limited in the embodiments of the present application.
[0068] In one example, in order to enable the second network device in the SR domain to determine the device role included in the tunnel in the non-SR domain, so that the second network device determines which device the service traffic enters into the tunnel in the non-SR domain for forwarding, the first network device may also send the device role information in the tunnel in the non-SR domain to the second network device. In one example, the first network device may carry the aforementioned tunnel status information and the device role information in the same message and send it to the second network device. In a specific example, the first network device may carry the aforementioned tunnel status information and the device role information in the same IGP message and send it to the second network device. The embodiment of the present application does not specifically limit the field used to carry the device role information in the IGP message. In one example, the device role information may also be carried by the TLV field in the IGP message. For example, the device role information and the aforementioned tunnel status information may be carried by the same TLV. For this case, the TLV may include multiple sub-TLVs, and the device role information and the aforementioned tunnel status information may be carried by different sub-TLVs of the TLV. For another example, the device role information and the aforementioned tunnel status information may be carried by different TLVs.
[0069] The device role information mentioned in the embodiment of the present application may include device information corresponding to at least one device role of the tunnel in the non-SR domain. As an example, the device role information may include inbound tunnel device information and transmission device information. Among them:
[0070] The tunnel entry device information can be understood as the information of the device that performs the operation of entering the tunnel for the business traffic. For the convenience of description, the "device that performs the operation of entering the tunnel for the business traffic" is called the "tunnel entry device". As an example, the tunnel entry device information may include the device identification of the tunnel entry device and the device role of the tunnel entry device. In one example, the device that performs the operation of entering the tunnel for the business traffic may be the first network device.
[0071] The device identification mentioned in the embodiment of the present application may be, for example, a network prefix of the device. The device role mentioned in the embodiment of the present application may include a tunneling device or a transmission device.
[0072] Transmission device information can be understood as information about devices in the tunnel other than the devices that perform operations on service traffic entering the tunnel. For the convenience of description, "devices in the tunnel other than the devices that perform operations on service traffic entering the tunnel" are referred to as "transmission devices". In one example, the transmission device may include a third network device in the non-SR network domain, and the transmission device information may include information about the third network device. Figure 1 In the scenario shown, the third network device may correspond to Figure 1 RTF shown. The information of the third network device may include, for example, the device identification of the third network device and the device role of the third network device. In one example, the network prefix corresponding to the third network device has a corresponding SID. For this case, using the solution of the embodiment of the present application, the second network device in the SR domain can establish a corresponding SR forwarding table entry for the third network device based on the network prefix and the corresponding SID of the third network device, so that the service traffic reaching the third network device can be forwarded in the SR tunnel.
[0073] Regarding the TLV used to carry the above tunnel status information in the IGP message, Figure 3 Provide explanation. Figure 3 A schematic diagram of the structure of a TLV provided in an embodiment of the present application.
[0074] like Figure 3 As shown, the TLV field includes: a type field, a length field and a value field, such as Figure 3 As shown, the value field may include a network prefix field, which may be used to carry the network prefix of the third network device. The value field may also include at least one sub-TLV field, such as Figure 3 As shown, one of the sub-TLV fields may also include a type field, a length field, and a value field, and the value field of the sub-TLV may be used to carry the aforementioned tunnel status information. For example, the value field of the sub-TLV may be used to carry tunnel link status information. When the value field of the sub-TLV takes a value of 1, it indicates that the tunnel link is connected. When the value field of the sub-TLV takes a value of 0, it indicates that the tunnel link is not connected. In one example, the value field of the sub-TLV may also include the tunnel type of the tunnel in the non-SR domain. The tunnel type mentioned here includes but is not limited to the LDP or RSVP-TE mentioned above.
[0075] Figure 3 This is only shown for the convenience of understanding the present solution and does not constitute a limitation on the embodiments of the present application. In one example, the TLV field may also include a flags field or a reserved field, which is not specifically limited in the embodiments of the present application.
[0076] In one example, considering that the network prefix of the third network device has a corresponding SID, the network device in the SR domain will establish a corresponding SR forwarding table entry for the third network device. Accordingly, in this case, if the state of the tunnel in the non-SR domain is abnormal, it will cause the service traffic of the destination device, the third network device, to be forwarded to the cross-domain device of the SR domain. It cannot be normally switched to the tunnel in the non-SR domain for forwarding. Therefore, in one example, before sending the tunnel status information to the second network device, the first network device can further determine that the network prefix of the third network device has a corresponding SID. If it is determined that the network prefix corresponding to the third network device has a corresponding SID, the tunnel status information is further sent to the second network device. In this way, the second network device can determine the tunnel status information of the non-SR domain, and accordingly, the corresponding tunnel processing behavior can be performed to avoid forwarding the service traffic through the SR tunnel without determining the tunnel status information of the non-SR domain, thereby causing the service traffic to be transmitted at the cross-domain device of the non-SR domain and the SR domain. It can be seen that the solution of the embodiment of the present application can avoid service traffic interruption in the scenario where SR and traditional tunnel technologies coexist.
[0077] S103: The second network device receives the tunnel status information sent by the first network device.
[0078] S104: The second network device determines a processing measure for the SR tunnel according to the tunnel status information.
[0079] The second network device may receive the tunnel status information sent by the first network device. After receiving the tunnel status information, the second network device may determine a processing measure for the SR tunnel based on the tunnel status information.
[0080] In one example, if the second network device determines that the tunnel in the non-SR domain is in a normal state based on the tunnel status information, the second network device can create an SR tunnel from the second network device to the first network device, so that after the service traffic is forwarded to the first network device through the SR tunnel, it can continue to be forwarded to the destination device based on the tunnel in the non-SR domain. In an embodiment of the present application, the second network device determines that the tunnel in the non-SR domain is in a normal state based on the tunnel status information. For example, it can be determined that the tunnel link of the tunnel in the non-SR domain is connected based on the tunnel link status information, or it can be determined that the service quality that the tunnel in the non-SR domain can provide meets the service requirements based on the tunnel link quality information.
[0081] In another example, if the second network device determines that the tunnel in the non-SR domain is in an abnormal state based on the tunnel status information, the second network device may not create an SR tunnel from the second network device to the first network device, thereby avoiding packet loss after the service traffic is forwarded to the first network device through the SR tunnel. In an embodiment of the present application, the second network device determines that the tunnel in the non-SR domain is in an abnormal state based on the tunnel status information. For example, it may be determined that the tunnel link of the tunnel in the non-SR domain is not connected based on the tunnel link status information, or it may be determined that the quality of service that the tunnel in the non-SR domain can provide does not meet the service requirements based on the tunnel link quality information.
[0082] As mentioned above, the third network device serves as a transmission device for the tunnel in the non-SR network domain, and the first network device may also send the network prefix of the third network device to the second network device. In one example, the first network device may determine the handling measures of the SR tunnel based on the tunnel status information when it is determined that the third network device has a corresponding SID. In a specific example, after the second network device calculates the forwarding path to the third network device, if it is determined that the network prefix of the third network device has a corresponding SID, and according to the tunnel status information, it is determined that the tunnel in the non-SR domain is in a normal state, then the second network device may create an SR tunnel from the second network device to the first network device. In this way, after the service traffic is forwarded to the first network device through the SR tunnel, it can continue to be forwarded to the third network device based on the tunnel in the non-SR domain. In another specific example, after the second network device calculates the forwarding path to the third network device, if it is determined that the network prefix of the third network device has a corresponding SID, and according to the tunnel status information, it is determined that the tunnel in the non-SR domain is in an abnormal state, then the second network device may not create an SR tunnel from the second network device to the first network device. Using this method, service traffic can be prevented from being forwarded through the SR tunnel. On the one hand, packet loss can be avoided after the service traffic is forwarded to the first network device through the SR tunnel, thereby avoiding service interruption. On the other hand, network resources in the SR domain can also be saved.
[0083] The above is an introduction to the information processing method provided in the embodiment of the present application. Figure 1 The application scenario shown introduces the information processing method provided in the embodiment of the present application.
[0084] RTB may obtain the tunnel status information of the non-SR domain. After obtaining the tunnel status information of the non-SR domain, RTB may send the tunnel status information and the network prefix of RTF to RTG.
[0085] In one example, after calculating the shortest path to the RTF, RTG determines that the network prefix of the RTF has a corresponding SID, and determines that the tunnel in the non-SR domain is in a normal state based on the tunnel status information. Then, RTG can create an SR tunnel from the RTG to the RTB.
[0086] In another example, after RTG calculates the forwarding path to reach the RTF, it determines that the network prefix of the RTF has a corresponding SID, and determines that the tunnel in the non-SR domain is in an abnormal state based on the tunnel status information. Then, RTG may not create an SR tunnel from the RTG to the RTB.
[0087] Based on the information processing method provided in the above embodiments, the embodiments of the present application also provide a corresponding information processing device. Next, the information processing device provided in the embodiments of the present application is introduced in conjunction with the accompanying drawings.
[0088] See also Figure 4 , which is a structural schematic diagram of an information processing device provided in an embodiment of the present application.
[0089] Figure 4 The information processing apparatus shown can be applied to a first network device, which is a cross-domain device of an SR domain and a non-SR domain based on tunnel forwarding, and is used to execute the information processing method provided by the first network device in the above method embodiment.
[0090] In one example, Figure 4 The information processing device 400 shown includes: a processing unit 401 and a sending unit 402 .
[0091] The processing unit 401 is configured to determine the tunnel state information of the non-SR domain;
[0092] The sending unit 402 is configured to send the tunnel state information to the second network device in the SR domain.
[0093] In a possible implementation manner, the tunnel state information includes: tunnel link state information and / or tunnel link quality information.
[0094] In a possible implementation, the sending unit 402 is configured to send an Internal Gateway Protocol IGP message including the tunnel state information to the second network device.
[0095] In a possible implementation manner, the IGP message includes a type-length-value TLV, and the TLV includes the tunnel state information.
[0096] In a possible implementation manner, the sending unit 402 is further configured to: send the device role information in the tunnel in the non-SR domain to the second network device.
[0097] In a possible implementation manner, the device role information includes: tunnel ingress device information and transmission device information.
[0098] In a possible implementation manner, the transmission device information includes: a network prefix corresponding to the third network device in the non-SR domain, and the network prefix has a corresponding segment identifier SID.
[0099] In one possible implementation, the processing unit 401 is also used to determine whether the network prefix has a corresponding SID and does not have an SR next hop that can reach the network prefix before sending the device information in the tunnel in the non-SR domain to the tunnel in the non-SR domain of the second network device.
[0100] In a possible implementation manner, the non-SR domain includes: a label distribution protocol LDP domain.
[0101] Regarding the specific implementation of the device 400, it belongs to the same concept as the information processing method performed by the first network device provided in the above method embodiment. Therefore, regarding the specific implementation of the device 400, you can refer to the relevant description part of the above method embodiment, and no repeated description will be made here.
[0102] See also Figure 5 , which is a structural schematic diagram of another information processing device provided in an embodiment of the present application.
[0103] Figure 5 The information processing apparatus shown can be applied to a second network device, where the second network device is a device in an SR domain, and is used to execute the information processing method provided by the second network device in the above method embodiment.
[0104] In one example, Figure 5 The information processing device 500 shown includes: a receiving unit 501 and a processing unit 502 .
[0105] The receiving unit 501 is configured to receive tunnel state information of a non-SR domain sent by a first network device, where the first network device is a cross-domain device between the SR domain and the non-SR domain based on tunnel forwarding;
[0106] The processing unit 502 is used to determine a processing measure for the SR tunnel according to the tunnel status information.
[0107] In a possible implementation manner, the tunnel state information includes: tunnel link state information and / or tunnel link quality information.
[0108] In one possible implementation, the processing unit 502 is used to: if it is determined according to the tunnel status information that the tunnel in the non-SR domain is in a normal state, determine to create an SR tunnel from the second network device to the first network device; or, if it is determined according to the tunnel status information that the tunnel in the non-SR domain is in an abnormal state, determine not to create an SR tunnel from the second network device to the first network device.
[0109] In a possible implementation manner, the receiving unit 501 is configured to: receive an internal gateway protocol IGP message sent by a first network device, wherein the IGP message includes the tunnel state information.
[0110] In a possible implementation manner, the IGP message includes a type-length-value TLV, and the TLV includes the tunnel state information.
[0111] In a possible implementation manner, the receiving unit 501 is further configured to: receive device role information in the tunnel in the non-SR domain sent by the first network device.
[0112] In a possible implementation manner, the device role information includes: tunnel ingress device information and transmission device information.
[0113] In a possible implementation manner, the transmission device information includes: a network prefix corresponding to the third network device in the non-SR domain, and the network prefix has a corresponding segment identifier SID.
[0114] In a possible implementation manner, the processing unit 502 is configured to: determine a processing measure for the SR tunnel according to the tunnel state information when it is determined that the network prefix has a corresponding SID.
[0115] In a possible implementation manner, the non-SR domain includes: a label distribution protocol LDP domain.
[0116] Regarding the specific implementation of the device 500, it belongs to the same concept as the information processing method performed by the second network device provided in the above method embodiment. Therefore, regarding the specific implementation of the device 500, you can refer to the relevant description part of the above method embodiment, and no repeated description will be made here.
[0117] It should be noted that the hardware structure of the information processing device mentioned above can be as follows: Figure 6 The structure shown, Figure 6 A schematic diagram of the structure of a device provided in an embodiment of the present application.
[0118] See also Figure 6 As shown, the device 600 includes: a processor 610, a communication interface 620 and a memory 630. The number of the processor 610 in the device 600 can be one or more. Figure 6 In the embodiment of the present application, the processor 610, the communication interface 620 and the memory 630 may be connected via a bus system or other means, wherein: Figure 6 The connection via bus system 640 is taken as an example.
[0119] The processor 610 may be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP. The processor 610 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0120] The memory 630 may include a volatile memory (English: volatile memory), such as a random-access memory (RAM); the memory 630 may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (HDD) or a solid-state drive (SSD); the memory 630 may also include a combination of the above-mentioned types of memory. The memory 630 may, for example, store tunnel state information of a non-SR domain.
[0121] Optionally, the memory 630 stores an operating system and a program, an executable module or a data structure, or a subset thereof, or an extended set thereof, wherein the program may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic services and processing hardware-based tasks. The processor 610 may read the program in the memory 630 to implement the information processing method provided in the embodiment of the present application.
[0122] The bus system 640 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus system 640 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6Only 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.
[0123] The embodiment of the present application also provides a computer-readable storage medium, including instructions or computer programs, which, when executed on a computer, enable the computer to execute the information processing method provided in the above embodiment.
[0124] The embodiments of the present application also provide a computer program product including instructions or a computer program, which, when executed on a computer, enables the computer to execute the information processing method provided in the above embodiments.
[0125] An embodiment of the present application also provides a communication system, which may include a first communication device and a second communication device that execute the information processing method provided by the above method embodiment.
[0126] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof 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 necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0127] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0128] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical business division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0129] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0130] In addition, each business unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software business units.
[0131] If the integrated unit is implemented in the form of a software business unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0132] Those skilled in the art will appreciate that in one or more of the above examples, the services described in the present invention may be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, the services may be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media may be any available media that can be accessed by a general-purpose or special-purpose computer.
[0133] The above specific implementation modes further describe the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation modes of the present invention.
[0134] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. An information processing method, characterized in that: The method comprises: A first network device determines tunnel state information of a non-SR domain, where the first network device is a cross-domain device between an SR domain and the non-SR domain based on tunnel forwarding; The first network device sends the tunnel state information to a second network device in the SR domain.
2. The method according to claim 1, characterized in that The tunnel status information includes: Tunnel link status information, and / or tunnel link quality information.
3. The method according to claim 1 or 2, characterized in that: The first network device sending the tunnel state information to a second network device in the SR domain includes: The first network device sends an interior gateway protocol (IGP) message including the tunnel state information to the second network device.
4. The method according to claim 3, characterized in that The IGP message includes a type-length-value TLV, and the TLV includes the tunnel state information.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: The first network device sends the device role information in the tunnel in the non-SR domain to the second network device.
6. The method according to claim 5, characterized in that The device role information includes: Enter tunnel device information and transmission device information.
7. The method according to claim 6, characterized in that The transmission device information includes: A network prefix corresponding to the third network device in the non-SR domain, wherein the network prefix has a corresponding segment identifier SID.
8. The method according to claim 7, characterized in that Before the first network device sends the device information in the tunnel in the non-SR domain to the tunnel in the non-SR domain of the second network device, the method further includes: The first network device determines that the network prefix has a corresponding SID and does not have an SR next hop to reach the network prefix.
9. The method according to any one of claims 1 to 8, characterized in that: The non-SR domain includes: Label Distribution Protocol (LDP) domain.
10. An information processing method, characterized in that: The method comprises: The second network device receives the tunnel state information of the non-SR domain sent by the first network device, the second network device is a device in the segment routing SR domain, and the first network device is a cross-domain device of the SR domain and the non-SR domain based on tunnel forwarding; The second network device determines a processing measure for the SR tunnel according to the tunnel status information.
11. The method according to claim 10, characterized in that The tunnel status information includes: Tunnel link status information, and / or tunnel link quality information.
12. The method according to claim 10 or 11, characterized in that: The second network device determines, according to the tunnel status information, a processing measure for the SR tunnel, including: If it is determined according to the tunnel status information that the tunnel in the non-SR domain is in a normal state, the second network device determines to create an SR tunnel from the second network device to the first network device; or, If it is determined according to the tunnel status information that the tunnel in the non-SR domain is in an abnormal state, the second network device determines not to create an SR tunnel from the second network device to the first network device.
13. The method according to any one of claims 10 to 12, characterized in that: The second network device receives the tunnel state information of the non-SR domain sent by the first network device, including: The second network device receives an internal gateway protocol IGP message sent by the first network device, where the IGP message includes the tunnel state information.
14. The method according to claim 13, characterized in that The IGP message includes a type-length-value TLV, and the TLV includes the tunnel state information.
15. The method according to any one of claims 10 to 14, characterized in that: The method further comprises: The second network device receives the device role information in the tunnel in the non-SR domain sent by the first network device.
16. The method according to claim 15, characterized in that The device role information includes: Enter tunnel device information and transmission device information.
17. The method according to claim 16, characterized in that The transmission device information includes: A network prefix corresponding to the third network device in the non-SR domain, wherein the network prefix has a corresponding segment identifier SID.
18. The method according to claim 17, characterized in that The second network device determines, according to the tunnel status information, a processing measure for the SR tunnel, including: When determining that the network prefix has a corresponding SID, the second network device determines a processing measure for the SR tunnel according to the tunnel state information.
19. The method according to any one of claims 10 to 18, characterized in that: The non-SR domain includes: Label Distribution Protocol (LDP) domain.
20. An information processing device, characterized in that: Applied to a first network device, the first network device is a cross-domain device of a segment routing SR domain and a non-SR domain based on tunnel forwarding, the device includes: A processing unit, configured to determine tunnel state information of the non-SR domain; A sending unit is used to send the tunnel status information to the second network device in the SR domain.
21. An information processing device, characterized in that: Applied to a second network device, where the second network device is a device in a segment routing SR domain, the apparatus comprises: A receiving unit, configured to receive tunnel state information of a non-SR domain sent by a first network device, where the first network device is a cross-domain device between the SR domain and the non-SR domain based on tunnel forwarding; A processing unit is used to determine a processing measure for the SR tunnel according to the tunnel status information.
22. A device, characterized in that include: Processor and memory; The memory is used to store instructions or computer programs; The processor is used to execute the instructions or computer programs to perform the method according to any one of claims 1 to 19.
23. A computer-readable storage medium, characterized in that: The method comprises instructions or computer programs, which, when executed on a computer, cause the computer to execute the method according to any one of claims 1 to 19.
24. A communication system, characterized in that: The system comprises: a first communication device for executing the method according to any one of claims 1 to 9 and a second communication device for executing the method according to any one of claims 10 to 19.
Citation Information
Patent Citations
Is-is extensions for flexible path stitching and selection for traffic transiting segment routing and MPLS networks
CN108702328A
Information cross-domain notification method and system and boundary router
CN112737937A
Serverless segment routing (SR)-label distribution protocol (LDP) stitching
US11070468B1
OSPF extensions for flexible path stitchng and selection for traffic transiting segment routing and MPLS networks
US20190058657A1
