Passive optical network-based message transmission method and device, and storage medium

By writing priority identifiers into the passive optical network and encapsulating them with an improved frame format, the problem of poor transmission compatibility in the passive optical network is solved, enabling real-time transmission of high-priority services and integrity recovery of low-priority services, thereby improving the transmission efficiency and anti-interference capability of multiple services.

CN121967337APending Publication Date: 2026-05-01深圳市三旺通信股份有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
深圳市三旺通信股份有限公司
Filing Date
2026-01-08
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Passive optical networks have poor transmission compatibility and are difficult to match the high real-time and deterministic requirements of specific business scenarios, resulting in insufficient real-time performance of high-priority services and easy interruption and difficulty in complete recovery of low-priority services.

Method used

By writing priority identifiers into the reserved fields of the service messages to be transmitted, high-priority services are filtered and low-priority services are truncated. The transmission status information of low-priority services is stored, optical network frames with improved frame formats are encapsulated and sent according to the transmission protocol of passive optical networks. The transmission of low-priority services is resumed after the transmission of high-priority services is completed.

Benefits of technology

It improves the timeliness and reliability of high-priority service transmission, ensures the complete transmission of low-priority services, enhances anti-interference capabilities, realizes the tiered truncation and orderly transmission of multi-service transmission, and achieves ultra-long-distance service transmission effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121967337A_ABST
    Figure CN121967337A_ABST
Patent Text Reader

Abstract

The invention discloses a message transmission method and device based on a passive optical network, and a storage medium, and relates to the technical field of communication, and the method comprises the steps: obtaining a service message with a priority identifier based on the service attribute of a to-be-transmitted service message, detecting the priority information of the service message, screening the service message with a higher priority, and transmitting the service message with the priority identifier to the to-be-transmitted service message. And cutting off the currently transmitted low-priority service message and storing the transmission field information of the currently transmitted low-priority service message. And packaging the service message with the higher priority into an optical network frame with an improved frame format, and sending the optical network frame to corresponding receiving end equipment according to a transmission protocol and a time slot distribution rule of a passive optical network. And after the transmission of the optical network frame is completed, calling the transmission field information of the low-priority service message, and continuously transmitting the cut low-priority service message. According to the method and the device, the priority is identified, the high-priority messages are screened, and the low-priority messages are cut off, so that the problem of poor transmission compatibility is solved, and the multi-service transmission efficiency and the transmission reliability are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Message transmission methods, devices, and storage media based on passive optical networks Technical Field

[0001] This application relates to the field of communication technology, and in particular to a message transmission method, device and storage medium based on a passive optical network. Background Technology

[0002] In industrial communication, broadband access and other scenarios, Gigabit Passive Optical Network (GPN), as a new generation of broadband access technology, has become a key solution to support high-bandwidth, long-distance communication by virtue of its fiber optic transmission and passive optical distribution network architecture.

[0003] In related technologies, service transmission mainly relies on the fixed fragmentation mechanism, general encapsulation technology and optical fiber transmission architecture of passive optical networks. At the same time, bus services achieve data interaction through cable transmission. This method is difficult to match the high real-time and deterministic requirements of specific service scenarios, resulting in poor transmission compatibility of passive optical networks.

[0004] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0005] The main objective of this application is to provide a message transmission method, device, and storage medium based on passive optical networks (PONs), aiming to solve the technical problem of transmission compatibility in PONs.

[0006] To achieve the above objectives, this application proposes a message transmission method based on a passive optical network (PON). The method includes: determining the priority of a service message to be transmitted based on its service attributes; writing the priority into a reserved field corresponding to the service message to be transmitted to obtain a service message with a priority identifier; comparing the priority information of the service message with the priority identifier with that of a currently transmitted service message, transmitting a higher priority service message first, truncating a lower priority service message, and storing the transmission context information corresponding to the lower priority service message; encapsulating the higher priority service message into an optical network frame with an improved frame format, and sending the optical network frame to the corresponding receiving device according to the PON transmission protocol and time slot allocation rules; and after the transmission of the optical network frame corresponding to the higher priority service message is completed, calling the transmission context information of the lower priority service message and continuing to transmit the truncated lower priority service message.

[0007] In one embodiment, the service attributes of the service message to be transmitted are identified, and the priority corresponding to the service message to be transmitted is distinguished according to the priority determination rule; when generating an uplink frame, the least bit of the uplink frame reserved indicator field is configured, and when generating a downlink frame, the reserved field of the downlink frame identifier field is configured to obtain a service message with a reserved field priority identifier; the format of the optical network encapsulation frame corresponding to the service message with the reserved field priority identifier is extended, and a one-byte message index and multiple sets of packet fragment identifiers are added between the frame header and the payload, and the corresponding priority identifier is configured according to the priority corresponding to the service message to be transmitted to obtain the service message with priority identifier.

[0008] In one embodiment, the service message with priority identifier is parsed, and the priority identifier in the reserved field of the service message with priority identifier is extracted to obtain the corresponding priority; the priority of the service message with priority identifier is compared with the priority of the currently transmitted service message to filter out target service messages with higher priority than the currently transmitted service message; after determining that there is a target service message with higher priority, the transmission operation of the currently transmitted low-priority service message is truncated, and the transmission status information of the low-priority service message is stored.

[0009] In one embodiment, the priority corresponding to the currently transmitted service packet is used as the priority comparison benchmark; the priority of each service packet with priority identifier is extracted one by one and compared with the priority comparison benchmark in real time to determine whether the priority of each service packet with priority identifier is higher than the priority of the currently transmitted service packet; based on the comparison result, all service packets with a priority higher than the comparison benchmark are selected and determined as target service packets that need to be transmitted first.

[0010] In one embodiment, based on the priority of the higher priority service message, the complete frame identifier corresponding to the extended fragment identifier of the higher priority service message is configured, and the message index marker transmission sequence is filled to obtain a higher priority service message with extended field configuration; based on the higher priority service message with extended field configuration, the inherent fields of the optical network encapsulation frame are filled, and the service data is loaded into the frame payload area to obtain an improved optical network frame; according to the transmission protocol and time slot allocation rules of the passive optical network, the improved optical network frame is converted into an optical signal adapted for network transmission and sent to the receiving optical network terminal equipment corresponding to the higher priority service message.

[0011] In one embodiment, after monitoring the transmission status of the optical network frame corresponding to the higher-priority service message and confirming that the optical network frame has been completely sent to the target receiving device, the previously stored transmission status information of the low-priority service message is retrieved; the transmission status information of the low-priority service message is parsed to extract the message header, transmitted length, remaining untransmitted data, and checksum of the low-priority service message, and the extended fragmentation identifier of the low-priority service message is adjusted to confirm the fragmentation mark; based on the fragmentation mark, the untransmitted data and transmitted portion of the low-priority service message are reassembled, and the reassembled low-priority service message is sent to the corresponding receiving device according to the transmission protocol and time slot allocation rules of the passive optical network.

[0012] In one embodiment, the receiving end receives the remaining portion of the low-priority service message, combines it with the received truncated message fragments, and reassembles the low-priority service message by checking the fragment status identifier and message index in the integrity verification extended packet fragment identifier. The reassembled low-priority service message undergoes protocol parsing and data verification. After confirming that the message has no transmission errors, the reassembled low-priority service message is forwarded to the corresponding target user equipment according to the locally stored device mapping relationship. The sending end and receiving end respectively update the transmission completion status of the low-priority service message, releasing previously cached transmission status information, message fragments, and related hardware resources to reserve resources for the scheduling and transmission of subsequent high-priority service messages.

[0013] In one embodiment, the receiving end splices the remaining transmission portion of the received low-priority service message with previously cached truncated segments, and performs integrity verification based on the message index and fragment status identifier to obtain the verification result. If the verification result indicates an anomaly such as missing message data, disordered segment order, or mismatched verification values, a transmission anomaly handling mechanism is triggered, and the anomaly location, missing segment identifier, and current message reassembly progress are recorded as key anomaly information. Based on the key anomaly information, a targeted retransmission request message is generated according to the passive optical network's preset transmission protocol and sent to the corresponding sending end. After receiving the retransmission request message, the sending end parses the incomplete segment data in the retransmission request message, retrieves the transmission status information of the cached low-priority service message, and supplements the missing portion by sending it to the receiving end.

[0014] In addition, to achieve the above objectives, this application also proposes a message transmission device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the message transmission method based on a passive optical network as described above.

[0015] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the message transmission method based on a passive optical network as described above.

[0016] This application provides a message transmission method based on a passive optical network (PON), including: determining the priority of a service message to be transmitted based on its service attributes; writing the priority into a reserved field corresponding to the service message to be transmitted to obtain a service message with a priority identifier; detecting the priority information corresponding to the priority service message and filtering out higher priority service messages; truncating the currently transmitted low-priority service messages and storing their transmission status information; encapsulating the higher-priority service messages into optical network frames with an improved frame format and sending them to the corresponding receiving end device according to the PON transmission protocol and time slot allocation rules; and waiting for the higher-priority service messages to be transmitted. After the optical network frame corresponding to a high-priority service message is transmitted, the transmission field information of the low-priority service message is invoked to continue transmitting the truncated low-priority service message. This solves the technical problems of insufficient real-time performance and determinism of high-priority services and difficulty in fully recovering the transmission of low-priority services after they are truncated in multi-service convergence scenarios of passive optical networks. At the same time, it overcomes the defects of limited transmission distance and weak anti-interference capability of traditional fieldbus, improves the transmission timeliness and reliability of high-priority services, realizes the step-by-step truncation and orderly transmission of multi-priority services, ensures the complete transmission of low-priority services, achieves ultra-long-distance service transmission effect, and enhances the anti-interference capability of service transmission.

[0017] In summary, this application identifies the priority of service packets by reserving fields in optical network frames, filters high-priority packets, truncates low-priority packets and stores transmission context information, and restores the transmission of low-priority packets after encapsulating and sending them in an improved frame format. This solves the technical problem of poor transmission compatibility in passive optical networks, improves the transmission efficiency of multiple services, the real-time performance of high-priority services and the reliability of transmission, and enhances anti-interference capabilities. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 is a flowchart illustrating the first embodiment of the message transmission method based on a passive optical network according to this application; Figure 2 is an uplink frame structure diagram according to this application; Figure 3 is a downlink frame structure diagram according to this application; Figure 4 is a frame format diagram of the improved GEM frame according to this application; Figure 5 is a topology diagram of industrial GPON carrying high-priority services according to this application; Figure 6 is a schematic diagram of industrial PON carrying TSN services according to this application; Figure 7 is a flowchart illustrating the truncation of low-priority GEM frames according to this application; Figure 8 is a schematic diagram illustrating the truncation of low-priority data by high-priority data according to this application; Figure 9 is a schematic diagram illustrating the truncation of GEM frames according to this application; Figure 10 is a flowchart illustrating the processing of downlink messages sent from the OLT to the ONU according to this application; Figure 11 is a flowchart illustrating the processing of uplink messages received from the ONU according to this application; Figure 12 is a flowchart illustrating the processing of uplink messages sent from the ONU to the OLT according to this application; Figure 13 is a flowchart illustrating the processing of downlink messages received from the OLT according to this application; Figure 14 is a structural schematic diagram of the message transmission device according to this application.

[0021] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0022] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.

[0023] In related technologies, service transmission mainly relies on the fixed fragmentation mechanism, general encapsulation technology and optical fiber transmission architecture of passive optical networks. At the same time, bus services achieve data interaction through cable transmission. This method is difficult to match the high real-time and deterministic requirements of specific service scenarios, resulting in poor transmission compatibility of passive optical networks.

[0024] This application provides a solution: First, after determining the priority of the service message to be transmitted based on its service attributes, the priority is written into a reserved field corresponding to the service message to be transmitted, resulting in a service message with a priority identifier. Then, the priority information of the service message with the priority identifier is compared with that of the currently transmitted service message. Higher priority service messages are transmitted first, and lower priority service messages are truncated. The transmission status information corresponding to the lower priority service messages is stored. Then, the higher priority service messages are encapsulated into optical network frames with an improved frame format. The optical network frames are sent to the corresponding receiving end device according to the transmission protocol and time slot allocation rules of passive optical networks. Finally, after the transmission of the optical network frames corresponding to the higher priority service messages is completed, the transmission status information of the lower priority service messages is called to continue transmitting the truncated lower priority service messages.

[0025] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or message transmission device capable of performing the above functions. The following description uses a message transmission device as an example to illustrate this embodiment and the subsequent embodiments.

[0026] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.

[0027] This application provides a message transmission method based on a passive optical network. Referring to Figure 1, Figure 1 is a flowchart of the first embodiment of the message transmission method based on a passive optical network of this application.

[0028] In this embodiment, the message transmission method based on passive optical network includes steps S10 to S40: Step S10, after determining the priority of the service message to be transmitted according to the service attributes of the service message to be transmitted, the priority is written into the reserved field of the corresponding service message to be transmitted to obtain a service message with priority identifier.

[0029] In this embodiment, a service message to be transmitted refers to a service data unit waiting to complete its transmission process in the optical network. Service attributes refer to the service-related characteristic information inherent in the service message to be transmitted. Priority refers to the level used to determine the transmission order of service messages. Reserved fields in a service message to be transmitted refer to pre-planned dedicated field areas within the service message to be transmitted, specifically for writing control-type identification information. A service message with priority identification refers to a service message to be transmitted that has priority information written in it and carries a transmission order level mark.

[0030] As an optional implementation, this method identifies all service attributes of the service message to be transmitted, checks against a pre-defined priority mapping rule base, and matches the priority level corresponding to each attribute. After determining the unique corresponding priority, the precise location of the reserved field in the service message to be transmitted is located, and the priority is written into that field according to a preset encoding format. After writing, the content in the field is verified to be completely consistent with the determined priority. Once it is confirmed that there is no deviation, a service message with priority identification is obtained. This method has high accuracy in priority matching and writing, and can avoid identification errors.

[0031] As an alternative implementation, a mapping table between service priorities and frame reserved field values ​​is pre-established. After receiving various service packets to be transmitted, this mapping table is queried to determine the priority field configuration value corresponding to each service packet. For uplink service packets, the reserved bits of their corresponding uplink frame indicator field are set to the queried configuration value. For downlink service packets, the reserved fields of their corresponding downlink frame identifier field are configured with the corresponding mapping value. Simultaneously, a unified packet fragmentation identifier is configured in the extended area of ​​the encapsulated frame. The priority bits of this identifier are associated with the marking information of the reserved fields. Service priorities are distinguished by the configuration values ​​of the reserved fields. After marking is completed, priority service packets are generated. This method has a simple frame processing flow, convenient configuration operations, and can improve packet marking efficiency.

[0032] Step S20: Compare the priority information of the service packets with priority identifiers with the service packets currently being transmitted, prioritize the transmission of higher priority service packets, truncate low priority service packets, and store the transmission status information corresponding to the low priority service packets.

[0033] In this embodiment, the currently transmitted service packet refers to the service packet that is currently occupying the optical network transmission channel for data transmission. Priority information refers to the content in the service packet used to characterize the transmission order. Higher priority service packets refer to service packets with priority identifiers that have a higher priority level than the currently transmitted service packet. Truncation of low-priority service packets means interrupting the transmission process of low-priority service packets that are currently in the transmission state. The transmission status information corresponding to low-priority service packets refers to the status information related to the transmission progress and the position of transmitted data when the low-priority service packet is truncated.

[0034] As an optional implementation, priority information in the reserved field markers and extended packet fragment identifiers of all pending priority service messages is parsed, and priority data corresponding to each pending priority service message is extracted to establish a dynamic priority list. The priority of each message in this priority list is compared in real-time with the priority of the currently transmitted message, level by level. When a higher priority message is identified, a transmission interruption command is triggered to terminate the transmission process of the current low-priority message. Simultaneously, the frame header configuration parameters, the end position of the transmitted data segment, the starting address of the remaining untransmitted data, the complete checksum, and the currently occupied transmission time slot information of the low-priority message are collected. The data is then packaged according to a preset data structure and stored in a dedicated cache space. This method has high priority comparison accuracy, can accurately identify high-priority messages at different levels, and stores complete on-site information.

[0035] As an alternative implementation, a fixed priority determination standard is pre-defined, dividing priorities into several fixed levels and specifying the determination threshold for each level. After receiving a priority service message to be processed, the core priority marker information in the reserved fields of the message is extracted and matched with the determination threshold to determine the priority level of the message. Simultaneously, the priority level of currently transmitted messages is monitored in real time. When a message with a higher priority level than the currently transmitted message is detected, a truncation mechanism is activated to stop the transmission of the low-priority message, and the message identifier, transmitted length, and remaining transmission length of the low-priority message are collected. This method has a simple processing flow, fast priority determination and information storage speed, and is suitable for scenarios where priority level division is simple and transmission speed is more important than accuracy.

[0036] Step S30: Encapsulate the higher priority service message into an optical network frame with an improved frame format, and send the optical network frame to the corresponding receiving device according to the transmission protocol and time slot allocation rules of the passive optical network.

[0037] In this embodiment, the improved frame format optical network frame is based on the original optical network frame structure, with the addition of extended fields and optimized field configurations to adapt to the frame structure of high-priority service transmission. The passive optical network (PON) transmission protocol is a standard specification that standardizes the data transmission format, interaction logic, and data verification rules in the optical network. The time slot allocation rule is a scheduling criterion for allocating transmission time slots to service packets based on service priority, transmission requirements, and network resource status. The receiving end device is an optical network terminal device that forms a communication link with the sender of the high-priority service packet to receive and process the optical network frame.

[0038] As an optional implementation, the complete data characteristics and priority of higher-priority service messages are parsed. A preset improved frame format template is invoked, adding a complete message index field and multiple sets of fragmentation identifiers between the frame header and payload of the optical network frame. The priority identifier bits are configured to a high-priority state, and the fragmentation identifier bits are configured to a complete frame state. The message index is filled to mark the transmission sequence. Then, the inherent field configuration is completed according to the standard requirements of passive optical network frames, and the service data is completely loaded into the payload area, completing the encapsulation of the improved frame format optical network frame. Subsequently, the core requirements of the passive optical network transmission protocol are deeply analyzed. Combined with the current network time slot occupancy, dedicated transmission time slots are dynamically allocated according to priority weights. After ensuring no time slot conflicts, the encapsulated optical network frame is converted into a signal suitable for transmission and sent to the corresponding receiving device according to the interaction process specified in the protocol. This method has strong frame encapsulation adaptability, can accurately match the transmission needs of high-priority services, offers flexible and efficient time slot allocation, and has high network resource utilization.

[0039] As an alternative implementation, a simplified improved frame format template is pre-defined, retaining core extended fields. Upon receiving a higher-priority service message, the core service data is extracted, the priority identifier bit is configured to a high-priority state, the message index and inherent basic fields of the frame are quickly filled, and the service data is loaded into the payload area, completing the rapid encapsulation of the simplified improved frame format optical network frame. Subsequently, without dynamically calculating time slot allocation, a pre-defined fixed time slot dedicated to high-priority services is invoked. Following the basic interaction rules of the passive optical network transmission protocol, the encapsulated optical network frame is converted into a transmission signal and sent to the corresponding receiving device through the dedicated time slot. This method features a simple and efficient encapsulation and transmission process with fast processing speed.

[0040] Step S40: After the optical network frame corresponding to the higher priority service message is transmitted, the transmission status information of the lower priority service message is called to continue transmitting the truncated lower priority service message.

[0041] In this embodiment, transmission completion means that the optical network frame has been fully delivered to the corresponding receiving device without any transmission abnormalities.

[0042] As an optional implementation, after the optical network frame corresponding to a higher-priority service message has been transmitted, it is first confirmed that the transmission link has been released and no other high-priority service messages are waiting to be transmitted. Then, the transmission status information of the previously stored low-priority service messages is retrieved, and this information is thoroughly verified and analyzed to extract the complete configuration parameters of the frame header, the end position of the transmitted data, the complete fragment of the remaining untransmitted data, the original checksum, and the corresponding transmission time slot information. Based on the analysis results, the transmission structure of the low-priority service messages is reconstructed, and the remaining untransmitted data fragments are precisely joined with the transmitted parts in the original order. The frame checksum field and transmission status identifier are reconfigured to ensure that the message structure is consistent with that before truncation. Subsequently, the reconstructed low-priority service messages are sent according to the passive optical network transmission protocol and the originally allocated time slot rules. This method provides comprehensive transmission status information analysis, high message reconstruction accuracy, and maximizes the integrity of low-priority service messages.

[0043] As an alternative implementation, after the optical network frame corresponding to a higher-priority service message has been transmitted and the link is idle, the transmission status information of the lower-priority service message is retrieved. The core key data of this transmission status information is extracted, including the message identifier, the length already transmitted, and the starting address of the remaining untransmitted data. The remaining untransmitted data is used as an independent transmission unit, retaining the core configuration of the original improved frame format, and updating the transmission progress indicator and remaining data length information in the frame header to maintain compatibility with the original transmission protocol. Subsequently, the transmission process of the remaining data is initiated according to the currently idle time slot resources of the passive optical network. This method is simple and efficient, can quickly restore the transmission of low-priority messages, and consumes few processing resources.

[0044] Referring to Figures 2, 3, and 4, Figure 2 shows the uplink frame structure of this application, Figure 3 shows the downlink frame structure of this application, and Figure 4 shows the improved GEM frame format of this application. To distinguish conventional GPON services, the reserved fields of the GPON protocol are used. Uplink messages are identified using the 0-bit Index field of the PLOu, and downlink messages are identified using the Reserved field of the Ident. Additionally, the GEM frame fields are extended by adding a one-byte message index and four fragment identifiers between the GEM Header and Payload. Each fragment identifier includes a 1-bit priority and a 1-bit fragment representation. By prioritizing high-real-time service messages, the GPON OLT and ONU at the central office truncate lower-priority messages and prioritize the transmission and reception of higher-priority messages. After the high-priority service messages are transmitted and received, the other truncated ordinary-priority service messages are then transmitted. The GPON OLT and ONU need to support the reassembly function after message truncation. Refer to Table 1: Ind field format

[0045] By reserving fields to identify service priorities, truncating low-priority messages and storing them on-site, and encapsulating improved frames to restore low-priority messages after transmission, the problem of insufficient real-time performance of high-priority services and easy interruption of low-priority services in indoor multi-service transmission is solved, thereby improving the transmission timeliness of real-time services such as indoor video conferencing and the orderliness of multi-service transmission.

[0046] Based on any of the above embodiments, in Embodiment 2 of this application, step S10 includes steps A11 to A13: Step A11, identifying the service attributes of the service message to be transmitted, and distinguishing the priority of the service message to be transmitted according to the priority determination rule.

[0047] As an optional implementation, this method extracts multi-dimensional features of the service messages to be transmitted, including protocol type, data transmission rate, message length variation patterns, and interactive response requirements. These features are then compared one by one with a pre-defined service type feature library, and the type of the service message is determined by the feature matching degree. Simultaneously, based on pre-defined priority classification rules, messages corresponding to service types with real-time interaction requirements, small data transmission rate fluctuations, and strict response latency requirements are classified as high-priority service messages, while messages corresponding to service types without real-time interaction requirements, flexible data transmission rates, and lenient response latency requirements are classified as ordinary-priority service messages. This method offers high accuracy in service type identification, comprehensive priority differentiation criteria, and effectively avoids misjudgments, ensuring accurate selection of high-priority services.

[0048] Step A12: When generating an uplink frame, configure the least bit of the indicator field reserved for the uplink frame, and when generating a downlink frame, configure the reserved field of the downlink frame identifier field to obtain a service message with the priority identifier of the reserved field.

[0049] In this embodiment, the least significant bit of the uplink frame reserved indicator field is the least significant data bit in the uplink frame indicator field that is pre-reserved and has not been assigned a default function. The reserved field of the downlink frame identifier field is a field in the downlink frame identifier field that is pre-reserved for extended functions. Service messages with priority indicators in reserved fields are transmittable service messages whose priority is marked by configuring the reserved fields of the uplink or downlink frames.

[0050] As an optional implementation, after acquiring a high-priority service message, during the uplink frame generation process, the least significant bit of the reserved indicator field in the uplink frame is first checked for idle status to confirm that the bit is not occupied by other functions. Then, the status value of this bit is configured according to the preset high-priority identification rules. Simultaneously, when generating the downlink frame, conflict verification is performed on the reserved field of the downlink frame identifier field. After eliminating field occupation conflicts, the reserved field is filled according to the marking specification corresponding to the high-priority service. After configuration, the consistency of the configuration results of the least significant bit of the uplink frame indicator field and the reserved field of the downlink frame identifier field is verified to ensure that the identifier information matches the high-priority service attributes, ultimately resulting in a service message with a priority identifier containing the reserved field. This method's pre-configuration status detection and conflict verification effectively avoid field occupation conflicts, resulting in high identifier configuration accuracy and suitability for transmission scenarios with high identifier reliability requirements.

[0051] Step A13: Expand the format of the optical network encapsulation frame corresponding to the service message with reserved field priority identifier, add a one-byte message index and multiple sets of packet fragment identifiers between the frame header and the payload, and configure the corresponding priority identifier according to the priority of the service message to be transmitted to obtain the service message with priority identifier.

[0052] In this embodiment, format expansion is an adjustment operation that adds new fields to the structure of the original optical network encapsulation frame. The frame header is the starting part of the optical network encapsulation frame used to carry frame attributes and transmission control information. The payload is the core service data part carried in the optical network encapsulation frame. A one-byte message index is a unique identifier occupying one byte of storage used to mark the transmission order of service messages. Multiple sets of packet fragmentation identifiers are combinations of identifiers used to characterize whether a service message has been truncated and its truncation status. The corresponding priority identifier is marking information that matches the priority of the service message one-to-one.

[0053] As an optional implementation, after obtaining a service packet with a priority identifier in the reserved field, the priority flag information in the reserved field is first parsed to determine the priority of the service packet. Then, the number of packet fragment identifier groups is dynamically allocated based on this priority; the higher the priority, the more packet fragment identifier groups are allocated. Subsequently, a one-byte packet index is inserted between the frame header and payload of the optical network encapsulated frame. This packet index is generated sequentially according to the reception order of the service packets. Next, the allocated multiple groups of packet fragment identifiers are configured adjacent to the packet index, with each group of packet fragment identifiers associated with a corresponding priority. Finally, based on the parsed priority, a matching priority identifier is configured for each group of packet fragment identifiers to ensure that the identifier information is consistent with the reserved field flag. After frame format expansion, a service packet with priority identifiers is obtained. This method allocates the number of packet fragment identifier groups on demand, has strong priority identifier correlation, and can accurately adapt to the transmission requirements of different service levels.

[0054] For example, referring to Figure 5, which is a topology diagram of industrial GPON carrying high-priority services according to this application. Topology description: The OLT is connected to a TSN device containing a master clock (because there is only one hop from the OLT to the ONU, synchronizing the clock of the TSN device connected to the OLT is the most efficient and accurate method); multiple ONUs are connected to the PON interface of each OLT, and one or more TSN devices are connected to each ONU; the OLT maintains a mapping relationship between the MAC addresses of the OLT PON interface, ONUs, and TSN devices, as shown in Table 2: Table 2 OLT and Slave Correspondence Table

[0055] The ONU stores the mapping relationship between the MAC addresses of Eth Port and TSN devices, as shown in Table 3: Table 3 ONU Slave Mapping Table

[0056] For example: ONU1~ONUx are connected to PON interface 3 of OLT; TSN device 1 is serially connected to Eth Port 1 of ONU1, TSN device 2 is serially connected to Eth Port 1 of ONU2, TSN device 3 is serially connected to Eth Port 1 of ONU3; and so on, TSN device n-1 is connected to Eth Port 1 of ONUx-1; TSN device n is serially connected to Eth Port 1 of ONUx.

[0057] By using service type identification, reserved field configuration, and frame format expansion, the problems of confusion and unclear identification of indoor multi-service transmission priorities have been solved, improving the accuracy of indoor service priority identification and transmission order.

[0058] Based on any of the above embodiments, in Embodiment 3 of this application, step S20 includes steps B11 to B13: Step B11, parsing the service message with priority identifier, and extracting the priority identifier in the reserved field of the service message with priority identifier and the priority information corresponding to the priority identifier in the extended frame.

[0059] In this embodiment, the priority identifier in the reserved field is priority marking information configured in the least significant bit of the uplink frame indicator field or the reserved field of the downlink frame identifier field on the optical network. The extended frame is an optical network encapsulation frame that has been format-extended and includes a message index and multiple sets of packet fragment identifiers. The priority identifier in the extended frame is marking information associated with the service priority among the multiple sets of packet fragment identifiers within the extended frame. The priority information is information that corresponds one-to-one with the priority identifier and characterizes the importance and real-time level of the service.

[0060] As an optional implementation, after receiving a service message with priority identifiers, the frame header, extended fields, and payload area are first disassembled layer by layer according to the optical network frame structure specification. The least significant bit of the uplink frame indicator field or the reserved field of the downlink frame identifier field is located, and the reserved field priority identifier stored therein is extracted. Then, the multiple sets of packet fragment identifiers between the frame header and payload in the extended frame are focused on, and the field information associated with priority in each set of identifiers is parsed one by one. Subsequently, the priority identifiers in the reserved fields are checked for consistency with the priority identifiers in the extended frame. After eliminating identifier conflicts, the corresponding priority information is determined according to the preset identifier-level mapping relationship. This method makes the parsing process comprehensive and includes consistency checks, resulting in high accuracy and reliability of the extracted priority information.

[0061] Step B12 involves comparing the priority of each extracted service message with the priority of the currently transmitted service message in real time, and filtering out target service messages with a higher priority than the currently transmitted service message.

[0062] In this embodiment, the target service message refers to a priority service message with a higher priority than the currently transmitted service message and which needs to be scheduled for transmission first.

[0063] As an optional implementation, a dynamic sequence is established by prioritizing all extracted service packets with priority identifiers in descending order of priority. Simultaneously, the priority of currently transmitted service packets is acquired in real time and set as the baseline level. Then, following the dynamic sequence, the priority of each packet to be processed is progressively compared with the baseline level, with the transmission readiness status of the packet being processed being checked simultaneously. Only when the priority is clearly higher than the baseline level and the transmission readiness status meets the requirements is the packet included in the candidate range. Finally, all packets meeting the criteria are selected as target service packets from the candidate range. This method has rigorous comparison logic and can avoid filtering out high-priority packets that cannot be transmitted immediately.

[0064] Step B13: After determining that there is a target service message with a higher priority, truncate the transmission operation of the currently transmitted low-priority service message and store the transmission status information of the low-priority service message.

[0065] As an optional implementation, after determining that a higher-priority target service message exists, the priority and transmission readiness status of that target service message are first obtained. If it is confirmed that no additional resources are needed, an ordered truncation command is sent to the currently transmitting lower-priority service message. Upon triggering the command, data transmission is gradually stopped, and the transmission process is completely interrupted after the current transmission time slot ends, avoiding data transmission chaos. Subsequently, the complete frame header configuration, the end position of transmitted data, the complete fragment of remaining untransmitted data, checksum information, and the currently occupied transmission time slot parameters of the lower-priority service message are comprehensively collected. This information is categorized and organized according to a preset data structure, stored in a dedicated buffer area, and its integrity is verified to ensure that there are no missing or incorrect transmission information. This method features an ordered truncation process, avoids data transmission conflicts, and ensures that the stored transmission information is complete and accurate, eliminating the need for additional data supplementation when resuming transmission.

[0066] For example, referring to Figure 6, which is a schematic diagram of the industrial PON carrying TSN service according to this application. The OLT sends TSN messages as follows: The OLT is sending a normal service A (the serial number field Index is continuously incremented, the priority field Priority0 is 1, and Fragment0 is 0) ordinary message; the OLT receives a message from a high-priority TSN device and truncates the ordinary service message (the priority field Priority0 of service message A remains unchanged). <1> The corresponding fragment field Fragment0 is inverted. <1> After the ordinary service A message is truncated, the high-priority TSN message is processed (the TSN service priority is set to 1, which is higher than priority 0). The current information of service A needs to be saved, including the message header, message length, remaining message length, checksum, etc. The TSN service is encapsulated into a GEM frame, where the Priority1 field of the GEM frame is set to 1 and the Fragment1 field is set to 0. Additionally, the priority0 field used by ordinary service A is set to 1, and the Fragment0 field is set to 1. Then, the OLT encapsulates it into a GEM frame and sends it to the corresponding PON interface (as specified by the operator, via command-line parameters or configuration parameters). After the OLT sends the high-priority TSN message... After the initial message, the remaining packets of ordinary service A are sent. At this time, the priority field Priority1 of the high-priority TSN service is 0, and the fragment field Fragment1 is 0. The remaining packets of service A have a priority field Priority0 of 1 and a fragment field Fragment0 of 1. If a service packet with a higher priority than TSN is received during this period, the TSN service will also be truncated. At this time, the priority field Priority0 of ordinary service A is 1, and Fragment0 is 1. The priority fields Priority1 and Fragment1 of the TSN service are 1, and the priority field Priority2 of the higher-priority service is 1, and Fragment2 is 0. Then, the higher-priority service packets are sent first. If packets with the same or lower priority as service A are received during this period, the OLT needs to allocate different queues for caching. When the high-priority TSN message transmission is complete, it is necessary to resume the transmission of ordinary service messages. That is, the priority field Priority1 and Fragment1 for TSN services are 0, and the priority field Priority0 and Fragment0 for ordinary services are 1, indicating that the ordinary service message was truncated.

[0067] By resolving dual identifiers to improve priority, comparing and screening targets in real time, and truncating low-priority messages to preserve the field, the problems of delayed scheduling of high-priority messages and loss of field information after truncating low-priority messages in indoor multi-service transmission have been solved, thus improving the real-time performance of indoor high-priority service transmission and the integrity of low-priority service recovery.

[0068] Based on any of the above embodiments, in Embodiment 4 of this application, step B12 includes steps C11 to C13: Step C11, the priority corresponding to the currently transmitted service message is used as the priority comparison benchmark.

[0069] In this embodiment, the priority comparison benchmark is a reference standard used to determine the priority of other service messages.

[0070] As an optional implementation, the unique identifier of the currently transmitted message is obtained. Based on this identifier, a precise search is performed in the stored priority information set to extract the priority that uniquely matches the identifier. Subsequently, a bidirectional consistency check is performed between the extracted priority and the priority information associated with the message's reserved fields and extended frame identifier to eliminate deviations caused by identifier mismatch, priority information tampering, or transmission anomalies. Once the check results confirm consistency and no anomalies, this priority is formally set as the priority comparison benchmark. This method ensures extremely high accuracy in benchmark determination, effectively avoiding comparison benchmark errors caused by identifier confusion or information anomalies, and guaranteeing the accuracy of the comparison results.

[0071] Step C12: Extract the priority of each service packet with priority identifier one by one, compare it with the priority comparison benchmark in real time, and determine whether the priority of each service packet with priority identifier is higher than the priority of the service packet currently being transmitted.

[0072] As an optional implementation, the priority of each message is extracted sequentially according to the receiving order of the service messages to be processed. First, the extracted priority information is validated to ensure the level is within a preset reasonable range and that the fields are complete and without missing data, excluding invalid or abnormal priority data. Then, the validated levels are compared layer by layer with a priority comparison benchmark, strictly adhering to preset level determination rules to confirm messages whose priority values ​​are higher than the benchmark. Simultaneously, the comparison process, validation results, and final determination conclusion for each message are fully recorded to ensure the traceability of the comparison logic. This method offers high comparison accuracy, filters out misjudgments caused by invalid data, and avoids errors in subsequent scheduling decisions.

[0073] Step C13: Based on the comparison results, filter out all service packets with a priority higher than the comparison benchmark, and determine them as target service packets that need to be transmitted with priority.

[0074] In this embodiment, the comparison result refers to the judgment conclusion obtained by comparing the priority of each service message to the priority comparison benchmark. The target service message that needs to be transmitted first is the service data carrier that has been selected and needs to be scheduled for transmission before the currently transmitted service message.

[0075] As an optional implementation, the comparison results of all pending service messages are first aggregated and categorized according to their criteria: higher than the benchmark, equal to the benchmark, and lower than the benchmark. All service messages in the higher-than-benchmark category are then extracted. Subsequently, the transmission readiness status of these messages is verified a second time, checking data integrity, link compatibility, and resource usage, excluding messages that do not yet meet the transmission requirements. Next, the messages are sorted from highest to lowest priority. If messages of the same priority exist, they are sorted according to their reception time. Finally, the sorted messages are sequentially identified as the target service messages that require priority transmission. This method has rigorous selection logic, avoids ineffective scheduling, ensures the high executability of target service messages, and maximizes the utilization of transmission resources.

[0076] For example, referring to Figure 7, which is a flowchart of the low-priority GEM frame truncation process of this application. ONU message receiving process: The ONU receives ordinary messages of service A until it receives a truncated message (the priority field Priority0 is the same as service A, but the corresponding fragment field Fragment0 is inverted, indicating that the service A message is truncated); upon receiving the fragmented message of service A truncated by the TSN message, the ONU buffers the truncated packet of service A and waits to receive the remaining messages for reassembly; the ONU receives the high-priority broadcast Gem frame packet encapsulating the TSN message and then sends it to the TSN device on the Eth Port; after receiving the TSN message, the ONU continues to receive the remaining messages of service A, and then reassembles and forwards them; the TSN device under the ONU Eth Port returns the message to the ONU after completing message processing; the ONU then reassembles the Gem frame and returns it to the OLT; the OLT receives the Gem frames of all ONUs and then processes them according to the TSN device of the OLT; the TSN device receives the message, and the process ends.

[0077] By establishing a benchmark, conducting real-time comparisons, and filtering targets, the problem of disordered priority comparisons and inaccurate target filtering in indoor multi-service transmissions has been solved, thereby improving the efficiency of indoor service priority comparisons and the accuracy of target message filtering.

[0078] Based on any of the above embodiments, in Embodiment 5 of this application, step S30 includes steps D11 to D13: Step D11, based on the priority of the higher priority service message, configure the complete frame identifier corresponding to the extended fragment identifier of the higher priority service message, and fill the message index marker transmission sequence to obtain a higher priority service message with extended field configuration.

[0079] In this embodiment, the extended packet fragment identifier is a combination of identifiers in the extended field of the optical network encapsulation frame used to characterize the integrity and priority status of the packet. The complete frame identifier is a specific identifier bit in the extended packet fragment identifier used to mark that the packet has not been truncated and the data is complete. The packet index is identification information used to uniquely identify the transmission order of service packets. The transmission sequence is a queue of service packets arranged according to scheduling priority. Higher priority service packets with extended field configuration are higher priority service data carriers that have completed the configuration of the complete frame identifier, the filling of the packet index, and the readiness of the extended field parameters.

[0080] As an optional implementation, the priority of higher-priority service packets is parsed, and the field length and status configuration rules of the complete frame identifier in the extended packet fragment identifier are dynamically adjusted according to the priority. The higher the priority, the richer the check bits of the complete frame identifier. Then, the reserved position corresponding to the complete frame identifier in the extended packet fragment identifier is located, and the identifier status is configured according to the adjusted rules to ensure that the identifier accurately reflects the complete transmission attributes of the packet. Simultaneously, a continuous transmission sequence is generated according to the scheduling order of high-priority services to be transmitted in the current optical network. Based on this transmission sequence, a unique packet index is assigned to each packet, and the index information is completely filled into the index bits of the extended field. During the filling process, the consistency between the index and the transmission sequence is simultaneously verified to ensure that the index accurately marks the transmission order. Finally, a higher-priority service packet with extended field configuration is obtained. This method has strong adaptability of the complete frame identifier, can match the transmission requirements of high-priority services at different levels, has high consistency between the index and the sequence, and is adaptable to complex high-priority service scheduling scenarios.

[0081] Step D12: Based on the higher priority service message configured with extended fields, fill the inherent fields of the optical network encapsulation frame, load the service data into the frame payload area, and obtain the improved optical network frame.

[0082] In this embodiment, the frame payload area is a region within the optical network encapsulated frame specifically used for storing service data.

[0083] As an optional implementation, the integrity of the extended fields of higher-priority service messages with extended field configuration is verified. After confirming the validity of the complete frame identifier and message index configuration, the inherent fields of the optical network encapsulation frame are dynamically adapted according to the data length, transmission protocol requirements, and priority of the message. The frame synchronization word, length indicator, protocol version, and verification fields are filled in according to their functions, with the filled value of each inherent field precisely matching the attributes of the service message. Subsequently, the service data is segmented according to the format specifications of the frame payload area to ensure that the data format is consistent with the payload area requirements. Then, the data is loaded into the payload area segment by segment, with data integrity verified synchronously during the loading process to avoid data overflow or loss, ultimately resulting in an improved optical network frame. This method has strong inherent field filling adaptability, high service data loading accuracy, and good frame structure stability, making it suitable for scenarios with high requirements for frame structure reliability.

[0084] Step D13: According to the transmission protocol and time slot allocation rules of the passive optical network, the improved optical network frame is converted into an optical signal adapted for network transmission and sent to the receiving optical network terminal equipment corresponding to the higher priority service message.

[0085] In this embodiment, the optical signal adapted for network transmission is the conversion of optical network frames into a signal format that meets the requirements of the optical transmission link. The corresponding receiving optical network terminal device is a terminal that establishes a communication link with the sender of higher priority service messages and is used to receive and process the optical signal.

[0086] As an optional implementation method, this approach first deeply analyzes the core requirements of the passive optical network (PON) transmission protocol, clarifying the frame interaction timing, signal modulation standards, and data verification rules. Then, based on the time slot allocation rules, combined with the current network time slot occupancy status, link bandwidth, and other service transmission requirements, it dynamically calculates and allocates dedicated transmission time slots adapted to higher-priority services, ensuring no time slot conflicts and minimal transmission latency. Subsequently, the improved optical network frame is converted into an optical signal according to the signal format specified in the protocol. During the conversion process, the signal power and modulation frequency are optimized to adapt to the transmission link characteristics, and a corresponding verification signal is generated and appended to the transmitted signal. Finally, within the allocated dedicated time slot, the optical signal is directionally transmitted to the corresponding receiving optical network terminal equipment according to the protocol interaction process, with real-time monitoring of the signal transmission status during transmission. This method exhibits strong transmission adaptability, dynamically adapts to changes in network status, and demonstrates high signal transmission stability and reliability.

[0087] For example, referring to Figures 8 and 9, Figure 8 is a schematic diagram of high-priority data truncating low-priority data according to this application, and Figure 9 is a schematic diagram of GEM frame truncation according to this application. In a gigabit passive optical network scenario in an indoor office area, the source device receives a normal data GEM frame containing a GEM frame header, a packet break identifier, and a 1024-byte GEM payload. After filling in the inherent fields of the optical network encapsulation frame, transmission is initiated. At this time, high-priority data with priority 1 arrives. Based on its priority, the complete frame identifier corresponding to the extended packet break identifier of the high-priority service message is configured to be "complete", and the message index is filled with 001 to mark the transmission sequence, resulting in a higher-priority service message with extended field configuration. Based on this message, the inherent fields such as frame synchronization word and length indicator of the optical network encapsulation frame are filled in, and 1024 bytes of high-priority service data are loaded into the frame payload area, resulting in an improved optical network frame containing a GEM frame header, a packet break identifier, and a GEM payload. According to the transmission protocol and time slot allocation rules of passive optical networks, at the preemption point, the currently transmitted ordinary data GEM frame (the truncated portion is the GEM frame containing the GEM frame header, packet break identifier, and the first 512 bytes of GEM payload) is truncated. The improved optical network frame is converted into an optical signal adapted for network transmission and sent to the corresponding receiving optical network terminal equipment through a high-priority dedicated time slot. After the receiving end completes the verification, it enters a waiting state. After the optical signal corresponding to the high-priority service message is transmitted, the source device triggers the transmission of the truncated ordinary data, fills the remaining 512 bytes of GEM payload into a new GEM frame containing the GEM frame header and packet break identifier, converts it into an optical signal for transmission, and the target device concatenates the truncated GEM frame with the remaining GEM frame to complete the retransmission of ordinary data.

[0088] By configuring extended packet fragmentation identifiers, constructing improved optical network frames, and preemptively transmitting high-priority data followed by ordinary data, the problems of delayed high-priority data scheduling and easy loss of ordinary data in indoor passive optical networks have been solved, thereby improving the real-time performance of indoor high-priority service transmission and the integrity of ordinary service transmission.

[0089] Based on any of the above embodiments, in Embodiment Six of this application, step S40 includes steps E11 to E13: Step E11, monitor the transmission status of the optical network frame corresponding to the higher priority service message, and after confirming that the optical network frame has been completely sent to the target receiving end device, retrieve the previously stored transmission status information of the lower priority service message.

[0090] In this embodiment, the transmission status refers to real-time status information such as the transmission progress, link status, and receiver feedback of the optical network frame during transmission. The previously stored transmission status information of low-priority service packets includes key status data such as frame structure parameters, transmitted data status, and remaining data information recorded when the low-priority service packets are truncated.

[0091] As an optional implementation, the transmission link feedback information of the optical network frame corresponding to the higher-priority service message is received, and its transmission progress, link connection status, and real-time response of the target receiving device are continuously monitored. After each data segment is sent, the receiving end's reception acknowledgment signal is synchronously acquired. After all data has been sent, the frame integrity verification result returned by the receiving end is further acquired. Once the verification result confirms that it meets the preset standard and the optical network frame has been completely delivered, the dedicated area previously storing the transmission status information of the lower-priority service message is located, and this information is retrieved and subjected to a second integrity verification to ensure that the information is not missing or damaged. This method provides comprehensive transmission status monitoring and high accuracy in information retrieval, avoiding subsequent errors caused by incomplete transmission or information corruption, and ensuring the smooth resumption of transmission of subsequent lower-priority service messages.

[0092] Step E12: Parse the transmission context information of the low-priority service message, extract the message header, transmitted length, remaining untransmitted data and checksum of the low-priority service message, adjust the extended fragmentation identifier of the low-priority service message, and confirm the fragmentation mark.

[0093] In this embodiment, the packet header is the area at the beginning of a low-priority service packet that carries frame attributes and control information. The transmitted length is the length of data transmitted before the packet was truncated. The remaining untransmitted data is the portion of data that has not yet been transmitted after the packet was truncated. The checksum is information used to verify the integrity of the packet data. Adjusting the extended packet break identifier is an operation to update the status of the packet break identifier in the packet's extended field. The fragmentation flag is a flag bit in the extended packet break identifier that marks the packet as being in a fragmented state after truncation.

[0094] As an optional implementation, the transmission context information of low-priority service messages is parsed layer by layer, sequentially locating the message header, transmitted length, remaining untransmitted data, and the storage area corresponding to the checksum. After extracting this information, cross-validation is performed on the extracted content to confirm the matching between the message header and the transmitted length, and the correspondence between the remaining untransmitted data and the checksum. Subsequently, the position of the extended fragmentation identifier is located, and the status bits in the identifier are adjusted based on the transmitted length and the status of the remaining untransmitted data, setting the fragmentation marker to the corresponding status. Simultaneously, the accuracy of the fragmentation marker is confirmed by correlating it with the message header information, ensuring that the identifier accurately reflects the truncated fragmentation attribute of the message. This method provides comprehensive parsing with cross-validation, high information accuracy, precise identifier adjustment, and accurate data reassembly during transmission recovery, avoiding data corruption.

[0095] Step E13: Based on the fragment marker, reassemble the untransmitted data and the transmitted portion of the low-priority service message, and continue to send the reassembled low-priority service message to the corresponding receiving device according to the transmission protocol and time slot allocation rules of the passive optical network.

[0096] In this embodiment, reassembly is the operation of splicing and integrating the truncated, untransmitted data of a low-priority service message with the previously transmitted portion in the original order. The reassembled low-priority service message is a low-priority service data carrier that has completed the integration of the untransmitted data and the transmitted portion.

[0097] As an optional implementation, the status of the fragment marker is first confirmed to verify whether it matches the truncation status of the low-priority service message. Then, based on the end data identifier of the transmitted portion and the beginning identifier of the untransmitted data, the two parts of data are precisely joined according to the original transmission order. After joining, the integrity of the reassembled data is checked to ensure that the data order and content are consistent. Next, the passive optical network transmission protocol is parsed to adapt to the format requirements of the reassembled message. Simultaneously, according to the time slot allocation rules, a currently idle transmission time slot matching the low-priority service is requested. After the time slot allocation is completed, the reassembled low-priority service message is sent to the corresponding receiving device according to the protocol requirements, with the link status monitored synchronously during transmission. This method offers high joining and reassembly accuracy, reliable data integrity, and strong adaptability to transmission protocols and time slots.

[0098] For example, referring to Figures 10 and 11, Figure 10 is a flowchart of the downlink message transmission from the OLT to the ONU in this application, and Figure 11 is a flowchart of the uplink message reception from the OLT to the ONU in this application. In a residential passive optical network scenario, after the OLT is initialized, it transmits a regular low-priority GEM frame (with a header of 0x1234 and a total length of 2048 bytes) to the ONU in segments. When 1024 bytes of this frame have been transmitted, the OLT detects a transmission request for a higher-priority GEM frame (priority 1), triggers a preemption command, truncates the regular low-priority GEM frame, and sends the high-priority GEM frame. After detecting that the optical network frame corresponding to the high-priority service message has been completely transmitted to the ONU (target receiving device), the OLT retrieves the previously stored transmission status information of the low-priority GEM frame. The information is parsed to extract the message header 0x1234, the transmitted length of 1024 bytes, the remaining untransmitted data of 1024 bytes, and the checksum 0xABCD. The extended fragmentation flag of the low-priority GEM frame is adjusted to confirm that the fragmentation mark is "truncated". After receiving the high-priority GEM frame, the ONU first buffers the low-priority GEM frame. After receiving and processing the high-priority GEM frame, if the high-priority message is not fragmented, it continues to receive. After the high-priority message processing is completed, the remaining 1024 bytes of untransmitted data are reassembled with the transmitted 1024 bytes based on the fragmentation mark. The OLT, according to the passive optical network transmission protocol and time slot allocation rules, occupies the dedicated time slot for low-priority services and continues to send the reassembled low-priority GEM frame to the ONU. After the ONU completes the low-priority message reassembly, the low-priority message processing is completed.

[0099] By monitoring high-priority frame transmission, retrieving low-priority field information, and reassembling low-priority data for retransmission, the problem of easy loss and chaotic retransmission of low-priority packets after truncation in indoor passive optical networks is solved, thus improving the integrity and order of indoor multi-service transmission.

[0100] Based on any of the above embodiments, in Embodiment 7 of this application, after step S40, steps F11 to F13 are further included: Step F11, the receiving end receives the remaining part of the low-priority service message, combines the received message truncation fragments, verifies the fragment status identifier and message index in the integrity verification extended packet fragment identifier, and reassembles the low-priority service message.

[0101] In this embodiment, reassembling the low-priority service message is an operation of splicing the remaining part and the received truncated fragments in the original order to form a complete message.

[0102] As an optional implementation, after receiving the remaining portion of a low-priority service message, the receiving end first locates the storage area of ​​the received truncated message fragment and extracts the fragment status identifier and message index from the extended fragment identifier. Then, it extracts the identifier and index corresponding to the remaining portion, first verifying whether the fragment status identifier matches the truncation and resumption status logic. Next, it verifies whether the message indices of both are completely identical, ensuring they are two parts of the same message. Subsequently, the remaining portion is concatenated after the truncated fragment according to the transmission order corresponding to the message indices. After concatenation, the integrity of the overall data is verified again, finally completing the reassembly of the low-priority service message. This method's multi-round verification ensures the accuracy of the reassembly, avoids mis-splitting of different message fragments, and stably guarantees the integrity and correctness of the reassembled message.

[0103] Step F12 involves performing protocol parsing and data verification on the reassembled low-priority service packets. After confirming that there are no transmission errors in the packets, the reassembled low-priority service packets are forwarded to the corresponding target user equipment according to the device mapping relationship stored locally.

[0104] In this embodiment, the locally stored device mapping relationship refers to the corresponding association information between the service message identifier and the target user equipment, which is recorded locally by the receiving end.

[0105] As an optional implementation, a full protocol parsing is performed on the reassembled low-priority service messages, disassembling all fields such as the frame header, payload, and checksum, and extracting the corresponding control and content information. Subsequently, multi-dimensional data verification is conducted: comparing the message's built-in checksum, verifying the data length's consistency with the protocol agreement, and checking if the content format matches the service type. After confirming no errors, the locally stored device mapping relationship is retrieved to verify the validity of the mapping relationship corresponding to the message identifier. After eliminating invalid associations, the message is forwarded to the corresponding target user device, while simultaneously monitoring the forwarding link status to ensure message delivery. This method features comprehensive protocol parsing, rigorous data verification, and high accuracy and reliability in targeted forwarding.

[0106] In step F13, the sending end and the receiving end update the transmission completion status of the low-priority service message respectively, release the previously cached transmission site information, message fragments and related hardware resources, and reserve resources for the scheduling and transmission of subsequent service messages of various priorities.

[0107] In this embodiment, reserved resources refer to resources that can be used by subsequent services after being released.

[0108] As an optional implementation, the sending and receiving ends synchronously update the transmission completion status of low-priority service packets. First, the consistency between the status update command and the actual transmission result is verified to ensure accurate status modification. Then, the cached transmission status information and the storage location of packet fragments are retrieved one by one, and a simple backup of this data is made. Next, the corresponding storage areas are released sequentially, followed by the release of relevant hardware resources step-by-step according to resource type, monitoring resource occupancy during the release process. After confirming complete resource reclamation, a resource release details log is recorded to reserve resources for subsequent services. This method features rigorous status updates, thorough resource release, and supports anomaly backtracking, ensuring orderly and traceable resource reclamation.

[0109] For example, referring to Figures 12 and 13, Figure 12 is a flowchart of the ONU uplink message sent to the OLT in this application, and Figure 13 is a flowchart of the ONU downlink message received from the OLT in this application. In the message transmission scenario, after the OLT initializes, it waits for the ONU to be ready and transmits a low-priority GEM frame with a total length of 1536 bytes (message header 0x5678, message index 002, extended fragmentation flag initially set to "complete") to the ONU. When the frame has been transmitted to 768 bytes, a higher-priority GEM frame (priority 2) arrives. The OLT triggers a preemption action command, truncates the current low-priority GEM frame (the extended fragmentation flag fragmentation status is updated to "truncated"), and sends the higher-priority GEM frame. After ONU initialization, before receiving higher-priority GEM frames, it buffers a 768-byte truncated fragment of the low-priority GEM frame (the extended fragment identifier shows the fragment status as "truncated"). It then receives and completes the reception of the higher-priority GEM frame, performs high-priority message processing, and simultaneously detects that the low-priority message is truncated, continuing to receive the remaining 768 bytes of the low-priority service message. After receiving this remaining portion, the ONU combines the received 768-byte truncated fragment with the fragment status identifier ("truncated, resumed") in the extended fragment identifier and the message index (002) for integrity verification. Once the two match, they are reassembled into a complete 1536-byte low-priority GEM frame. The reassembled low-priority GEM frame is then parsed, its header and payload fields are disassembled, and the data is verified (the message's built-in checksum 0x1122 matches the calculated result after parsing). After confirming there are no transmission errors, the reassembled low-priority GEM frame is forwarded to target user equipment A according to the locally stored device mapping relationship (message index 002 corresponds to target user equipment A). Finally, the sending end OLT and the receiving end ONU update the transmission completion status of the low-priority GEM frame to "completed". The OLT releases the previously cached transmission status information of the low-priority GEM frame (768 bytes of transmitted length and 768 bytes of remaining untransmitted length). The ONU releases the cached low-priority GEM frame truncated fragments and related storage hardware resources to reserve resources for the scheduling and transmission of subsequent high-priority service messages.

[0110] By caching low-priority message fragments, verifying and reassembling complete messages, and releasing redundant resources, the problems of low-priority frame loss and long-term resource occupation during message transmission are solved, thereby improving the integrity of message transmission and the efficiency of resource utilization.

[0111] Based on any of the above embodiments, in Embodiment 8 of this application, after step S40, steps G11 to G14 are also included: Step G11, the receiving end splices the remaining transmission part of the received low-priority service message with the previously cached message truncated fragment, and performs integrity verification according to the message index and fragment status identifier to obtain the verification result.

[0112] In this embodiment, the verification result refers to the determination of whether the integrity verification is valid or invalid.

[0113] As an optional implementation, the receiving end first locates the previously cached low-priority service message truncated fragments and extracts their message index and fragment status identifier. Then, it extracts the corresponding identifier information from the newly received remaining portion, first verifying whether the message indices of the two are completely identical, and then verifying whether the fragment status identifier matches the truncation and resumption logic. If the verification passes, the two parts of data are concatenated in their original order. Next, the concatenated message data undergoes content consistency verification, ultimately generating a complete verification conclusion that includes identifier matching and data consistency results. This method provides comprehensive verification dimensions and can accurately identify message mismatches or data anomalies.

[0114] In step G12, if the verification result indicates an abnormal situation such as missing message data, disordered segment order, or mismatched check values, the transmission anomaly handling mechanism is triggered and the abnormal location, missing segment identifier, and key abnormal information of the current message reassembly progress are recorded.

[0115] In this embodiment, abnormal verification results refer to verification conclusions that do not meet expectations, such as missing message data, disordered segment order, or mismatched checksums, after integrity verification. Missing message data refers to the situation where some data from low-priority service messages is not successfully acquired by the receiving end. Disordered segment order refers to the situation where the splicing order of the truncated segments of the message is inconsistent with the original transmission order. Mismatched checksums refer to the situation where the checksum calculated from the actual data of the message is inconsistent with the checksum inherent in the message. The transmission anomaly handling mechanism refers to the pre-set response process for transmission anomalies. Key anomaly information refers to core data related to the anomaly, including the anomaly location, missing segment identifier, and current message reassembly progress. The current message reassembly progress refers to the degree of completion of message splicing and integration up to the time the anomaly occurred.

[0116] As an optional implementation, the anomaly type corresponding to the verification result is first identified, the specific anomaly location is accurately located, the unique identifier of the missing segment is extracted, and the completion rate of the current message reassembly is statistically analyzed. Then, a hierarchical transmission anomaly handling mechanism is triggered: if data is missing, a retransmission request for the corresponding segment is initiated to the sender; if segments are disordered, an attempt is made to reorder the segments; if the verification value does not match, the message is marked as an anomaly. Simultaneously, these key anomaly information are categorized by type, associated with the message index, and stored in a dedicated log area to ensure information traceability. This method provides highly targeted anomaly handling, complete and accurate information recording, and facilitates subsequent investigation.

[0117] Step G13: Based on the aforementioned critical abnormal information, generate a targeted retransmission request message according to the preset transmission protocol of the passive optical network and send it to the corresponding sending end.

[0118] In this embodiment, a targeted retransmission request message refers to a message specifically generated based on abnormal situations, requesting the sending end to retransmit the corresponding missing / abnormal data.

[0119] As an optional implementation, the anomaly type, missing segment identifier, and specific anomaly location in the key anomaly information are first parsed. Based on the message format requirements of the passive optical network's preset transmission protocol, the fields of the retransmission request message are filled in one by one: the identifier of the segment to be retransmitted, the range of the anomaly location, and the index information of the corresponding message are determined to ensure that the message content fully conforms to the protocol specification. Then, the corresponding sending end is located, and the generated targeted retransmission request message is sent directionally, with the sending status of the message being recorded synchronously after sending. This method has high accuracy in retransmission requests, can clearly specify the content that needs to be retransmitted, and reduces invalid data transmission.

[0120] In step G14, after receiving the retransmission request message, the sending end parses the incomplete data segments in the retransmission request message, retrieves the transmission status information of the cached low-priority service message, and sends the missing parts to the receiving end.

[0121] In this embodiment, a retransmission request message refers to a message sent by the receiving end due to a transmission error, requesting the retransmission of corresponding data. Incomplete data segments refer to the service message segments specified in the retransmission request that were not successfully transmitted to the receiving end.

[0122] As an optional implementation, after receiving a retransmission request message, the sending end first parses the message to extract the identifier of the incomplete segment and the missing range, and verifies the matching of this information with the already transmitted messages. Then, it retrieves the transmission status information of the cached low-priority messages, locates the remaining data corresponding to the missing range, and checks the consistency of the data with the requested segment. Finally, it processes the missing part according to the transmission protocol format and sends it to the receiving end, waiting for an acknowledgment signal from the receiving end. This method ensures that the retransmitted content accurately matches the request, avoids mistransmission or redundant transmission, guarantees the accuracy of the supplementation, improves the effectiveness of retransmission, and reduces resource waste.

[0123] By employing splicing verification, anomaly logging, and targeted retransmission, the problem of data loss after abnormal reassembly of low-priority packets in indoor optical networks has been resolved, thereby improving the integrity and reliability of indoor service transmission.

[0124] This application provides a message transmission device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the message transmission method based on a passive optical network in the first embodiment described above.

[0125] Referring now to Figure 14, a schematic diagram of a message transmission device suitable for implementing embodiments of this application is shown. The message transmission device in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptops, passive transmission devices, personal digital assistants (PDAs), tablet computers (PADs), portable media players (PMPs), passive optical distribution network devices, etc., as well as fixed terminals such as passive optical splitters, desktop computers, etc. The message transmission device shown in Figure 14 is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0126] As shown in Figure 14, the message transmission device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage device 1003 into a random access memory (RAM) 1004. The RAM 1004 also stores various programs and data required for the operation of the message transmission device. The processing unit 1001, the ROM 1002, and the RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the message transmission device to communicate wirelessly or wiredly with other devices to exchange data. Although message transmission devices with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.

[0127] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.

[0128] The message transmission device provided in this application, employing the message transmission method based on a passive optical network as described in the above embodiments, can solve the technical problem of transmission compatibility in passive optical networks. Compared with the prior art, the beneficial effects of the message transmission device provided in this application are the same as those of the message transmission method based on a passive optical network provided in the above embodiments, and other technical features of this message transmission device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0129] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.

[0130] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0131] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the message transmission method based on a passive optical network in the above embodiments.

[0132] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination thereof.

[0133] The aforementioned computer-readable storage medium may be included in the message transmission device; or it may exist independently and not be assembled into the message transmission device.

[0134] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by the message transmission device, the message transmission device performs the following actions: Based on the reserved fields of the uplink and downlink frames of the optical network, it processes various service messages to be transmitted using priority identifiers to obtain priority service messages; it detects the priority information corresponding to the service messages with priority identifiers, filters out higher-priority service messages, truncates the currently transmitted low-priority service messages, and stores the transmission status information corresponding to the low-priority service messages; it encapsulates the higher-priority service messages into optical network frames with improved frame formats, and sends the optical network frames to the corresponding receiving end devices according to the transmission protocol and time slot allocation rules of passive optical networks; after the transmission of the optical network frames corresponding to the higher-priority service messages is completed, it calls the transmission status information of the low-priority service messages to continue transmitting the truncated low-priority service messages.

[0135] Computer program code for performing the operations of this application can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0136] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings.

[0137] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described message transmission method based on a passive optical network, thereby solving the technical problem of poor transmission compatibility in passive optical networks. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the message transmission method based on a passive optical network provided in the above embodiments, and will not be repeated here.

[0138] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.

Claims

1. A message transmission method based on a passive optical network, characterized in that, The method includes: determining the priority of the service message to be transmitted based on its service attributes; writing the priority into a reserved field corresponding to the service message to be transmitted to obtain a service message with a priority identifier; comparing the priority information of the service message with the priority identifier with that of the currently transmitted service message, transmitting the higher priority service message first, truncating the lower priority service message, and storing the transmission status information corresponding to the lower priority service message; encapsulating the higher priority service message into an optical network frame with an improved frame format, and sending the optical network frame to the corresponding receiving end device according to the transmission protocol and time slot allocation rules of the passive optical network; after the transmission of the optical network frame corresponding to the higher priority service message is completed, calling the transmission status information of the lower priority service message to continue transmitting the truncated lower priority service message.

2. The message transmission method based on a passive optical network as described in claim 1, characterized in that, The step of determining the priority of the service message to be transmitted based on its service attributes and then writing the priority into the reserved field of the corresponding service message to obtain a service message with a priority identifier includes: identifying the service attributes of the service message to be transmitted and distinguishing the priority of the service message to be transmitted according to the priority determination rules; configuring the least significant bit of the uplink frame reserved indicator field when generating an uplink frame and configuring the reserved field of the downlink frame identifier field when generating a downlink frame to obtain a service message with a priority identifier of the reserved field; extending the format of the optical network encapsulation frame corresponding to the service message with the priority identifier of the reserved field by adding a one-byte message index and multiple sets of packet fragment identifiers between the frame header and the payload, and configuring the corresponding priority identifier according to the priority of the service message to be transmitted to obtain the service message with the priority identifier.

3. The message transmission method based on a passive optical network as described in claim 1, characterized in that, The steps of comparing the priority information of the service message with the priority identifier with the currently transmitted service message, prioritizing the transmission of higher priority service messages, truncating lower priority service messages, and storing the transmission status information corresponding to the lower priority service messages include: parsing the service message with the priority identifier, extracting the priority identifier from the reserved field of the service message with the priority identifier to obtain the corresponding priority; comparing the priority of the service message with the priority identifier with the priority of the currently transmitted service message to filter out target service messages with higher priorities than the currently transmitted service messages; after determining that there are target service messages with higher priorities, truncating the transmission operation of the currently transmitted lower priority service messages, and storing the transmission status information of the lower priority service messages.

4. The message transmission method based on a passive optical network as described in claim 3, characterized in that, The step of comparing the priority of the service message with the priority identifier with the priority of the currently transmitted service message to filter out target service messages with a higher priority includes: using the priority of the currently transmitted service message as a priority comparison benchmark; extracting the priority of each of the service messages with priority identifiers one by one, comparing the priority with the priority comparison benchmark in real time, and determining whether the priority of each of the service messages with priority identifiers is higher than the priority of the currently transmitted service message; and based on the comparison result, filtering out all service messages with a higher priority than the comparison benchmark and determining them as target service messages that need to be transmitted with priority.

5. The message transmission method based on a passive optical network as described in claim 1, characterized in that, The step of encapsulating the higher-priority service message into an optical network frame with an improved frame format and sending the optical network frame to the corresponding receiving end device according to the transmission protocol and time slot allocation rules of the passive optical network includes: configuring the complete frame identifier corresponding to the extended fragment identifier of the higher-priority service message based on its priority, and filling the message index marker transmission sequence to obtain a higher-priority service message with extended field configuration; filling the inherent fields of the optical network encapsulation frame with the higher-priority service message with extended field configuration, loading the service data into the frame payload area to obtain an improved optical network frame; and converting the improved optical network frame into an optical signal adapted for network transmission according to the transmission protocol and time slot allocation rules of the passive optical network, and sending it to the receiving end optical network terminal device corresponding to the higher-priority service message.

6. The message transmission method based on a passive optical network as described in claim 1, characterized in that, The step of retrieving the transmission status information of the low-priority service message and continuing to transmit the truncated low-priority service message after the optical network frame corresponding to the higher-priority service message has been transmitted completely to the target receiving device includes: monitoring the transmission status of the optical network frame corresponding to the higher-priority service message, confirming that the optical network frame has been completely transmitted to the target receiving device, retrieving the previously stored transmission status information of the low-priority service message; parsing the transmission status information of the low-priority service message, extracting the message header, transmitted length, remaining untransmitted data, and checksum of the low-priority service message, adjusting the extended fragmentation identifier of the low-priority service message, and confirming the fragmentation mark; based on the fragmentation mark, reconnecting and reassembling the untransmitted data and transmitted portion of the low-priority service message, and continuing to send the reassembled low-priority service message to the corresponding receiving device according to the transmission protocol and time slot allocation rules of the passive optical network.

7. The message transmission method based on a passive optical network as described in claim 1, characterized in that, After the step of calling the transmission status information of the low-priority service message to continue transmitting the truncated low-priority service message after the optical network frame corresponding to the higher-priority service message has been transmitted, the message transmission method based on passive optical network further includes: the receiving end receiving the remaining part of the low-priority service message, combining the received truncated message fragments, and verifying the fragment status identifier and message index in the integrity check extended packet fragment identifier to reassemble the low-priority service message; performing protocol parsing and data verification on the reassembled low-priority service message, and after confirming that there are no transmission errors in the message, forwarding the reassembled low-priority service message to the corresponding target user equipment according to the locally stored device mapping relationship; the sending end and the receiving end respectively updating the transmission completion status of the low-priority service message, releasing the previously cached transmission status information, message fragments and related hardware resources, and reserving resources for the scheduling and transmission of subsequent various priority service messages.

8. The message transmission method based on a passive optical network as described in claim 1, characterized in that, After the step of retrieving the transmission status information of the low-priority service message and continuing to transmit the truncated low-priority service message after the optical network frame corresponding to the higher-priority service message has been transmitted, the message transmission method based on the passive optical network further includes: splicing the remaining transmission part of the received low-priority service message with the previously cached truncated message fragments at the receiving end, and performing integrity verification based on the message index and fragment status identifier to obtain the verification result; if the verification result is an abnormal situation such as missing message data, disordered fragment order, or mismatched verification value, a transmission anomaly handling mechanism is triggered and the abnormal location, missing fragment identifier, and current message reassembly progress are recorded as key abnormal information; based on the key abnormal information, a targeted retransmission request message is generated according to the passive optical network preset transmission protocol and sent to the corresponding sending end; after receiving the retransmission request message, the sending end parses the incomplete fragment data in the retransmission request message, retrieves the transmission status information of the cached low-priority service message, and supplements the missing part to the receiving end.

9. A message transmission device, characterized in that, The message transmission device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the message transmission method based on a passive optical network as described in any one of claims 1 to 8.

10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the message transmission method based on a passive optical network as described in any one of claims 1 to 8.