Message processing method and device, electronic equipment and storage medium

By determining the target link between OTN devices and adding instruction information, the problem of message loss when switching service types in OTN devices is solved, and efficient transmission and processing of different service types is achieved.

CN118802480APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311716567.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-13
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

On the link between Optical Transport Network (OTN) devices, when the service type of the message to be transmitted is switched from lossless transmission service to non-lossless transmission service or vice versa, the receiving end device is prone to losing the message being transmitted.

Method used

By determining the target link between OTN devices, and after receiving the handover request, the message is received and sent through the predetermined link, and indication information is added to determine the message service type, thereby achieving pertinence of the message. processing and lossless switching.

Benefits of technology

It ensures the complete reception and processing of the messages being transmitted before the service type is switched, avoids message loss, and realizes flexible and efficient transmission of different service types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802480A_ABST
    Figure CN118802480A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a message processing method and device, electronic equipment and a storage medium, and the method comprises the steps: receiving a switching request when a message of a first service is sent to second OTN equipment through a predetermined first link, and the switching request represents a request for switching the service type of a to-be-transmitted message from the first service to a second service; one of the first service and the second service is a lossless transmission service, and the other service is a non-lossless transmission service; determining a target link for transmitting the message of the second service; and sending the message of the second service to the second OTN device through the target link, the second OTN device being used for determining the target link after receiving the switching request, and being used for completing the reception of the message of the first service through a predetermined first link after receiving the switching request.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of transmission and Internet Protocol (IP), and in particular relates to a message processing method, device, electronic device and storage medium. Background Art

[0002] In the related art, links between different Optical Transport Network (OTN) devices can be used to transmit messages of lossless transmission services or messages of non-lossless transmission services. However, when the service type of the message to be transmitted on the link is switched from lossless transmission service to non-lossless transmission service, or when the service type of the message to be transmitted on the link is switched from non-lossless transmission service to lossless transmission service, the receiving end device of the link is prone to lose the message being transmitted before the service type is switched. Summary of the invention

[0003] Embodiments of the present application provide a message processing method, device, electronic device, and storage medium.

[0004] The present application embodiment provides a message processing method, which is applied in a first OTN device, and includes:

[0005] When a message of the first service is sent to the second OTN device through a predetermined first link, a switching request is received, where the switching request indicates a request to switch the service type of the message to be transmitted from the first service to the second service; one of the first service and the second service is a lossless transmission service, and the other service is a non-lossless transmission service;

[0006] Determining a target link for transmitting a message of the second service;

[0007] The message of the second service is sent to the second OTN device through the target link, wherein the second OTN device is used to determine the target link after receiving the switching request, and is used to complete the reception of the message of the first service through a predetermined first link after receiving the switching request.

[0008] In some embodiments, the first service is a non-lossless transmission service, and the second service is a lossless transmission service; accordingly, sending the message of the second service to the second OTN device through the target link includes: adding first indication information to the message of the second service, wherein the first indication information is used to indicate that the service type of the message of the second service is a lossless transmission service; and sending the message of the second service added with the first indication information to the second OTN device through the target link.

[0009] It can be seen that after sending the message of the second service with the first indication information added to the second OTN device, the second OTN device can determine that the service type of the received message is the second service based on the first indication information in the received message, so that the received message of the second service can be processed in a targeted manner.

[0010] In some embodiments, when the first service is a non-lossless transmission service and the second service is a lossless transmission service, the target link includes a first link and a second link;

[0011] In a case where the first service is a lossless transmission service and the second service is a non-lossless transmission service, the first link includes the target link and a third link.

[0012] It can be seen that in the scenario where the first service is a non-lossless transmission service and the second service is a lossless transmission service, the first OTN device can use the first link that is transmitting the message to start transmitting the message of the second service, thereby making full use of the first link; in the scenario where the first service is a lossless transmission service and the second service is a non-lossless transmission service, the first OTN device can use the target link that is transmitting the message to start transmitting the message of the second service, thereby making full use of the target link.

[0013] The embodiment of the present application further provides another message processing method, which is applied in a second OTN device, and includes:

[0014] receiving a switching request, wherein the switching request indicates a request to switch a service type of a message to be transmitted from a first service to a second service; one of the first service and the second service is a lossless transmission service, and the other service is a non-lossless transmission service;

[0015] Determining a target link for transmitting a message of the second service;

[0016] The message of the first service is received through a predetermined first link, and the message of the second service is received through the target link.

[0017] In some embodiments, when the first service is a non-lossless transmission service and the second service is a lossless transmission service, the target link includes a first link and a second link; when the first service is a lossless transmission service and the second service is a non-lossless transmission service, the first link includes the target link and a third link.

[0018] It can be seen that in the scenario where the first service is a non-lossless transmission service and the second service is a lossless transmission service, the first OTN device can use the first link that is transmitting the message to start transmitting the message of the second service, thereby fully utilizing the first link; in the scenario where the first service is a lossless transmission service and the second service is a non-lossless transmission service, the first OTN device can use the target link that is transmitting the message to start transmitting the message of the second service, thereby fully utilizing the target link.

[0019] In some embodiments, when the first service is a non-lossless transmission service and the second service is a lossless transmission service, the method further includes:

[0020] When the message received through the first link is a message of the first service, the message of the first service is processed through a preset first message processing process; when the message received through the first link is a message of the second service, the message of the second service is processed through a preset second message processing process; the first message processing process represents a process for processing messages of the non-lossless transmission service, and the second message processing process represents a process for processing messages of the lossless transmission service; when the message of the first service is received through the second link, the message received through the second link is discarded; when the message received through the second link is a message of the second service and the second message processing process is in an executing state, the message of the second service is processed through the second message processing process; when the message received through the second link is a message of the second service and the second message processing process is not in an executing state, the message of the second service is cached, and after the second message processing process is started, the cached message of the second service is processed through the second message processing process.

[0021] It can be seen that when the message received through the first link is a message of a non-lossless transmission service, since the first link is a predetermined link for receiving messages of the non-lossless transmission service, processing the message of the non-lossless transmission service through the preset first message processing flow is conducive to completely realizing the reception and processing of the message of the non-lossless transmission service; when the message received through the first link is a message of a lossless transmission service, since the first link is a link for receiving messages of the lossless transmission service, therefore, processing the message of the lossless transmission service through the preset second message processing flow can realize the reception and processing of the message of the lossless transmission service.

[0022] When a message of a non-lossless transmission service is received through the second link, since the second link is not a predetermined link for receiving messages of the non-lossless transmission service, it is not necessary to process the message received through the second link, so that the message received through the second link can be reasonably discarded; when a message of a lossless transmission service is received through the second link and the second message processing flow is in an executing state, it indicates that the flow for processing messages of the lossless transmission service has been started, and since the second link is a link for receiving messages of the lossless transmission service, the lossless transmission service is processed through the second message processing flow. The message of the lossless transmission service is processed, which is conducive to reliably realizing the reception and processing of the message of the lossless transmission service; when the message of the lossless transmission service is received through the second link and the second message processing process is not in the executing state, it means that the process for processing the message of the lossless transmission service has not been started. Since the second link is a link for receiving the message of the lossless transmission service, the message of the lossless transmission service can be cached. After the second message processing process is started, the cached message of the lossless transmission service is processed through the second message processing process, which is conducive to reliably realizing the reception and processing of the message of the lossless transmission service.

[0023] In some embodiments, when the first service is a lossless transmission service and the second service is a non-lossless transmission service, the method further includes:

[0024] When the message received through the first link is a message of the first service, the message of the first service is processed through a preset second message processing process; when the message received through the first link is a message of the second service, the message of the second service is cached, and after waiting for the second message processing process to be executed, the message of the second service is processed through a preset first message processing process; the first message processing process represents a process for processing messages of the non-lossless transmission service, and the second message processing process represents a process for processing messages of the lossless transmission service;

[0025] When a message is received through the third link and the first message processing process is in an executing state, the message received through the third link is discarded; when the message received through the third link is a message of the second service and the first message processing process is not in an executing state, the message received through the third link is discarded; when the message received through the third link is a message of the first service and the first message processing process is not in an executing state, the message of the first service is processed through the second message processing process.

[0026] It can be seen that when the message received through the first link is a message of the lossless transmission service, since the first link is a predetermined link for receiving messages of the lossless transmission service, the message of the lossless transmission service is processed through the preset first message processing flow, which is conducive to completely realizing the reception and processing of the message of the lossless transmission service; when the message received through the first link is a message of a non-lossless transmission service, the message of the non-lossless transmission service can be cached, and after waiting for the second message processing flow to be executed, the message of the non-lossless transmission service is processed through the preset first message processing flow. In this way, the reception and processing of the message of the lossless transmission service can be completely realized by executing the second message processing flow, and the second OTN device will not lose the message of the lossless transmission service.

[0027] When a message is received through the third link and the first message processing flow is in the executing state, it means that the flow for processing messages of non-lossless transmission services has been started. Since the third link is not a predetermined link for transmitting messages of non-lossless transmission services, the message received through the third link cannot be processed through the first message processing flow. In this case, the message received through the third link can be reasonably discarded. When the message received through the third link is a message of non-lossless transmission services and the first message processing flow is not in the executing state, since the third link is not a predetermined link for transmitting messages of non-lossless transmission services, it can be considered that the message received through the third link is an erroneous message. In this case, the message received through the third link can be reasonably discarded. When the message received through the third link is a message of lossless transmission services and the first message processing flow is not in the executing state, the message of lossless transmission services is processed through the second message processing flow. In this way, the reception and processing of messages of lossless transmission services can be completely realized by executing the second message processing flow.

[0028] In some embodiments, when the second OTN device receives a message through any link, the method further includes: when the message received by the second OTN device includes first indication information, determining that the message received by the second OTN device is a message of a lossless transmission service; when the message received by the second OTN device does not include the first indication information, determining that the message received by the second OTN device is a message of a non-lossless transmission service; the first indication information is used to indicate that the service type of the message is a lossless transmission service.

[0029] It can be seen that after the first OTN device sends the message of the second service with the first indication information added to the second OTN device, the second OTN device can determine that the service type of the received message is the second service according to the first indication information in the received message, so that the received message of the second service can be processed in a targeted manner; after the first OTN device sends the message without the first indication information added to the second OTN device, the second OTN device can determine that the service type of the received message is the first service when it is determined that the received message does not contain the first indication information, so that the received message of the first service can be processed in a targeted manner.

[0030] In some embodiments, the second OTN device receives a message carrying second indication information through any link, where the second indication information is used to indicate a serial number (SN) of the message; the target link includes multiple links, and the second OTN device is used to process the messages with the same SN received through each link when each link in the target link receives a message with the same SN;

[0031] After determining the target link for transmitting the message of the second service of the lossless transmission service, the method further includes: determining the size of the cache space for caching the message with the same SN based on the earliest time point and the latest time point of receiving the message with the same SN by each link in the target link; and determining the size of the cache space for caching the message with the same SN based on the time difference between the earliest time point and the latest time point, the size of the cache space being positively correlated with the time difference.

[0032] It can be seen that if there is a time difference in receiving time of messages with the same SN received through different links, it is necessary to cache the messages received earlier, and when messages with the same SN are received through each link, the messages with the same SN are processed. Therefore, when the time difference between the receiving time points of messages with the same SN received by each link is large, it is necessary to set a larger cache space for caching the messages received earlier. Therefore, when the size of the cache space is positively correlated with the above-mentioned time difference, the local cache space of the second OTN device can be optimized, which is beneficial to saving the local cache space of the second OTN device and simplifying the business processing flow.

[0033] The embodiment of the present application further provides a message processing device, which is applied to a first OTN device, and includes:

[0034] A transceiver module, configured to receive a switching request when sending a message of a first service to a second OTN device through a predetermined first link, wherein the switching request indicates a request to switch a service type of the message to be transmitted from the first service to a second service; one of the first service and the second service is a lossless transmission service, and the other service is a non-lossless transmission service;

[0035] The first processing module is used to determine a target link for transmitting the message of the second service; and send the message of the second service to the second OTN device through the target link, wherein the second OTN device is used to determine the target link after receiving the switching request, and is used to complete the reception of the message of the first service through a predetermined first link after receiving the switching request.

[0036] The embodiment of the present application further provides another message processing device, which is applied to a second OTN device, and includes:

[0037] A receiving module, configured to receive a switching request, wherein the switching request indicates a request to switch a service type of a message to be transmitted from a first service to a second service; one of the first service and the second service is a lossless transmission service, and the other service is a non-lossless transmission service;

[0038] The second processing module is used to determine a target link for transmitting the message of the second service; complete the reception of the message of the first service through a predetermined first link, and receive the message of the second service through the target link.

[0039] An embodiment of the present application further provides an electronic device, which is applied to a first OTN device, and includes a processor and a memory for storing a computer program that can be run on the processor; wherein the processor is used to run the computer program to execute any one of the above-mentioned message processing methods applied to the first OTN device.

[0040] An embodiment of the present application further provides another electronic device, which is applied to a second OTN device, and includes a processor and a memory for storing a computer program that can be run on the processor; wherein the processor is used to run the computer program to execute any one of the above-mentioned message processing methods applied to the second OTN device.

[0041] The embodiment of the present application also provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a processor, any of the above-mentioned message processing methods is implemented. .

[0042] It can be seen that when the first OTN device sends the message of the first service to the second OTN device through the first link, if a switching request is received, it can be determined that the service type of the message to be transmitted needs to be switched from the first service to the second service. At this time, the first OTN device can determine the target link for transmitting the message of the second service, and can send the message of the second service to the second OTN device through the target link, so that the second OTN device can receive the message of the second service; at the same time, after receiving the switching request, the second OTN device can also complete the reception of the message of the first service through the first link, so that the second OTN device will not lose the message of the first service being transmitted before the service type switching, which is conducive to realizing lossless switching from the process of receiving the message of the first service to the process of receiving the message of the second service. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of the transmission network structure of a 5G network proposed in the related art;

[0044] Figure 2 A schematic diagram of mapping customer services to OTN line ports in related technologies;

[0045] Figure 3 A schematic diagram of a network structure in which an OTN chip is used for data forwarding and interaction in a related technology;

[0046] Figure 4 A schematic diagram of a network structure using an OTN chip for data communication in an embodiment of the present application;

[0047] Figure 5 A schematic diagram of another network structure using an OTN chip for data communication in an embodiment of the present application;

[0048] Figure 6 This is a flow chart of a message processing method applied to a first OTN device according to an embodiment of the present application;

[0049] Figure 7 A schematic diagram of a change in a communication link between OTN devices when switching a service type of a message to be transmitted is provided in an embodiment of the present application;

[0050] Figure 8 Schematic diagram of another change in the communication link between OTN devices when switching the service type of the transmission message provided in the embodiment of the present application

[0051] Fig. 9 This is a flow chart of a message processing method applied to a second OTN device according to an embodiment of the present application;

[0052] Fig.10A schematic diagram of another change in the communication link between OTN devices when switching the service type of a message to be transmitted is provided in an embodiment of the present application;

[0053] Fig.11 A flow chart of a second OTN device receiving a message when switching a service type of a message to be transmitted provided in an embodiment of the present application;

[0054] Fig.12 A schematic diagram of another change in the communication link between OTN devices when switching the service type of a message to be transmitted is provided in an embodiment of the present application;

[0055] Fig.13 A flow chart of a second OTN device receiving a message when switching a service type of a message to be transmitted provided in an embodiment of the present application;

[0056] Fig.14 This is a structural schematic diagram of a message processing device applied to a first OTN device according to an embodiment of the present application;

[0057] Fig.15 This is a structural schematic diagram of a message processing device applied to a second OTN device according to an embodiment of the present application;

[0058] Fig.16 A schematic diagram of the composition structure of a first electronic device applied to a first OTN device provided in an embodiment of the present application;

[0059] Fig.17 A schematic diagram of the composition structure of a second electronic device applied to a second OTN device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0060] The 5th Generation Mobile Communication Technology (5G) network needs to support a variety of services and application scenarios, such as enhanced mobile broadband (eMBB) services with higher bandwidth and lower latency, massive machine-type communication (mMTC) services, and ultra reliable and low latency communication (uRLLC) services. It is foreseeable that in the 5G era, many new user applications will be introduced, such as ubiquitous high-definition / ultra high-definition and even 3D holographic films and videos in dense urban areas, high-speed data transmission of 100Mbps in any area, high-speed mobile applications greater than 350km / h, sensor networks, tactile Internet, e-health services, natural disaster monitoring applications, etc.

[0061] Due to the requirements of 5G networks, 5G networks need to support the transmission of different types of services at the same time, so new requirements are put forward, such as large bandwidth, low latency, hard isolation, flexible connection, unified management and control, and high-precision time synchronization. The existing fourth generation mobile communication technology (4G) transmission technology cannot meet the challenges of 5G in all aspects, and a new slicing transmission network technology system is needed to support the transmission of 5G services.

[0062] Reference Figure 1 , 5G transmission services support the Slicing Packet Network (SPN) mechanism. After the data enters the SPN transmission device through the User Network Interface (UNI) interface, it is first classified in the SPN network 101 to distinguish the data type, and then enters the Network to Network Interface (NNI) interface to execute the data forwarding process. For multi-service access to 5G networks, SPN transmission equipment and OTN equipment need to support transmission pipelines for a variety of different services. For example, it is necessary to support transmission pipelines for 5G base stations, 4G base stations, customer collection services, home broadband services, etc. The data receiving end of the SPN network 101 can be a wireless device, a customer collection device, a home broadband device, or an important government and enterprise device.

[0063] Different transmission levels are used for different business needs. The business needs here may be those related to bandwidth, latency, jitter, reliability, and security. Different transmission pipelines need to be configured to meet different business needs.

[0064] SPN transmission equipment and OTN equipment need to support multi-service access, such as supporting a fixed number of customer services such as E1, FE (FastEthernet), GE (Gigabit Ethernet), 10GE Local Area Network (LAN), STM-1 (Synchronous Transfer Module-1), STM-4 (Synchronous Transfer Module-4), etc., and also need to support the mapping of customer-side services to OTN line ports, where E1 is the abbreviation for 30-channel pulse code modulation in Europe. Figure 2 In the 5G transmission network, for the services of Ethernet interface, STM-N interface, Optical Channel Transport Unit-k (OTUk) interface, Fibre Channel (FC) service interface and other service interfaces, the services can be mapped to the main optical channel and the backup optical channel through multi-service adaptation processing and OTUk line interface processing. Exemplarily, both OTUk interface and FC service interface are optional interfaces, and multi-service adaptation processing can be applied to the services of Ethernet interface, OTUk interface and time division multiplexing (TDM) services.

[0065] In the customer-side optical transport network (Customer Premise Equipment of Optical Transport Network, CPE OTN) transmission equipment of the related technology, it is necessary to perform multi-service (E1, FE, GE, 10GE LAN, STM-1, STM-4 and other customer services) access, OTN service transmission, Multi-Service Transport Platform (Multi-Service Transport Platform, MSTP) and Ethernet (ETH) functions on the CPE OTN chip. The functions supported by the CPE OTN chip need to include service mapping processing, link monitoring, link protection, Ethernet Virtual Local Area Network (Virtual Local Area Network, VLAN) forwarding, Operation Administration and Maintenance (OAM), frequency synchronization and other functions.

[0066] Reference Figure 3, the networks in offices, buildings, and campuses can forward and interact with data through CPE OTN chips, 2.5G customer premises equipment (CPE), and 10G CPE; the interface of the CPE OTN chip is a 2.5G network port or a 10G network port, the transmission bandwidth of the 2.5G CPE is 100G, and the transmission bandwidth of the 10G CPE is 10G or 100G. In related technologies, when OTN equipment such as CPE OTN chips process OTN services, the OTN equipment needs to support multiple interfaces, service mapping paths, and OTN service processing. When processing OTN services, it is necessary to process multiple cascade mapping services, multiple encapsulation services, SNCP protection, etc. Exemplarily, the multiple cascade mappings may include mappings related to services such as virtual container (VC) 12, VC4, STM1, STM4, STM16, OTN0 and OTN1, and the multiple encapsulation services may include services such as generic framing procedure (GFP), generic mapping procedure (GMP), asynchronous mapping procedure (AMP), and bit-synchronous mapping procedure (BMP).

[0067] In the related art, the links between different OTN devices can be used to transmit messages of lossless transmission services or messages of non-lossless transmission services. However, when the service type of the messages to be transmitted on the link is changed from lossless transmission service or non-lossless transmission service, or when the service type of the messages to be transmitted on the link is changed from non-lossless transmission service or lossless transmission service, the receiving device of the link is prone to service data packet loss.

[0068] In order to solve the above technical problems, a technical solution of the embodiment of the present application is proposed.

[0069] The following is a further detailed description of the embodiments of the present application in conjunction with the accompanying drawings and examples. It should be understood that the embodiments provided herein are only used to explain the embodiments of the present application and are not intended to limit the embodiments of the present application. In addition, the embodiments provided below are partial embodiments for implementing the present application, rather than providing all embodiments for implementing the present application. In the absence of conflict, the technical solutions recorded in the embodiments of the present application can be implemented in any combination.

[0070] It should be noted that, in the embodiments of the present application, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or device including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements (such as steps in a method or units in a device, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.) in the method or device including the element.

[0071] The embodiment of the present application provides a message processing method, which can be applied to OTN equipment. Exemplarily, the OTN equipment can be a CPE OTN chip, which can support the processing of multiple interface services (such as E1, FE, GE, 10GE LAN, STM-1, STM-4 and other customer services) when processing multiple services for access, and can encapsulate the interface services into multi-level containers, which are sent to the OTN interface after cascading processing for line-side transmission.

[0072] In some embodiments, messages of lossless transmission services may be transmitted on multiple paths between two OTN devices, and multi-path loss-free transmission of service data may be achieved by using a transmission protection pipeline formed by multiple paths.

[0073] Figure 4 A schematic diagram of a network structure using a CPE OTN chip for data communication. Figure 4 , Enterprise 1, Enterprise 2, Enterprise 3 and Enterprise 4 represent different enterprises, Government 1, Government 2, Government 3 and Government 4 represent different government agencies, CO1 and CO2 represent different integrated service access (Central Office, CO) sites, link1 and link2 represent different communication links; the OTN management and control platform is used to manage the CPE OTN chip of the CO site and the OTN equipment located on the communication link.

[0074] Figure 4In the example, the communication equipment of enterprise 1 can interact with the CPE OTN chip through the E1 interface, and the communication equipment of enterprise 2 can interact with the CPE OTN chip through the STM interface, which can be an STM-1 interface, an STM-2 interface, an STM-3 interface, or an STM-4 interface; the equipment of government affairs 1 can interact with the CPE OTN chip through the GE interface, and the equipment of government affairs 2 can interact with the CPE OTN chip through the FE interface. The OTN equipment on each communication link of link1 and link2 includes the OTN equipment of prefecture-level city A and the OTN equipment of prefecture-level city B.

[0075] Reference Figure 4 , lin1 and link2 can be established between CO sites through the OTN management and control platform. Lin1 and link2 represent lossless links between CO sites. After the lossless links are established, discrete reception of service data can be achieved losslessly based on the lossless links.

[0076] Figure 5 FIG. 1 is a schematic diagram of another network structure using a CPE OTN chip for data communication in an embodiment of the present application, referring to FIG. Figure 5 , Enterprise 5, Enterprise 6, Enterprise 7 and Enterprise 8 represent different enterprises, Government 5, Government 6, Government 7 and Government 8 represent different government agencies; CO3 and CO4 represent different CO sites, lin3 and link4 represent lossless links between CO sites, and lossless links can transmit service data of Ethernet interfaces. The OTN management and control platform is used to manage the CPE OTN chips of the CO sites and the OTN devices located on the lossless links;

[0077] Reference Figure 5 , the communication equipment of enterprise 5 can interact with the CPE OTN chip through the E1 interface, and the communication equipment of enterprise 6 can interact with the CPE OTN chip through the STM interface, which can be an STM-1 interface, an STM-2 interface, an STM-3 interface, or an STM-4 interface; the equipment of government affairs 5 can interact with the CPE OTN chip through the GE interface, and the equipment of government affairs 6 can interact with the CPE OTN chip through the FE interface. The OTN equipment on each communication link of link3 and link4 includes the OTN equipment of prefecture-level city C and the OTN equipment of prefecture-level city D. For example, link3 and link4 represent two links that use the Ethernet (ETH) protocol for data transmission, and link3 and link4 represent links with different transmission delays.

[0078] Exemplarily, in an OTN device, according to the service entry type and service requirements, common services and lossless transmission services may be defined, and the common services are non-lossless transmission services.

[0079] In order to realize the reception and transmission of messages of various services, a configuration table of service data can be established in the OTN equipment.

[0080] Table 1

[0081]

[0082] Table 1 is an example of a configuration table for service data. Table 1 shows service flow identity documents (IDs) corresponding to different interfaces, service types of messages to be transmitted, and delay link selection items. In Table 1, port (PORT) + VLAN 1, PORT + VLAN 2, PORT + VLAN 3, PORT + VLAN 4, PORT + VLAN 5, and PORT + VLAN 6 represent different service interfaces; the delay link selection items include delay links that use different delays for data transmission, that is, for a lossless link of the same interface, different delay links can be selected for data transmission according to the delay link selection; in Table 1, the service flow IDs corresponding to each of the six service interfaces are 1, 2, 3, 4, 5, and 6, respectively, the service types of messages to be transmitted with service flow IDs 1 to 4 are all lossless transmission services, and the service types of messages to be transmitted with service flow IDs 5 and 66 are all ordinary services; L1, L2, and L3 represent links with different transmission delays.

[0083] Reference Figure 4 , service 1 represents lossless transmission service, refer to Figure 5 , Service 2 represents lossless transmission service; for messages of lossless transmission service, lossless links can be established through the OTN management and control platform, and N (N>1) network side links (such as link1 and link2) need to be established on the line side. In order to improve the role of protecting service data, link1 and link2 do not need to adopt a common optical path transmission mechanism. In the embodiment of the present application, different optical path data units (ODUk) can be configured to establish different OTN channels and send them to different links.

[0084] In some embodiments, reference Figure 4 , a lossless optional delay data header can be inserted into the message to be transmitted on the CPE OTN chip of CO1 and CO2, and then the message to be transmitted is sent on N links to form data transmission on the network side.

[0085] In some embodiments of the present application, the lossless optional delay data header may include: a service flow identifier of the message to be transmitted, an identifier of a link used to transmit the message, a lossless identifier corresponding to the message to be transmitted, and a serial number (SN) of the message to be transmitted.

[0086] In some embodiments, the service flow identifier may be a service flow ID or other identifier, the identifier of the link used to transmit the message may be a link ID, and the lossless identifier is used to indicate whether the service type of the message to be transmitted is a lossless transmission service. For example, when the lossless identifier is 1, the service type of the message to be transmitted may be considered as a lossless transmission service. When the lossless identifier is 0 or other values, the service type of the message to be transmitted may be considered as a non-lossless transmission service.

[0087] The SN of the message to be transmitted may represent the sequential identity document (ID) of the message to be transmitted. When the OTN device receives multiple message data, the service sequence of the multiple message data may be determined according to the SN of each message data in the multiple message data.

[0088] In some embodiments, the service flow ID is 2 bytes of data, the lossless identifier is 1 byte of data, the identifier of the link used to transmit the message is 2 bytes of data, and the SN is 3 bytes of data.

[0089] The message processing method provided in the embodiment of the present application includes a series of steps, but the message processing method provided in the embodiment of the present application is not limited to the recorded steps. Similarly, the message processing device provided in the embodiment of the present application includes a series of modules, but the device provided in the embodiment of the present application is not limited to including the modules explicitly recorded, and can also include modules required to obtain relevant information or perform processing based on information.

[0090] Figure 6 Flow chart of a message processing method applied to a first OTN device according to an embodiment of the present application. Figure 6 As shown, the process may include:

[0091] Step 601: When a message of a first service is sent to a second OTN device through a predetermined first link, a switching request is received, where the switching request indicates a request to switch the service type of the message to be transmitted from the first service to the second service; one of the first service and the second service is a lossless transmission service, and the other service is a non-lossless transmission service.

[0092] In the embodiment of the present application, the first link is a communication link between the first OTN device and the second OTN device, and the first link may be one communication link or may include multiple communication links. Upon receiving the switching request, the first OTN device may determine that the message to be transmitted is switched from the message of the first service to the message of the second service. Here, the switching request may be a request sent by the OTN control platform to the first OTN device, and the OTN control platform may also send the switching request to the second OTN device.

[0093] Step 602: Determine a target link for transmitting a message of a second service.

[0094] In the embodiment of the present application, the target link is a communication link between the first OTN device and the second OTN device. The target link may be one communication link or may include multiple communication links.

[0095] Step 603: Send the message of the second service to the second OTN device through the target link, wherein the second OTN device is used to determine the target link after receiving the switching request, and to complete the reception of the message of the first service through the predetermined first link after receiving the switching request.

[0096] In practical applications, steps 601 to 603 may be implemented based on a processor of the first OTN device, and the processor may be at least one of an application specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor.

[0097] It can be seen that when the first OTN device sends the message of the first service to the second OTN device through the first link, if a switching request is received, it can be determined that the service type of the message to be transmitted needs to be switched from the first service to the second service. At this time, the first OTN device can determine the target link for transmitting the message of the second service, and can send the message of the second service to the second OTN device through the target link, so that the second OTN device can receive the message of the second service; at the same time, after receiving the switching request, the second OTN device can also complete the reception of the message of the first service through the first link, so that the second OTN device will not lose the message of the first service being transmitted before the service type switching, which is conducive to realizing lossless switching from the process of receiving the message of the first service to the process of receiving the message of the second service.

[0098] In some embodiments of the present application, when the first service is a non-lossless transmission service and the second service is a lossless transmission service, the target link includes the first link and the second link.

[0099] Reference Figure 7 , when the first service is a non-lossless transmission service and the second service is a lossless transmission service, the first link is link1; when link1 between the first OTN device A and the second OTN device B transmits a message of the non-lossless transmission service, if the first OTN device A receives a switching request, it can determine a target link for transmitting the message of the second service, and the target links include link1 and link2, and link2 is the second link.

[0100] In a case where the first service is a lossless transmission service and the second service is a non-lossless transmission service, the first link includes a target link and a third link.

[0101] Reference Figure 8 , when the first service is a lossless transmission service and the second service is a non-lossless transmission service, the first link includes link1 and link2, and link2 is a third link; when the first link between the first OTN device A and the second OTN device B transmits a message of the lossless transmission service, if the first OTN device A receives a switching request, it can determine a target link for transmitting the message of the second service, and the target link is link1.

[0102] It can be seen that in the scenario where the first service is a non-lossless transmission service and the second service is a lossless transmission service, the first OTN device can use the first link that is transmitting the message to start transmitting the message of the second service, thereby fully utilizing the first link; in the scenario where the first service is a lossless transmission service and the second service is a non-lossless transmission service, the first OTN device can use the target link that is transmitting the message to start transmitting the message of the second service, thereby fully utilizing the target link.

[0103] In some embodiments of the present application, when the first service is a non-lossless transmission service and the second service is a lossless transmission service, a process of sending a message of the second service to a second OTN device through a target link includes: adding first indication information to the message of the second service, the first indication information being used to indicate that the service type of the message of the second service is a lossless transmission service; and sending the message of the second service with the first indication information added thereto to the second OTN device through the target link.

[0104] It can be seen that after sending the message of the second service with the first indication information added to the second OTN device, the second OTN device can determine that the service type of the received message is the second service based on the first indication information in the received message, so that the received message of the second service can be processed in a targeted manner.

[0105] Fig. 9 Flow chart of the message processing method applied to the second OTN device in the embodiment of the present application, such as Fig. 9 As shown, the process may include:

[0106] Step 901: receiving a switching request, where the switching request indicates a request to switch the service type of a message to be transmitted from a first service to a second service; one of the first service and the second service is a lossless transmission service, and the other is a non-lossless transmission service.

[0107] Step 902: Determine a target link for transmitting a message of a second service.

[0108] Step 903: Complete reception of the message of the first service through the predetermined first link, and receive the message of the second service through the target link.

[0109] In practical applications, steps 901 to 903 may be implemented based on a processor of the second OTN device, and the processor may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, controller, microcontroller, and microprocessor.

[0110] It can be seen that when the second OTN device receives the switching request, it can determine that the service type of the message to be transmitted needs to be switched from the first service to the second service. At this time, the target link for transmitting the message of the second service can be determined, and the message of the second service can be received through the target link; at the same time, after receiving the switching request, the second OTN device can also complete the reception of the message of the first service through the first link, so that the second OTN device will not lose the message of the first service being transmitted before the service type is switched, which is conducive to realizing lossless switching from the process of receiving the message of the first service to the process of receiving the message of the second service.

[0111] In some embodiments of the present application, when the second OTN device receives a message through any link, if it is determined that the received message contains first indication information, it is determined that the message received by the second OTN device is a message of a lossless transmission service; if it is determined that the received message does not contain the first indication information, it is determined that the received message is a message of a non-lossless transmission service; the first indication information is used to indicate that the service type of the message is a lossless transmission service.

[0112] It can be seen that after the first OTN device sends the message of the second service with the first indication information added to the second OTN device, the second OTN device can determine that the service type of the received message is the second service according to the first indication information in the received message, so that the received message of the second service can be processed in a targeted manner; after the first OTN device sends the message without the first indication information added to the second OTN device, the second OTN device can determine that the service type of the received message is the first service when it is determined that the received message does not contain the first indication information, so that the received message of the first service can be processed in a targeted manner.

[0113] In some embodiments of the present application, when the first service is a non-lossless transmission service and the second service is a lossless transmission service, the method further includes: when the message received through the first link is a message of the first service, processing the message of the first service through a preset first message processing process; when the message received through the first link is a message of the second service, processing the message of the second service through a preset second message processing process; the first message processing process represents a process for processing messages of the non-lossless transmission service, and the second message processing process represents a process for processing messages of the lossless transmission service.

[0114] When a message of the first service is received through the second link, the message received through the second link is discarded; when the message received on the second link is a message of the second service and the second message processing flow is in an executing state, the message of the second service is processed through the second message processing flow; when the message received on the second link is a message of the second service and the second message processing flow is not in an executing state, the message of the second service is cached, and after the second message processing flow is started, the cached message of the second service is processed through the second message processing flow.

[0115] In some embodiments, when the service type of the message to be transmitted is a non-lossless transmission service, a configuration table of the non-lossless transmission service can be established in both the first OTN device and the second OTN device. Table 2 is an example of a configuration table of the non-lossless transmission service, which shows the service flow IDs corresponding to different interfaces, the service types of the messages to be transmitted, and the delay link selection items. In Table 2, PORT+VLAN 5 and PORT+VLAN 6 represent different service interfaces; the service flow IDs corresponding to the two service interfaces are 5 and 6 respectively, and the service types of the messages to be transmitted with service flow IDs 5 and 6 are both ordinary services; link1 and linkn represent links with different transmission delays.

[0116] Table 2

[0117]

[0118] When the first OTN device and the second OTN device receive the switching request, and the switching request is a request to switch the service type of the message to be transmitted from the non-lossless transmission service to the lossless transmission service, the service type of the message to be transmitted with the service flow ID 5 in Table 2 can be modified to the lossless transmission service, and the delay link selection items of the message to be transmitted with the service flow ID 5 in Table 2 can be modified to link1 and link2, thereby obtaining the configuration table of the service data shown in Table 3.

[0119] Table 3

[0120]

[0121] In the case where the first service is a non-lossless transmission service and the second service is a lossless transmission service, if the first OTN device receives a switching request, it can be determined that the target link includes link1 and link2, and the first OTN device can send a message of the second service on link1 and link2. Exemplarily, the message of the second service carries a lossless optional delay data header.

[0122] The second OTN device can receive the message of the second service through link1 and link2. However, since there are still ordinary service messages in link1, it is necessary to implement lossless switching from the reception process of the first service message to the reception process of the second service message in the second OTN device. The second OTN device will not lose the message of the first service being transmitted before the service type switching.

[0123] Reference Fig.10 , the OTN management and control platform forms a communication connection with the first OTN device A and the second OTN device B respectively. Exemplarily, the OTN management and control platform can send a switching request to the first OTN device A and the second OTN device B at the same time.

[0124] Reference Fig.10 , the second OTN device B can receive the message of the non-lossless transmission service sent by the first OTN device through link1. After the second OTN device receives the switching request, it can receive the message of the lossless transmission service through link1 and link2, and can also complete the reception of the message of the non-lossless transmission service through link1.

[0125] Reference Fig.11After the second OTN device receives the message, it determines the message received through link1 and the message received through link2. It determines whether the message received through link1 is a message of a non-lossless transmission service. If yes, the message received through link1 can be processed through a preset first message processing flow; if not, the preset second message processing flow can be started, and the message received through link1 can be processed through the preset second message processing flow.

[0126] Reference Fig.11 After receiving a message through link2, it can be determined whether the second message processing flow has been started. If so, the message received through link2 can be processed through the second message processing flow; if not, it is determined whether the message received through link2 is a message of a non-lossless transmission service. If the message received through link2 is a message of a non-lossless transmission service, the message received through link2 can be discarded; if the message received through link2 is not a message of a non-lossless transmission service, it means that the message received through link2 is a message of a lossless transmission service. At this time, the message received through link2 can be cached. After waiting for the second message processing flow to start, the cached message is processed through the second message processing flow.

[0127] It can be seen that when the message received through the first link is a message of a non-lossless transmission service, since the first link is a predetermined link for receiving messages of the non-lossless transmission service, processing the message of the non-lossless transmission service through the preset first message processing flow is conducive to completely realizing the reception and processing of the message of the non-lossless transmission service; when the message received through the first link is a message of a lossless transmission service, since the first link is a link for receiving messages of the lossless transmission service, therefore, processing the message of the lossless transmission service through the preset second message processing flow can realize the reception and processing of the message of the lossless transmission service.

[0128] When a message of a non-lossless transmission service is received through the second link, since the second link is not a predetermined link for receiving messages of the non-lossless transmission service, it is not necessary to process the message received through the second link, so that the message received through the second link can be reasonably discarded; when a message of a lossless transmission service is received through the second link and the second message processing flow is in an executing state, it indicates that the flow for processing messages of the lossless transmission service has been started, and since the second link is a link for receiving messages of the lossless transmission service, the lossless transmission service is processed through the second message processing flow. The message of the lossless transmission service is processed, which is conducive to reliably realizing the reception and processing of the message of the lossless transmission service; when the message of the lossless transmission service is received through the second link and the second message processing process is not in the executing state, it means that the process for processing the message of the lossless transmission service has not been started. Since the second link is a link for receiving the message of the lossless transmission service, the message of the lossless transmission service can be cached. After the second message processing process is started, the cached message of the lossless transmission service is processed through the second message processing process, which is conducive to reliably realizing the reception and processing of the message of the lossless transmission service.

[0129] In some embodiments of the present application, when the first service is a lossless transmission service and the second service is a non-lossless transmission service, the method further includes:

[0130] When the message received through the first link is a message of the first service, the message of the first service is processed through a preset second message processing flow;

[0131] When the message received through the first link is a message of the second service, the message of the second service is cached, and after waiting for the second message processing flow to be completed, the message of the second service is processed through the preset first message processing flow;

[0132] When a message is received through the third link and the first message processing process is in an executing state, discarding the message received through the third link;

[0133] When the message received through the third link is a message of the second service and the first message processing flow is not in the executing state, discarding the message received through the third link;

[0134] When the message received through the third link is a message of the first service and the first message processing flow is not in the executing state, the message of the first service is processed through the second message processing flow.

[0135] In some embodiments, when the service type of the message to be transmitted is a lossless transmission service, a configuration table of service data may be established in both the first OTN device and the second OTN device.

[0136] Table 4 is an example of a configuration table for service data. Table 4 shows the service flow IDs corresponding to different interfaces, the service types of messages to be transmitted, and delay link options. In Table 4, PORT+VLAN 5 and PORT+VLAN 6 represent different service interfaces; the service flow IDs corresponding to the two service interfaces are 5 and 6, respectively; the service type of messages to be transmitted with service flow ID 5 is lossless transmission service, and the service type of messages to be transmitted with service flow ID 6 is ordinary service; link1, link2, and linkn represent links with different transmission delays.

[0137] Table 4

[0138]

[0139] When the first OTN device and the second OTN device receive the switching request, and the switching request is a request to switch the service type of the message to be transmitted from the lossless transmission service to the non-lossless transmission service, the service type of the message to be transmitted with the service flow ID 5 in Table 4 can be modified to a common service, and the delay link selection item of the message to be transmitted with the service flow ID 5 in Table 4 can be modified to link1 or an automatically configured link, thereby obtaining the configuration table of the service data shown in Table 5.

[0140] Table 5

[0141]

[0142] In some embodiments, the second OTN device may automatically select a link between link1 and link2 according to the receiving time point when link1 and link2 receive the message with the same SN. For example, the receiving time point when link1 and link2 receive the message with the same SN may be determined to be an earlier receiving time point. The link corresponding to the earlier time point is automatically selected between link1 and link2.

[0143] In some embodiments, the second OTN device may also determine the delay link selection item at link1 and link2 according to the fixed configuration information. For example, in the fixed configuration information, the delay link selection item for the message of the common service with the service flow ID 5 is link1.

[0144] When the first service is a lossless transmission service and the second service is a non-lossless transmission service, if the first OTN device receives a switching request, it can be determined that the target link is link1, and the first OTN device can send a message of the second service on link1. Exemplarily, the message of the second service does not carry a lossless optional delay data header.

[0145] When receiving the switching request, the second OTN device prepares to switch the link for receiving the message from the dual-channel to the single-channel. During the switching, the second OTN device needs to achieve the goal of receiving data messages without packet loss.

[0146] Reference Fig.12 , the OTN control platform forms communication connections with the first OTN device A and the second OTN device B respectively. Exemplarily, the OTN control platform can simultaneously send a switching request to the first OTN device A and the second OTN device B. The second OTN device B can receive the message of the lossless transmission service sent by the first OTN device through link1 and link2. After the second OTN device receives the switching request, it can receive the message of the non-lossless transmission service through link1, and can also complete the reception of the message of the non-lossless transmission service through link1 and link2.

[0147] Reference Fig.13 After the second OTN device receives the message, it determines the message received through link1 and the message received through link2. It determines whether the message received through link1 is a message of lossless transmission service. If yes, the message received through link1 can be processed through the preset second message processing flow; if not, the message received through link1 can be cached, and after waiting for the second message processing flow to be executed, the message received through link1 can be processed through the preset first message processing flow.

[0148] Reference Fig.13 After receiving a message through link2, it can be determined whether the first message processing flow has been started. If so, the message received through link2 is discarded; if not, it is determined whether the message received through link2 is a message of a non-lossless transmission service. If the message received through link2 is a message of a non-lossless transmission service, the message received through link2 is discarded; if the message received through link2 is not a message of a non-lossless transmission service, it means that the message received through link2 is a message of a lossless transmission service. At this time, the message received through link2 can be processed through the second message processing flow, and the second message processing flow is waited for to be completed.

[0149] It can be seen that when the message received through the first link is a message of the lossless transmission service, since the first link is a predetermined link for receiving messages of the lossless transmission service, the message of the lossless transmission service is processed through the preset first message processing flow, which is conducive to completely realizing the reception and processing of the message of the lossless transmission service; when the message received through the first link is a message of a non-lossless transmission service, the message of the non-lossless transmission service can be cached, and after waiting for the second message processing flow to be executed, the message of the non-lossless transmission service is processed through the preset first message processing flow. In this way, the reception and processing of the message of the lossless transmission service can be completely realized by executing the second message processing flow, and the second OTN device will not lose the message of the lossless transmission service.

[0150] When a message is received through the third link and the first message processing flow is in the executing state, it means that the flow for processing messages of non-lossless transmission services has been started. Since the third link is not a predetermined link for transmitting messages of non-lossless transmission services, the message received through the third link cannot be processed through the first message processing flow. In this case, the message received through the third link can be reasonably discarded. When the message received through the third link is a message of non-lossless transmission services and the first message processing flow is not in the executing state, since the third link is not a predetermined link for transmitting messages of non-lossless transmission services, it can be considered that the message received through the third link is an erroneous message. In this case, the message received through the third link can be reasonably discarded. When the message received through the third link is a message of lossless transmission services and the first message processing flow is not in the executing state, the message of lossless transmission services is processed through the second message processing flow. In this way, the reception and processing of messages of lossless transmission services can be completely realized by executing the second message processing flow.

[0151] In some embodiments of the present application, the second OTN device receives a message carrying second indication information through any link, where the second indication information is used to indicate the SN of the message;

[0152] After determining the target link for transmitting the message of the lossless transmission service, the second OTN device can also determine the size of the cache space for caching the message based on the earliest time point and the latest time point of receiving the message with the same SN by each link in the target link; and the size of the cache space for caching the message based on the time difference between the earliest time point and the latest time point, and the size of the cache space is positively correlated with the time difference.

[0153] Exemplarily, after starting the second message processing flow, the second OTN device can determine the delay difference of each link according to the arrival time of the message with the same SN in each link, calculate the equivalent link distance difference between different links in each link according to the delay difference of each link, and report the equivalent link distance difference between different links in each link to the OTN management and control platform. The OTN management and control platform can use the equivalent link distance difference between different links in each link as the basis for determining the delay link selection item; the second OTN device can also determine the cache space size according to the delay difference of each link, that is, allocate local link cache space according to the delay difference size to optimize local cache control.

[0154] It can be seen that if there is a time difference in receiving time of messages with the same SN received through different links, it is necessary to cache the messages received earlier, and when messages with the same SN are received through each link, the messages with the same SN are processed. Therefore, when the time difference between the receiving time points of messages with the same SN received by each link is large, it is necessary to set a larger cache space for caching the messages received earlier. Therefore, when the size of the cache space is positively correlated with the above-mentioned time difference, the local cache space of the second OTN device can be optimized, which is beneficial to saving the local cache space of the second OTN device and simplifying the business processing flow.

[0155] The embodiment of the present application proposes a new CPE OTN service chip processing flow, defines a lossless link and packet loss-free fast switching method for an OTN chip, implements a lossless fast switching method for service data when a lossless link is established and revoked, optimizes a fast switching reception scheme, and implements lossless service switching reception, provides better service transmission capabilities, and implements a more cost-effective CPE OTN chip design.

[0156] In the embodiment of the present application, when a lossless link is established or cancelled, a stable switching between a normal service and a lossless transmission service can be achieved.

[0157] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0158] Based on the message processing method proposed in the above-mentioned embodiment, the embodiment of the present application also proposes a message processing device.

[0159] Fig.14 FIG. 1 is a structural diagram of a message processing device applied to a first OTN device according to an embodiment of the present application. Fig.14 As shown, the device may include:

[0160] The transceiver module 1401 is configured to receive a switching request when sending a message of the first service to the second OTN device through a predetermined first link, wherein the switching request indicates a request to switch the service type of the message to be transmitted from the first service to the second service; one of the first service and the second service is a lossless transmission service, and the other service is a non-lossless transmission service;

[0161] The first processing module 1402 is used to determine a target link for transmitting the message of the second service; and send the message of the second service to the second OTN device through the target link, wherein the second OTN device is used to determine the target link after receiving the switching request, and is used to complete the reception of the message of the first service through a predetermined first link after receiving the switching request.

[0162] In some embodiments, the first service is a non-lossless transmission service, and the second service is a lossless transmission service;

[0163] The first processing module 1402 is configured to send the message of the second service to the second OTN device through the target link, including:

[0164] adding first indication information to a message of the second service, where the first indication information is used to indicate that a service type of the message of the second service is a lossless transmission service;

[0165] The message of the second service added with the first indication information is sent to the second OTN device through the target link.

[0166] In some embodiments, when the first service is a non-lossless transmission service and the second service is a lossless transmission service, the target link includes a first link and a second link; when the first service is a lossless transmission service and the second service is a non-lossless transmission service, the first link includes the target link and a third link.

[0167] Fig.15 FIG. 1 is a structural diagram of a message processing device applied to a second OTN device according to an embodiment of the present application. Fig.15 As shown, the device may include:

[0168] The receiving module 1501 is used to receive a switching request, where the switching request indicates a request to switch the service type of the message to be transmitted from a first service to a second service; one of the first service and the second service is a lossless transmission service, and the other service is a non-lossless transmission service;

[0169] The second processing module 1502 is used to determine a target link for transmitting the message of the second service; complete the reception of the message of the first service through a predetermined first link, and receive the message of the second service through the target link.

[0170] In some embodiments, when the first service is a non-lossless transmission service and the second service is a lossless transmission service, the target link includes a first link and a second link; when the first service is a lossless transmission service and the second service is a non-lossless transmission service, the first link includes the target link and a third link.

[0171] In some embodiments, when the first service is a non-lossless transmission service and the second service is a lossless transmission service, the second processing module 1502 is further configured to:

[0172] When the message received through the first link is a message of the first service, the message of the first service is processed through a preset first message processing process; when the message received through the first link is a message of the second service, the message of the second service is processed through a preset second message processing process; the first message processing process represents a process for processing messages of the non-lossless transmission service, and the second message processing process represents a process for processing messages of the lossless transmission service;

[0173] When a message of the first service is received through the second link, the message received through the second link is discarded; when the message received through the second link is a message of the second service and the second message processing procedure is in an executing state, the message of the second service is processed through the second message processing procedure; when the message received through the second link is a message of the second service and the second message processing procedure is not in an executing state, the message of the second service is cached, and after the second message processing procedure is started, the cached message of the second service is processed through the second message processing procedure.

[0174] In some embodiments, when the first service is a lossless transmission service and the second service is a non-lossless transmission service, the second processing module 1502 is further configured to:

[0175] When the message received through the first link is a message of the first service, the message of the first service is processed through a preset second message processing process; when the message received through the first link is a message of the second service, the message of the second service is cached, and after waiting for the second message processing process to be executed, the message of the second service is processed through a preset first message processing process; the first message processing process represents a process for processing messages of the non-lossless transmission service, and the second message processing process represents a process for processing messages of the lossless transmission service;

[0176] When a message is received through the third link and the first message processing process is in an executing state, the message received through the third link is discarded; when the message received through the third link is a message of the second service and the first message processing process is not in an executing state, the message received through the third link is discarded; when the message received through the third link is a message of the first service and the first message processing process is not in an executing state, the message of the first service is processed through the second message processing process.

[0177] In some embodiments, the second processing module 1502 is further used to determine that the message received by the second OTN device is a message of a lossless transmission service when the second OTN device receives a message through any link and the message received by the second OTN device includes first indication information; when the message received by the second OTN device does not include the first indication information, determine that the message received by the second OTN device is a message of a non-lossless transmission service; the first indication information is used to indicate that the service type of the message is a lossless transmission service.

[0178] In some embodiments, the second OTN device receives a message carrying second indication information through any link, and the second indication information is used to indicate the SN of the message; the target link includes multiple links, and the second OTN device is used to process the messages with the same SN received through each link when each link in the target link receives a message with the same SN;

[0179] The second processing module 1502 is also used to, after determining the target link for transmitting the message of the second service of the lossless transmission service, determine the size of the cache space for caching the message with the same SN based on the earliest time point and the latest time point of receiving the message with the same SN by each link in the target link; based on the time difference between the earliest time point and the latest time point, wherein the size of the cache space is positively correlated with the time difference.

[0180] In practical applications, the transceiver module 1401, the first processing module 1402, the receiving module 1501 and the second processing module 1502 can all be implemented based on a processor.

[0181] It should be noted that the description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0182] It should be noted that in the embodiments of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment 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, including a number of instructions to enable a computer device (which can be a terminal, a server, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0183] Correspondingly, an embodiment of the present application further provides a computer program product, which includes computer executable instructions, and the computer executable instructions are used to implement any message processing method provided in the embodiment of the present application.

[0184] Correspondingly, an embodiment of the present application further provides a computer storage medium, on which computer executable instructions are stored, and the computer executable instructions are used to implement any one of the message processing methods provided in the above embodiments.

[0185] Fig.16 A schematic diagram of the composition structure of a first electronic device applied to a first OTN device provided in an embodiment of the present application is shown in FIG. Fig.16 As shown, the first electronic device 160 may include:

[0186] A first memory 161, used for storing executable instructions;

[0187] The first processor 162 is configured to implement any one of the above-mentioned message processing methods applied to the first OTN device when executing the executable instructions stored in the first memory 161.

[0188] The first processor 162 may be at least one of an ASIC, a DSP, a DSPD, a PLD, a FPGA, a CPU, a controller, a microcontroller, and a microprocessor.

[0189] Fig.17 A schematic diagram of the composition structure of a second electronic device applied to a second OTN device provided in an embodiment of the present application, such as Fig.17 As shown, the second electronic device 170 may include:

[0190] A second memory 171, used for storing executable instructions;

[0191] The second processor 172 is configured to implement any one of the above-mentioned message processing methods applied to the second OTN device when executing the executable instructions stored in the second memory 171.

[0192] The second processor 172 may be at least one of an ASIC, a DSP, a DSPD, a PLD, a FPGA, a CPU, a controller, a microcontroller, and a microprocessor.

[0193] The above-mentioned computer-readable storage medium / memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory (Flash Memory), a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM) and the like; it can also be various terminals including one or any combination of the above-mentioned memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.

[0194] In some embodiments, the functions or modules included in the device provided in the embodiments of the present application can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments. For the sake of brevity, it will not be repeated here.

[0195] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.

[0196] The methods disclosed in the various method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0197] The features disclosed in the various product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0198] The features disclosed in the various method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0199] 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, 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, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0200] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A message processing method, It is characterized in that Applied in a first optical transport network OTN device, the method includes: When a message of the first service is sent to the second OTN device through a predetermined first link, a switching request is received, where the switching request indicates a request to switch the service type of the message to be transmitted from the first service to the second service; one of the first service and the second service is a lossless transmission service, and the other service is a non-lossless transmission service; Determining a target link for transmitting a message of the second service; The message of the second service is sent to the second OTN device through the target link, wherein the second OTN device is used to determine the target link after receiving the switching request, and is used to complete the reception of the message of the first service through a predetermined first link after receiving the switching request.

2. The method according to claim 1, It is characterized in that The first service is a non-lossless transmission service, and the second service is a lossless transmission service; Correspondingly, sending the message of the second service to the second OTN device through the target link includes: adding first indication information to a message of the second service, where the first indication information is used to indicate that a service type of the message of the second service is a lossless transmission service; The message of the second service added with the first indication information is sent to the second OTN device through the target link.

3. The method according to claim 1 or 2, It is characterized in that In a case where the first service is a non-lossless transmission service and the second service is a lossless transmission service, the target link includes a first link and a second link; In a case where the first service is a lossless transmission service and the second service is a non-lossless transmission service, the first link includes the target link and a third link.

4. A message processing method, It is characterized in that Applied to a second optical transport network OTN device, the method comprises: receiving a switching request, wherein the switching request indicates a request to switch a service type of a message to be transmitted from a first service to a second service; one of the first service and the second service is a lossless transmission service, and the other service is a non-lossless transmission service; Determining a target link for transmitting a message of the second service; The message of the first service is received through a predetermined first link, and the message of the second service is received through the target link.

5. The method according to claim 4, It is characterized in that In a case where the first service is a non-lossless transmission service and the second service is a lossless transmission service, the target link includes a first link and a second link; In a case where the first service is a lossless transmission service and the second service is a non-lossless transmission service, the first link includes the target link and a third link.

6. The method according to claim 5, It is characterized in that In a case where the first service is a non-lossless transmission service and the second service is a lossless transmission service, the method further includes: When the message received through the first link is a message of the first service, the message of the first service is processed through a preset first message processing process; when the message received through the first link is a message of the second service, the message of the second service is processed through a preset second message processing process; the first message processing process represents a process for processing messages of the non-lossless transmission service, and the second message processing process represents a process for processing messages of the lossless transmission service; When a message of the first service is received through the second link, the message received through the second link is discarded; when the message received through the second link is a message of the second service and the second message processing procedure is in an executing state, the message of the second service is processed through the second message processing procedure; when the message received through the second link is a message of the second service and the second message processing procedure is not in an executing state, the message of the second service is cached, and after the second message processing procedure is started, the cached message of the second service is processed through the second message processing procedure.

7. The method according to claim 5, It is characterized in that In a case where the first service is a lossless transmission service and the second service is a non-lossless transmission service, the method further includes: When the message received through the first link is a message of the first service, the message of the first service is processed through a preset second message processing process; when the message received through the first link is a message of the second service, the message of the second service is cached, and after waiting for the second message processing process to be executed, the message of the second service is processed through a preset first message processing process; the first message processing process represents a process for processing messages of the non-lossless transmission service, and the second message processing process represents a process for processing messages of the lossless transmission service; When a message is received through the third link and the first message processing process is in an executing state, the message received through the third link is discarded; when the message received through the third link is a message of the second service and the first message processing process is not in an executing state, the message received through the third link is discarded; when the message received through the third link is a message of the first service and the first message processing process is not in an executing state, the message of the first service is processed through the second message processing process.

8. The method according to any one of claims 4 to 7, It is characterized in that When the second OTN device receives a message through any link, the method further includes: When the message received by the second OTN device includes the first indication information, it is determined that the message received by the second OTN device is a message of a lossless transmission service; when the message received by the second OTN device does not include the first indication information, it is determined that the message received by the second OTN device is a message of a non-lossless transmission service; the first indication information is used to indicate that the service type of the message is a lossless transmission service.

9. The method according to any one of claims 4 to 7, It is characterized in that The second OTN device receives a message carrying second indication information through any link, where the second indication information is used to indicate a sequence identifier SN of the message; the target link includes multiple links, and the second OTN device is used to process the messages with the same SN received through each link when each link in the target link receives a message with the same SN; After determining a target link for transmitting a message of the lossless transmission service, the method further includes: The earliest time point and the latest time point of receiving the message with the same SN at each link in the target link; According to the time difference between the earliest time point and the latest time point, the size of the cache space used to cache the messages with the same SN is determined, and the size of the cache space is positively correlated with the time difference.

10. A message processing device, It is characterized in that The device is applied to a first optical transport network OTN device, and the device includes: A transceiver module, configured to receive a switching request when sending a message of a first service to a second OTN device through a predetermined first link, wherein the switching request indicates a request to switch a service type of the message to be transmitted from the first service to a second service; one of the first service and the second service is a lossless transmission service, and the other service is a non-lossless transmission service; The first processing module is used to determine a target link for transmitting the message of the second service; and send the message of the second service to the second OTN device through the target link, wherein the second OTN device is used to determine the target link after receiving the switching request, and is used to complete the reception of the message of the first service through a predetermined first link after receiving the switching request.

11. A message processing device, It is characterized in that The device is applied to a second optical transport network OTN device, and the device includes: A receiving module, configured to receive a switching request, wherein the switching request indicates a request to switch a service type of a message to be transmitted from a first service to a second service; one of the first service and the second service is a lossless transmission service, and the other service is a non-lossless transmission service; The second processing module is used to determine a target link for transmitting the message of the second service; complete the reception of the message of the first service through a predetermined first link, and receive the message of the second service through the target link.

12. An electronic device, It is characterized in that Applied to a first optical transport network OTN device, the electronic device processor and a memory for storing a computer program that can be run on the processor; wherein, The processor is used to run the computer program to execute the message processing method according to any one of claims 1 to 3.

13. An electronic device, It is characterized in that Applied to a second optical transport network OTN device, the electronic device processor and a memory for storing a computer program that can be run on the processor; wherein, The processor is used to run the computer program to execute the message processing method according to any one of claims 4 to 9.

14. A computer storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the message processing method according to any one of claims 1 to 9 is implemented.