Message processing method and device, equipment and readable storage medium
By using status information and sequence identification information between CPE OTN devices in a timely manner to identify and resend packet loss packets, the problem of low transmission reliability is solved and the packet loss rate is significantly reduced.
Patent Information
- Application Number
- CN202310493929.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-05
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2043-05-05
AI Technical Summary
In the prior art, when transmitting service packets between CPE OTN devices, it is difficult to detect and re-transmit packet loss messages in time, resulting in high packet loss rate and low transmission reliability.
By receiving service messages and data headers sent by the second device on the target network side link, the status information and sequence identification information are used to determine the message reception status, and packet loss messages are resented in a timely manner to improve transmission reliability.
It effectively reduces the packet loss rate of service packets, improves the reliability of transmission, and ensures timely transmission and processing of packets.
Smart Images

Figure CN118900290A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to a message processing method, device, equipment and readable storage medium. Background Art
[0002] For multi-service access, the Optical Transport Network (OTN) needs to support transmission pipelines for a variety of different services, including the fifth-generation mobile communication technology (5G), the fourth-generation mobile communication technology (4G), customer and home broadband, etc. Different services require different transmission levels. For some types of services, it is required that the corresponding service messages are transmitted between any two customer-side OTN devices (Customer Premise Equipment OTN, CPE OTN) without packet loss.
[0003] In the prior art, when CPE OTN devices transmit service messages, it is difficult to timely discover and resend the service message when the service message is not correctly received, resulting in a high packet loss rate of the service message and low transmission reliability of the service message. Summary of the invention
[0004] The embodiments of the present invention provide a message processing method, apparatus, device and readable storage medium to solve the problems of high packet loss rate of business messages and low transmission reliability of business messages.
[0005] In a first aspect, an embodiment of the present invention provides a message processing method, which is applied to a first device, and the method includes:
[0006] receiving, through the target network side link, a first service message and a first data header sent by a second device, where the first data header is associated with the first service message, and the first data header includes first state information and first sequence identification information, where the first state information is used to characterize a reception state of the service message sent by the first device by the second device, and the first sequence identification information is used to identify a sequence number of the first service message;
[0007] Determine a second service message based on the first status information;
[0008] Associating a second data header with the second service message, where the second data header includes second state information and second sequence identification information, where the second state information is used to characterize a reception state of the service message sent by the first device to the second device, and the second sequence identification information is used to identify a sequence number of the second service message;
[0009] The second service message and the second data header are sent to the second device through the target network side link.
[0010] Optionally, the target network side link includes N network side links, where N is a positive integer greater than 1; and associating the second data header with the second service message includes:
[0011] Generate N second data headers corresponding one-to-one to the N network-side links, each of the second data headers including a corresponding link identifier;
[0012] Associating each of the N second data headers with the second service message respectively;
[0013] The sending the second service message and the second data header to the second device through the target network side link includes:
[0014] The second data header and the second service message corresponding to the network side link are sent to the second device through each of the N network side links.
[0015] Optionally, the first status information includes first confirmation identification information and first packet loss identification information, the first confirmation identification information is used to identify the sequence number of the service message successfully received by the second device in the service message sent by the first device, and the first packet loss identification information is used to identify the sequence number of the service message failed to be received by the second device in the service message sent by the first device.
[0016] Optionally, determining the second service message based on the first state information includes:
[0017] Based on the first packet loss identification information, a service message sent by the first device and which fails to be received by the second device is determined as a second service message.
[0018] Optionally, the first data header further includes service identification information, where the service identification information is used to characterize a target service corresponding to the first service message. Before sending the second service message and the second data header to the second device through the target network side link, the method further includes:
[0019] Determine the target service based on the service identification information;
[0020] Based on the predefined correspondence between the service and the network side link, a target network side link corresponding to the target service is determined.
[0021] Optionally, associating the second data header with the second service message includes:
[0022] Add the second data header to the second service message.
[0023] Optionally, associating the second data header with the second service message includes:
[0024] The second data header is inserted into the idle bytes between the second service messages.
[0025] In a second aspect, an embodiment of the present invention further provides a message processing device, wherein a first device includes the message processing device, and the message processing device includes:
[0026] a receiving module, configured to receive, through a target network side link, a first service message and a first data header sent by a second device, wherein the first data header is associated with the first service message, the first data header includes first status information and first sequence identification information, the first status information is used to characterize a reception status of the service message sent by the first device by the second device, and the first sequence identification information is used to identify a sequence number of the first service message;
[0027] A first determining module, used to determine a second service message based on the first state information;
[0028] an associating module, configured to associate a second data header with the second service message, wherein the second data header includes second state information and second sequence identification information, wherein the second state information is used to characterize a reception state of the service message sent by the first device to the second device, and the second sequence identification information is used to identify a sequence number of the second service message;
[0029] A sending module is used to send the second service message and the second data header to the second device through the target network side link.
[0030] In a third aspect, an embodiment of the present invention further provides a first device, comprising: a memory, a processor, and a program stored in the memory and executable on the processor;
[0031] The processor is used to read the program in the memory to implement the steps in the method described in the first aspect.
[0032] In a fourth aspect, an embodiment of the present invention further provides a readable storage medium for storing a program, wherein the program, when executed by a processor, implements the steps in the method described in the first aspect.
[0033] In an embodiment of the present application, the first device receives the first service message and the first data header sent by the second device through the target network side link. The first device can determine the reception status of the service message sent by the first device to the second device based on the first status information included in the first data header; the first device can determine the reception status of the service message sent by the first device to the second device based on the first sequence identification information included in the first data header. The first device can promptly determine the reception and transmission status of the service message, so as to promptly retransmit the service message that fails to be transmitted, thereby improving the transmission reliability of the service message and reducing the packet loss rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0035] Figure 1 It is a schematic diagram of the structure of CPE OTN transmission network equipment;
[0036] Figure 2 is a flow chart of a message processing method provided by an embodiment of the present invention;
[0037] Figure 3a This is one of the schematic diagrams of the data receiving method provided by the embodiment of the present invention;
[0038] Figure 3b This is a second schematic diagram of a data receiving method provided by an embodiment of the present invention;
[0039] Figure 4a This is a third schematic diagram of a data receiving method provided by an embodiment of the present invention;
[0040] Figure 4b This is a fourth schematic diagram of a data receiving method provided by an embodiment of the present invention;
[0041] Figure 5a is a schematic diagram of the structure of a second service message provided by an embodiment of the present invention;
[0042] Figure 5b This is one of the structural schematic diagrams of the target data message provided by the embodiment of the present invention;
[0043] Figure 5c This is the second structural diagram of the data target data message provided by the embodiment of the present invention;
[0044] Figure 6a This is one of the schematic diagrams of the transmission method of the service message provided in the embodiment of the present invention;
[0045] Figure 6b This is a second schematic diagram of a transmission method of a service message provided in an embodiment of the present invention;
[0046] Figure 7 It is a schematic diagram of the CPE OTN chip OSU mapping process provided by an embodiment of the present invention;
[0047] Figure 8 This is a schematic diagram of establishing a connection link for an OTN management and control platform provided by an embodiment of the present invention;
[0048] Fig. 9 It is a schematic diagram of the data flow for sending and receiving provided by an embodiment of the present invention;
[0049] Fig.10 It is a schematic diagram of a processing flow of a CPE OTN chip sending a service message provided by an embodiment of the present invention;
[0050] Fig.11 It is a schematic diagram of a processing flow of a CPE OTN chip receiving a service message provided by an embodiment of the present invention;
[0051] Fig.12 This is one of the schematic diagrams of the interaction process between CPE OTN chips provided in an embodiment of the present invention;
[0052] Fig.13 This is the second schematic diagram of the interaction process between CPE OTN chips provided in an embodiment of the present invention;
[0053] Fig.14 It is a structural schematic diagram of a message processing device provided by an embodiment of the present invention;
[0054] Fig.15 It is a structural diagram of a first device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of this application.
[0056] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first" and "second" are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.
[0057] An embodiment of the present invention provides a message processing method. Exemplarily, the message processing method provided by the embodiment of the present invention can be applied to a CPE OTN device to process service messages. More specifically, the method can be applied to a main chip of a CPE OTN transmission network device (referred to as a CPE OTN chip) to process service messages.
[0058] For ease of understanding, the following will first briefly introduce the relevant contents of the CPE OTN chip.
[0059] 5G networks need 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 that support massive user connections, and ultra-reliable and low latency (ultra-reliable & low latency communication, uRLLC), etc. It is foreseeable that many new user applications will be introduced in the 5G era, such as ubiquitous high-definition / ultra-high-definition and even three-dimensional (3D) holographic films and videos in dense urban areas, high-speed user experience of 100Mbps anywhere, high-speed mobile applications greater than 350km / h, sensor networks, tactile Internet, e-health, natural disaster monitoring, etc.
[0060] Due to the requirements of 5G networks, it is necessary to support the transmission of different types of services at the same time, which poses new technical challenges, such as large bandwidth, low latency, hard isolation, flexible connection, unified management and control, and high-precision time synchronization. The existing 4G transmission technology cannot meet the 5G challenges in all aspects, and a new slicing transmission network technology system is needed to support the transmission of 5G services.
[0061] 5G transmission is based on the Slicing Packet Network (SPN) mechanism. After the data enters the SPN transmission device through the user-side interface (User-to-Network Interface, UNI), it is first classified and distinguished by data type before entering the network-side interface (Network Node Interface or Network to Network Interface, NNI) forwarding process.
[0062] For multi-service access, SPN / OTN needs to support transmission pipelines for a variety of different services, including 5G, 4G, customer and home broadband. Different services require different transmission levels, involving bandwidth, latency, jitter, reliability and security, etc. Different transmission pipelines need to be configured to meet the needs. Figure 1 As shown, CPE OTN transmission network equipment supports multi-service access, supports fixed number access of customer services such as E1, Fast Ethernet (FE), Gigabit Ethernet (GE), 10GE Local Area Network (LAN), Synchronous Transfer Module (STM-Synchronous Transfer Module, STM)-1, STM-4, and supports mapping of customer-side services to OTN line ports. The main chip performs multi-service (E1, FE, GE, 10GE LAN, STM-1, STM-4 and other customer services) access, OTN service transmission, (Multi-Service Transport Platform (MSTP) multi-service and Ethernet (ETH) functions. The CPE OTN main chip supports functions including service mapping processing, link monitoring and protection, Ethernet virtual local area network (VLAN) forwarding and operation and maintenance management (Operation Administration and Maintenance) and frequency synchronization.
[0063] For multiple service access, the main chip needs to support multiple interfaces, service mapping paths and OTN service processing. When processing OTN services, it is necessary to process multiple cascade mappings (VC12, VC4, STM1, STM4, STM16, OTN0 and OTN1, etc.), multiple encapsulations (Generic Framing Procedure (GFP), Generic Mapping Procedure (GMP), Asynchronous Mapping Procedure (AMP) / Bit-synchronous Mapping Procedure (BMP), etc.) and SNCP protection.
[0064] For the convenience of description, in the subsequent embodiments, the embodiment of the present invention is applied to the scenario where the main chip of the CPE OTN device (referred to as the CPE OTN chip) processes the service message. In the above application scenario, the first device and the second device are both CPE OTN chips, and the CPE OTN chips on both sides continuously transmit and process the service message by executing the message processing method provided by the embodiment of the present invention.
[0065] See also Figure 2 The embodiment of the present invention provides a message processing method, which is applied to a first device. The message processing method specifically includes the following steps:
[0066] Step 201: Receive a first service message and a first data header sent by a second device through a target network side link, wherein the first data header is associated with the first service message, and the first data header includes first status information and first sequence identification information, wherein the first status information is used to characterize a reception status of the service message sent by the second device to the first device, and the first sequence identification information is used to identify a sequence number of the first service message.
[0067] In a specific implementation, the first device and the second device continuously transmit service messages, the first device sends the service message of the first device side to the second device, the second device sends the service message of the second device side to the first device, and the first device stores the corresponding service message after receiving the service message. Among them, the first service message is the service message of the second device side.
[0068] The number of first service messages and first data headers is not limited here, the number of first service messages and first data headers is the same, and each first service message is associated with a first data header. The time interval for the first device to send service messages may be the same as or different from the time interval for the second device to send service messages, and the number of first service messages is determined based on the time interval for the first device to send service messages.
[0069] For ease of understanding, an example is given below. For example, the first device, as the sender of the service message, sends service message A to the second device at time A, and sends service message B to the second device at time B. The first device, as the receiver of the service message, simultaneously receives the service message sent by the second device. The first service message is the service message received by the first device between time A and time B, and the number of the first service messages is affected by the length of the time difference between time A and time B and the speed at which the second device sends the service message.
[0070] When the second device sends service messages to the first device, the service messages are sent in sequence according to the sequence numbers of the service messages. The first sequence identification information may identify the number of service messages sent by the second device that the current first service message is.
[0071] The first data header is associated with the first service message, so the first sequence identification information in the first data header is used to identify the sequence number of the first service message. The first device can determine the sequence number of the currently received first service message based on the first sequence identification information, and then determine whether the service message on the second device side has packet loss.
[0072] Optionally, in some embodiments, the target network side link includes N network side links, where N is a positive integer greater than 1. The second device sends the first service message and the first data header through the N network side links, and the first device receives the first service message and the first data header sent by the second device through the N network side links.
[0073] It should be understood that the second device will send the first service message and the first data header on N network side links, so the first device can receive the first service message and the first data header on each link of the N network side links, and the specific receiving method is not limited here.
[0074] As an optional implementation, any one of the N network side links is determined in advance as a main link, and the other network side links of the N network side links except the main link are determined as backup links. The first device receives the first service message and the first data header sent by the second device from the main link, and determines whether there is an unsuccessfully received service message on the main link based on the first sequence identification information. If there is an unsuccessfully received service message on the main link, the sequence number of the unsuccessfully received service message is determined based on the first sequence identification information, and the unsuccessfully received service message is received from the backup link.
[0075] For the convenience of description, the configuration mode provided in this embodiment is called a fixed mode, and an example is given below. The target network side links include Link1 and Link2, Link1 is predetermined as the main link, Link2 is predetermined as the backup link, the service message of Link1 is fixedly used as the main data, and the service message of Link2 is used as the backup data, and only when the service message of Link1 is not received, the service message of the corresponding sequence number of the backup data of other links is used as the received data for service processing.
[0076] The second device transmits the service message and the data header associated with each service message on Link1 and Link2 respectively. Figure 3a As shown, Link 1 is in a normal state, the receiving data queue reads data from Link 1, and the first device sequentially receives each service message from Link 1. When Link 1 data is lost or short-circuited, the receiving data queue reads data from Link 2.
[0077] For example, Figure 3b As shown, the first device receives service messages with sequence numbers 1, 2, 3, and 4 in sequence from Link1. However, since the service message with sequence number 5 on Link1 is lost, the first device receives the service message with sequence number 5 from Link2.
[0078] As another optional implementation, according to the arrival time of the first service message on each network side link among the N network side links, the first service message is received from the network side link with the earliest arrival time.
[0079] For the convenience of description, the configuration mode provided in this embodiment is called the optimal mode, and an example is given below. The target network side link includes Link1 and Link2, and the data received from Link1 and Link2 can be primary data and back up each other. The data is processed according to the first-come-first-served principle and the sequence number order of the arriving service messages.
[0080] like Figure 4aAs shown, for a service message with a sequence number of 5, when the service message arrival time T1 < T2, Link1 arrives earlier than Link2, and the first device receives the service message with a sequence number of 5 from Link1. For a service message with a sequence number of 6, as Figure 4b As shown, when the service message arrives at time T3>T4, Link2 arrives earlier than Link1, and the first device receives the service message with sequence number 6 from Link2.
[0081] Step 202: Determine a second service message based on the first status information.
[0082] The first status information is used to characterize the reception status of the service message of the first device side by the second device, wherein the reception status includes successful reception and failed reception. When the first device receives the service message of the second device side, it can determine the reception status of the service message sent by itself based on the first status information in the first data header, and then adaptively adjust the sending of the service message.
[0083] Optionally, in some embodiments, the step 202 determines, based on the first packet loss identification information, a service message sent by the first device and which fails to be received by the second device as a second service message.
[0084] When the first device determines, based on the first status information, that a certain service message among the service messages sent by the first device to the second device is not correctly received, the first device may choose to resend the service message at any time.
[0085] Optionally, in some embodiments, the first status information includes first confirmation identification information and first packet loss identification information, the first confirmation identification information is used to identify the sequence number of the service message successfully received by the second device in the service message sent by the first device, and the first packet loss identification information is used to identify the sequence number of the service message failed to be received by the second device in the service message sent by the first device.
[0086] In a specific implementation, the first device and the second device continuously perform bidirectional transmission of service messages, so the number of service messages transmitted between the first device and the second device is usually multiple.
[0087] As an optional implementation, the first confirmation identification information includes the serial numbers of all service messages on the first device side that are successfully received by the second device, and the first packet loss identification information includes the serial numbers of all service messages on the first device side that are failed to be received by the second device.
[0088] Exemplarily, the first device sends 6 service messages to the second device, whose sequence numbers are 0, 1, 2, 3, 4, and 5, respectively, wherein the service messages with sequence numbers 2 and 4 are not successfully received by the second device. In this embodiment, when the second device sends a service message to the first device, the first confirmation identification information in the associated data header is "0, 1, 3, 5", and the first packet loss identification information is "2, 4".
[0089] As another optional implementation, the first confirmation identification information includes a maximum sequence number, which is the maximum value of the sequence numbers of all service messages on the first device side that are successfully received by the second device, and is used to indicate that, except for the sequence number included in the first packet loss identification information, all other service messages corresponding to sequence numbers that are less than or equal to the maximum sequence number are successfully received.
[0090] Exemplarily, the first device sends 6 service messages to the second device, whose serial numbers are 0, 1, 2, 3, 4, and 5, respectively, among which the service messages with serial numbers 2 and 4 are not successfully received by the second device. In this embodiment, when the second device sends a service message to the first device, the first confirmation identification information in the associated data header is "5", and the first packet loss identification information is "2, 4". According to the first confirmation identification information, except for 2 and 4, the service messages corresponding to the serial numbers less than or equal to 5 (i.e., 0, 1, 3, 5) are all successfully received. Through the method provided in this embodiment, the number of bits occupied by the first confirmation identification information can be reduced, thereby improving the utilization rate of resources.
[0091] In this embodiment, the first status information includes first confirmation identification information and first packet loss identification information, the first confirmation identification information is used to identify the sequence number of the service message successfully received by the second device in the service message sent by the first device, and the first packet loss identification information is used to identify the sequence number of the service message failed to be received by the second device in the service message sent by the first device. Through the above settings, the first device can quickly determine the reception status of each service message based on the sequence number in the first status information, thereby improving the convenience, accuracy and efficiency of the first device in determining the reception status of the service message.
[0092] Step 203: associate a second data header with the second service message, wherein the second data header includes second status information and second sequence identification information, wherein the second status information is used to characterize a reception status of the service message sent by the first device to the second device, and the second sequence identification information is used to identify a sequence number of the second service message.
[0093] Since the service messages received by the first device are all associated with a data header, the first device can judge whether the service messages are unsuccessfully received based on the sequence numbers of the received service messages, and determine the sequence numbers of the unsuccessfully received service messages.
[0094] Exemplarily, after the first device has received and stored the business messages with serial numbers 0, 1, 2, and 3 sent by the second device, it determines through the first data header that the serial number of the currently received first business message is 5. At this time, the first device combines the serial numbers of the successfully received business messages and the serial number of the currently received business message to determine that the business message with serial number 4 has not been correctly received.
[0095] After the first device determines which service messages are successfully received and which service messages are not successfully received based on the sequence numbers of the received service messages, the second status information may be generated.
[0096] In some embodiments, the second status information includes second confirmation identification information and second packet loss identification information, the second confirmation identification information is used to identify the sequence number of the service message successfully received by the first device in the service message sent by the second device, and the second packet loss identification information is used to identify the sequence number of the service message failed to be received by the first device in the service message sent by the second device.
[0097] After generating the second data header, the second sequence identification information of the second data header is set to the serial number of the second business message, completing the association between the second data header and the second business message, so that after the second device receives the second business message and the second data header, it can determine the serial number of the second business message and the reception status of the first device for the first business message.
[0098] Step 204: Send the second service message and the second data header to the second device through the target network side link.
[0099] Optionally, as an optional implementation, step 203 includes:
[0100] Add the second data header to the second service message.
[0101] In this implementation, the second data header is added to the second service message to obtain a target data message.
[0102] The target data message is sent to the second device via the target network side link.
[0103] In this embodiment, the second data header is inserted into the second service message and becomes a part of the service message to obtain the target data message. The specific structure of the second service message can refer to the description in the related art, which will not be repeated here. In the specific implementation, the second data header can be added to any position of the second service message according to actual needs, such as the middle, head and tail of the Ethernet message.
[0104] For example, the structure of the second service message is as follows: Figure 5a As shown, the second service message includes Media Access Control (MAC), Virtual Local Area Network (VLAN), Multi-Protocol Label Switching (MPLS), Internet Protocol (IP), Payload and Frame Check Sequence (FCS).
[0105] As an optional implementation, the second data header is added to the header of the service message to obtain Figure 5b As another optional implementation, the second data header is added after the IP header to obtain the target data packet shown in FIG. Figure 5c The target data message shown is in the form of ETH+IP+second data header+Payload.
[0106] In this embodiment, the second data header is added to the second service message to obtain the target data message; the target data message is sent to the second device through the target network side link. Through the above method, the target data message is constructed and the target data message is transmitted, so that the second data header and the second service message are more closely associated, avoiding the situation where only one of the second data header and the second service message is successfully received. Since this embodiment changes the frame structure of the link layer, the message processing flow of the link layer will also change accordingly.
[0107] Optionally, as another optional implementation, step 203 includes:
[0108] The second data header is inserted into the idle bytes between the second service messages.
[0109] In this embodiment, the second service message and the second data header are sent to the second device via the target network side link, wherein the second data header occupies an idle block for transmission.
[0110] In the transmission of the service message, there are idle blocks (or idle bytes) between frames, and the second data header is transmitted using the idle blocks. For example, Figure 6a As shown, there is a 20-bit (Bytes) frame gap and preamble between ETH messages, such as Figure 6b As shown, the second data header is transmitted using the frame gap and the preamble.
[0111] In this embodiment, the second data header is transmitted by occupying the idle block. The second data header is transmitted by using the idle bytes between frames, which only affects the processing flow of the physical layer and does not affect the structure of the second service message, so that the data processing of the second service message can be compatible with the existing data processing flow, and the processing process is more convenient and efficient.
[0112] Optionally, in some embodiments, the target network side link includes N network side links, where N is a positive integer greater than 1; and step 203 includes:
[0113] Generate N second data headers corresponding one-to-one to the N network-side links, each of the second data headers including a corresponding link identifier;
[0114] Associating each of the N second data headers with the second service message respectively;
[0115] The step 204 includes:
[0116] The second data header and the second service message corresponding to the network side link are sent to the second device through each of the N network side links.
[0117] Since the target network side link includes N network side links, N second data headers need to be generated accordingly to be associated with the second service message transmitted on each network side link. Each second data header includes a link identifier for identifying on which network side link the second data header is transmitted.
[0118] After generating N second data headers, the first sequence identification information included in the N second data headers is respectively set as the sequence number of the second service message associated therewith, so as to associate each second data header with the second service message.
[0119] The second service message and the second data header are respectively sent on each network side link so that the second device receives the second service message and the second data header. The manner in which the second device receives the second service message and the second data header can be referred to in Figure 3a-Figure 4b The relevant instructions for some parts will not be repeated here.
[0120] In this embodiment, the target network side link includes at least two network side links. The first device sends the second data header and the second service message to the second device through at least two network side links. In the event of packet loss in any one of the network side links, the second device can still receive the second data header and the second service message from other network side links, thereby improving the success rate of the second device in receiving the second service message and reducing the packet loss rate.
[0121] In actual application, the CPE OTN chip supports multi-service access, and different services require different transmission levels. Some services have lower requirements on packet loss rate (for example, services with 50ms carrier-grade protection), and there is no need to process messages using the method provided in this embodiment.
[0122] Optionally, in some embodiments, the first data header further includes service identification information, and the service identification information is used to characterize a target service corresponding to the first service message. Before step 204, the method further includes:
[0123] Determine the target service based on the service identification information;
[0124] Based on the predefined correspondence between the service and the network side link, a target network side link corresponding to the target service is determined.
[0125] It should be understood that the network side links are pre-configured and there are multiple links. Through the OTN management and control platform, multiple network side links of the CPE OTN service are established. According to the actual service requirements, the corresponding relationship between the service and the network side link is pre-defined.
[0126] Exemplarily, for a service that does not need to process messages using the method provided in this embodiment, the corresponding network side link is not allocated, and the process in the prior art is executed. For a service that needs to process messages using the method provided in this embodiment, N network side links in the pre-configured network side links are determined as the target network side links corresponding to the service.
[0127] In specific implementation, the number of network side links corresponding to different services can be the same or different, and multiple network side links corresponding to the same service do not share the same optical fiber link, thereby improving the protection effect. By configuring different optical channel data units (ODUk), different OTN channels are established and sent to different network side links.
[0128] In this embodiment, after receiving the data header, the first device determines the target service corresponding to the service message based on the service identification information, and determines the target network side link based on the pre-defined correspondence between the service and the network side link, thereby transmitting the service message on the first device side on the target network side link.
[0129] In the embodiment of the application, the target service is determined based on the service identification information; based on the predefined correspondence between the service and the network side link, the target network side link corresponding to the target service is determined. Through the above method, the CPE OTN chip can execute different message processing methods for different service types, thereby improving the flexibility of the CPE OTN chip in multi-service processing, while avoiding the occupation of the network side link by other types of services, thereby improving the reliability of the network side link.
[0130] In an embodiment of the present application, the first device receives the first service message and the first data header sent by the second device through the target network side link. The first device can determine the reception status of the service message sent by the first device to the second device based on the first status information included in the first data header; the first device can determine the reception status of the service message sent by the first device to the second device based on the first sequence identification information included in the first data header. The first device can promptly determine the reception and transmission status of the service message, so as to promptly retransmit the service message that fails to be transmitted, thereby improving the transmission reliability of the service message and reducing the packet loss rate.
[0131] In some embodiments, the first data header and the second data header are both lossless optional delay data headers, and the lossless optional delay data header includes service identification information, lossless identification information, link identification information, sequence identification information, confirmation identification information and packet loss identification information;
[0132] Among them, the service identification information is used to identify the service flow identifier (Identifier, ID) corresponding to the lossless optional delay data header, the lossless identification information is used to identify whether the type of the service is a lossless service, the link identification information is used to identify the network side link ID corresponding to the lossless optional delay data header, the sequence identification information is used to identify the sequence number ID of the service message corresponding to the lossless optional delay data header, the confirmation identification information is used to identify the sequence number ID of the successfully received service message, and the packet loss identification information is used to identify the sequence number ID of the lost service message. The structure of the lossless optional delay data header can be seen in Table 1.
[0133] Table 1 Example of structure of lossless optional delay data header
[0134]
[0135] When the lossless optional delay data header is used as the first data header, the sequence identification information can be understood as the first sequence identification information, the confirmation identification information can be understood as the first confirmation identification information, and the packet loss identification information can be understood as the first packet loss identification information.
[0136] When the lossless optional delay data header is used as the second data header, the sequence identification information can be understood as the second sequence identification information, the confirmation identification information can be understood as the second confirmation identification information, and the packet loss identification information can be understood as the second packet loss identification information.
[0137] After the first device sends the second service message and the second data header to the second device through the target network side link, the second device receives the second service message and the second data header sent by the second device through the target network side link, determines the next service message sent by the second device based on the second state information, associates the lossless optional delay data header with the service message, and sends the service message and the lossless optional delay data header to the first device through the target network side link. The specific method can be referred to the above content and is not limited here.
[0138] For ease of understanding, a specific embodiment is used as an example for explanation. When CPE OTN multi-service access is processed, it supports multiple interface services (such as E1, FE, GE, 10GE LAN, STM-1, STM-4 and other customer services), encapsulates multiple interface services into multi-level containers, and after cascading processing, sends them to the OTN interface for line-side transmission. For example, the CPE OTN chip optical service unit (Optical Service Unit, OSU) mapping process is as follows: Figure 7 As shown in the figure. The service mapping module encapsulates the client signal into the ODU payload frame, then encapsulates the optical channel transport unit overhead (Optical Channel Transport UnitOverhead, OUT OH) header, performs OTU channel layer processing, and encapsulates and sends it. During the encapsulation process, by adding lossless optional delay function, rich service options are realized, including lossless time slot forwarding, ultra-low delay processing, etc., to achieve more optimized OTN service processing.
[0139] Through the OTN management and control platform, establish the network side link of CPE OTN service, as follows: Figure 8 As shown. Different service types are defined according to the service entry type and service requirements. Services with a service type of 50ms telecom-grade protection can be understood as ordinary services, that is, services that do not require message processing through the method provided in the embodiment of the present application. Services with a service type of no packet loss can be understood as lossless optional delay services, that is, services that require message processing through the method provided in the embodiment of the present application. Set the corresponding table items according to the service configuration. For details, see Table 2.
[0140] Table 2 Lossless optional delay service configuration table
[0141] business Stream ID Business Type Network side link PORT+VLAN 1 1 No packet loss Link 1 PORT+VLAN 2 2 No packet loss Link 1 PORT+VLAN 3 3 No packet loss Link 2 PORT+VLAN 4 4 No packet loss Link 3 PORT+VLAN 5 5 50ms carrier-grade protection - …… …… …… ……
[0142] In this embodiment, two network-side links are established between the CPE OTN1 chip (referred to as chip A) and the CPE OTN2 chip (referred to as chip B), which are called link1 and link2. To improve the protection effect, link1 and link2 do not share the same optical path. By configuring different ODUk, different OTN channels are established and sent to different links.
[0143] When a service is created, the corresponding data transmission and reception streams will be established at the same time. For example, Fig. 9 As shown:
[0144] Create service 1, corresponding to send stream ID 1, receive stream ID 2, and send and receive on link 1 and link 2;
[0145] Create service 2, corresponding to sending flow ID 3 and receiving flow ID 4, and send and receive on link 1 and link 2.
[0146] Table 3 Lossless optional delay data header example
[0147]
[0148] When the service message of the current service needs to be processed based on the message processing method provided in the embodiment of the present application, the current data stream enables the lossless optional delay function and constructs a lossless optional delay data header as shown in Table 3.
[0149] See also Fig.10 The process of sending service messages by the CPE OTN chip is as follows:
[0150] Step A: After receiving the service message, the CPE OTN chip first identifies the flow ID of the service data flow according to the definition, and determines whether it is a lossless optional delay service. If not, the message is processed according to the existing process. If yes, the process of step B is performed;
[0151] Step B: According to the flow ID of the identified service data flow and the correspondence between the pre-configured service and the network side link, a lossless optional delay data header as shown in Table 3 is formed;
[0152] Step C: according to the position of the predefined lossless optional delay data header, associating the lossless optional delay data header with the service message;
[0153] Step D: Send the service message associated with the lossless optional delay data header on the corresponding network side link (Link1-Linkn). Each time a service message is sent (that is, after the service message is sent on the network layer link (Link1-Linkn)), the sequence identifier in the lossless optional delay data header of the corresponding service message is increased by 1, the confirmation identifier is the currently received sequence identifier, and the packet loss identifier is the sequence identifier of the current link packet loss.
[0154] See also Fig.11 The process of receiving service messages by the CPE OTN chip is as follows:
[0155] When receiving a service message and the associated data header on Link1 or Link2, if the service is a lossless service, the following processing is performed, otherwise the message is processed according to the existing process. The stream ID, lossless identifier and link identifier in the received lossless optional delay data header will be used to check whether the corresponding link and service message match. The CPE OTN chip will store the received service message.
[0156] Parse the lossless optional delay data header and service message, select the configuration mode (for example Figure 3a The fixed mode shown or Figure 3b The optimal mode shown in FIG. 1 is specifically referred to in the above content and will not be described in detail here.) The corresponding confirmation identifier is updated according to the sequence identifier, and the confirmation identifier is added to the lossless optional delay data header associated with the service message when the reverse service is sent.
[0157] Whether packet loss occurs is determined based on the order in which the service messages arrive and the sequence identifier in the lossless optional delay data header associated with the service messages. The determination method can be found in the description of the aforementioned embodiment and is not limited here.
[0158] During the bidirectional transmission and reception of service messages between chip A and chip B, when chip A is used as a first device to execute the method provided in the embodiment of the present application, chip B is the second device corresponding to chip A. Similarly, when chip B is used as a first device to execute the method provided in the embodiment of the present application, chip A is the second device corresponding to chip B.
[0159] For ease of understanding, the following describes the interaction process between chip A and chip B. Fig.12 , Link1 and Link2 are established between chip A (A end) and chip B (B end). In normal scenarios, the message interaction process between end A and end B is as follows:
[0160] A side: A sends a service message on Link1 and Link2, with an associated lossless optional delay data header (referred to as data header). The data header contains the sequence identifier (seq) x, confirmation identifier (ack) and loss identifier (lost) of the service message being sent. A sends the data header and service message to B. The data format from A to B is Data+data header (seq x, ack, lost), where Data is the service message.
[0161] B side: B receives the service message sent by A on Link1 and Link2, and updates the confirmation mark to x according to the sequence mark of the received service message, to indicate that the service message with sequence number x sent by A is successfully received. At the same time, it determines whether there is a lost service message according to the sequence number of the received service message and updates the loss mark lost. The data header associated with the service message sent by B to A carries the sequence mark y, confirmation mark x and loss mark lost, and the data format from B to A is Data+data header (seq y, ack x, lost).
[0162] A side: A receives the service message sent by B on Link1 and Link2, and updates the confirmation flag to y according to the sequence flag of the received service message, to indicate that the service message with sequence number y sent by B is successfully received. At the same time, it determines whether there is a lost service message according to the sequence number of the received service message and updates the loss flag lost. The data header associated with the service message sent by A to B carries the sequence flag x+1, confirmation flag y and loss flag lost. The data format from A to B is Data+data header (seq x+1, ack y, lost).
[0163] See also Fig.13 , Link1 and Link2 are established between A and B. In the packet loss scenario, the message interaction process between A and B is as follows:
[0164] A: A sends a service message on Link1 and Link2 with the associated data header. A sends the data header and service message to B. The data format from A to B is Data+data header (seq x1, ack y1, lost z).
[0165] B side: B receives the service message sent by A on Link1 and Link2, and updates the confirmation identifier to x1 according to the sequence identifier of the received service message, to indicate that the service message with sequence number x1 sent by A has been successfully received. B finds message z in B according to the loss identifier z in the data header, and resends message z to A from B. At the same time, it determines whether B has lost messages according to the sequence number of the received service message and updates the loss identifier lost. The service message sent from B to A is message z, and the data header contains the sequence identifier z, the confirmation identifier x1 and the loss identifier lost. The data format from B to A is Data+data header (seq z, ack x1, lost).
[0166] A side: A receives the service message sent by B on Link1 and Link2, updates the confirmation flag to z according to the sequence flag of the received service message, and determines whether there is a lost service message according to the sequence number of the received service message and updates the loss flag lost. The data header associated with the service message sent by B to A carries the sequence flag x+1, confirmation flag z and loss flag lost. The data format from A to B is Data+data header (seq x1+1, ack z, lost).
[0167] In this embodiment, both chip A and chip B can be used as the first device to execute the message processing method provided in this embodiment. This embodiment provides a new CPE OTN service chip processing flow, including the mapping flow of ETH frames to ODUs, by adding a lossless optional delay function and using a transmission protection link, to achieve lossless optional delay forwarding of OTN services, provide more reliable and efficient service transmission for upper layer services, provide more service function options, and achieve a more cost-effective CPE OTN chip design.
[0168] The embodiment of the present invention further provides a message processing device, wherein the first device includes the message processing device. Fig.14 , Fig.14 1400 is a structural diagram of a message processing device 1400 provided in an embodiment of the present invention. Figure 2 The message processing method shown is similar, so the implementation of the message processing device 1400 can refer to the implementation of the method, and the repeated parts will not be repeated.
[0169] See also Fig.14 The embodiment of the present invention further provides a message processing device 1400, wherein the first device includes the message processing device 1400, and the message processing device 1400 includes:
[0170] A receiving module 1401 is configured to receive, through a target network side link, a first service message and a first data header sent by a second device, where the first data header is associated with the first service message, and the first data header includes first state information and first sequence identification information, where the first state information is used to characterize a reception state of the service message sent by the first device by the second device, and the first sequence identification information is used to identify a sequence number of the first service message;
[0171] A first determining module 1402, configured to determine a second service message based on the first state information;
[0172] an associating module 1403, configured to associate a second data header with the second service message, where the second data header includes second state information and second sequence identification information, where the second state information is used to characterize a reception state of the service message sent by the first device to the second device, and the second sequence identification information is used to identify a sequence number of the second service message;
[0173] The sending module 1404 is used to send the second service message and the second data header to the second device through the target network side link.
[0174] Optionally, the target network side link includes N network side links, where N is a positive integer greater than 1; the association module 1403 includes:
[0175] A generating unit, configured to generate N second data headers corresponding one-to-one to the N network-side links, each of the second data headers including a corresponding link identifier;
[0176] an associating unit, configured to associate each of the N second data headers with the second service message respectively;
[0177] The sending module 1404 is specifically used for:
[0178] The second data header and the second service message corresponding to the network side link are sent to the second device through each of the N network side links.
[0179] Optionally, the first status information includes first confirmation identification information and first packet loss identification information, the first confirmation identification information is used to identify the sequence number of the service message successfully received by the second device in the service message sent by the first device, and the first packet loss identification information is used to identify the sequence number of the service message failed to be received by the second device in the service message sent by the first device.
[0180] Optionally, the first determining module 1402 is specifically configured to:
[0181] Based on the first packet loss identification information, a service message sent by the first device and which fails to be received by the second device is determined as a second service message.
[0182] Optionally, the first data header further includes service identification information, where the service identification information is used to characterize a target service corresponding to the first service message, and the message processing device 1400 further includes:
[0183] A second determination module, configured to determine the target service based on the service identification information;
[0184] The third determination module is used to determine the target network side link corresponding to the target service based on the predefined correspondence between the service and the network side link.
[0185] Optionally, the association module 1403 is specifically used for:
[0186] Add the second data header to the second service message.
[0187] Optionally, the association module 1403 is specifically used for:
[0188] The second data header is inserted into the idle bytes between the second service messages.
[0189] The message processing device 1400 provided in the embodiment of the present invention can realize Figure 2 The various processes implemented by the method embodiment shown can achieve the same beneficial effects, and will not be described again here to avoid repetition.
[0190] The embodiment of the present invention further provides a first device. Figure 2 The message processing method shown in is similar, so the implementation of the first device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0191] like Fig.15 As shown, the first device of the embodiment of the present invention includes: a processor 1500, which is used to read the program in the memory 1520 and execute the following process:
[0192] Receiving, through the transceiver 1510, a first service message and a first data header sent by the second device through the target network side link, where the first data header is associated with the first service message, and the first data header includes first state information and first sequence identification information, where the first state information is used to characterize a reception state of the service message sent by the first device by the second device, and the first sequence identification information is used to identify a sequence number of the first service message;
[0193] Determine a second service message based on the first status information;
[0194] Associating a second data header with the second service message, where the second data header includes second state information and second sequence identification information, where the second state information is used to characterize a reception state of the service message sent by the first device to the second device, and the second sequence identification information is used to identify a sequence number of the second service message;
[0195] The second service message and the second data header are sent to the second device through the target network side link via the transceiver 1510.
[0196] The transceiver 1510 is configured to receive and send data under the control of the processor 1500 .
[0197] Among them, Fig.15 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically linking together various circuits of one or more processors represented by processor 1500 and memory represented by memory 1520. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 1510 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices over a transmission medium.
[0198] The processor 1500 is responsible for managing the bus architecture and general processing, and the memory 1520 can store data used by the processor 1500 when performing operations.
[0199] Optionally, the target network side link includes N network side links, where N is a positive integer greater than 1; the processor 1500 is further configured to read a program in the memory 1520 and execute the following steps:
[0200] Generate N second data headers corresponding one-to-one to the N network-side links, each of the second data headers including a corresponding link identifier;
[0201] Associating each of the N second data headers with the second service message respectively;
[0202] The second data header and the second service message corresponding to the network side link are sent to the second device through each of the N network side links.
[0203] Optionally, the first status information includes first confirmation identification information and first packet loss identification information, the first confirmation identification information is used to identify the sequence number of the service message successfully received by the second device in the service message sent by the first device, and the first packet loss identification information is used to identify the sequence number of the service message failed to be received by the second device in the service message sent by the first device.
[0204] Optionally, the processor 1500 is further configured to read a program in the memory 1520 and execute the following steps:
[0205] Based on the first packet loss identification information, a service message sent by the first device and which fails to be received by the second device is determined as a second service message.
[0206] Optionally, the first data header further includes service identification information, where the service identification information is used to characterize a target service corresponding to the first service message. The processor 1500 is further used to read a program in the memory 1520 and execute the following steps:
[0207] Determine the target service based on the service identification information;
[0208] Based on the predefined correspondence between the service and the network side link, a target network side link corresponding to the target service is determined.
[0209] Optionally, the processor 1500 is further configured to read a program in the memory 1520 and execute the following steps:
[0210] Add the second data header to the second service message.
[0211] Optionally, the processor 1500 is further configured to read a program in the memory 1520 and execute the following steps:
[0212] The second data header is inserted into the idle bytes between the second service messages.
[0213] The first device provided by the embodiment of the present invention can execute the following steps: Figure 2 The implementation principle and technical effect of the method embodiment shown are similar, and this embodiment will not be repeated here.
[0214] The embodiment of the present invention also provides a readable storage medium for storing a program, which, when executed by a processor, implements the following Figure 2 Steps in the message processing method shown.
[0215] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0216] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0217] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the sending and receiving method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0218] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A message processing method, characterized in that: Applied to a first device, the method includes: receiving, through the target network side link, a first service message and a first data header sent by a second device, where the first data header is associated with the first service message, and the first data header includes first state information and first sequence identification information, where the first state information is used to characterize a reception state of the service message sent by the first device by the second device, and the first sequence identification information is used to identify a sequence number of the first service message; Determine a second service message based on the first status information; Associating a second data header with the second service message, where the second data header includes second state information and second sequence identification information, where the second state information is used to characterize a reception state of the service message sent by the first device to the second device, and the second sequence identification information is used to identify a sequence number of the second service message; The second service message and the second data header are sent to the second device through the target network side link.
2. The method according to claim 1, characterized in that The target network side link includes N network side links, where N is a positive integer greater than 1; The associating the second data header with the second service message includes: Generate N second data headers corresponding one-to-one to the N network-side links, each of the second data headers including a corresponding link identifier; Associating each of the N second data headers with the second service message respectively; The sending the second service message and the second data header to the second device through the target network side link includes: The second data header and the second service message corresponding to the network side link are sent to the second device through each of the N network side links.
3. The method according to claim 1, characterized in that The first status information includes first confirmation identification information and first packet loss identification information, the first confirmation identification information is used to identify the sequence number of the service message successfully received by the second device in the service message sent by the first device, and the first packet loss identification information is used to identify the sequence number of the service message failed to be received by the second device in the service message sent by the first device.
4. The method according to claim 3, characterized in that The determining the second service message based on the first state information includes: Based on the first packet loss identification information, a service message sent by the first device and which fails to be received by the second device is determined as a second service message.
5. The method according to claim 1, characterized in that The first data header also includes service identification information, where the service identification information is used to characterize a target service corresponding to the first service message. Before sending the second service message and the second data header to the second device through the target network side link, the method also includes: Determine the target service based on the service identification information; Based on the predefined correspondence between the service and the network side link, a target network side link corresponding to the target service is determined.
6. The method according to claim 1, characterized in that The associating the second data header with the second service message includes: Add the second data header to the second service message.
7. The method according to claim 1, characterized in that The associating the second data header with the second service message includes: The second data header is inserted into the idle bytes between the second service messages.
8. A message processing device, characterized in that: The first device includes the message processing device, and the message processing device includes: a receiving module, configured to receive, through a target network side link, a first service message and a first data header sent by a second device, wherein the first data header is associated with the first service message, the first data header includes first status information and first sequence identification information, the first status information is used to characterize a reception status of the service message sent by the first device by the second device, and the first sequence identification information is used to identify a sequence number of the first service message; A first determining module, used to determine a second service message based on the first state information; an associating module, configured to associate a second data header with the second service message, wherein the second data header includes second state information and second sequence identification information, wherein the second state information is used to characterize a reception state of the service message sent by the first device to the second device, and the second sequence identification information is used to identify a sequence number of the second service message; A sending module is used to send the second service message and the second data header to the second device through the target network side link.
9. A first device, comprising: A memory, a processor, and a program stored in the memory and executable on the processor; characterized in that: The processor is used to read the program in the memory to implement the steps in the method according to any one of claims 1 to 7.
10. A readable storage medium for storing a program, characterized in that: When the program is executed by a processor, the steps in the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Data transmission method and device for point-to-point equipment, equipment and storage medium
CN108092745A
Message processing method, chip system and computer storage medium
CN109729117A
Data transmission method and device
CN109845317A
Method for realizing reliable Ethernet message transmission based on FPGA (Field Programmable Gate Array)
CN114615343A
Data transmission method and device, electronic equipment and readable storage medium
CN115103403A
