Message processing method and device, optical line terminal and storage medium
By determining the target time slot according to the message type in the XGEM partition in the TC frame of the PON downlink and performing encapsulation processing, the problem of lack of resource reservation mechanism in the prior art is solved, and special delay requirements are achieved Time slot resource reservation and time delay guarantee of data flow.
Patent Information
- Application Number
- CN202310983248.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-07
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2043-08-07
AI Technical Summary
The existing PON downlink message processing methods lack resource reservation mechanism, resulting in sequential transmission restrictions, and it is impossible to effectively reserve time slot resources for data streams with special delay requirements.
In multiple slots of the XGEM partition in the TC frame, the target time slot is determined according to the message type of the pending message, and the pending message is encapsulated into the target time slot, for the other than the target time slot Other time slots are reserved.
Break through the limitation of sequential transmission, reserve time slot resources for data streams with special delay requirements, and provide time delay guarantee.
Smart Images

Figure CN119449920A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a message processing method, device, optical line terminal and storage medium. Background Art
[0002] Passive Optical Network (PON) technology is a point-to-multipoint fiber access technology. A PON system may include an optical line terminal (OLT), an optical distribution network (ODN), and at least one optical network unit (ONU). The OLT is connected to the ODN, and the ODN is connected to at least one ONU. The ONU includes a service interface, which can be connected to a user device through the service interface.
[0003] For the PON downlink between the OLT and the ONU, the existing message processing method is serial, that is, the messages are received and encapsulated sequentially, and there is a lack of a corresponding resource reservation mechanism. Summary of the invention
[0004] In order to solve the problems in the above-mentioned prior art, the embodiments of the present application provide a message processing method, device, optical line terminal and storage medium, which can put the message to be processed into the corresponding target time slot for encapsulation processing, and reserve other time slots except the target time slot, thereby realizing a resource reservation mechanism.
[0005] In a first aspect, an embodiment of the present application provides a message processing method, the method comprising:
[0006] Receive messages to be processed;
[0007] According to the message type of the message to be processed, determine the target time slot corresponding to the message to be processed in multiple time slots of the XGEM partition in the TC frame; wherein the time of the XGEM partition of a TC frame includes multiple time slots; each time slot supports encapsulating a message of a corresponding set message type;
[0008] Encapsulate the message to be processed into the target time slot.
[0009] In a possible implementation manner, determining, among the multiple time slots of the XGEM partition in the TC frame, a target time slot corresponding to the message to be processed includes:
[0010] Taking the current time slot as the time slot to be matched;
[0011] Repeat the following steps:
[0012] Determining whether the time slot to be matched is available according to the message type of the message to be processed;
[0013] If the time slot to be matched is not available, the time slot next to the time slot to be matched is used as a new time slot to be matched; until the time slot to be matched is available, the time slot to be matched is used as the target time slot.
[0014] In a possible implementation manner, determining whether the time slot to be matched is available according to the message type of the message to be processed includes:
[0015] If the message type of the message to be processed is a band identification type, and the time slot to be matched supports the transmission band identification type, then determine whether the time slot to be matched is available according to the slice identification associated with the message to be processed; wherein, some of the multiple time slots correspond to at least one slice identification.
[0016] In a possible implementation manner, determining whether the time slot to be matched is available according to the slice identifier associated with the message to be processed includes:
[0017] Determine whether the time slot to be matched is available according to the slice identifier carried by the message to be processed; or,
[0018] Determine whether the time slot to be matched is available based on the slice identifier mapped to the message to be processed.
[0019] In a possible implementation manner, determining whether the time slot to be matched is available according to the slice identifier associated with the message to be processed includes:
[0020] If at least one slice identifier corresponding to the time slot to be matched matches the slice identifier associated with the message to be processed, and the time slot to be matched has an available duration, it is determined that the time slot to be matched is available.
[0021] In a possible implementation manner, determining whether the time slot to be matched is available according to the message type of the message to be processed includes:
[0022] If the message type of the message to be processed is a non-identification type, the time slot to be matched supports the non-identification type, and the time slot to be matched has an available duration, it is determined that the time slot to be matched is available.
[0023] In a possible implementation manner, determining whether the time slot to be matched is available according to the message type of the message to be processed includes:
[0024] If the message type of the to-be-processed message is an operation and maintenance type, the to-be-matched time slot supports the operation and maintenance type, and the to-be-matched time slot has an available duration, it is determined that the to-be-matched time slot is available.
[0025] In a possible implementation manner, encapsulating the to-be-processed message into the target time slot includes:
[0026] If the target time slot has not started at the current moment, the message to be processed is saved in the cache corresponding to the target time slot;
[0027] After waiting for the target time slot to start, the message to be processed is encapsulated.
[0028] In a possible implementation manner, the encapsulating the message to be processed includes:
[0029] If the remaining available time length of the target time slot is greater than or equal to the time length required to transmit the message to be processed, encapsulating the message to be processed;
[0030] and / or,
[0031] If the remaining available duration of the target time slot is less than the duration required to transmit the message to be processed and greater than the duration required to transmit a frame header of an XGEM frame, the message to be processed is fragmented, and the first message fragment obtained by the fragmentation is encapsulated;
[0032] Determine a next target time slot for the second message fragment obtained by fragmentation, put the second message fragment into a cache of the next target time slot, wait for the next target time slot to start, and then encapsulate the second fragment.
[0033] In a possible implementation, the method further includes:
[0034] If the remaining available time length of the target time slot is greater than or equal to the time length required to transmit the message to be processed, updating the available length of the target time slot according to the encapsulation length of the message to be processed;
[0035] If the remaining available time length of the target time slot is less than the time length required to transmit the message to be processed and greater than the time length required to transmit a frame header of an XGEM frame, the available length of the target time slot is updated according to the encapsulation length of the first message fragment.
[0036] In a possible implementation manner, the XGEM partition is an XGEM partition in a FS frame in the TC frame.
[0037] In a second aspect, an embodiment of the present application provides a message processing device, the device comprising:
[0038] A receiving unit, used for receiving a message to be processed;
[0039] A scheduling unit, configured to determine, according to the message type of the message to be processed, a target time slot corresponding to the message to be processed in a plurality of time slots of the XGEM partition in the TC frame; wherein the time of the XGEM partition of a TC frame includes a plurality of time slots; and each time slot supports encapsulating a message of a corresponding set message type;
[0040] An encapsulation unit is used to encapsulate the message to be processed into the target time slot.
[0041] In a third aspect, an embodiment of the present application provides an optical line terminal, comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the computer program is executed by the processor, the method described in any one of the first aspects is implemented.
[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the first aspects is implemented.
[0043] The message processing method, device, optical line terminal and storage medium provided by the embodiment of the present application can determine the target time slot corresponding to the message to be processed in multiple time slots of the XGEM partition in the TC frame in the downstream direction of the passive optical fiber network PON according to the message type of the message to be processed, and encapsulate the message to be processed into the target time slot. Encapsulating the message to be processed into the corresponding target time slot and reserving other time slots except the target time slot can break through the limitation of sequential transmission, reserve time slot resources for data streams with special delay requirements, and help provide delay guarantee for data streams with special delay requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0045] Figure 1 A schematic diagram of a PON system processing a message provided in an embodiment of the present application;
[0046] Figure 2 A schematic diagram of a PON protocol stack provided in an embodiment of the present application;
[0047] Figure 3A schematic diagram of another PON protocol stack provided in an embodiment of the present application;
[0048] Figure 4 A flowchart of a message processing method provided in an embodiment of the present application;
[0049] Figure 5 A schematic diagram of message timeslot allocation provided in an embodiment of the present application;
[0050] Figure 6 A flowchart of a message processing method provided in an embodiment of the present application;
[0051] Figure 7 A schematic diagram of the structure of a message processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0053] It should be noted that the terms "including" and "having" and their variations involved in the documents of this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0054] At present, with the development of network communication technology, the existing network can carry a variety of services, such as voice, video, online games, web browsing, etc. In recent years, the demand for network bandwidth has grown exponentially. Although operators have improved the network's ability to carry and transmit data by continuously expanding physical bandwidth and related technologies, the increase in physical bandwidth always lags behind users' requirements for data transmission. Under the impact of large amounts of data, in order to ensure the reliability of the network's transmission of multiple services and the QoS (quality of service) of the corresponding services, most major telecom operators have chosen PON (Passive Optical Network) as broadband fiber access.
[0055] PON is a new type of fiber optic access network technology with low cost and high capacity. It adopts a point-to-multipoint structure. The PON system may include an optical line terminal (OLT), an optical distribution network (ODN) and at least one optical network unit (ONU). The OLT is connected to the ODN, and the ODN is connected to at least one ONU. The ONU includes a service interface, which can be connected to the user equipment through the service interface.
[0056] However, for the PON downlink between the OLT and the ONU, the existing message processing method is serial, that is, the messages are received and encapsulated sequentially, and there is a lack of a corresponding resource reservation mechanism.
[0057] Based on this, an embodiment of the present application provides a message processing method, which determines the target time slot corresponding to the message to be processed in multiple time slots of the XGEM partition in the TC frame in the downstream direction of the passive optical fiber network PON through the message type of the message to be processed, and encapsulates the message to be processed into the target time slot. Encapsulating the message to be processed into the corresponding target time slot and reserving other time slots except the target time slot can break through the limitation of sequential transmission, reserve time slot resources for data streams with special delay requirements, and is conducive to providing delay guarantee for data streams with special delay requirements.
[0058] The following is a brief introduction to the method of processing messages in the downlink between the OLT optical line terminal and the ONU optical network unit of the existing PON system. Figure 1 As shown in the figure, the transmission convergence layer of the OLT optical line terminal in the PON system processes messages in a serial manner, that is, it receives messages (SDU) in sequence, takes the messages as the payload of the XGEM frame in sequence, adds the frame header H, encapsulates them into XGEM frames, and then sends the XGEM frames to the framing sub-layer (FS). The XGEM frames are used as the payload of the FS frames, and assemble the TC frames in sequence. Since each TC frame has a period of 125us, if a message spans two adjacent TC frames during the process of assembling the TC frame, the message is divided into two message fragments (SDU fragment1 and SDU fragment2) according to the actual remaining available length of the previous TC frame, encapsulated into two XGEM frames, and assembled into two adjacent TC frames (i.e., the end of the previous TC frame and the beginning of the next TC frame).
[0059] Figure 2The schematic diagram of the traditional PON protocol stack provided by the embodiment of the present application, in the traditional PON protocol stack, the user data interface (User Data Client) sends the data message to the user data adapter (User Data Adapter), outputs the data message, and the optical network unit management and control interface (OMCI Client) sends the operation and maintenance message to the optical network unit management and control adapter (OMCI Adapter), outputs the operation and maintenance message. Both the data message and the operation and maintenance message are sent to the XGEM encapsulation engine (XGEM Engine) for XGEM frame encapsulation, and the encapsulated XGEM frame is sent to the XGEM partition (partition) of the framing sublayer (FS frame / burst) for TC frame framing processing. In the framing sublayer, the control information partition (PLOAM partition) of the physical layer operation management and maintenance can be added before the XGEM partition, and the header field (Embedded header fields) can be embedded. Finally, the TC frame is transmitted through the physical layer (PHY burst timing and profile control). In the above process, XGEM frame encapsulation, TC frame framing and TC frame transmission are all performed sequentially, lacking a corresponding resource reservation mechanism.
[0060] Based on this, the embodiment of the present application adds a Slicing Schedule module to the traditional PON protocol stack, such as Figure 3 As shown. The Slicing Schedule module can receive the data message output by the user data adapter (User Data Adapter) and the operation and maintenance message output by the optical network unit management and control adapter (OMCI Adapter), and put the message into the corresponding target time slot according to the message type and the slice identifier associated with the message in the time slot pre-divided by the XGEM partition (partition) time. In the target time slot, the message is sent to the XGEM encapsulation engine (XGEM Engine) for XGEM frame encapsulation, and the encapsulated XGEM frame is sent to the XGEM partition (partition) of the framing sublayer (FS frame / burst) for TC frame framing processing, thereby realizing the reservation of time slot resources.
[0061] like Figure 4 As shown, the message processing method applied by the slice scheduling module provided in the embodiment of the present application may include the following steps:
[0062] Step S401, receiving a message to be processed.
[0063] The to-be-processed messages received by the slice scheduling module may include multiple message types.
[0064] In an optional implementation, the message to be processed may include three message types, the first message type is an identified type, the message corresponding to the identified type is an identified data message, and the identified data message has an associated slice identifier. The second message type is an unidentified type, the message corresponding to the unidentified type is an unidentified data message without an associated slice identifier, and the third message type is an operation and maintenance type, and the message corresponding to the operation and maintenance type is an operation and maintenance message without an associated slice identifier. The slice scheduling module can determine the target time slot corresponding to the message to be processed according to the message type of the message to be processed.
[0065] Among them, the slice identifier associated with the message to be processed can be a slice identifier carried by the message to be processed, or the slice identifier associated with the message to be processed can be a slice identifier mapped by the message to be processed.
[0066] Step S402: According to the message type of the message to be processed, a target time slot corresponding to the message to be processed is determined from multiple time slots of the XGEM partition in the TC frame.
[0067] Among them, the time of the XGEM partition of a TC frame includes multiple time slots, each time slot has at least one corresponding slice identifier, the number of time slots, the available length of each time slot, whether each time slot supports the transmission of operation and maintenance messages, and whether each time slot supports the transmission of unidentified data messages, which can all be adaptively configured according to actual needs.
[0068] Exemplarily, the time slot configuration of the XGEM partition time can be shown in Table 1 below, and the XGEM partition can be divided into 5 time slots, namely time slot 1, time slot 2, time slot 3, time slot 4 and time slot 5. Among them, the length of time slot 1 is L1, the length of time slot 2 is L2, the length of time slot 3 is L3, the length of time slot 4 is L4, and the length of time slot 5 is L5. Further, time slot 1 can be set to support the transmission of data packets with associated slice identification 1, and does not support the transmission of operation and maintenance messages and unidentified data packets. Time slot 2 can be set to support the transmission of data packets with associated slice identification 2, and does not support the transmission of operation and maintenance messages and unidentified data packets. Time slot 3 can be set to support the transmission of data packets with associated slice identification 1, operation and maintenance messages, and unidentified data packets. Time slot 4 can be set to support the transmission of data packets with associated slice identification 3, and does not support the transmission of operation and maintenance messages and unidentified data packets. Time slot 5 can be set to support the transmission of data packets with associated slice identification 4, operation and maintenance messages, and unidentified data packets. The slice scheduling module can determine the target time slot corresponding to the message to be processed according to the message type supported for transmission in each time slot from time slot 1 to time slot 5.
[0069] It should be noted that the time slot configuration of the XGEM partition time includes but is not limited to the time slot configuration method shown in Table 1. The time slot configuration method in Table 1 is only used for example and is not intended to limit the time slot configuration of the XGEM partition time of this application.
[0070]
[0071]
[0072] Table 1
[0073] In an optional implementation, the message to be processed received by the slice scheduling module may be an identified data message having an associated slice identifier, which corresponds to the slice identifier of the time slot. In order to distinguish the slice identifier associated with the message to be processed from the slice identifier in the time slot, the identifier associated with the message to be processed is referred to as the target slice identifier hereinafter.
[0074] Exemplarily, the slice scheduling module can first use the current time slot corresponding to the current moment as the time slot to be matched among multiple time slots, and repeat the following steps: if the slice identifier corresponding to the time slot to be matched does not match the target slice identifier associated with the message to be processed, or the time slot to be matched does not have an available time length, then the next time slot of the time slot to be matched can be used as a new time slot to be matched, until the slice identifier corresponding to the time slot to be matched matches the target slice identifier associated with the message to be processed, and the time slot to be matched has an available time length, and the time slot to be matched is used as the target time slot.
[0075] Specifically, taking the time slot configuration method of Table 1 as an example for explanation, assuming that the target slice identifier associated with the to-be-processed message is identifier 1, and the time slot corresponding to the current moment is time slot 1, it can be determined that the slice identifier 1 corresponding to time slot 1 matches the target slice identifier, that is, time slot 1 supports the transmission of the to-be-processed message associated with slice identifier 1. After determining that the current time slot 1 supports the transmission of the to-be-processed message associated with slice identifier 1, it can be determined whether time slot 1 has an available duration. If time slot 1 has an available duration, time slot 1 can be determined as the target time slot.
[0076] Furthermore, if Figure 5 As shown, the message with association identifier 1 (slice 1 SDU) can be placed in time slot 1 of the current XGEM partition (XGEMpartition) time, and the target time slot corresponding to the message with association identifier 2 (slice 2 SDU) is time slot 2. Since time slot 1 does not support the transmission of the message with association identifier 2, while time slot 2 supports the transmission of the message with association identifier 2, and time slot 2 has not yet started, the message with association identifier 2 can be placed in the cache corresponding to time slot 2, so that the time slot resources of time slot 1 are not occupied, thereby reserving time slot resources for the message with association identifier 1.
[0077] A buffer of a time slot may include multiple messages. In an optional embodiment, a FIFO (first input first output) method may be used to process the multiple messages.
[0078] In some embodiments, if a message with association identifier 1 is received during the ongoing time interval of time slot 1, the message with association identifier 1 can be placed in time slot 1 of the current XGEM partition time. Therefore, even if the time of receiving the message with association identifier 1 is later than the time of receiving messages with other associated identifiers, or later than the time of receiving unidentified data messages and operation and maintenance messages, the message with association identifier 1 can be transmitted earlier than the encapsulation of other messages, thereby improving the traditional message processing mechanism of sequentially receiving messages and sequentially encapsulating them, and providing priority guarantee for transmitted messages on the PON downlink.
[0079] In other embodiments, if no message with associated identifier 1 is received during the ongoing time interval of time slot 1, the time slot resource of time slot 1 is still reserved and is not used for messages with other associated identifiers, data messages without identifiers, and operation and maintenance messages. If in other time slots of the current XGEM partition time, for example, if a message with associated identifier 1 is received in time slot 2 of the current XGEM partition time, that is, the time slot corresponding to the current moment is time slot 2. It can be determined that the slice identifier corresponding to time slot 2 is identifier 2, so time slot 2 does not match the target slice identifier associated with the message to be processed, and it is further determined whether the next time slot of time slot 2 matches the target slice identifier associated with the message to be processed. The next time slot of time slot 2 is time slot 3, and the slice identifier corresponding to time slot 3 is identifier 1. Therefore, time slot 3 matches the target slice identifier associated with the message to be processed, and it can be determined whether time slot 3 has an available duration. If time slot 3 has an available duration, time slot 3 can be determined as the target time slot, and the message with associated identifier 1 can be put into time slot 3 for caching.
[0080] For another example, if the current time slot is time slot 4, at this time, it can be determined whether time slot 4 matches the target slice identifier associated with the message to be processed. The slice identifier corresponding to time slot 4 is identifier 3. Therefore, time slot 4 does not match the target slice identifier associated with the message to be processed. Continue to determine whether the next time slot of time slot 4 matches the target slice identifier associated with the message to be processed. The next time slot of time slot 4 is time slot 5. The slice identifier corresponding to time slot 5 is identifier 4. Therefore, time slot 5 does not match the target slice identifier associated with the message to be processed. Continue to determine the next time slot of time slot 5, that is, time slot 1 of the next XGEM partition (XGEM partition). Since time slot 1 matches the target slice identifier associated with the message to be processed, and time slot 1 has an available duration. Therefore, the message with association identifier 1 can be put into time slot 1 of the next XGEM partition (XGEM partition) time for cache, and after time slot 1 of the next XGEM partition (XGEM partition) time starts, the message is processed accordingly.
[0081] In another optional implementation, the message to be processed received by the slice scheduling module may be an unidentified data message.
[0082] The target time slot corresponding to the unidentified data message can be determined in the following way:
[0083] Take the current time slot as the time slot to be matched, and repeat the following steps: if the time slot to be matched does not support the transmission of unidentified data messages, or the time slot to be matched does not have an available time length, then take the next time slot of the time slot to be matched as the new time slot to be matched, until the time slot to be matched supports the transmission of unidentified data messages and the time slot to be matched has an available time length, and then take the time slot to be matched as the target time slot.
[0084] Exemplarily, the time slot configuration method in Table 1 is continued as an example for explanation. Assuming that the message to be processed is an unidentified data message, the time slot corresponding to the current moment is time slot 1. It can be determined that time slot 1 does not support the transmission of unidentified data messages. The next time slot of time slot 1 is continued to be determined. The next time slot of time slot 1 is time slot 2. Time slot 2 also does not support the transmission of unidentified data messages. The next time slot of time slot 2 is continued to be determined. The next time slot of time slot 2 is time slot 3. Time slot 3 supports the transmission of unidentified data messages. Further, it can be determined whether time slot 3 has remaining available time. Time slot 3 has remaining available time. Therefore, time slot 3 can be determined as the target time slot.
[0085] In another optional implementation, the message to be processed received by the slice scheduling module may be an operation and maintenance message.
[0086] The target time slot corresponding to the operation and maintenance message can be determined in the following way:
[0087] Take the current time slot as the time slot to be matched, and repeat the following steps: if the time slot to be matched does not support the transmission of operation and maintenance messages, or the time slot to be matched does not have an available time length, then take the next time slot of the time slot to be matched as the new time slot to be matched, until the time slot to be matched supports the transmission of operation and maintenance messages and the time slot to be matched has an available time length, and then take the time slot to be matched as the target time slot.
[0088] Exemplarily, the time slot configuration method in Table 1 is continued as an example for explanation. Assuming that the message to be processed is an operation and maintenance message, the time slot corresponding to the current moment is time slot 1. It can be determined that time slot 1 does not support the transmission of operation and maintenance messages. Continue to determine the next time slot of time slot 1. The next time slot of time slot 1 is time slot 2. Time slot 2 also does not support the transmission of operation and maintenance messages. Continue to determine the next time slot of time slot 2. The next time slot of time slot 2 is time slot 3. Time slot 3 supports the transmission of operation and maintenance messages. Further, it can be determined whether time slot 3 has remaining available time. Time slot 3 has remaining available time. Therefore, time slot 3 can be determined as the target time slot.
[0089] It should be noted that any time slot can support the transmission of both unidentified data messages and operation and maintenance messages, or any time slot can only support the transmission of unidentified data messages and not support the transmission of operation and maintenance messages, or any time slot can not support the transmission of unidentified data messages and only support the transmission of operation and maintenance messages. The message type corresponding to which each time slot supports transmission can be freely set according to actual needs, and this application does not limit this.
[0090] Step S403: encapsulate the message to be processed into the target time slot.
[0091] After the slice scheduling module determines the target time slot corresponding to the message to be processed, the message to be processed can be encapsulated into the target time slot.
[0092] In an optional implementation manner, if the target time slot has started, the message to be processed may be encapsulated.
[0093] Exemplarily, assuming that the target time slot has already started, a first determination may be made to determine whether the remaining available duration of the target time slot is greater than or equal to the duration required for transmitting the message to be processed.
[0094] If the remaining available time length of the target time slot is greater than or equal to the time length required to transmit the message to be processed, the available length of the target time slot can be updated according to the encapsulation length of the message to be processed, and the message to be processed can be encapsulated.
[0095] Specifically, assuming that the target time slot is time slot 1, the remaining available time length of time slot 1 is L1, the time length required to transmit the message to be processed is L1', L1>L1', then the available length of time slot 1 can be updated to (L1-L1'), and further, the message to be processed can be used as the payload part, and the frame header of the XGEM frame can be added to obtain the XGEM frame. After obtaining the XGEM frame, the XGEM frame can be placed in the XGEM partition for TC frame framing.
[0096] If the remaining available time of the target time slot is less than the time required to transmit the message to be processed, a second judgment may be performed to determine whether the remaining available time of the target time slot is greater than the time required to transmit the frame header of an XGEM frame.
[0097] If the remaining available time of the target time slot is greater than the time required to transmit the frame header of an XGEM frame, the message to be processed can be fragmented, the first message fragment obtained by the fragmentation can be encapsulated into an XGEM frame, and the XGEM frame can be processed by TC frame framing. According to the encapsulation length of the first message fragment, the available length of the target time slot is updated, the next target time slot is determined for the second message fragment obtained by the fragmentation, the second message fragment is placed in the cache of the next target time slot, and after waiting for the start of the next target time slot, the second fragment is encapsulated in an XGEM frame and processed by TC frame framing.
[0098] If the remaining available time of the target time slot is less than or equal to the time required to transmit the frame header of an XGEM frame, the next target time slot can be determined for the message to be processed, and the message to be processed can be placed in the cache of the next target time slot. After waiting for the next target time slot to start, the message to be processed can be encapsulated.
[0099] Specifically, assuming that the target time slot is time slot 2, the remaining available time of time slot 2 is L2, the time required to transmit the message to be processed is L2', L2≤L2', then it can be determined whether L2 is greater than the time required to transmit the frame header of an XGEM frame.
[0100] If L2 is greater than the time required to transmit the frame header of an XGEM frame, the message to be processed can be fragmented, the first message fragment obtained by the fragmentation can be encapsulated into an XGEM frame, and the XGEM frame can be processed by TC frame framing. According to the encapsulation length of the first message fragment, the available length of time slot 2 is updated to (L2-encapsulation length of the first message fragment), and the next target time slot is determined for the second message fragment obtained by the fragmentation. The second message fragment is placed in the cache of the next target time slot, and after waiting for the start of the next target time slot, the second fragment is encapsulated in an XGEM frame and processed by TC frame framing.
[0101] If L2 is less than or equal to the time required to transmit the frame header of an XGEM frame, the next target time slot can be determined for the message to be processed, the message to be processed can be placed in the cache of the next target time slot, and the message to be processed can be encapsulated after the next target time slot starts.
[0102] In another optional implementation, if the target time slot has not started at the current moment, the message to be processed can be saved in the cache corresponding to the target time slot, and the message to be processed is encapsulated when the target time slot arrives. The process of encapsulating the message to be processed has been described in detail above and will not be repeated here.
[0103] Based on the same inventive concept, an embodiment of the present invention further provides a message processing method, such as Figure 6 As shown, the method may include:
[0104] Step S601, receiving a message to be processed.
[0105] Step S602: According to the message type of the message to be processed, a target time slot corresponding to the message to be processed is determined from multiple time slots of the XGEM partition in the TC frame.
[0106] Step S603, determining whether the target time slot starts.
[0107] If the target time slot starts, step S604 may be executed, and if the target time slot has not started, step S605 may be executed.
[0108] Step S604: determine whether the remaining available time length of the target time slot is greater than or equal to the time length required for transmitting the message to be processed.
[0109] If the remaining available time of the target time slot is greater than or equal to the time required to transmit the message to be processed, step S606 may be executed. If the remaining available time of the target time slot is less than the time required to transmit the message to be processed, step S607 may be executed.
[0110] Step S605: save the message to be processed into a cache corresponding to the target time slot.
[0111] Step S606, performing packaging processing.
[0112] Step S607, determine whether the remaining available time length of the target time slot is greater than the time length required to transmit a frame header of an XGEM frame. If yes, step S608 may be executed. If no, step S610 may be executed.
[0113] Step S608, fragment the message to be processed.
[0114] Step S609, determine whether the message fragment is fragment 1. If yes, execute step S606. If no, execute step S610.
[0115] Step S610, matching the next target time slot.
[0116] Based on the same inventive concept, an embodiment of the present invention further provides a structural diagram of a message processing device, such as Figure 7 As shown, the message processing device includes:
[0117] The receiving unit 701 is used to receive a message to be processed.
[0118] The scheduling unit 702 is used to determine the target time slot corresponding to the message to be processed in multiple time slots of the XGEM (XGPON Encapsulation Method) partition in the TC (transmission convergence) frame according to the message type of the message to be processed, wherein the time of the XGEM partition of a TC frame includes multiple time slots, and each time slot supports encapsulating a message of a corresponding set message type.
[0119] The encapsulation unit 703 is used to encapsulate the message to be processed into the target time slot.
[0120] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0121] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0122] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0123] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0124] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A message processing method, characterized in that: Applied to an optical line terminal, the method comprises: Receive messages to be processed; According to the message type of the message to be processed, determine the target time slot corresponding to the message to be processed in multiple time slots of the XGEM partition in the TC frame; wherein the time of the XGEM partition of a TC frame includes multiple time slots; each time slot supports encapsulating a message of a corresponding set message type; Encapsulate the message to be processed into the target time slot.
2. The method according to claim 1, characterized in that The step of determining, among the multiple time slots of the XGEM partition in the TC frame, a target time slot corresponding to the message to be processed comprises: Taking the current time slot as the time slot to be matched; Repeat the following steps: Determining whether the time slot to be matched is available according to the message type of the message to be processed; If the time slot to be matched is not available, the time slot next to the time slot to be matched is used as a new time slot to be matched; until the time slot to be matched is available, the time slot to be matched is used as the target time slot.
3. The method according to claim 2, characterized in that The determining, according to the message type of the message to be processed, whether the time slot to be matched is available includes: If the message type of the message to be processed is a band identification type, and the time slot to be matched supports the transmission band identification type, then determine whether the time slot to be matched is available according to the slice identification associated with the message to be processed; wherein, some of the multiple time slots correspond to at least one slice identification.
4. The method according to claim 3, characterized in that: The determining, according to the slice identifier associated with the message to be processed, whether the time slot to be matched is available includes: Determine whether the time slot to be matched is available according to the slice identifier carried by the message to be processed; or, Determine whether the time slot to be matched is available based on the slice identifier mapped to the message to be processed.
5. The method according to claim 3, characterized in that: The determining, according to the slice identifier associated with the message to be processed, whether the time slot to be matched is available includes: If at least one slice identifier corresponding to the time slot to be matched matches the slice identifier associated with the message to be processed, and the time slot to be matched has an available duration, it is determined that the time slot to be matched is available.
6. The method according to claim 2, characterized in that The determining, according to the message type of the message to be processed, whether the time slot to be matched is available includes: If the message type of the message to be processed is a non-identification type, the time slot to be matched supports the non-identification type, and the time slot to be matched has an available duration, it is determined that the time slot to be matched is available.
7. The method according to claim 2, characterized in that: The determining, according to the message type of the message to be processed, whether the time slot to be matched is available includes: If the message type of the to-be-processed message is an operation and maintenance type, the to-be-matched time slot supports the operation and maintenance type, and the to-be-matched time slot has an available duration, it is determined that the to-be-matched time slot is available.
8. The method according to claim 1, characterized in that The step of encapsulating the to-be-processed message into the target time slot includes: If the target time slot has not started at the current moment, the message to be processed is saved in the cache corresponding to the target time slot; After waiting for the target time slot to start, the message to be processed is encapsulated.
9. The method according to claim 8, characterized in that The encapsulating the message to be processed includes: If the remaining available time length of the target time slot is greater than or equal to the time length required to transmit the message to be processed, encapsulating the message to be processed; and / or, If the remaining available duration of the target time slot is less than the duration required to transmit the message to be processed and greater than the duration required to transmit a frame header of an XGEM frame, the message to be processed is fragmented, and the first message fragment obtained by the fragmentation is encapsulated; Determine a next target time slot for the second message fragment obtained by fragmentation, put the second message fragment into a cache of the next target time slot, wait for the next target time slot to start, and then encapsulate the second fragment.
10. The method according to claim 9, characterized in that The method further comprises: If the remaining available time length of the target time slot is greater than or equal to the time length required to transmit the message to be processed, updating the available length of the target time slot according to the encapsulation length of the message to be processed; If the remaining available time length of the target time slot is less than the time length required to transmit the message to be processed and greater than the time length required to transmit a frame header of an XGEM frame, the available length of the target time slot is updated according to the encapsulation length of the first message fragment.
11. The method according to any one of claims 1 to 10, characterized in that: The XGEM partition is an XGEM partition within the FS frame in the TC frame.
12. A message processing device, characterized in that: The device comprises: A receiving unit, used for receiving a message to be processed; A scheduling unit, configured to determine, according to the message type of the message to be processed, a target time slot corresponding to the message to be processed in a plurality of time slots of the XGEM partition in the TC frame; wherein the time of the XGEM partition of a TC frame includes a plurality of time slots; and each time slot supports encapsulating a message of a corresponding set message type; An encapsulation unit is used to encapsulate the message to be processed into the target time slot.
13. An optical line terminal, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the computer program is executed by the processor, the method according to any one of claims 1 to 11 is implemented.
14. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
Message processing method and device
CN113645005A
Communication method and device
CN116015574A
Dynamic bandwidth assignment method and apparatus ofsupporting both SR-ONUS and NSR-ONUS for ATM-PON
KR1020030078389A