Time slot adjustment method
By using an end-to-end timeslot adjustment method and leveraging customer services to carry timeslot adjustment indication signals, the problems of long time slot adjustment time and poor reliability are solved, achieving efficient and reliable timeslot adjustment and reducing cache requirements and latency.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- ZTE CORP
- Filing Date
- 2024-12-31
- Publication Date
- 2026-05-15
AI Technical Summary
In existing technologies, the time slot adjustment process is time-consuming and has poor reliability. Especially when the timing of changes in service bandwidth and the timing of changes in the number of time slots are inconsistent, a large number of services need to be cached, resulting in high costs and increased latency.
An end-to-end time slot adjustment method is adopted. After the time slot adjustment strategy is determined through negotiation, the number of time slots is gradually adjusted by using the time slot adjustment indication signal carried by the customer's business, thereby reducing the negotiation time, avoiding the consequences of negotiation failure, and performing time slot adjustment at the determined time slot adjustment time.
It increases the success rate of timeslot adjustment, reduces caching requirements, lowers costs and latency, and enables synchronized adjustment of service bandwidth and the number of timeslots.
Smart Images

Figure CN2024144308_15052026_PF_FP_ABST
Abstract
Description
A time slot adjustment method
[0001] Cross-references to related applications
[0002] This application is based on and claims priority to Chinese Patent Application No. 202410011738.1, filed on January 2, 2024, the entire contents of which are incorporated herein by reference. Technical Field
[0003] The embodiments of this application relate to, but are not limited to, the field of communication technology, and in particular to a time slot adjustment method. Background Technology
[0004] Currently, in communication networks, time slots are commonly used to carry customer services. This involves dividing the physical channel's bearer frame into multiple time slots, or dividing multiple bearer frames into multiple time slots. Each time slot can carry customer services, and these time slots are strictly physically isolated from each other, ensuring they do not interfere with each other. As shown in Figure 1, the bearer frame is divided into multiple time slots. Time slots 1 and 2 carry customer services, while other time slots do not. In application, each customer service can be carried and transmitted on a portion of the time slots. This allows for flexible adjustment of the customer service speed. When the customer service bandwidth is large, it is carried on multiple time slots; when the customer service bandwidth is small, it is carried on a smaller number of time slots. The correspondence between customer service bandwidth and the number of time slots allows for the satisfaction of customer services with various bandwidth requirements. In practical applications, the bandwidth requirements of customer services are variable. When a customer is in the initial startup phase, their bandwidth requirements are relatively small, and they purchase a small number of time slots to carry their services. Over time, the customer's market may expand, requiring greater service bandwidth and the purchase of more time slots to carry their services. For businesses experiencing market downturns, customer bandwidth may decrease after a period of time, requiring a reduction in the number of time slots. Therefore, it is necessary to dynamically and losslessly adjust the number of time slots for customer services to meet the changing bandwidth requirements of customer services.
[0005] Compared to traditional hop-by-hop negotiation and adjustment mechanisms, this new method initiates time slot adjustment by sending an indication signal via customer services after successful end-to-end time slot adjustment negotiation. This reduces negotiation time, avoids the severe consequences of unsuccessful negotiation during hop-by-hop adjustment, eliminates the need for rollback in case of unsuccessful adjustment, saves negotiation time, and increases the probability of successful adjustment. However, when the timing of changes in service bandwidth and the timing of changes in the number of time slots differ, a buffer is needed to temporarily store customer services to accommodate the speed difference. The longer the difference between the timing of changes in service bandwidth and the timing of changes in the number of time slots lasts, the larger the amount of service that needs to be buffered, and the higher the cost. Summary of the Invention
[0006] This application provides a time slot adjustment method.
[0007] On one hand, embodiments of this application provide a time slot adjustment method, including: after negotiating and determining a time slot adjustment strategy with a downstream node and a destination node, performing time slot adjustment using the time slot adjustment strategy at the time slot adjustment time; sending multiple time slot adjustment indication messages from the downstream node to the destination node, so that the downstream node and the destination node determine the time slot adjustment time according to the multiple time slot adjustment indication messages, and performing time slot adjustment using the time slot adjustment strategy at the time slot adjustment time.
[0008] On the other hand, this application also provides a time slot adjustment method, including: after negotiating and determining a time slot adjustment strategy with an upstream node and a downstream node, upon receiving multiple time slot adjustment indication messages sent by the upstream node, determining a time slot adjustment time based on the multiple time slot adjustment indication messages, and completing the time slot adjustment at the time slot adjustment time using the time slot adjustment strategy; sending the multiple time slot adjustment indication messages to the downstream node, so that the downstream node determines the time slot adjustment time based on the multiple time slot adjustment indication messages, and completes the time slot adjustment at the time slot adjustment time using the time slot adjustment strategy.
[0009] On the other hand, this application also provides a time slot adjustment method, including: after negotiating and determining a time slot adjustment strategy with an upstream node, when receiving multiple time slot adjustment indication messages sent by the upstream node, determining a time slot adjustment time according to the multiple time slot adjustment indication messages; and completing the time slot adjustment at the time slot adjustment time using the time slot adjustment strategy.
[0010] On the other hand, embodiments of this application also provide a communication device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the time slot adjustment method as described above.
[0011] On the other hand, embodiments of this application also provide a computer-readable storage medium storing computer-executable instructions for performing the time slot adjustment method described above. Attached Figure Description
[0012] Figure 1 is a schematic diagram of the structure in the related technology where the bearer frame is divided into multiple time slots;
[0013] Figure 2 is a schematic diagram of the frame structure developed by China Mobile in related technologies;
[0014] Figure 3 is a schematic diagram of the adjustment process for reducing time slot requirements in related technologies;
[0015] Figure 4 is a schematic diagram of the adjustment process for increasing time slot requirements in related technologies;
[0016] Figure 5 is a schematic diagram of the time slot adjustment process in related technologies;
[0017] Figure 6 is a schematic diagram of time slot negotiation handshake in related technologies;
[0018] Figure 7 is a flowchart of the time slot adjustment method provided in an embodiment of this application;
[0019] Figure 8 is a schematic diagram of inserting time slot adjustment information into the service flow according to an embodiment of this application;
[0020] Figure 9 is a schematic diagram of the structure of the o-code block provided in an embodiment of this application;
[0021] Figure 10 is a schematic diagram of the structure of the time slot adjustment indicator code block provided in the embodiment of this application appearing at a certain moment in the middle of the bearer frame;
[0022] Figure 11 is a schematic diagram of the structure of switching to a new adjustment time slot at the following effective time slot positions as reference time points in the embodiments of this application;
[0023] Figure 12 is a schematic diagram of the reference time point confirmation provided in an embodiment of this application;
[0024] Figure 13 is a schematic diagram of another reference time point confirmation provided in an embodiment of this application;
[0025] Figure 14 is a schematic diagram of a client code block with a fixed number of intervals between specially defined code blocks provided in an embodiment of this application;
[0026] Figure 15 is a schematic diagram of the case where the interval between the time slot switching timing code block and the time slot adjustment indication code block is a value of T2, provided in the embodiment of this application.
[0027] Figure 16 is a schematic diagram showing that the desired insertion position of the time slot adjustment indicator code block provided in the embodiment of this application is located in the middle of the message;
[0028] Figure 17 is a schematic diagram of the transmission of OAM code blocks according to a fixed sequence and period T at equal intervals.
[0029] Figure 18 is a schematic diagram of the OAM code block expansion function provided in an embodiment of this application;
[0030] Figure 19 is a schematic diagram of the structure of the new OAM sequence provided in an embodiment of this application;
[0031] Figure 20 is a schematic diagram of the structure of the OAM sequence for transmitting pseudo-L code blocks provided in an embodiment of this application;
[0032] Figure 21 is a schematic diagram of the structure of the extended APS code block sequence carrying time slot adjustment indication information provided in an embodiment of this application;
[0033] Figure 22 is a schematic diagram of inserting a slot adjustment indicator code block into an APS code block sequence according to an embodiment of this application;
[0034] Figure 23 is a schematic diagram of transmitting a specially defined pseudo-L code block at the L code block position in the 32nd-64th small cycle of the OAM sequence according to an embodiment of this application;
[0035] Figure 24 is a schematic diagram of the time slot adjustment indication information carrying the verification function on the B1 and B2 code blocks provided in the embodiments of this application;
[0036] Figure 25 is a schematic diagram of the process for adjusting time slots between devices according to an embodiment of this application;
[0037] Figure 26 is a schematic diagram of the cancellation process of a time slot application provided in an embodiment of this application;
[0038] Figure 27 is a flowchart of the process of the first node negotiating and determining the time slot adjustment strategy according to an embodiment of this application;
[0039] Figure 28 is a flowchart of a time slot adjustment method provided in another embodiment of this application;
[0040] Figure 29 is a flowchart of the process by which intermediate nodes negotiate and determine a time slot adjustment strategy according to an embodiment of this application.
[0041] Figure 30 is a flowchart of a time slot adjustment method provided in another embodiment of this application;
[0042] Figure 31 is a flowchart of the process of negotiating and determining the time slot adjustment strategy by the tail node according to an embodiment of this application. Detailed Implementation
[0043] To make the objectives, technical methods, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0044] It should be noted that although the flowchart shows a logical order, in some cases, the steps shown or described may be performed in a different order than that shown in the flowchart. In the description of the specification, claims, and the foregoing drawings, "multiple" means two or more; "greater than," "less than," and "exceeding" are understood to exclude the stated number; "above," "below," and "within" are understood to include the stated number. The use of terms such as "first" and "second" is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly specifying the number of indicated technical features or their sequential relationship.
[0045] It is worth noting that communication networks typically use a frame structure to carry customer services, and time slots are divided within the bearer frame. Equipment generally supports carrying customer services in a time-slot manner, such as equipment supporting the international standard MTN protocol and equipment supporting China Mobile's SPN definition, among other bearer equipment. A bearer frame consists of a frame header, a container, and a frame trailer. Time slots can be divided within the container, and the positions of these time slots are fixed and transmitted across the network with the bearer frame. Each customer service can be transmitted in a fixed time slot, and different customers can choose different time slot positions. When a customer has a large bandwidth, multiple time slot positions can be selected; when a customer has a small bandwidth, a few time slot positions can be selected. When carrying customer services, the source device first maps the customer service to the corresponding time slot of the bearer frame and sends it out. Then, intermediate devices forward the bearer frame, and finally, the destination device extracts the customer service from the corresponding time slot in the bearer frame to reconstruct the original customer service.
[0046] Bearer frames generally have a fixed frame structure, similar to the encoded result of an Ethernet message. Ethernet service transmission can use 64 / 66 encoding. In the Ethernet 802.3 protocol's 64 / 66 encoding rules, each code block consists of 66 bits. The first two bits are the synchronization header of the code block; a synchronization header bit of "01" indicates a D code block (data code block). The following eight bytes (64 bits) contain eight bytes of data content. A synchronization header bit of "10" indicates a control code block. The first byte following indicates the type of control block, and the next seven bytes are the content of the control block, determined by its type. S code blocks, T code blocks, IDLE code blocks, and idle code blocks all belong to control code blocks. The first byte of an S code block is 0x78, indicating that the control code block is an S code block. An S code block represents the first code block in a data packet code block stream. The T-block represents the last block in a data packet block stream, serving as the end block of the packet. Besides indicating the end block, the T-block can also carry client bytes (located in the last 7 bytes of the block). In the Ethernet standard, there are 8 types of T-blocks: T0, T1, T2, T3, T4, T5, T6, and T7. The T0 block (first byte is 0x87) does not carry client information; the T1 block (first byte is 0x99) carries 1 byte of client information; the T2 block (first byte is 0x99) carries 2 bytes of client information, and so on, with the T7 block (first byte is 0xFF) carrying 7 bytes of client information. The IDLE block (also abbreviated as I-block) is an idle block or error indicator block, with a control word content of 0x1E. The 0-block is a maintenance and management block, with a control word content of 0x4B.
[0047] Currently, different standards both domestically and internationally have established different bearer frame formats. See Figure 2, which shows the frame structure defined by China Mobile. As shown in Figure 2, the bearer frame consists of one S-block, 195 D-blocks, and one T-block. The D-blocks within the frame are divided into overhead byte information and 24 time slots. Every 20 frames form a multiframe, and a multiframe cycle contains 480 time slots. The lower part of Figure 2 shows the frame structure in a standard document being developed by the International Telecommunication Union (ITU). In this case, the bearer frame consists of one S-block, 990 D-blocks, and one T-block. The D-blocks within the frame are divided into overhead byte information and 480 time slots. Simultaneously, 480 frames form a multiframe, with each frame in the multiframe transmitting the overhead information for one time slot. All overhead information for 480 time slots is transmitted through the 480 frames in a multiframe. Regardless of the standard, the overhead bytes in the bearer frame generally include the following information:
[0048] MFI: Multi-frame indicator;
[0049] GCC: General Communication Channel;
[0050] Slot num: Slot number;
[0051] client num: Client number;
[0052] CR: Configuration request;
[0053] CA: Configuration Acknowledge;
[0054] C: Time slot configuration takes effect indication;
[0055] S: Time slot increase adjustment notice.
[0056] In practical business applications, initially, customer traffic is low, and the purchased network bandwidth is small, requiring only a few time slots. After a period of time, customer traffic increases, requiring more time slots to support customer business. This necessitates increasing the number of time slots without affecting or interrupting customer business. For enterprise businesses experiencing market decline, customer traffic decreases after a period, requiring a reduction in the number of time slots. This necessitates dynamically reducing the number of time slots supporting customer business without impacting customer operations. Traditional solutions employ a hop-by-hop negotiation and adjustment mechanism. The adjustment process begins with a handshake negotiation for time slot adjustment: one device sends a time slot adjustment request signal, and the other device, upon receiving the request, sends back a time slot adjustment response and confirmation signal. Once the device that sent the request receives the response signal, the negotiation between the two devices is complete, and the time slot adjustment can begin. Referring to Figure 3, which illustrates the adjustment process for reducing time slot requirements, when a time slot reduction is needed, the source device (device 1) sends a time slot reduction request signal (CR) to the downstream device 2. When sending the CR signal, the device also sends the time slot number to be reduced, indicating to downstream device 2 the required time slot number. After receiving the CR signal, device 2 completes its preparations and sends a time slot adjustment response signal (CA) to device 1. Upon receiving the CA from device 2, device 1 completes the negotiation for the time slot reduction adjustment between device 1 and device 2. Device 1 then sends an adjustment instruction signal (C) (Configuration come into force). Device 1 and device 2 then carry customer services according to the reduced time slot positions. When device 2 receives the adjustment instruction signal C from device 1, it sends a time slot reduction adjustment request signal CR to downstream device 3. Simultaneously, it sends the time slot number to be reduced. Upon receiving the CR signal, device 3 completes its preparation and sends a response CA to device 2. After receiving the response CA signal from device 3, device 2 completes the time slot reduction adjustment negotiation between device 2 and device 3. After receiving the response CA signal from device 3, device 2 sends the adjustment instruction signal C. Devices 2 and 3 then carry customer services in the reduced time slot positions. This process continues until devices 3 and 4 complete the time slot reduction adjustment negotiation and adjustment, thus completing all time slot adjustments. The above adjustment process is a segmented negotiation and completion. During the adjustment process, some devices have already completed the adjustment and are carrying services according to the adjusted number of time slots; others have not completed the adjustment and are carrying services according to the original number of time slots.During the reduction adjustment process, the number of time slots is reduced first between upstream adjacent devices. Only after the number of time slots between upstream adjacent nodes has been reduced does the time slot reduction operation of downstream devices begin. This ensures that the number of time slots between upstream nodes is always less than the number of time slots between downstream nodes; that is, the service bandwidth between upstream nodes is less than the service bandwidth between downstream nodes. This prevents service overflow at some node locations due to upstream bandwidth exceeding downstream bandwidth. During the adjustment process, the end-to-end bandwidth reduction adjustment is only completed after the last two nodes have completed their time slot reduction adjustments.
[0057] When adding time slots, to ensure that the service bandwidth between upstream nodes is less than that between downstream nodes, China Mobile's enterprise standard stipulates that time slot increase adjustments should begin from the destination device, as shown in Figure 4. Figure 4 illustrates the adjustment process for adding time slots. When an increase in time slots is required, the destination device (device 4) sends a bandwidth increase adjustment notification signal S to the upstream device 3. Upon receiving the S signal, upstream device 3 initiates the increase adjustment by sending a CR signal to device 4, along with the time slot number to be added. After receiving the CR signal, device 4 completes its preparations and sends a time slot increase adjustment response signal CA back to device 3. After receiving the response CA signal from device 4, device 3 completes the negotiation for the time slot increase adjustment between device 3 and device 4. Device 3 then sends an adjustment instruction signal C to device 4. Device 3 and device 4 then carry customer services according to the adjusted time slots. Simultaneously, device 3 sends a timeslot increase adjustment notification signal (S) to upstream device 2. Upon receiving the S signal, upstream device 2 initiates the timeslot increase adjustment negotiation process, sending a CR signal to device 3 along with the timeslot number to be increased. After receiving the CR signal, device 3 completes its preparations and sends a response CA signal back to device 2. Upon receiving the response CA signal from device 3, device 2 completes the timeslot increase adjustment negotiation between device 2 and device 3, sending an adjustment indication signal (C) to device 3. Devices 2 and 3 then carry customer services according to the adjusted timeslots. Simultaneously, device 2 sends a bandwidth increase adjustment notification signal (S) to upstream device 1. This process continues until device 1 and device 2 complete the timeslot increase adjustment negotiation and adjustment, thus completing the entire timeslot increase adjustment process. The adjustment process is negotiated and completed segment by segment. During the adjustment of adding time slots, downstream devices always increase the number of time slots first, followed by upstream devices. The number of time slots between upstream nodes is always less than the number of time slots between downstream nodes; that is, the service bandwidth between upstream nodes is less than the service bandwidth between downstream nodes. This avoids service overflow caused by upstream service bandwidth exceeding downstream service bandwidth in the pipeline. During the time slot increase adjustment process, the end-to-end bandwidth increase adjustment is only completed after the last two nodes have completed their time slot increase adjustments.
[0058] Traditional bandwidth adjustment processes are negotiated and completed segment by segment, with the next segment's adjustment only starting after the previous one is finished, resulting in a very time-consuming process. Furthermore, this segment-by-segment negotiation and completion has a significant drawback: while some segments have already been adjusted, others encounter unexpected situations during the adjustment process (e.g., interference causing signal loss in CR / CA signals between nodes, or a device failing to send a response CA signal, leading to negotiation failure between upstream and downstream devices). When time slot adjustment negotiations fail between some devices, subsequent time slot adjustments cannot proceed. This results in some successfully adjusted devices operating with the new time slot count, while others operate with the old time slot count, leading to inconsistent end-to-end bandwidth for services. In cases where negotiation fails between some devices and subsequent time slot adjustments cannot continue, a rollback mechanism is typically activated. This mechanism reverts the successfully adjusted devices to their original, unadjusted time slot state, following the reverse time slot adjustment process. For example, if some devices succeed in increasing time slots while others fail, a time slot reduction adjustment activity is initiated for the successfully adjusted devices. The added time slots are then deleted according to the time slot reduction mechanism, completing the time slot rollback. Similarly, if some devices succeed in decreasing time slots while others fail, a time slot increase adjustment activity is initiated for the successfully adjusted devices. The reduced time slots are then added back according to the time slot increase mechanism, completing the time slot rollback. The time slot rollback process is also very cumbersome. For example, sometimes rollback adjustments may fail again, making it impossible to continue rolling back, resulting in a dilemma where end-to-end time slot adjustment cannot be completed, but end-to-end time slot rollback cannot be completed either. In networks from different manufacturers, due to differences in the internal processing mechanisms of different manufacturers, time slot adjustment negotiations are prone to failure, making traditional time slot adjustment applications difficult.
[0059] To address the slow adjustment speed and poor reliability of current time slot adjustment schemes, Figure 5 illustrates an end-to-end time slot negotiation adjustment scheme. As shown in Figure 5, the time slot adjustment process is as follows: The network management system sends time slot configuration content and adjustment commands to the source device, identifying the source and destination devices. Whether adding or removing time slots, the time slot adjustment is initiated by the source device. Source device 1 sends a bandwidth adjustment request signal (CR) to downstream device 2, simultaneously sending the time slot number to be adjusted, indicating the required time slot number to downstream device 2. After receiving the CR signal, intermediate device 2 starts preparation work but does not immediately send a response signal (CA) back to device 1. Device 2 continues to send a time slot adjustment request signal (CR) to downstream device 3, simultaneously sending the time slot number to be adjusted. Similarly, after receiving the CR signal and starting preparation work, intermediate device 3 does not immediately send a response signal (CA) back to device 2, but instead sends a bandwidth adjustment request signal (CR) to downstream device 4, simultaneously sending the time slot number to be adjusted. Device 4 is the destination device. After receiving the CR signal from upstream device 3, the destination device completes its preparation work and sends back a time slot adjustment response signal CA and the adjusted time slot number to upstream device 3. Intermediate device 3 only sends back a time slot adjustment response signal CA and the adjusted time slot number to upstream device 2 after receiving the response signal CA from downstream device 4. Similarly, intermediate device 2 only sends back a response signal CA and the adjusted time slot number to upstream device 1 after receiving the time slot adjustment response signal CA from downstream device 3. Device 1 is the source device. After receiving the time slot adjustment response signal CA and the adjusted time slot number from downstream, the source device confirms that the returned time slot number matches the requested time slot number, thus confirming that the negotiation work between the source device, the destination device, and all intermediate devices has been completed and that the time slot adjustment negotiation between all devices is successful. Only then does the source device 1 begin sending the adjustment instruction signal C to the downstream device. If negotiation between some devices in the network fails, source device 1 will not receive the response signal CA, and will not send the adjustment indication signal C. The devices will not carry customer services according to the new number of time slots; instead, they will continue to carry customer services according to the original number of time slots. This avoids the end-to-end bandwidth inconsistency caused by successful negotiation between some devices and unsuccessful negotiation between others in traditional time slot adjustments, as well as the rollback issue in time slot adjustments. If negotiation fails between some devices in the network, and the source device cannot receive the time slot adjustment response signal, it can repeatedly or continuously send the time slot adjustment request signal CR until it receives the time slot adjustment response signal CA. If the source device fails to receive the adjustment response signal CA within a certain period, it considers the end-to-end link to be faulty, stops sending the time slot adjustment request signal CR, and terminates the time slot adjustment activity.
[0060] When source device 1 receives the time slot adjustment response confirmation signal CA and the adjusted time slot number from downstream device 1, and confirms that the returned time slot number matches the requested time slot number, then source device 1 sends an adjustment instruction signal C to downstream device 2. Simultaneously, device 1 carries customer services according to the new time slot scheme, and downstream device 2, upon receiving adjustment instruction signal C, also forwards customer services according to the new time slot scheme, completing the time slot adjustment between device 1 and device 2. When intermediate device 2 receives adjustment instruction signal C from upstream device 1, device 2 simultaneously sends adjustment instruction signal C to downstream device 3. Device 2 also carries customer services according to the new time slot scheme, and downstream device 3, upon receiving adjustment instruction signal C, also forwards customer services according to the new time slot scheme, completing the time slot adjustment between device 2 and device 3. Similarly, when intermediate device 3 receives adjustment instruction signal C from upstream device 2, device 3 also sends adjustment instruction signal C to downstream device 4. Device 3 carries customer services according to the new time slot scheme, and downstream device 4, upon receiving adjustment instruction signal C, also retrieves customer services according to the new time slot scheme, completing the time slot adjustment between device 3 and device 4. Once the destination device completes the time slot adjustment, the end-to-end time slot adjustment is finished. After completing the time slot adjustment, the destination device notifies the source device that the time slot adjustment is successful. If the source device does not receive the adjustment success indication signal from the destination device within a certain period of time, the source device can resend the adjustment indication signal C once; alternatively, the source device can continuously send the adjustment indication signal C until it receives the adjustment success indication signal from the destination device before stopping sending the adjustment indication signal C.
[0061] In the above scheme, time slot adjustment negotiation is conducted end-to-end from the source device to the destination device. Intermediate devices participate in the negotiation, and they relay the time slot adjustment negotiation signal sequentially in a relay manner, realizing a handshake negotiation mechanism for time slot adjustment between the source and destination devices. Once the negotiation between the source and destination devices is successful, it indicates that the time slot adjustment negotiation between the source and destination devices, including all intermediate devices in the network, is successful. Only after the handshake negotiation for time slot adjustment is successful among all devices will the time slot adjustment work be executed sequentially starting from the source device. Whether time slots are increased or decreased, the end-to-end time slot adjustment method in the above scheme can be used, and time slot adjustment negotiation and execution can be carried out from the source device to the destination device. For adjustments requiring increased timeslots, customer service bandwidth is not increased until the end-to-end timeslot increase adjustment is complete. Customer service bandwidth remains at its original level. This ensures that even during the end-to-end timeslot increase adjustment process, while the bandwidth between upstream devices is larger than that between downstream devices, the customer service bandwidth remains constant, matching the bandwidth between upstream and downstream devices. Therefore, even with increased upstream bandwidth, the effective customer service bandwidth does not increase, preventing customer overflow. As shown in Figure 5, initially, devices 1 and 2, 2 and 3, and 3 and 4 each have only one timeslot configured to transmit customer services, with a single timeslot capable of transmitting 10Mbps. When the bandwidth needs to be adjusted to 20Mbps, the initial customer service bandwidth remains at 10Mbps. During the adjustment process, the timeslot between devices 1 and 2 is initially increased from one to two timeslots, increasing the carrying bandwidth to 20Mbps. Devices 2 and 3, and 3 and 4 still have one timeslot, transmitting 10Mbps customer services. At device 1, when carrying a 10M rate customer service across two time slots, because the customer service speed is lower than the carrying time slot speed, a large amount of idle information, such as idle code blocks, needs to be inserted between the customer segments. After adding a large amount of idle information, the total speed is increased to 20M, and then carried across two time slots. At device 2, upon receiving the customer flow from device 1, the large amount of idle information inserted between the packets is deleted, and the remaining customer service speed can be carried across one time slot. Device 2 then carries the customer service, after deleting the idle information, across one time slot and sends it to device 3. When the time slot between device 2 and device 3 is adjusted from one to two time slots, device 2 does not delete idle information when receiving the service flow from device 1, while device 3 deletes the idle information and carries it across one time slot. When the time slot between device 3 and device 4 is adjusted from one to two time slots, the number of time slots in the end-to-end carrying pipeline between device 1 and device 4 is adjusted to two time slots to carry the 20M customer service. Only after the end-to-end time slot number adjustment is successful is the customer service speed adjusted to 20M. For adjustments to increase the number of time slots, the time slot adjustments for end-to-end devices should be completed first before increasing the speed of customer services.Similarly, for adjusting the number of time slots, the customer service speed is reduced first before adjusting the time slots between end-to-end devices, always ensuring that the customer service speed is lower than the carrying speed of any device in the end-to-end network. For any device, when the upstream time slot bandwidth is greater than the downstream time slot bandwidth, a large amount of idle information in the upstream customer service is deleted, and then the customer service is sent to the downstream time slot; when the upstream time slot bandwidth is less than the downstream time slot bandwidth, a large amount of idle information is inserted into the upstream customer service, and then sent to the downstream time slot. Furthermore, if an intermediate node receives an adjustment instruction C signal, it immediately sends an adjustment instruction downstream, and the downstream time slot increase adjustment is also immediately initiated. In this way, the time slot increase adjustment starts from the source device, proceeding from upstream to downstream devices in a relay manner. The adjustment between upstream and downstream devices is performed sequentially. The inconsistency in the number of time slots and bandwidth between upstream and downstream devices is only momentary; afterwards, the number of time slots between upstream and downstream devices quickly becomes consistent, and there is no bandwidth inconsistency problem.
[0062] In time slot adjustment, the source and destination devices negotiate via a handshake using the adjustment request signal CR and the adjustment response signal CA. The handshake can employ a full time slot adjustment method, periodically sending adjustment request status information for all time slots and then periodically sending back response information for all time slots. Upon receiving all response information, adjustment is initiated by sending a time slot adjustment indication signal C. Figure 6 illustrates the time slot negotiation handshake. In Figure 6, device 1 periodically sends time slot adjustment request status information for all time slots to device 2. Device 2, upon receiving this information, periodically forwards it to device 3, and device 3, upon receiving this information, periodically forwards it to device 4. After receiving the time slot adjustment request status information, device 4 periodically sends back time slot adjustment response signals for all time slots to device 3. Device 3, upon receiving this information, periodically sends back the adjustment status information for all time slots to device 2, and device 2, upon receiving this information, periodically sends back the adjustment status information for all time slots to device 1. After receiving all time slot adjustment response signals, device 1 sends a notification to initiate the adjustment indication signal C, officially activating the adjusted time slots. In the full-slot adjustment method, regardless of whether a slot participates in the adjustment, the adjustment request status information and response information for all slots are periodically transmitted. Of all the slot adjustment information, some slots may genuinely require adjustment, while others may not. If there are a total of 480 slots, each 480 frames constitutes a multiframe. Each frame in the multiframe transmits the adjustment status information for one slot. Frame 0 transmits the adjustment status information for slot 0, frame 1 for slot 1, frame 2 for slot 2, and so on, up to frame 479 for slot 479. This process is repeated for one multiframe cycle. In Figure 6, slots 2 and 4 are genuinely participating in the slot adjustment; their CR values are 1, indicating a request for slot adjustment. The CR values for other slots are 0, indicating they are not participating in the adjustment. Since the client numbers for slots 2 and 4 have changed from invalid to valid, this indicates that slot adjustments are being added. Device 1 transmits the adjustment status information of all time slots to Device 2 within one multiframe period. Device 2, upon receiving this information, transmits it to Device 3 within the same multiframe period. Device 3, upon receiving this information, transmits it to Device 4 within the same multiframe period. Device 4, after receiving the adjustment status information of all time slots, sends back the response information for all time slots to Device 3. Device 3, upon receiving this information, sends back the response information for all time slots to Device 2 within one multiframe period. Device 2, upon receiving this information, sends back the response information for all time slots to Device 1 within one multiframe period. Device 1 receives the response information for all time slots within one multiframe period. Since only time slots 2 and 4 requested to participate in the adjustment, only the CA information of time slots 2 and 4 is valid (CA=1) in the response information sent back by all devices; the response information of other time slots is invalid (CA=0).
[0063] After receiving all the returned CA response information, device 1 continuously sends multiple adjustment indication C signals. To increase reliability, adjustment indication C information can be sent multiple times, for example, three times. The receiving end uses a majority-judgment principle (the adjustment indication C signal is considered valid if it appears two or more times; it is considered invalid if it appears two or more times). Then, the initiating device and the receiving device adjust the number of time slots according to the agreed time base, as shown in Figure 6. At the agreed time, the newly added time slots 2 and 4 are officially activated. Both the initiating device and the receiving device use the dashed line time as the time when the new time slots are activated after adjustment. To facilitate the activation of new time slots to carry customer services, new time slots are generally activated at the beginning of the bearer frame. If the activation time of a new time slot is in the middle of a frame, the current bearer frame continues to carry customer services according to the original old time slot. The new time slot is activated to carry customer services at the beginning of the next frame. The dashed line in Figure 6 is the agreed reference time for activating a new time slot between the transmitting and receiving devices. However, the new time slot is actually activated at the beginning of the next adjacent bearer frame. The starting position is the beginning of the bearer frame (i.e., the first time slot), which is the position of the bold solid line in Figure 6. Both the transmitting and receiving devices activate the new time slot to carry customer services at the position of the bold solid line, at the beginning of the next bearer frame.
[0064] When time slot adjustments are performed, to ensure that changes in customer service bandwidth and the corresponding number of time slots carrying the customer service change synchronously, a time slot adjustment indication signal is inserted into the customer service flow when the bandwidth of the customer service needs to be changed. This signal is transmitted along with the service flow. The time slot adjustment indication signal has two functions: indicating the timing of the bandwidth change and indicating the timing of the time slot adjustment for the customer service. The bandwidth of the customer service changes according to the adjustment indication signal, and the number of time slots carrying the customer service also changes accordingly, adapting the number of time slots to the bandwidth changes. The adjustment indication signal, carried in the customer service flow, represents the timing of the bandwidth adjustment. As the signal travels through the network, each device synchronously adjusts its number of time slots based on the adjustment indication in the customer service flow, carrying the customer service according to the new number of time slots. When the customer service bandwidth changes, the corresponding device also adjusts its number of time slots simultaneously, achieving near-synchronous changes in bandwidth and time slots, reducing the total duration of discrepancies between the timing of bandwidth and time slot changes.
[0065] Compared to traditional hop-by-hop negotiation and adjustment mechanisms, this new method initiates time slot adjustment by sending an indication signal via customer services after successful end-to-end time slot adjustment negotiation. This reduces negotiation time, avoids the severe consequences of unsuccessful negotiation during hop-by-hop adjustment, eliminates the need for rollback in case of unsuccessful adjustment, saves negotiation time, and increases the probability of successful adjustment. However, when the timing of changes in service bandwidth and the timing of changes in the number of time slots differ, a buffer is needed to temporarily store customer services to accommodate the speed difference. The longer the difference between the timing of changes in service bandwidth and the timing of changes in the number of time slots lasts, the larger the amount of service that needs to be buffered, and the higher the cost.
[0066] To reduce the duration of the asynchrony between changes in service bandwidth and changes in the number of time slots, thereby effectively reducing the number of cached services, lowering costs, and reducing customer latency, this application provides a time slot adjustment method, communication device, and computer-readable storage medium. After determining a time slot adjustment strategy with downstream nodes and destination nodes, the first node can use this strategy to complete time slot adjustment at the designated time slot adjustment time. Multiple time slot adjustment indication messages are sent from downstream nodes to destination nodes, enabling both downstream and destination nodes to determine the time slot adjustment time based on these indications and to use the corresponding time slot adjustment strategy at that time slot adjustment time. This reduces the duration of the asynchrony between changes in service bandwidth and changes in the number of time slots, thereby reducing the number of cached services, lowering costs, and reducing customer latency.
[0067] Based on the above analysis, the embodiments of this application will be described below with reference to the accompanying drawings.
[0068] Referring to Figure 7, which is a flowchart of a time slot adjustment method provided in an embodiment of this application, the time slot adjustment method can be executed by the first node, and the steps of the time slot adjustment method may include, but are not limited to, steps S710 to S720.
[0069] Step S710: After negotiating and determining the time slot adjustment strategy with the downstream node and the destination node, the time slot adjustment is completed by adopting the time slot adjustment strategy at the time slot adjustment time.
[0070] Step S720: Send multiple time slot adjustment indication messages to the destination node through the downstream node, so that the downstream node and the destination node can determine the time slot adjustment time according to the multiple time slot adjustment indication messages, and complete the time slot adjustment by adopting the time slot adjustment strategy at the time slot adjustment time.
[0071] In one feasible implementation, when a customer service is in the transmission state and time slot adjustment information needs to be inserted into the service flow, the first node can initiate a bandwidth increase adjustment request. After the first node, downstream nodes, and destination nodes determine the time slot adjustment strategy, the downstream node can send time slot adjustment instruction information to the destination node. This allows each node to complete the time slot adjustment at the determined time slot adjustment time during the service flow transmission process, reducing the duration of different times when the service bandwidth changes and the number of time slots changes. This can reduce the number of cached services, lower costs, and reduce customer latency.
[0072] It is understandable that the service flow can be ordinary Ethernet service information or high quality of service service information. For example, high quality of service service information can be CBR service, high quality of service Ethernet service information (such as eCPRI (Ethernet Common Public Radio Interface) service information), voice service information, video service information, game service information, etc. There are no specific limitations here. Among them, high quality of service service information can be encapsulated in various formats, such as eCPRI protocol message format or Ethernet packet format, etc. Ordinary Ethernet service information can be download service information, etc. There are no specific limitations here.
[0073] In one feasible implementation, the first node can also send time slot switching time information to the destination node through the downstream node, wherein the time slot switching time information is used to indicate the time slot adjustment time.
[0074] In one feasible implementation, the time slot switching time information can be carried in the time slot switching time code block in the service flow. The time slot adjustment time can include one of the following three cases: the time slot adjustment time is the next time slot of the time slot in which the time slot switching time code block is located; the time slot adjustment time is the start position or the first time slot of the next bearer frame of the bearer frame in which the time slot switching time code block is located; the time slot adjustment time is the start position or the first time slot of the first bearer frame in the next multiframe of the multiframe in which the time slot switching time code block is located.
[0075] In one feasible implementation, the time slot adjustment indication information can be used to indicate that the time slot adjustment strategy is in effect. In addition, multiple time slot adjustment indication information can also be carried in multiple time slot adjustment indication code blocks in the service flow.
[0076] In one feasible implementation, when the time slot switching time information is carried in the time slot switching time code block in the service flow, there may be an equal or unequal number of first code blocks between two adjacent time slot adjustment indicator code blocks and between the time slot switching time code block and the last transmitted time slot adjustment indicator code block.
[0077] In one feasible implementation, when the time slot switching time information is carried in the time slot switching time code block in the service flow, there is a first number of first code blocks between two adjacent time slot adjustment indicator code blocks, and there is a second number of first code blocks between the time slot switching time code block and the last time slot adjustment indicator code block sent. It should be noted that the second number is not equal to the first number.
[0078] In one feasible implementation, the time slot switching timing code block can be determined based on a first quantity and the position of any time slot adjustment indicator code block.
[0079] In one feasible implementation, the time slot switching time block corresponds to a desired position in the service flow. The desired position can be determined based on a first quantity and the position of any time slot adjustment indicator block. When the code block corresponding to the desired position is a code block in a data packet, the time slot switching time block is the first code block after the end code block in the data packet.
[0080] In one feasible implementation, the time slot adjustment indicator code block and the time slot switching time code block have the same code block type. Both the time slot adjustment indicator code block and the time slot switching time code block include a time slot adjustment function field. The time slot adjustment function field in the time slot adjustment indicator code block is used to carry time slot adjustment indication information, and the time slot adjustment function field in the time slot switching time code block is used to carry time slot switching time information.
[0081] In one feasible implementation, both the time slot adjustment indicator code block and the time slot switching timing code block further include a synchronization header bit, a control word, and a type sequence value. The combination of the synchronization header bit, the control word, and the type sequence value serves as a flag value used to indicate the time slot adjustment indicator code block or the time slot switching timing code block.
[0082] In this embodiment, by employing the time slot adjustment method including steps S710 to S720, after negotiating and determining the time slot adjustment strategy with the downstream node and the destination node, the first node can use the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment time. The downstream node sends multiple time slot adjustment indication messages to the destination node, enabling the downstream node and the destination node to determine the time slot adjustment time based on the multiple time slot adjustment indication messages, and to use the corresponding time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment time. Therefore, the different durations of the service bandwidth change time and the time slot number change time can be reduced, thereby reducing the number of cached services, reducing network overhead costs and customer service latency.
[0083] In one embodiment, multiple time slot adjustment indication information can be carried in multiple time slot adjustment indication code blocks in the service flow, and the time slot adjustment time is determined according to the location of any one of the time slot adjustment indication code blocks.
[0084] In one embodiment, there is a third number of first code blocks between two adjacent time slot adjustment indicator code blocks. The time slot adjustment time can be determined based on the time slot adjustment reference time, which can be determined based on the third number and the position of any one of the time slot adjustment indicator code blocks.
[0085] In one embodiment, the time slot adjustment time includes one of the following: the time slot adjustment time is the next time slot of the time slot in which the time slot adjustment reference time is located; the time slot adjustment time is the starting position or the first time slot of the next bearer frame of the bearer frame in which the time slot adjustment reference time is located; the time slot adjustment time is the starting position or the first time slot of the first bearer frame in the next multiframe of the multiframe in which the time slot adjustment reference time is located.
[0086] In one embodiment, there is a fourth number of first code blocks between the location of the time slot adjustment reference time and the last transmitted time slot adjustment indicator code block. It should be noted that the fourth number is less than or equal to the third number.
[0087] In one embodiment, the time slot adjustment indicator code block further includes a time slot adjustment function field, wherein the time slot adjustment function field can be used to carry time slot adjustment indicator information.
[0088] In one embodiment, when mapping the first code block stream to the first transport container, multiple time slot adjustment indication information can be carried in the OAM code blocks in the service stream.
[0089] In one embodiment, when the OAM code block includes an APS code block, multiple time slot adjustment indication information can be carried in the Base1 code block, APS code block, and Base2 code block of the OAM code block, respectively. The time slot adjustment time can be determined based on the position of the first Base1 code block after the Base2 code block carrying time slot adjustment indication information. Alternatively, when the OAM code block does not include an APS code block, a pseudo-APS code block is configured between the Base1 code block and the Base2 code block in the OAM code block, and multiple time slot adjustment indication information can be carried in the Base1 code block, the pseudo-APS code block, and the base2 code block, respectively. The timing of time slot adjustment for S-blocks and Base2 blocks is determined based on the position of the first Base1 block following the Base2 block carrying time slot adjustment indication information; alternatively, when the OAM block includes an APS block, a pseudo-APS block can be configured before or after the APS block, and multiple time slot adjustment indication information can be carried in the Base1 block, pseudo-APS block, and Base2 block in the OAM block, respectively. The timing of time slot adjustment can be determined based on the position of the first Base1 block following the Base2 block carrying time slot adjustment indication information.
[0090] In one embodiment, when the OAM code block includes an APS code block, the APS code block may include a first APS code block and a second APS code block. In this case, the time slot adjustment indication information may be carried in the second APS code block.
[0091] In one embodiment, when the OAM code block includes an L code block, multiple time slot adjustment indication information can be carried in the Base1 code block, Base2 code block, and L code block of the OAM code block, respectively. The time slot adjustment time can be determined based on the position of the first Base1 code block after the L code block carrying the time slot adjustment indication information. Alternatively, when the OAM code block does not include an L code block, a pseudo-L code block can be configured at the position of the L code block in the OAM code block. Multiple time slot adjustment indication information can be carried in the Base1 code block, Base2 code block, and pseudo-L code block of the OAM code block, respectively. The time slot adjustment time can be determined based on the position of the first Base1 code block after the pseudo-L code block carrying the time slot adjustment indication information. Alternatively, when the OAM code block includes an L code block, a pseudo-L code block can be configured before or after the L code block. Multiple time slot adjustment indication information can be carried in the Base1 code block, Base2 code block, and pseudo-L code block of the OAM code block, respectively. The time slot adjustment time can be determined based on the position of the first Base1 code block after the pseudo-L code block carrying the time slot adjustment indication information.
[0092] In one embodiment, the time slot adjustment indicator code block may include check bit information, wherein the check bit information can be used to verify the correctness of the time slot adjustment indicator information.
[0093] Figure 27 is a flowchart of the process of the first node negotiating and determining the time slot adjustment strategy according to an embodiment of this application. When the first node negotiates and determines the time slot adjustment strategy with the downstream node and the destination node, as shown in Figure 27, the process of determining the time slot adjustment strategy may include, but is not limited to, steps S2710-S2720.
[0094] Step S2710: Send time slot adjustment strategy information from the downstream node to the destination node, so that the downstream node and the destination node can determine the time slot adjustment strategy according to the time slot adjustment strategy information.
[0095] Step S2720: When the time slot adjustment strategy response information returned by the destination node through the downstream node is received, it is determined that the time slot adjustment strategy has been negotiated and determined with the downstream node and the destination node.
[0096] In one embodiment, the time slot adjustment strategy information may include time slot adjustment application information and adjustment-to-be-adjusted information, wherein the time slot adjustment application information is used to request time slot adjustment, and the adjustment-to-be-adjusted information is used to determine the strategy content of the time slot adjustment strategy.
[0097] The time slot adjustment method provided in this application embodiment will be described in detail below with specific examples.
[0098] For example, as shown in Figure 8, which is a schematic diagram of inserting time slot adjustment information into the service flow according to an embodiment of this application. In the current related technologies, Ethernet packets are transmitted in a fixed-length code block format, commonly 66-bit code blocks, as shown in Figure 8. When the customer service is in the transmission state, specially defined code blocks can be inserted into the customer service code block flow, as shown in the code blocks with a white background in Figure 8. These specially defined code blocks include time slot adjustment indicator code blocks and time slot switching time code blocks. These specially defined code blocks can carry corresponding time slot adjustment indicator information, which includes time slot adjustment indicator signals and time slot switching indicator signals. In the example of Figure 8, the time slot adjustment indicator code block can carry three types of time slot adjustment indicator signals: C1, C2, and C3. The three data values C1, C2, and C3 are a group, and C1, C2, and C3 are indicator signals with the same function. These indicator signals will appear three times. The majority decision principle is adopted to avoid obtaining correct judgment even in the case of a single bit error. It should be noted that this example uses three indication signals, but the specific implementation can also use other numbers of indication signals, such as five. C1, C2, and C3 represent time slot adjustment indication signals. The three time slot adjustment indication signals can be determined using a majority-rule principle. When at least two of the three time slot adjustment indication signals are valid, the final judgment result of the time slot adjustment indication signal is a valid indication signal; when at least two of the three time slot adjustment indication signals are invalid, the final judgment result of the time slot adjustment indication signal is an invalid indication signal. C1, C2, and C3 can not only represent time slot adjustment indication signals, but can also be used to indicate that the service bandwidth and bearer time slot data are about to change, realizing a notification function for a period of time in advance to prepare for the work. The time slot switching timing code block can carry the time slot switching indication signal CCC, as shown in Figure 8. The CCC signal indicates the actual execution time of the adjustment of service bandwidth and the number of time slots carrying customer services. When the time slot adjustment indication signal is valid, the bandwidth of customer services will change at the time position of the CCC signal. When each device detects the CCC signal, it also synchronously activates the adjusted number of time slots, so as to realize the synchronous adjustment of the number of time slots and service bandwidth.
[0099] It is worth noting that in the Ethernet standard, the 0 code block is a control code block. The 2-bit synchronization header is "10", the control word content is "0x4B", and bits 34-37 of the code block are the 0 sequence values. Different sequence values represent different types of 0 code blocks, as shown in the upper part of Figure 9. The current standard has enabled the use of 0x0, 0x1, 0x2, 0x5, and 0xF 0 sequence values. Therefore, 0 code blocks carrying other sequence values can be defined as special definition code blocks carrying time slot adjustment information, as shown in the lower part of Figure 9. For example, the 0xE sequence value 0 code block is used as a special definition code block for the time slot adjustment indication signal.
[0100] In one embodiment, the combination of a synchronization header bit of "10", a control word of "0x4B", and an o sequence value of "0xE" can be used as a flag value for a code block carrying a time slot adjustment indication. The code block that matches this flag value is the code block carrying time slot adjustment indication information. The first byte in the o-code block is the control word. Following the control word in Figure 9 are three bytes (D2, D3, D4) which are data bytes. The meaning of the data byte content is determined by the o-code block sequence value type. When the o-code block sequence value is defined as a code block carrying time slot adjustment indication, time slot adjustment indication information, such as C1 function information, C2 function information, C3 function information, and CCC function information, can be carried in bytes D2, D3, and D4. In the lower part of Figure 9, D2 content of 00 indicates a code block carrying time slot adjustment indication information for C1 function; D2 content of 01 indicates a code block carrying time slot adjustment indication information for C2 function; D2 content of 10 indicates a code block carrying time slot adjustment indication information for C3 function; and D2 content of 11 indicates a code block carrying time slot adjustment indication information for CCC function. In specific implementations, the content of byte D2 can also be used to represent C1, C2, C3, and CCC function information. Of course, besides byte D2 carrying function information values, it can also be carried by byte D3 or byte D4.
[0101] In one embodiment, as shown in Figure 5, the source device can act as the first node, devices 2 and 3 can act as intermediate nodes, and device 4 can act as the tail node. When it is necessary to increase the time slot, the source device can initiate a bandwidth increase adjustment request. Specifically, the source device sends the adjustment request signal CR and the corresponding time slot to device 2 via a bearer frame. Device 2, being an intermediate device, can receive the request signal CR and the corresponding time slot. After device 2 confirms and grants permission, it can forward the request signal CR and the corresponding time slot to device 3. It is understood that device 3 is also an intermediate device, capable of receiving the request signal CR and the corresponding time slot. After device 3 confirms and grants permission, it can forward the request signal CR and the corresponding time slot to device 4. It should be noted that device 4 is a destination device that can receive the request signal CR and the corresponding time slot. After device 4 confirms and grants permission, it can send back the response signal CA and the corresponding time slot to device 3. Device 3 can receive the response signal CA and the corresponding time slot from device 4, confirm it, and then send back the response signal CA and the corresponding time slot to device 2. Device 2 can receive the response signal CA and the corresponding time slot from device 3, confirm it, and then send back the response signal CA and the corresponding time slot to source device 1. After receiving the response information CA and the time slot from device 2, source device 1 confirms that all adjusted time slots have received the response CA information. The source device inserts a specially defined code block carrying a time slot adjustment indication into the service flow, and sends three specially defined code blocks carrying the time slot adjustment indication values C1, C2, and C3 respectively. It sends the specially defined code blocks and the service flow code blocks together to device 2. After that, source device 1 can insert a specially defined code block carrying the time slot switching time indication value CCC at the agreed time and correspondingly increase the bandwidth of the adjusted customer service flow. After sending a specially defined code block carrying the CCC (Time Slot Indicator) value, source device 1 increases the number of time slots carrying customer services. During the reception of customer services, the receiving side of device 2 can detect the types of code blocks within the customer service. If a specially defined code block carrying time slot adjustment indications C1, C2, and C3 values is detected in the customer service code block stream, it determines, according to the majority rule, that the final value of the time slot adjustment indication is a valid indication, prepares for time slot adjustment, and continues to detect specially defined code blocks carrying time slot switching indications CCC values in the customer service stream. The receiving side of device 2 also increases the number of time slots at the location of the specially defined code block carrying the time slot switching indication CCC value, allowing extraction of customer services from the new number of time slots. When the customer service code block stream is transmitted to the sending end of device 2, the sending end of device 2 can detect specially defined code blocks carrying time slot adjustment indications C1, C2, and C3 values and prepare for adjustment. When a specially defined code block carrying the time slot switching indication CCC value is detected, the sending end of device 2 can also simultaneously adjust the number of time slots.When the service flow is transmitted to the receiving end of device 3, the receiving end of device 3 can adopt the same operation method as the receiving end of device 2. Similarly, the sending end of device 3 and the receiving end of device 4 can operate in the same way. After the receiving end of device 4 completes the time slot adjustment work, the number of carrying time slots from device 1 to device 4 can be adjusted. At this point, the time slot adjustment work is completed.
[0102] It is worth noting that in practical applications, the customer service flow can be in the form of a code block flow. The customer's code blocks can be mapped to the selected time slots in the bearer frame in Figure 1 for carrying. The customer service code block flow is only carried on the corresponding selected time slots in the bearer frame. For example, the customer originally carried the service only on time slots 3 and 15. After adjustment, the selected bearer frame carries the service on time slots 3, 8, and 15. This bandwidth adjustment adds time slot 8. After adjustment, the customer service is carried on time slots 3, 8, and 15. In this way, the customer service code block flow carries a special code block that indicates the time slot adjustment and appears on a certain time slot of time slots 3 and 8 in the bearer frame. However, it is uncertain whether it appears on time slot 3 or time slot 8 this time. As shown in Figure 10, the special code block that indicates the time slot adjustment can appear at some time in the middle of the bearer frame. For time slot adjustment indicator code blocks carrying time slot adjustment indication values C1, C2, and C3, the receiving side only detects these three specially defined code blocks in the service code block stream. After detecting these three time slot adjustment indicator code blocks, the final adjustment indication validity result can be given according to the majority decision principle. It is understood that the different positions of these three time slot adjustment indicator code blocks in the bearer frame do not affect the decision result. Time slot switching time indication code blocks carrying time slot switching time indication CCC values may also appear on any time slot carrying customer services. In Figure 10, the time slot switching time indication code block carrying time slot switching time indication CCC values can appear on time slot 3. In this case, time slot 3 becomes the reference time point for time slot number adjustment. With time slot 3 as the reference time point, the next time slot (i.e., time slot 4) begins to carry customer services, and time slots 3, 8, and 15 carry customer services (previously carried by time slots 3 and 15), as shown in Figure 10. In this example application, although the time slots carrying customer services are replaced from time slot 4 with time slots 3 and 15, and then with time slots 3, 8, and 15, time slots 4, 5, 6, and 7 do not belong to the time slots carrying this customer's services. Therefore, time slots 4, 5, 6, and 7 do not carry the customer's services. In practical applications, this is also possible. As shown in Figure 11, after time slot 3, the next effective time slot carrying the customer's services can be time slot 8. Alternatively, time slot 8 can be used as a reference time point, and the number of time slots can be changed from time slot 8 to a new number. In this frame, starting from time slot 8, the combination of time slots 3 and 15 carrying customer services is changed to a combination of time slots 3, 8, and 15 carrying customer services. In practical applications, besides using the next time slot position after the time slot switching time block carrying the CCC value as the reference time point to start the time slot adjustment result, the starting position of the next bearer frame (i.e., the first time slot of the next bearer frame) after the time slot switching time block carrying the CCC value as the reference time point to start the time slot adjustment can also be used as the reference time point. As shown in Figure 12, the bearer customer service can be replaced by the combination of time slot 3 and time slot 15 with the combination of time slot 3, time slot 8 and time slot 15.In practical applications, as shown in Figure 13, the time slot adjustment can also be initiated at the starting position of the first bearer frame in the next bearer frame after the time slot switching time block carrying the CCC value indicator (i.e., the first time slot of the first frame in the next multiframe) as the reference time point, replacing the bearer customer service from time slots 3 and 15 with time slots 3, 8 and 15.
[0103] In one embodiment, multiple specially defined code blocks carrying time slot adjustment indications can be inserted into the service flow, and these specially defined code blocks are transmitted together with the service flow code blocks. The multiple specially defined code blocks can be sent at a fixed period (T), as shown in Figure 14, with a fixed number of customer code blocks between them. After sending the specially defined code blocks carrying time slot adjustment indications at a fixed period (T), the positions of other specially defined code blocks can be determined through any one of the specially defined code blocks. For example, the position of the specially defined code block carrying the time slot adjustment indication C1 value can predict the positions of the specially defined code blocks carrying time slot adjustment indications C2 and C3, as well as the time slot switching time indication CCC value. The position of the specially defined code block carrying the CCC value can also be predicted through any one of the specially defined code blocks C1, C2, and C3. Since the special definition code block carrying the CCC value only serves as a reference time point for time slot adjustment, it is merely a single time point. Once the specific location of the special definition code block carrying the CCC value can be predicted, the reference time point is known. Therefore, the special definition code block does not need to actually exist; it can be omitted. Instead, the reference time point for time slot adjustment can be the fixed number of customer code block positions (the number of customer service code blocks in the T-cycle length) following the position of the time slot adjustment indicator C3 code block, as shown in Figure 14. In Figure 14, the special definition code block carrying the time slot switching time indication CCC value is white, indicating that the code block does not exist and is only virtually represented in Figure 14. By pre-setting a predetermined reference time point, the reference time point for time slot adjustment can be determined through the special definition code blocks carrying time slot adjustment indicators C1, C2, C3, etc., eliminating the need for a physical code block carrying the time slot switching time indication signal CCC and reducing bandwidth loss when inserting such a code block. In practical applications, the interval between specially defined code blocks carrying time slot adjustment indicators such as C1, C2, and C3 can be the same T1 value. The interval between time slot switching time indicator code blocks such as CCC and time slot adjustment indicator code blocks such as C3 can be another T2 value, as shown in Figure 15. The T2 value can be a smaller value to perform time slot adjustment earlier. Whether it is a single T1 interval value or multiple interval values such as T1 and T2, these are all within the scope of protection of this application.
[0104] In practical applications, since the length of customer messages is random and uncertain, sometimes long messages and sometimes short messages are encountered. In scenarios where it is not allowed to insert special-defined code blocks in the middle of the message, when inserting code blocks carrying time slot adjustment indicators such as C1, C2, and C3 at fixed intervals, the expected insertion position of these code blocks may be in the middle of the message. In this case, the special-defined code blocks can only be inserted after the current message transmission is completed, as shown in Figure 16. Special-defined code blocks carrying time slot adjustment indicators such as C1, C2, and C3 can be inserted and sent at equal intervals. The expected position of the special-defined code block indicated by the time slot adjustment indicator C3 can be in the middle of the message, but it cannot be inserted immediately in time. It needs to be inserted after the message transmission is completed. Otherwise, the actual position of the special-defined code block indicated by the time slot adjustment indicator C3 will not be consistent with the expected position. In practical applications, when detecting special-defined code blocks at the desired location, if the desired location is one of the three types of code blocks in the client message (the message code blocks are S code blocks, D code blocks, and T code blocks), then the actual location of the special-defined code block is after the end code block (T code block) of the message. For the omitted special-defined code blocks carrying time slot switching indication (CCC) information, since no actual code block is inserted, the location is always determined according to the desired location. The reference time point for time slot adjustment (i.e., the desired location of the special-defined code block carrying time slot adjustment indication (CCC) information) is determined by the desired location of the special-defined code blocks carrying time slot adjustment indications (C1, C2, C3, etc.) and the code block interval value. Referring to Figure 16, the adjustment reference time point is calculated based on the time slot adjustment indications (C1, C2, C3, etc.) at a D code block position, and time slot adjustment can begin at this D code block position. In practical applications, to facilitate adjustments to customer service speeds, the speed is typically changed only after the current message ends and at the start of the next message, not at the D-block position within the message. In specific applications, although the calculated adjustment reference point is at the D-block position of the message, when actually performing time slot adjustments, the calculated adjustment reference point at the D-block position (which, in addition to the D-block, also includes the S-block, T-block, and other code blocks in the customer message) can be modified to the first code block after the T-block at the end of the message, as shown in Figure 16. Using the execution time of the first code block after the T-block of the current message as the corrected adjustment time point is the actual time slot adjustment execution time.
[0105] It is worth noting that in applications, to monitor the quality of service (QoS) of customer service transport pipelines, OAM code blocks are typically inserted into the customer service flow. By monitoring the information status within the OAM code blocks, the QoS of the transport pipeline can be determined. The MTN standard published by the International Telecommunication Union (ITU) defines the format and types of OAM code blocks. An OAM code block is a specially defined 66-bit long O code block with an O sequence value of 0xC. That is, the code block characteristic value consists of: a synchronization header bit of "10" + a control word of 0x4B + an O sequence value of 0xC. OAM code blocks come in many types, categorized into three main types: Base code blocks, APS code blocks, and L code blocks. Base code blocks are basic function code blocks, single-block structures, and can be divided into two subclasses: Base1 and Base2, abbreviated as B1 and B2 code blocks. APS code blocks are protection code blocks, multi-block structures, composed of two code blocks. L code blocks are low-priority code blocks, further divided into several subclasses such as CV, CS, 1DM, and 2DM. Some subclasses of low-priority code blocks have a single-block structure, while others have a multi-block structure. OAM code blocks can be sent at equal intervals (period T) and in a fixed order, as shown in Figure 17. The order relationship of B1, A, B2, and L can be a small cyclic sequence, with every 64 small cyclic sequences forming a large cyclic sequence. In each small cycle within the large loop, the L-block position for the first 17 small cycles can be a CV block, the L-block position for the 18th small cycle can be a CS block, the L-block position for the 19th to 31st small cycles can be a 1DM / 2DM block, and the L-block position for the 32nd to 64th small cycles can be a reserved position. Currently, reserved positions are defined as empty, with no L-blocks transmitted. Referring to Figure 18, in applications, B1, A, B2, and L-blocks can be OAM blocks defined in existing standards. These OAM blocks can be functionally expanded to simultaneously carry C1, C2, and C3 indication information, as shown in Figure 18. The B1 block carries C1 indication information, the A block carries C2 indication information, and the B2 block carries C3 indication information. The B1 block of the next small cycle is used as the reference time point for time slot switching to carry CCC indication information. Thus, lossless bandwidth adjustment indication information and switching time indication functions can be achieved using existing OAM blocks.
[0106] Understandably, according to the standard definition, APS code blocks can only be sent when the customer enables the APS protection function. If the customer application does not enable the APS protocol and function, the corresponding position will be left blank and no APS code block will be sent.
[0107] In one embodiment, the L code block is not transmitted at the L code block position in the 32nd-64th B1, A, B2, L small cycles. In this case, a specially defined code block, called a pseudo-APS code block (or pseudo-A code block, or C2 code block), needs to be transmitted at the APS code block position. This results in the transmitted OAM sequence in the format shown in Figure 19. The B1, pseudo-A, and B2 code blocks can transmit the C1, C2, and C3 indication adjustment signals, with the B1 code block position in the next small cycle serving as the agreed-upon time slot adjustment reference point. When transmitting the APS code block is not enabled, a pseudo-APS code block, or a specially defined C2 indication code block, needs to be transmitted along with the B1 and B2 code blocks. In practical applications, in addition to transmitting the C1, C2, and C3 indication signals through the B1, A, and B2 code blocks, the C1, C2, and C3 indication signals can also be transmitted through the B1, B2, and L code blocks. The L code block function is extended so that it can carry C3 adjustment indication information, as shown in Figure 20. When the L code block is empty, a pseudo L code block (also called a C3 code block) can be sent to carry C3 adjustment flag information.
[0108] It is worth noting that the OAM code block defined by the ITU international standard is a 66-bit code block, which is an extension of the o code block in the Ethernet standard. The o code block with the o sequence value selected as 0xC is defined as the OAM code block, and the specific format is shown in Table 1 below:
[0109] Table 1. Format of OAM code blocks with newly defined o sequence values
[0110] As can be seen, the OAM code block synchronization header bit is "10", the code block control word value is 0x4B, and the o sequence value is 0xC. The combination of SoM bits and EoM bits can be used to represent the compositional order of multiple code blocks, distinguishing the first block, middle block, and last block among multiple code blocks, as specifically defined in Table 2:
[0111] Table 2. Definition of Combination Relationships between SoM Bits and EoM Bits
[0112] In the OAM code block, the `type` field indicates the type of OAM code block, such as Base code block (B code block), APS code block (A code block), and L code block (low-priority code block, such as CV code block, CS code block, 1DM, etc.). The `value1` and `value2` fields can be used to carry the specific information content of the OAM code block. Base code blocks are divided into two subclasses, B1 and B2 (i.e., Base1 code block and Base2 code block). The content of the two B code blocks is the same; the difference lies in their positions within the order of B1 (Base1 code block), A (APS code block), B2 (Base2 code block), and L (L code block). B1 is located before the adjacent position of the A code block, and B2 is located after the adjacent position of the A code block. The specific structure of the B code block is shown in Table 3.
[0113] Table 3. Specific Structure of B Code Blocks
[0114] In the B code block, bits 18, 19, and 20 are denoted by res, indicating that these positions are not yet enabled and are reserved information. Any one of these bits can be enabled to carry the time slot adjustment indication C information function. See Table 5. 21 bits can be enabled to carry the time slot adjustment indication C information function. The B1 and B2 code blocks can represent the time slot adjustment indication C1 and C3 information, or the time slot adjustment indication C1 and C2 information. Thus, the B code block definition is shown in Table 4:
[0115] Table 4 adds the B-code block definition with slot adjustment indication C information.
[0116] Furthermore, each APS code block consists of two code block sequences (referred to as A1 code block and A2 code block). Each code block can carry 2 bytes of content, and the two code blocks together form 4 bytes of APS protocol content. The APS format is shown in Table 5.
[0117] Table 5 APS Format Table
[0118] In the second code block of the APS code block sequence group, 4 bits are reserved and not enabled. Any one of these bits can be enabled as the bearer time slot adjustment indication (C2) information function, as shown in Table 6. Thus, 21 bits can be enabled as the bearer time slot adjustment indication (C2) information function. The APS code block structure after the expansion of the new function is shown in Table 6.
[0119] Table 6. APS code block structure after expanding new functions
[0120] Since only the second APS code block (A2 code block) has reserved fields for expansion to carry time slot adjustment indication information, as shown in Figure 21, the application can only select the second APS code block (A2) and the preceding B1 code block and the following B2 code block to transmit the three bits of time slot adjustment indication information C1, C2, and C3. That is, the small cycle B1, A2, B2, L is selected to transmit the time slot adjustment indication. However, in the small cycle B1, A1, B2, L, the A code block cannot transmit the time slot adjustment indication information because it does not have extended bits. It should be noted that if time is tight and it is necessary to transmit the time slot adjustment indication in the small cycle B1, A1, B2, L, as shown in Figure 22, a specially defined code block, such as the C2 code block (or pseudo-A code block), can be inserted after (or before) the A code block to supplement the transmission of a time slot adjustment indication. In a normal A code block, the SoM and EoM values are "10" or "01". Pseudo code blocks can use the same A code block format, but with SoM and EoM values of "11" to distinguish them from A code blocks used to transmit the APS protocol, as shown in Table 7.
[0121] Table 7. Format of Pseudocode Blocks
[0122] When a code block is detected to have the type value of an A code block, but its SoM and EoM values are "11", it can be determined that the code block is a pseudo-A code block. This pseudo-A code block can be used to transmit the time slot adjustment indication C2 information. Besides using the type value of an A code block to represent the format of a pseudo-A code block, other different type values can also be used to identify the function of a pseudo-A code block or a C2 code block. Similarly, when not extending the B code block to carry the transmission of time slot adjustment indications C1, C2, and C3 information, a pseudo-B code block can be inserted separately to transmit the code block carrying the transmission of time slot adjustment indications C1, C2, and C3. It should be noted that these are all within the scope of this application.
[0123] It is worth noting that, similar to the APS code block, the L code block also has reserved bits in the CV code block, CS code block, 1DM code block, 2DM code block, etc. Any one of the reserved bits can be enabled as a carrier time slot adjustment indication information function.
[0124] In one embodiment, when there is no L code block position, a pseudo L code block (or C3 code block) can be sent separately to carry time slot adjustment indication information. When there are no reserved bits in the L code block in the current cycle B1, A, B2, L to expand the transmission of time slot adjustment indication, a specially defined code block, such as a C3 code block, can be inserted before or after the L code block to supplement the transmission of a time slot adjustment indication.
[0125] In one embodiment, OAM code blocks can be sent at equal intervals and in a fixed order according to a period T. B1, A, B2, and L form a small sequential cycle, and every 64 small cycles constitute a large cycle. In the L code block positions of each small cycle, the L positions of the 1st to 17th small cycles are CV code blocks, the 18th is a CS code block, the 19th to 31st are 1DM / 2DM code blocks, and the 32nd to 64th are reserved positions. Currently, the reserved positions are defined as empty, and no L code blocks are sent. A specially defined pseudo-L code block (such as an LC code block) can be sent at the L code block positions in the 32nd to 64th small cycle periods to transmit the time slot adjustment indication. Referring to Figure 23, as shown in Figure 23, a specially defined pseudo-L code block (such as an LC code block) can be sent at the L code block positions in the 32nd, 33rd, and 34th small cycle periods to transmit the time slot adjustment indication. The B1 code block of the next small cycle period (the 35th small cycle) is used as the reference reference time for the execution of the time slot adjustment. In practical applications, a specially defined pseudo-L code block can also be sent at the L code block position in the 33rd, 34th, or 35th small cycle period. It should be noted that these are all within the scope of this application.
[0126] In the aforementioned embodiments, the time slot adjustment indication information is transmitted multiple times, with the majority judgment result serving as the final result of the adjustment indication information. The majority judgment principle can mitigate certain transmission errors, preventing incorrect judgment results due to a small number of information errors. For example, a majority judgment principle with three transmissions can tolerate any one transmission error, and a majority judgment principle with five transmissions can tolerate any two transmission errors. Since the majority judgment principle requires multiple transmissions, another method to improve error tolerance is to add a check bit to each transmission, which can determine whether a single transmission is correct. The B code block has three reserved bits, and any two of these bits can be used to transmit the adjustment indication information. The combination of any two bits determines whether the adjustment bit information is correct, as shown in Table 8. The C bit is the adjustment indication information, and BIP is the check bit for the C bit, which can be either even parity or odd parity. When using even parity, when the value of C is 1, the value of BIP is also 1; when the value of C is 0, the value of BIP is also 0. There is a fixed relationship between the value of C (1) and the value of BIP (Block Indicator); they can only be either "11" or "00". In a single-bit error scenario, when the C bit value and the BIP bit value become "10" or "01", these are both incorrect results, indicating that the C bit may be faulty. Using a time slot adjustment indication with check functionality eliminates the need for three or five transmissions, requiring only two. In a bit error scenario, only one information error will occur. Even if one error occurs, the other value remains correct and usable. As shown in Figure 24, the time slot adjustment indication with check functionality is carried in code blocks B1 and B2. When the check bit BIP value and the C value in any B code block are combined to determine that the corresponding C value is correct, this determined C value is the final time slot adjustment indication. In Figure 24, the time slot adjustment indication with check functionality is carried only in code blocks B1 and B2, with the next B code block serving as the reference time point for time slot adjustment.
[0127] Table 8 B-code block format table
[0128] In the above embodiments, during end-to-end timeslot adjustment, the source device initiates a timeslot adjustment request. The timeslot numbers adjusted by the source device, intermediate network devices, and destination devices can be identical. Thus, the intermediate network devices only need to forward the timeslot adjustment request signal, the timeslot number, and the timeslot adjustment response signal to achieve the end-to-end timeslot adjustment handshake negotiation process. In practical applications, since each node device may have different timeslot configurations, the remaining timeslot numbers between devices may differ. Adjacent nodes only need to ensure the number of timeslots adjusted is consistent; the timeslot positions and names do not need to be identical. As shown in Figure 25, source device 1 and downstream device 2 can choose timeslot 2 and idle timeslot 3 for adjustment; device 2 and device 3 can choose timeslot 5 and timeslot 8 for adjustment; and device 3 and device 4 can choose timeslot 1 and timeslot 7 for adjustment. This ensures that the request signal CR, response signal CA, and corresponding timeslot numbers between adjacent devices are mutually associated and correspond one-to-one with the corresponding timeslots. When the source node sends the adjustment indication signal C, the adjustment indication signal can also be transmitted to each device in the corresponding valid adjustment time slot.
[0129] In one embodiment, under normal circumstances, after the source device sends valid CR information, the intermediate device can parse the received valid CR information and forward it to the downstream device, all the way to the destination device. In some special or abnormal situations, the intermediate or destination device may determine, based on the requested number of time slots, that the time slot adjustment requirement cannot be met, and the time slot adjustment request is rejected. As shown in Figure 26, when the source device requests to add 10 time slots, there are enough free time slots between device 1 and device 2, and enough free time slots between device 2 and device 3, so the adjustment request can continue to be forwarded. However, there are not enough free time slots between device 3 and device 4 to meet the increased adjustment, and device 3 cannot continue to forward the time slot adjustment request information to device 4, so the time slot adjustment request is rejected. In this case, device 3 can directly send an adjustment failure response signal (CA_fail) to the upstream device and not allocate the time slots planned by device 2. After receiving the CA_fail signal, Device 2 cancels the requested time slot and continues to send it back to upstream Device 1. After receiving the CA_fail signal, Device 1 determines that the time slot adjustment application has failed, withdraws the requested time slot adjustment content, and cancels the already applied time slot adjustment operation. This completes the cancellation process of the time slot application.
[0130] In the foregoing embodiments, the customer number of the corresponding time slot can be changed from an invalid number to a valid number to indicate the addition of the corresponding time slot, or the customer number of the corresponding time slot can be changed from a valid number to an invalid number to indicate the deletion of the corresponding time slot. In practical applications, in addition to the change of the customer number indicating the request to add or delete a time slot, other methods can also be used. For example, an overhead indicator bit can be set to represent the addition indicator signal and deletion indicator signal of each time slot. The addition indicator signal and deletion indicator signal can be used directly to indicate whether each time slot is requesting an addition adjustment or a deletion adjustment. It should be noted that different indication methods are all within the scope of this application.
[0131] Referring to Figure 28, which is a flowchart of a time slot adjustment method provided in another embodiment of this application, the time slot adjustment method can be executed by an intermediate node and may include, but is not limited to, steps S2810 to S2820.
[0132] Step S2810: After negotiating and determining the time slot adjustment strategy with the upstream and downstream nodes, when multiple time slot adjustment indication messages are received from the upstream node, the time slot adjustment time is determined according to the multiple time slot adjustment indication messages, and the time slot adjustment strategy is adopted to complete the time slot adjustment at the time slot adjustment time.
[0133] Step S2820: Send multiple time slot adjustment indication messages to downstream nodes, so that downstream nodes can determine the time slot adjustment time based on the multiple time slot adjustment indication messages, and complete the time slot adjustment by adopting the time slot adjustment strategy at the time slot adjustment time.
[0134] In one feasible implementation, when a customer service is in the transmission state and time slot adjustment information needs to be inserted into the service flow, after the intermediate node determines the time slot adjustment strategy with the upstream and downstream nodes, the intermediate node can receive the time slot adjustment instruction information sent by the upstream node and send the time slot adjustment instruction information to the downstream node. This allows each node to complete the time slot adjustment at the determined time slot adjustment time during the service flow transmission process, reducing the duration of the difference between the time of service bandwidth change and the time slot number change, thereby reducing the number of cached services, lowering costs and customer latency.
[0135] In one feasible implementation, after the intermediate node negotiates and determines the time slot adjustment strategy with the upstream and downstream nodes, the intermediate node can also receive the time slot switching time information sent by the upstream node, wherein the time slot switching time information is used to indicate the time slot adjustment time, and then send the time slot switching time information to the downstream node.
[0136] In one feasible implementation, the time slot switching time information can be carried in the time slot switching time code block in the service flow. The time slot adjustment time can include one of the following: the time slot adjustment time is the next time slot of the time slot where the time slot switching time code block is located; the time slot adjustment time is the start position or the first time slot of the next bearer frame of the bearer frame where the time slot switching time code block is located; the time slot adjustment time is the start position or the first time slot of the first bearer frame in the next multiframe of the multiframe where the time slot switching time code block is located.
[0137] In one feasible implementation, the time slot adjustment indication information can be used to indicate that the time slot adjustment strategy is in effect. In addition, multiple time slot adjustment indication information can be carried in multiple time slot adjustment indication code blocks in the service flow.
[0138] In one feasible implementation, the time slot switching time information can be carried in the time slot switching time code block in the service flow. There can be an equal or unequal number of first code blocks between two adjacent time slot adjustment indicator code blocks and between the time slot switching time code block and the last time slot adjustment indicator code block sent.
[0139] In one feasible implementation, when the time slot switching time information is carried in the time slot switching time code block in the service flow, there is a first number of first code blocks between two adjacent time slot adjustment indicator code blocks, and there is a second number of first code blocks between the time slot switching time code block and the last time slot adjustment indicator code block sent. It should be noted that the second number is not equal to the first number.
[0140] In one feasible implementation, the time slot switching timing code block can be determined based on a first quantity and the position of any time slot adjustment indicator code block.
[0141] In one feasible implementation, the time slot switching time block corresponds to a desired position in the service flow. The desired position can be determined based on a first quantity and the position of any time slot adjustment indicator block. When the code block corresponding to the desired position is a code block in the data packet, the time slot switching time block is the first code block after the end code block in the data packet.
[0142] In one feasible implementation, the time slot adjustment indicator code block and the time slot switching time code block can have the same code block type. Both the time slot adjustment indicator code block and the time slot switching time code block can include a time slot adjustment function field. The time slot adjustment function field in the time slot adjustment indicator code block can be used to carry time slot adjustment indication information, and the time slot adjustment function field in the time slot switching time code block can be used to carry time slot switching time information.
[0143] In one feasible implementation, both the time slot adjustment indicator code block and the time slot switching timing code block may further include a synchronization header bit, a control word, and a type sequence value. The combination of the synchronization header bit, the control word, and the type sequence value can serve as a flag value for indicating the time slot adjustment indicator code block or the time slot switching timing code block.
[0144] In this embodiment, by employing the time slot adjustment method including steps S2810 to S2820, after the intermediate node negotiates and determines the time slot adjustment strategy with the upstream and downstream nodes, when the intermediate node receives multiple time slot adjustment indication messages sent by the upstream node, it can determine the time slot adjustment time based on the multiple time slot adjustment indication messages, and complete the time slot adjustment by adopting the time slot adjustment strategy at the time slot adjustment time. By sending multiple time slot adjustment indication messages to the downstream node, the downstream node can determine the time slot adjustment time based on the multiple time slot adjustment indication messages, and complete the time slot adjustment by adopting the corresponding time slot adjustment strategy at the time slot adjustment time. Therefore, the different durations of the service bandwidth change time and the time slot number change time can be reduced, thereby reducing the number of cached services, reducing network overhead costs and customer service latency.
[0145] In one embodiment, multiple time slot adjustment indication information can be carried in multiple time slot adjustment indication code blocks in the service flow, and the time slot adjustment time can be determined according to the location of any one of the time slot adjustment indication code blocks.
[0146] In one embodiment, there is a third number of first code blocks between two adjacent time slot adjustment indicator code blocks. The time slot adjustment time can be determined based on the time slot adjustment reference time, which can be determined based on the third number and the position of any one of the time slot adjustment indicator code blocks.
[0147] In one embodiment, the time slot adjustment time may include one of the following: the time slot adjustment time is the next time slot of the time slot in which the time slot adjustment reference time is located; the time slot adjustment time is the starting position or the first time slot of the next bearer frame of the bearer frame in which the time slot adjustment reference time is located; the time slot adjustment time is the starting position or the first time slot of the first bearer frame in the next multiframe of the multiframe in which the time slot adjustment reference time is located.
[0148] In one embodiment, there is a fourth number of first code blocks between the location of the time slot adjustment reference time and the last transmitted time slot adjustment indicator code block. It should be noted that the fourth number is less than or equal to the third number.
[0149] In one embodiment, the time slot adjustment indicator code block may further include a time slot adjustment function field, wherein the time slot adjustment function field is used to carry time slot adjustment indicator information.
[0150] In one embodiment, multiple time slot adjustment indication information can be carried in OAM code blocks in the service flow.
[0151] In one embodiment, when the OAM code block includes an APS code block, multiple time slot adjustment indication information can be carried in the Base1 code block, APS code block, and Base2 code block of the OAM code block, respectively. The time slot adjustment time can be determined based on the position of the first Base1 code block after the Base2 code block carrying time slot adjustment indication information. Alternatively, when the OAM code block does not include an APS code block, a pseudo-APS code block is configured between the Base1 code block and the Base2 code block in the OAM code block, and multiple time slot adjustment indication information can be carried in the Base1 code block, the pseudo-APS code block, and the base2 code block, respectively. The timing of time slot adjustment for S-blocks and Base2 blocks can be determined based on the position of the first Base1 block following the Base2 block carrying time slot adjustment indication information; or, when the OAM block includes an APS block, a pseudo-APS block is configured before or after the APS block, and multiple time slot adjustment indication information can be carried in the Base1 block, pseudo-APS block, and Base2 block in the OAM block respectively, and the timing of time slot adjustment can be determined based on the position of the first Base1 block following the Base2 block carrying time slot adjustment indication information.
[0152] In one embodiment, when the OAM code block includes an APS code block, the APS code block includes a first APS code block and a second APS code block, and the time slot adjustment indication information can be carried in the second APS code block.
[0153] In one feasible implementation, when the OAM code block includes an L code block, multiple time slot adjustment indication information can be carried in the Base1 code block, Base2 code block, and L code block of the OAM code block, respectively. The time slot adjustment time can be determined based on the position of the first Base1 code block after the L code block carrying the time slot adjustment indication information. Alternatively, when the OAM code block does not include an L code block, a pseudo-L code block is configured at the position of the L code block in the OAM code block, and multiple time slot adjustment indication information can be carried in the Base1 code block, Base2 code block, and pseudo-L code block of the OAM code block, respectively. The time slot adjustment time can be determined based on the position of the first Base1 code block after the pseudo-L code block carrying the time slot adjustment indication information. Alternatively, when the OAM code block includes an L code block, a pseudo-L code block is configured before or after the L code block, and multiple time slot adjustment indication information can be carried in the Base1 code block, Base2 code block, and pseudo-L code block of the OAM code block, respectively. The time slot adjustment time can be determined based on the position of the first Base1 code block after the pseudo-L code block carrying the time slot adjustment indication information.
[0154] In one embodiment, the time slot adjustment indicator code block may further include check bit information, which can be used to verify the correctness of the time slot adjustment indicator information.
[0155] In one embodiment, after an intermediate node receives multiple time slot adjustment indication messages sent by an upstream node, it can first determine the validity of each time slot adjustment indication message. When the number of valid time slot adjustment indication messages is greater than the number of invalid time slot adjustment indication messages, it is determined that the time slot adjustment strategy is effective.
[0156] In one embodiment, referring to FIG29, FIG29 is a flowchart of the process of intermediate nodes negotiating and determining a time slot adjustment strategy according to an embodiment of the present application. When an intermediate node negotiates and determines a time slot adjustment strategy with upstream and downstream nodes, as shown in FIG29, the process of determining the time slot adjustment strategy may include, but is not limited to, steps S2910-S2940:
[0157] Step S2910: Receive the time slot adjustment strategy information sent by the upstream node, and determine the time slot adjustment strategy based on the time slot adjustment strategy information;
[0158] Step S2920: Send time slot adjustment strategy information to downstream nodes so that downstream nodes can determine the time slot adjustment strategy based on the time slot adjustment strategy information;
[0159] Step S2930: When the time slot adjustment strategy response information returned by the downstream node is received, it is determined that the time slot adjustment strategy has been negotiated and determined with the downstream node;
[0160] Step S2940: Forward the time slot adjustment strategy response information to the upstream node, so that the upstream node confirms that the time slot adjustment strategy has been negotiated and determined.
[0161] In one embodiment, the time slot adjustment strategy information may further include time slot adjustment application information and adjustment-to-be-adjusted information, wherein the time slot adjustment application information may be used to request time slot adjustment, and the adjustment-to-be-adjusted information may be used to determine the strategy content of the time slot adjustment strategy.
[0162] It should be noted that the relevant structural descriptions of the OAM code blocks involved in the time slot adjustment method performed by the intermediate node provided in the embodiments of this application, as well as the descriptions of the interaction between the intermediate node and the upstream and downstream nodes to complete the time slot adjustment process, can be referred to the relevant descriptions in the previous embodiments. To avoid repetition and redundancy, they will not be repeated here.
[0163] Referring to Figure 30, which is a flowchart of a time slot adjustment method provided in another embodiment of this application, the time slot adjustment method can be executed by the tail node, and the time slot adjustment method may include, but is not limited to, steps S3010 to S3020.
[0164] Step S3010: After negotiating and determining the time slot adjustment strategy with the upstream node, when multiple time slot adjustment indication messages are received from the upstream node, the time slot adjustment time is determined according to the multiple time slot adjustment indication messages;
[0165] Step S3020: Use the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment time.
[0166] In one feasible implementation, when a customer service is in the transmission state and time slot adjustment information needs to be inserted into the service flow, after the tail node and the upstream node determine the time slot adjustment strategy, the tail node can receive the time slot adjustment instruction information sent by the upstream node. This enables each node to complete the time slot adjustment by adopting the time slot adjustment strategy at the determined time slot adjustment time during the service flow transmission process, reducing the different durations of the service bandwidth change time and the time slot number change time, thereby reducing the number of cached services, lowering costs and customer latency.
[0167] In one feasible implementation, after the tail node has negotiated and determined the time slot adjustment strategy with the upstream node, it can also receive the time slot switching time information sent by the upstream node, wherein the time slot switching time information is used to indicate the time slot adjustment time.
[0168] In one feasible implementation, the time slot switching time information can be carried in the time slot switching time code block in the service flow. The time slot adjustment time can include one of the following: the time slot adjustment time is the next time slot of the time slot where the time slot switching time code block is located; the time slot adjustment time is the start position or the first time slot of the next bearer frame of the bearer frame where the time slot switching time code block is located; the time slot adjustment time is the start position or the first time slot of the first bearer frame in the next multiframe of the multiframe where the time slot switching time code block is located.
[0169] In one feasible implementation, the time slot adjustment indication information can also be used to indicate that the time slot adjustment strategy is in effect, and multiple time slot adjustment indication information can be carried in multiple time slot adjustment indication code blocks in the service flow.
[0170] In one feasible implementation, the time slot switching time information can be carried in the time slot switching time code block in the service flow. There can be an equal or unequal number of first code blocks between two adjacent time slot adjustment indicator code blocks and between the time slot switching time code block and the last time slot adjustment indicator code block sent.
[0171] In one feasible implementation, when the time slot switching time information is carried in the time slot switching time code block in the service flow, there is a first number of first code blocks between two adjacent time slot adjustment indicator code blocks, and there is a second number of first code blocks between the time slot switching time code block and the last time slot adjustment indicator code block sent. It should be noted that the second number is not equal to the first number.
[0172] In one feasible implementation, the time slot switching timing code block can be determined based on a first quantity and the position of any time slot adjustment indicator code block.
[0173] In one feasible implementation, the time slot switching time block corresponds to a desired position in the service flow. The desired position can be determined based on a first quantity and the position of any time slot adjustment indicator block. When the code block corresponding to the desired position is a code block in the data packet, the time slot switching time block is the first code block after the end code block in the data packet.
[0174] In one feasible implementation, the time slot adjustment indicator code block and the time slot switching time code block can have the same code block type. Both the time slot adjustment indicator code block and the time slot switching time code block can include a time slot adjustment function field. The time slot adjustment function field in the time slot adjustment indicator code block can be used to carry time slot adjustment indication information, and the time slot adjustment function field in the time slot switching time code block can be used to carry time slot switching time information.
[0175] In one feasible implementation, both the time slot adjustment indicator code block and the time slot switching time code block further include a synchronization header bit, a control word, and a type sequence value, wherein the combination of the synchronization header bit, the control word, and the type sequence value serves as a flag value for indicating the time slot adjustment indicator code block or the time slot switching time code block.
[0176] In this embodiment, by employing the time slot adjustment method including steps S3010 to S3020, after the tail node and the upstream node negotiate and determine the time slot adjustment strategy, when the tail node receives multiple time slot adjustment indication messages sent by the upstream node, it can determine the time slot adjustment time based on the multiple time slot adjustment indication messages, and complete the time slot adjustment by adopting the corresponding time slot adjustment strategy at the time slot adjustment time. Therefore, it can reduce the different durations of the service bandwidth change time and the time slot number change time, thereby reducing the number of cached services, reducing network overhead costs, and reducing customer service latency.
[0177] In one embodiment, multiple time slot adjustment indication information can be carried in multiple time slot adjustment indication code blocks in the service flow, and the time slot adjustment time can be determined according to the location of any one of the time slot adjustment indication code blocks.
[0178] In one embodiment, there is a third number of first code blocks between two adjacent time slot adjustment indicator code blocks. The time slot adjustment time can be determined based on the time slot adjustment reference time, which can be determined based on the third number and the position of any one of the time slot adjustment indicator code blocks.
[0179] In one embodiment, the time slot adjustment time may include one of the following: the time slot adjustment time is the next time slot of the time slot in which the time slot adjustment reference time is located; the time slot adjustment time is the start position or the first time slot of the next bearer frame of the bearer frame in which the time slot adjustment reference time is located; the time slot adjustment time is the start position or the first time slot of the first bearer frame in the next multiframe of the multiframe in which the time slot adjustment reference time is located.
[0180] In one embodiment, there may be a fourth number of first code blocks between the location of the time slot adjustment reference time and the last transmitted time slot adjustment indicator code block. It should be noted that the fourth number is less than or equal to the third number.
[0181] In one embodiment, the time slot adjustment indicator code block may further include a time slot adjustment function field, wherein the time slot adjustment function field is used to carry time slot adjustment indicator information.
[0182] In one embodiment, multiple time slot adjustment indication information can also be carried in OAM code blocks in the service flow.
[0183] In one embodiment, when the OAM code block includes an APS code block, multiple time slot adjustment indication information can be carried in the Base1 code block, APS code block, and Base2 code block of the OAM code block, respectively. The time slot adjustment time can be determined based on the position of the first Base1 code block after the Base2 code block carrying time slot adjustment indication information. Alternatively, when the OAM code block does not include an APS code block, a pseudo-APS code block is configured between the Base1 code block and the Base2 code block of the OAM code block, and multiple time slot adjustment indication information can be carried in the Base1 code block, the pseudo-APS code block, and the base1 code block, respectively. The timing of time slot adjustment for the Base1 code block and Base2 code block can be determined based on the position of the first Base1 code block following the Base2 code block carrying time slot adjustment indication information; or, when the OAM code block includes an APS code block, a pseudo-APS code block can be configured before or after the APS code block, and multiple time slot adjustment indication information can be carried in the Base1 code block, pseudo-APS code block and Base2 code block in the OAM code block respectively, and the timing of time slot adjustment can be determined based on the position of the first Base1 code block following the Base2 code block carrying time slot adjustment indication information.
[0184] In one embodiment, when the OAM code block includes an APS code block, the APS code block may include a first APS code block and a second APS code block, and the time slot adjustment indication information may be carried in the second APS code block.
[0185] In one embodiment, when the OAM code block includes an L code block, multiple time slot adjustment indication information can be carried in the Base1 code block, Base2 code block, and L code block of the OAM code block, respectively. The time slot adjustment time can be determined based on the position of the first Base1 code block after the L code block carrying the time slot adjustment indication information. Alternatively, when the OAM code block does not include an L code block, a pseudo-L code block is configured at the position of the L code block in the OAM code block. Multiple time slot adjustment indication information can be carried in the Base1 code block, Base2 code block, and pseudo-L code block of the OAM code block, respectively. The time slot adjustment time can be determined based on the position of the first Base1 code block after the pseudo-L code block carrying the time slot adjustment indication information. Alternatively, when the OAM code block includes an L code block, a pseudo-L code block can be configured before or after the L code block. Multiple time slot adjustment indication information can be carried in the Base1 code block, Base2 code block, and pseudo-L code block of the OAM code block, respectively. The time slot adjustment time can be determined based on the position of the first Base1 code block after the pseudo-L code block carrying the time slot adjustment indication information.
[0186] In one embodiment, the time slot adjustment indicator code block may further include check bit information, wherein the check bit information can be used to verify the correctness of the time slot adjustment indicator information.
[0187] In one embodiment, after the tail node receives multiple time slot adjustment indication messages sent by the upstream node, the tail node can first determine the validity of each time slot adjustment indication message. If the number of valid time slot adjustment indication messages is greater than the number of invalid time slot adjustment indication messages, then the time slot adjustment strategy is determined to be effective.
[0188] In one embodiment, referring to FIG31, FIG31 is a flowchart of the process of the tail node negotiating and determining the time slot adjustment strategy according to the embodiment of the present application. When the tail node negotiates and determines the time slot adjustment strategy with the upstream node, as shown in FIG31, the process of determining the time slot adjustment strategy may include, but is not limited to, steps S3110-S3120.
[0189] Step S3110: Receive the time slot adjustment strategy information sent by the upstream node, and determine the time slot adjustment strategy based on the time slot adjustment strategy information.
[0190] Step S3120: Send a time slot adjustment strategy response message to the upstream node, so that the upstream node confirms that the time slot adjustment strategy has been negotiated and determined.
[0191] In one feasible implementation, the time slot adjustment strategy information may further include time slot adjustment application information and adjustment-to-be-adjusted information, wherein the time slot adjustment application information can be used to request time slot adjustment, and the adjustment-to-be-adjusted information can be used to determine the strategy content of the time slot adjustment strategy.
[0192] It should be noted that in the time slot adjustment method performed by the tail node provided in this application embodiment, the relevant structural description of the OAM code block and the description of the time slot adjustment process completed by the interaction between the tail node and the upstream node can be referred to the relevant description in the previous embodiment. In order to avoid repetition and redundancy, it will not be repeated here.
[0193] In addition, one embodiment of this application discloses a communication device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the time slot adjustment method as described in any of the preceding embodiments.
[0194] In addition, one embodiment of this application discloses a computer-readable storage medium storing computer-executable instructions for performing the time slot adjustment method as described in any of the preceding embodiments.
[0195] In this embodiment, after negotiating and determining the time slot adjustment strategy with the downstream node and the destination node, the first node can use the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment time. The downstream node sends multiple time slot adjustment indication messages to the destination node, so that the downstream node and the destination node can determine the time slot adjustment time according to the multiple time slot adjustment indication messages, and use the corresponding time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment time. Therefore, the different durations of the service bandwidth change time and the time slot number change time can be reduced, thereby reducing the number of cached services, reducing costs and customer latency.
[0196] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0197] The above is a detailed description of the preferred embodiments of this application. However, this application is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims
1. A time slot adjustment method, comprising: After negotiating and determining the time slot adjustment strategy with the downstream node and the destination node, the time slot adjustment is completed by adopting the time slot adjustment strategy at the time slot adjustment time. The downstream node sends multiple time slot adjustment indication messages to the destination node, enabling the downstream node and the destination node to determine the time slot adjustment time based on the multiple time slot adjustment indication messages, and to complete the time slot adjustment using the time slot adjustment strategy at the time slot adjustment time.
2. The time slot adjustment method according to claim 1 further includes: The downstream node sends time slot switching time information to the destination node, wherein the time slot switching time information is used to indicate the time slot adjustment time.
3. The time slot adjustment method according to claim 2, wherein, The time slot switching time information is carried in the time slot switching time code block in the service flow, and the time slot adjustment time includes one of the following cases: The time slot adjustment time is the next time slot after the time slot in which the time slot switching time code block is located; The time slot adjustment time is the starting position of the next bearer frame or the first time slot of the bearer frame in which the code block is located at the time slot switching time. The time slot adjustment time is the starting position of the first carrier frame in the next multiframe of the multiframe in which the code block is located, or the first time slot of the first carrier frame in the next multiframe.
4. The time slot adjustment method according to claim 2, wherein, The time slot adjustment indication information is used to indicate that the time slot adjustment strategy is effective, and multiple time slot adjustment indication information are carried in multiple time slot adjustment indication code blocks in the service flow.
5. The time slot adjustment method according to claim 4, wherein: The time slot switching time information is carried in the time slot switching time code block in the service flow; there are equal or unequal numbers of first code blocks between two adjacent time slot adjustment indicator code blocks and between the time slot switching time code block and the last transmitted time slot adjustment indicator code block; or, The time slot switching time information is carried in the time slot switching time code block in the service flow; there is a first number of first code blocks between two adjacent time slot adjustment indicator code blocks; there is a second number of first code blocks between the time slot switching time code block and the last time slot adjustment indicator code block sent, and the second number is not equal to the first number.
6. The time slot adjustment method according to claim 5, wherein, When there is a first number of first code blocks between two adjacent time slot adjustment indicator code blocks, the time slot switching time code block is determined based on the first number and the position of any one of the time slot adjustment indicator code blocks.
7. The time slot adjustment method according to claim 6, wherein, The time slot switching timing code block corresponds to a desired position in the service flow. The desired position is determined based on the first quantity and the position of any one of the time slot adjustment indicator code blocks. When the code block corresponding to the desired position is a code block in a data packet, the time slot switching timing code block is the first code block after the end code block in the data packet.
8. The time slot adjustment method according to any one of claims 5 to 7, wherein, The time slot adjustment indicator code block and the time slot switching time code block have the same code block type. Both the time slot adjustment indicator code block and the time slot switching time code block include a time slot adjustment function field. The time slot adjustment function field in the time slot adjustment indicator code block is used to carry the time slot adjustment indicator information, and the time slot adjustment function field in the time slot switching time code block is used to carry the time slot switching time information. Both the time slot adjustment indicator code block and the time slot switching timing code block further include a synchronization header bit, a control word, and a type sequence value. The combination of the synchronization header bit, the control word, and the type sequence value serves as a flag value used to indicate the time slot adjustment indicator code block or the time slot switching timing code block.
9. The time slot adjustment method according to claim 1, wherein, The multiple timeslot adjustment indication information is carried in multiple timeslot adjustment indication code blocks in the service flow, and the timeslot adjustment time is determined according to the position of any one of the timeslot adjustment indication code blocks.
10. The time slot adjustment method according to claim 9, wherein, There is a third number of first code blocks between two adjacent time slot adjustment indicator code blocks. The time slot adjustment time is determined according to the time slot adjustment reference time, which is determined according to the third number and the position of any one of the time slot adjustment indicator code blocks.
11. The time slot adjustment method according to claim 10, wherein, The time slot adjustment time includes one of the following situations: The time slot adjustment time is the next time slot after the time slot in which the time slot adjustment reference time is located; The time slot adjustment time is the starting position of the next bearer frame or the first time slot of the bearer frame in which the time slot adjustment reference time is located; The time slot adjustment time is the starting position of the first carrier frame in the next multiframe of the multiframe in which the time slot adjustment reference time is located, or the first time slot of the first carrier frame in the next multiframe.
12. The time slot adjustment method according to claim 10, wherein, The position of the time slot adjustment reference time is between a fourth number of the first code blocks and the last transmitted time slot adjustment indicator code block, the fourth number being less than or equal to the third number.
13. The time slot adjustment method according to any one of claims 9 to 12, wherein, The time slot adjustment indicator code block includes a synchronization header bit, a control word, a type sequence value, and a time slot adjustment function field. The time slot adjustment function field is used to carry the time slot adjustment indication information. The combination of the synchronization header bit, the control word, and the type sequence value serves as a flag value for indicating the time slot adjustment indicator code block.
14. The time slot adjustment method according to claim 1, wherein, Multiple timeslot adjustment indication information are carried in OAM code blocks in the service flow.
15. The time slot adjustment method according to claim 14, wherein: When the OAM code block includes an APS code block, the multiple time slot adjustment indication messages are respectively carried in the Base1 code block, the APS code block, and the Base2 code block within the OAM code block. The time slot adjustment timing is determined based on the position of the first Base1 code block following the Base2 code block carrying the time slot adjustment indication information; or... When the OAM code block does not include an APS code block, a pseudo-APS code block is configured between the Base1 code block and the Base2 code block in the OAM code block. Multiple time slot adjustment indication messages are respectively carried in the Base1 code block, the pseudo-APS code block, and the Base2 code block. The time slot adjustment timing is determined based on the position of the first Base1 code block following the Base2 code block carrying the time slot adjustment indication information; or... When the OAM code block includes an APS code block, and a pseudo-APS code block is configured before or after the APS code block, multiple time slot adjustment indication messages are respectively carried in the Base1 code block, the pseudo-APS code block, and the Base2 code block in the OAM code block. The time slot adjustment time is determined based on the position of the first Base1 code block after the Base2 code block carrying the time slot adjustment indication information; or... When the OAM code block includes an L code block, the multiple time slot adjustment indication messages are respectively carried in the Base1 code block, Base2 code block, and L code block within the OAM code block. The time slot adjustment timing is determined based on the position of the first Base1 code block following the L code block carrying the time slot adjustment indication information; or... When the OAM code block does not include an L code block, the position of the L code block in the OAM code block is configured with a pseudo-L code block. Multiple time slot adjustment indication messages are respectively carried in the Base1 code block, Base2 code block, and the pseudo-L code block in the OAM code block. The time slot adjustment timing is determined based on the position of the first Base1 code block following the pseudo-L code block carrying the time slot adjustment indication information; or... When the OAM code block includes an L code block, and a pseudo L code block is configured before or after the L code block, multiple time slot adjustment indication information are respectively carried in the Base1 code block, Base2 code block and the pseudo L code block in the OAM code block, and the time slot adjustment time is determined according to the position of the first Base1 code block after the pseudo L code block carrying the time slot adjustment indication information.
16. The time slot adjustment method according to claim 15, wherein, When the OAM code block includes an APS code block, the APS code block includes a first APS code block and a second APS code block, and the time slot adjustment indication information is carried in the second APS code block.
17. The time slot adjustment method according to claim 4 or 9, wherein, The time slot adjustment indicator code block includes check bit information, which is used to verify the correctness of the time slot adjustment indicator information.
18. A time slot adjustment method, comprising: After negotiating and determining the time slot adjustment strategy with upstream and downstream nodes, when multiple time slot adjustment indication messages are received from the upstream node, the time slot adjustment time is determined according to the multiple time slot adjustment indication messages, and the time slot adjustment is completed by adopting the time slot adjustment strategy at the time slot adjustment time. Multiple time slot adjustment indication messages are sent to the downstream nodes, enabling the downstream nodes to determine the time slot adjustment time based on the multiple time slot adjustment indication messages, and to complete the time slot adjustment using the time slot adjustment strategy at the time slot adjustment time.
19. The time slot adjustment method according to claim 18, further comprising: Receive time slot switching time information sent by the upstream node, wherein the time slot switching time information is used to indicate the time slot adjustment time; The time slot switching time information is sent to the downstream node.
20. The time slot adjustment method according to claim 19, wherein, The time slot switching time information is carried in the time slot switching time code block in the service flow, and the time slot adjustment time includes one of the following cases: The time slot adjustment time is the next time slot after the time slot in which the time slot switching time code block is located; The time slot adjustment time is the starting position of the next bearer frame or the first time slot of the bearer frame in which the code block is located at the time slot switching time. The time slot adjustment time is the starting position of the first carrier frame in the next multiframe of the multiframe in which the code block is located, or the first time slot of the first carrier frame in the next multiframe.
21. The time slot adjustment method according to claim 19, wherein, The time slot adjustment indication information is used to indicate that the time slot adjustment strategy is effective, and multiple time slot adjustment indication information are carried in multiple time slot adjustment indication code blocks in the service flow.
22. The time slot adjustment method according to claim 21, wherein: The time slot switching time information is carried in the time slot switching time code block in the service flow; there are equal or unequal numbers of first code blocks between two adjacent time slot adjustment indicator code blocks and between the time slot switching time code block and the last transmitted time slot adjustment indicator code block; or, The time slot switching time information is carried in the time slot switching time code block in the service flow; there is a first number of first code blocks between two adjacent time slot adjustment indicator code blocks; there is a second number of first code blocks between the time slot switching time code block and the last time slot adjustment indicator code block sent, and the second number is not equal to the first number.
23. The time slot adjustment method according to claim 22, characterized in that, When there is a first number of first code blocks between two adjacent time slot adjustment indicator code blocks, the time slot switching time code block is determined based on the first number and the position of any one of the time slot adjustment indicator code blocks.
24. The time slot adjustment method according to claim 23, wherein, The time slot switching timing code block corresponds to a desired position in the service flow. The desired position is determined based on the first quantity and the position of any one of the time slot adjustment indicator code blocks. When the code block corresponding to the desired position is a code block in a data packet, the time slot switching timing code block is the first code block after the end code block in the data packet.
25. The time slot adjustment method according to any one of claims 22 to 24, wherein, The time slot adjustment indicator code block and the time slot switching time code block have the same code block type. Both the time slot adjustment indicator code block and the time slot switching time code block include a time slot adjustment function field. The time slot adjustment function field in the time slot adjustment indicator code block is used to carry the time slot adjustment indicator information, and the time slot adjustment function field in the time slot switching time code block is used to carry the time slot switching time information. Both the time slot adjustment indicator code block and the time slot switching timing code block further include a synchronization header bit, a control word, and a type sequence value. The combination of the synchronization header bit, the control word, and the type sequence value serves as a flag value used to indicate the time slot adjustment indicator code block or the time slot switching timing code block.
26. The time slot adjustment method according to claim 18, wherein, The multiple timeslot adjustment indication information is carried in multiple timeslot adjustment indication code blocks in the service flow, and the timeslot adjustment time is determined according to the position of any one of the timeslot adjustment indication code blocks.
27. The time slot adjustment method according to claim 26, wherein, There is a third number of first code blocks between two adjacent time slot adjustment indicator code blocks. The time slot adjustment time is determined according to the time slot adjustment reference time, which is determined according to the third number and the position of any one of the time slot adjustment indicator code blocks.
28. The time slot adjustment method according to claim 27, wherein, The time slot adjustment time includes one of the following situations: The time slot adjustment time is the next time slot after the time slot in which the time slot adjustment reference time is located; The time slot adjustment time is the starting position of the next bearer frame or the first time slot of the bearer frame in which the time slot adjustment reference time is located; The time slot adjustment time is the starting position of the first carrier frame in the next multiframe of the multiframe in which the time slot adjustment reference time is located, or the first time slot of the first carrier frame in the next multiframe.
29. The time slot adjustment method according to claim 27, wherein, The position of the time slot adjustment reference time is between a fourth number of the first code blocks and the last transmitted time slot adjustment indicator code block, the fourth number being less than or equal to the third number.
30. The time slot adjustment method according to any one of claims 26 to 29, wherein, The time slot adjustment indicator code block includes a synchronization header bit, a control word, a type sequence value, and a time slot adjustment function field. The time slot adjustment function field is used to carry the time slot adjustment indication information. The combination of the synchronization header bit, the control word, and the type sequence value serves as a flag value for indicating the time slot adjustment indicator code block.
31. The time slot adjustment method according to claim 18, wherein, Multiple timeslot adjustment indication information are carried in OAM code blocks in the service flow.
32. The time slot adjustment method according to claim 31, wherein: When the OAM code block includes an APS code block, the multiple time slot adjustment indication messages are respectively carried in the Base1 code block, the APS code block, and the Base2 code block within the OAM code block. The time slot adjustment timing is determined based on the position of the first Base1 code block following the Base2 code block carrying the time slot adjustment indication information; or... When the OAM code block does not include an APS code block, a pseudo-APS code block is configured between the Base1 code block and the Base2 code block in the OAM code block. Multiple time slot adjustment indication messages are respectively carried in the Base1 code block, the pseudo-APS code block, and the Base2 code block. The time slot adjustment timing is determined based on the position of the first Base1 code block following the Base2 code block carrying the time slot adjustment indication information; or... When the OAM code block includes an APS code block, and a pseudo-APS code block is configured before or after the APS code block, multiple time slot adjustment indication messages are respectively carried in the Base1 code block, the pseudo-APS code block, and the Base2 code block in the OAM code block. The time slot adjustment time is determined based on the position of the first Base1 code block after the Base2 code block carrying the time slot adjustment indication information; or... When the OAM code block includes an L code block, the multiple time slot adjustment indication messages are respectively carried in the Base1 code block, Base2 code block, and L code block within the OAM code block. The time slot adjustment timing is determined based on the position of the first Base1 code block following the L code block carrying the time slot adjustment indication information; or... When the OAM code block does not include an L code block, the position of the L code block in the OAM code block is configured with a pseudo-L code block. Multiple time slot adjustment indication messages are respectively carried in the Base1 code block, Base2 code block, and the pseudo-L code block in the OAM code block. The time slot adjustment timing is determined based on the position of the first Base1 code block following the pseudo-L code block carrying the time slot adjustment indication information; or... When the OAM code block includes an L code block, and a pseudo L code block is configured before or after the L code block, multiple time slot adjustment indication information are respectively carried in the Base1 code block, Base2 code block and the pseudo L code block in the OAM code block, and the time slot adjustment time is determined according to the position of the first Base1 code block after the pseudo L code block carrying the time slot adjustment indication information.
33. The time slot adjustment method according to claim 32, wherein, When the OAM code block includes an APS code block, the APS code block includes a first APS code block and a second APS code block, and the time slot adjustment indication information is carried in the second APS code block.
34. The time slot adjustment method according to claim 21 or 26, wherein, The time slot adjustment indicator code block includes check bit information, which is used to verify the correctness of the time slot adjustment indicator information.
35. The time slot adjustment method according to claim 18, further comprising: Determine the validity of each of the aforementioned time slot adjustment indication information; When the number of valid time slot adjustment indication messages is greater than the number of invalid time slot adjustment indication messages, the time slot adjustment strategy is determined to be effective.
36. A time slot adjustment method, comprising: After negotiating and determining the time slot adjustment strategy with the upstream node, when multiple time slot adjustment indication messages are received from the upstream node, the time slot adjustment time is determined according to the multiple time slot adjustment indication messages; The time slot adjustment is completed using the time slot adjustment strategy at the specified time slot adjustment time.
37. The time slot adjustment method according to claim 36 further includes: The system receives time slot switching time information sent by the upstream node, wherein the time slot switching time information is used to indicate the time slot adjustment time.
38. The time slot adjustment method according to claim 37, wherein, The time slot switching time information is carried in the time slot switching time code block in the service flow, and the time slot adjustment time includes one of the following cases: The time slot adjustment time is the next time slot after the time slot in which the time slot switching time code block is located; The time slot adjustment time is the starting position of the next bearer frame or the first time slot of the bearer frame in which the code block is located at the time slot switching time. The time slot adjustment time is the starting position of the first carrier frame in the next multiframe of the multiframe in which the code block is located, or the first time slot of the first carrier frame in the next multiframe.
39. The time slot adjustment method according to claim 37, wherein, The time slot adjustment indication information is used to indicate that the time slot adjustment strategy is effective, and multiple time slot adjustment indication information are carried in multiple time slot adjustment indication code blocks in the service flow.
40. The time slot adjustment method according to claim 39, wherein: The time slot switching time information is carried in the time slot switching time code block in the service flow; there are equal or unequal numbers of first code blocks between two adjacent time slot adjustment indicator code blocks and between the time slot switching time code block and the last transmitted time slot adjustment indicator code block; or, The time slot switching time information is carried in the time slot switching time code block in the service flow; there is a first number of first code blocks between two adjacent time slot adjustment indicator code blocks; there is a second number of first code blocks between the time slot switching time code block and the last time slot adjustment indicator code block sent, and the second number is not equal to the first number.
41. The time slot adjustment method according to claim 40, wherein, When there is a first number of first code blocks between two adjacent time slot adjustment indicator code blocks, the time slot switching time code block is determined based on the first number and the position of any one of the time slot adjustment indicator code blocks.
42. The time slot adjustment method according to claim 41, wherein, The time slot switching timing code block corresponds to a desired position in the service flow. The desired position is determined based on the first quantity and the position of any one of the time slot adjustment indicator code blocks. When the code block corresponding to the desired position is a code block in a data packet, the time slot switching timing code block is the first code block after the end code block in the data packet.
43. The time slot adjustment method according to any one of claims 40 to 42, wherein, The time slot adjustment indicator code block and the time slot switching time code block have the same code block type. Both the time slot adjustment indicator code block and the time slot switching time code block include a time slot adjustment function field. The time slot adjustment function field in the time slot adjustment indicator code block is used to carry the time slot adjustment indicator information, and the time slot adjustment function field in the time slot switching time code block is used to carry the time slot switching time information. Both the time slot adjustment indicator code block and the time slot switching timing code block further include a synchronization header bit, a control word, and a type sequence value. The combination of the synchronization header bit, the control word, and the type sequence value serves as a flag value used to indicate the time slot adjustment indicator code block or the time slot switching timing code block.
44. The time slot adjustment method according to claim 36, wherein, The multiple timeslot adjustment indication information is carried in multiple timeslot adjustment indication code blocks in the service flow, and the timeslot adjustment time is determined according to the position of any one of the timeslot adjustment indication code blocks.
45. The time slot adjustment method according to claim 44, wherein, There is a third number of first code blocks between two adjacent time slot adjustment indicator code blocks. The time slot adjustment time is determined according to the time slot adjustment reference time, which is determined according to the third number and the position of any one of the time slot adjustment indicator code blocks.
46. The time slot adjustment method according to claim 45, wherein, The time slot adjustment time includes one of the following situations: The time slot adjustment time is the next time slot after the time slot in which the time slot adjustment reference time is located; The time slot adjustment time is the starting position of the next bearer frame or the first time slot of the bearer frame in which the time slot adjustment reference time is located; The time slot adjustment time is the starting position of the first carrier frame in the next multiframe of the multiframe in which the time slot adjustment reference time is located, or the first time slot of the first carrier frame in the next multiframe.
47. The time slot adjustment method according to claim 45, wherein, The position of the time slot adjustment reference time is between a fourth number of the first code blocks and the last transmitted time slot adjustment indicator code block, the fourth number being less than or equal to the third number.
48. The time slot adjustment method according to any one of claims 44 to 47, wherein, The time slot adjustment indicator code block includes a synchronization header bit, a control word, a type sequence value, and a time slot adjustment function field. The time slot adjustment function field is used to carry the time slot adjustment indication information. The combination of the synchronization header bit, the control word, and the type sequence value serves as a flag value for indicating the time slot adjustment indicator code block.
49. The time slot adjustment method according to claim 36, wherein, Multiple timeslot adjustment indication information are carried in OAM code blocks in the service flow.
50. The time slot adjustment method according to claim 49, wherein: When the OAM code block includes an APS code block, the multiple time slot adjustment indication messages are respectively carried in the Base1 code block, the APS code block, and the Base2 code block within the OAM code block. The time slot adjustment timing is determined based on the position of the first Base1 code block following the Base2 code block carrying the time slot adjustment indication information; or... When the OAM code block does not include an APS code block, a pseudo-APS code block is configured between the Base1 code block and the Base2 code block in the OAM code block. Multiple time slot adjustment indication messages are respectively carried in the Base1 code block, the pseudo-APS code block, and the Base2 code block. The time slot adjustment timing is determined based on the position of the first Base1 code block following the Base2 code block carrying the time slot adjustment indication information; or... When the OAM code block includes an APS code block, and a pseudo-APS code block is configured before or after the APS code block, multiple time slot adjustment indication messages are respectively carried in the Base1 code block, the pseudo-APS code block, and the Base2 code block in the OAM code block. The time slot adjustment time is determined based on the position of the first Base1 code block after the Base2 code block carrying the time slot adjustment indication information; or... When the OAM code block includes an L code block, the multiple time slot adjustment indication messages are respectively carried in the Base1 code block, Base2 code block, and L code block within the OAM code block. The time slot adjustment timing is determined based on the position of the first Base1 code block following the L code block carrying the time slot adjustment indication information; or... When the OAM code block does not include an L code block, the position of the L code block in the OAM code block is configured with a pseudo-L code block. Multiple time slot adjustment indication messages are respectively carried in the Base1 code block, Base2 code block, and the pseudo-L code block in the OAM code block. The time slot adjustment timing is determined based on the position of the first Base1 code block following the pseudo-L code block carrying the time slot adjustment indication information; or... When the OAM code block includes an L code block, and a pseudo L code block is configured before or after the L code block, multiple time slot adjustment indication information are respectively carried in the Base1 code block, Base2 code block and the pseudo L code block in the OAM code block, and the time slot adjustment time is determined according to the position of the first Base1 code block after the pseudo L code block carrying the time slot adjustment indication information.
51. The time slot adjustment method according to claim 50, wherein, When the OAM code block includes an APS code block, the APS code block includes a first APS code block and a second APS code block, and the time slot adjustment indication information is carried in the second APS code block.
52. The time slot adjustment method according to claim 39 or 44, wherein, The time slot adjustment indicator code block includes check bit information, which is used to verify the correctness of the time slot adjustment indicator information.
53. The time slot adjustment method according to claim 36 further includes: Determine the validity of each of the aforementioned time slot adjustment indication information; When the number of valid time slot adjustment indication messages is greater than the number of invalid time slot adjustment indication messages, the time slot adjustment strategy is determined to be effective.