Time slot adjustment method

Through the end-to-end time slot adjustment method, the time slot adjustment strategy is negotiated and the indication information is sent, which solves the problems of slow slot adjustment speed and poor reliability in the prior art, and achieves faster and lower cost time slot adjustment, reducing service delay.

WO2025146038A1PCT designated stage expired Publication Date: 2025-07-10ZTE CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/144308
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-01-02
Filing Date
2024-12-31
Publication Date
2025-07-10

AI Technical Summary

Technical Problem

The prior art has problems such as slow adjustment speed and poor reliability in the time slot adjustment process in communication networks, especially when the changes in the service bandwidth and the number of time slots are inconsistent, the buffer temporarily stores the traffic volume, resulting in high costs and increased latency.

Method used

The end-to-end time slot adjustment method is adopted, and the time slot adjustment strategy is determined at the downstream node and the sink node, and multiple time slot adjustment instructions are sent at the time slot adjustment time, so that each node can adjust the number of slots simultaneously, reducing the inconsistent duration of the time of service bandwidth change and the time slot number change time.

Benefits of technology

It effectively reduces the number of cache services, reduces network overhead costs and customer delays, and improves the success probability and speed of time slot adjustment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024144308_10072025_PF_FP_ABST
    Figure CN2024144308_10072025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application is a time slot adjustment method. The method comprises: after a time slot adjustment policy is determined by means of negotiation with a downstream node and a sink node, using the time slot adjustment policy at a time slot adjustment moment to complete time slot adjustment; and by means of the downstream node, sending a plurality of pieces of time slot adjustment indication information to the sink node, such that the downstream node and the sink node determine the time slot adjustment moment on the basis of the plurality of pieces of time slot adjustment indication information, and use the time slot adjustment policy at the time slot adjustment moment to complete time slot adjustment.
Need to check novelty before this filing date? Find Prior Art

Description

A time slot adjustment method

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on the Chinese patent application with application number 202410011738.1 and application date January 2, 2024, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field

[0003] The embodiments of the present application relate to, but are not limited to, the field of communication technology, and in particular to a time slot adjustment method. Background Art

[0004] Currently, communication networks typically use a time slot approach to carry customer services. This involves dividing a physical channel's bearer frame into multiple time slots, or dividing multiple time slots across multiple bearer frames. Each time slot can carry customer services, and each time slot is strictly physically isolated from the others, preventing them from interfering 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 applications, each customer service can be carried and transmitted over a subset of time slots, allowing for flexible adjustments in the speed of customer services. When a customer service has high bandwidth, it is carried over multiple time slots; when it has low bandwidth, it is carried over a smaller number of time slots. The customer service bandwidth and the number of time slots used are aligned to accommodate customer services of varying bandwidth requirements. In practice, customer service bandwidth requirements fluctuate. When a customer is just starting out, their bandwidth requirements are relatively low, and they purchase a small number of time slots to carry their services. Over time, their market may expand, requiring greater bandwidth and the purchase of more time slots to carry their services. For services in declining markets, customer service bandwidth may decrease after a period of time, requiring a reduction in the number of time slots carried. Therefore, the number of time slots for customer services needs to be dynamically and losslessly adjusted to meet the changing needs of customer service bandwidth.

[0005] Compared to traditional hop-by-hop negotiation and adjustment mechanisms, after successful end-to-end timeslot adjustment negotiation, this mechanism uses customer services to carry a timeslot adjustment indication signal, initiating timeslot adjustment activities. This reduces negotiation time, avoids the serious consequences of unsuccessful adjustment negotiation during hop-by-hop adjustment, and eliminates the need for fallback in the event of an adjustment failure. This saves adjustment negotiation time and increases the probability of successful adjustment. However, when the service bandwidth change time differs from the time the timeslot number changes, a buffer is required to temporarily store customer services to accommodate the speed difference. The longer the difference between the service bandwidth change time and the timeslot number change time, the greater the amount of services that need to be buffered, and the higher the cost. Summary of the Invention

[0006] An embodiment of the present application provides a time slot adjustment method.

[0007] On the one hand, an embodiment of the present application provides a time slot adjustment method, including: after negotiating with the downstream node and the host node to determine the time slot adjustment strategy, adopting the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment; sending multiple time slot adjustment indication information to the host node through the downstream node, so that the downstream node and the host node determine the time slot adjustment moment according to the multiple time slot adjustment indication information, and adopting the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment.

[0008] On the other hand, an embodiment of the present application also provides a time slot adjustment method, including: after negotiating with the upstream node and the downstream node to determine the time slot adjustment strategy, when receiving multiple time slot adjustment indication information sent by the upstream node, determining the time slot adjustment moment according to the multiple time slot adjustment indication information, and using the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment; sending multiple time slot adjustment indication information to the downstream node, so that the downstream node determines the time slot adjustment moment according to the multiple time slot adjustment indication information, and uses the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment.

[0009] On the other hand, an embodiment of the present application also provides a time slot adjustment method, including: after negotiating and determining the time slot adjustment strategy with the upstream node, when receiving multiple time slot adjustment indication information sent by the upstream node, determining the time slot adjustment time according to the multiple time slot adjustment indication information; and using the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment time.

[0010] On the other hand, an embodiment of the present application further provides a communication device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the time slot adjustment method as described above when executing the computer program.

[0011] On the other hand, an embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the time slot adjustment method as described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] FIG1 is a schematic diagram of a structure in which a bearer frame is divided into multiple time slots in the related art;

[0013] FIG2 is a schematic diagram of a frame structure developed by China Mobile in the related art;

[0014] FIG3 is a schematic diagram of an adjustment process for reducing time slot requirements in the related art;

[0015] FIG4 is a schematic diagram of an adjustment process for increasing time slot requirements in the related art;

[0016] FIG5 is a schematic diagram of a time slot adjustment process in the related art;

[0017] FIG6 is a schematic diagram of a time slot negotiation handshake in the related art;

[0018] FIG7 is a flowchart of a time slot adjustment method provided in an embodiment of the present application;

[0019] FIG8 is a schematic diagram of inserting time slot adjustment information into a service flow according to an embodiment of the present application;

[0020] FIG9 is a schematic diagram of the structure of the o-code block provided in an embodiment of the present application;

[0021] FIG10 is a schematic diagram of a structure in which a time slot adjustment indication code block appears at a certain moment in the middle of a bearer frame according to an embodiment of the present application;

[0022] FIG11 is a schematic diagram of a structure in which the effective time slot position is used as a reference time point and a new adjustment time slot is switched at the effective time slot position according to an embodiment of the present application;

[0023] FIG12 is a schematic diagram of confirming a reference time point provided in an embodiment of the present application;

[0024] FIG13 is another schematic diagram of confirming a reference time point provided by an embodiment of the present application;

[0025] FIG14 is a schematic diagram of a fixed number of client code blocks spaced between specially defined code blocks provided by an embodiment of the present application;

[0026] FIG15 is a schematic diagram of a case where the interval between the time slot switching time code block and the time slot adjustment indication code block is a T2 value according to an embodiment of the present application;

[0027] FIG16 is a schematic diagram showing that the desired insertion position of the time slot adjustment indication code block provided in an embodiment of the present application is located in the middle of the message;

[0028] FIG17 is a schematic diagram of an embodiment of the present application providing that OAM code blocks are sent in a fixed order with equal intervals of period T;

[0029] FIG18 is a schematic diagram of an OAM code block expansion function provided in an embodiment of the present application;

[0030] FIG19 is a schematic diagram of the structure of a new OAM sequence provided in an embodiment of the present application;

[0031] FIG20 is a schematic structural diagram of an OAM sequence for transmitting a pseudo-L code block according to an embodiment of the present application;

[0032] FIG21 is a schematic diagram of the structure of an APS code block sequence extending the APS code block sequence to carry time slot adjustment indication information according to an embodiment of the present application;

[0033] FIG22 is a schematic diagram of inserting a time slot adjustment indication code block into an APS code block sequence according to an embodiment of the present application;

[0034] FIG23 is a schematic diagram of sending a specially defined pseudo L code block at the L code block position in the 32nd to 64th small cycle periods of the OAM sequence according to an embodiment of the present application;

[0035] FIG24 is a schematic diagram of time slot adjustment indication information carrying a check function on B1 and B2 code blocks provided in an embodiment of the present application;

[0036] FIG25 is a schematic diagram of a process for selecting time slots for adjustment between devices according to an embodiment of the present application;

[0037] FIG26 is a schematic diagram of the cancellation process of a time slot application according to an embodiment of the present application;

[0038] 27 is a flowchart of a process in which the first node negotiates and determines a time slot adjustment strategy according to an embodiment of the present application;

[0039] FIG28 is a flowchart of a time slot adjustment method provided by another embodiment of the present application;

[0040] 29 is a flowchart of a process in which intermediate nodes negotiate and determine a time slot adjustment strategy according to an embodiment of the present application;

[0041] FIG30 is a flowchart of a time slot adjustment method provided by another embodiment of the present application;

[0042] FIG31 is a flowchart of a process in which an end node negotiates and determines a time slot adjustment strategy, as provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to make the purpose, technical methods and advantages of this application more clear, the following is a detailed description of this application in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain this application and are not used to limit this application.

[0044] It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that in the flowchart. In the description of the specification, claims and the above-mentioned drawings, the meaning of multiple (or multiple) is more than two, greater than, less than, exceed, etc. are understood to exclude the number itself, and above, below, within, etc. are understood to include the number itself. If there is a description of "first", "second", etc., it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0045] It's worth noting that communication networks typically use a frame structure to carry customer services, with time slots divided within the bearer frame. Devices generally support time slot-based customer service carrying, such as those supporting the international standard MTN protocol and China Mobile's SPN. A bearer frame consists of a header, a container, and a trailer. Time slots can be divided within the container. Time slots are fixed and transmitted along the network with the bearer frame. Each customer service can be carried in a fixed time slot, and different customers can choose different time slots for carrying. High bandwidth customers can choose to carry multiple time slots, while low bandwidth customers can choose to carry a limited number of time slots. When carrying customer services, the source device first maps the customer service to the corresponding time slot in the bearer frame and sends it. Intermediate devices then forward the bearer frame. Finally, the destination device extracts the customer service from the corresponding time slot in the bearer frame to restore the original customer service.

[0046] A bearer frame generally has a fixed frame structure, similar to the encoding result of an Ethernet message. Ethernet services can use 64 / 66 encoding. In the 64 / 66 encoding rules of the Ethernet 802.3 protocol, each code block consists of 66 bytes. 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 8 bytes (64 bits) contain 8 bytes of data content. A synchronization header bit of "10" indicates a control code block. The first byte following the control block indicates the type of control block. The following 7 bytes contain the content of the control block. The content of the 7 bytes is determined by the control block type. S code blocks, T code blocks, O code blocks, and idle code blocks are all control code blocks. S code blocks, T code blocks, IDLE code blocks, and O code blocks are all control code blocks. The first byte of an S code block is 0x78, indicating that the control code block is an S code block. The S code block is the first code block in a data message code block stream. The T block represents the last block in a data message block stream and marks the end of the message. Besides marking the end of the block, the T block can also carry client byte information (located in the last 7 bytes of the block). The Ethernet standard classifies T blocks into eight types: T0, T1, T2, T3, T4, T5, T6, and T7. T0 (first byte 0x87) carries no client information, T1 (first byte 0x99) carries one byte of client information, T2 (first byte 0x99) carries two bytes of client information, and so on. T7 (first byte 0xFF) carries seven bytes of client information. The IDLE block (also referred to as the I block) is an idle block or error indication block, with a control word of 0x1E. The O block is a maintenance block, with a control word of 0x4B.

[0047] Currently, different standards at home and abroad have established different bearer frame formats. See Figure 2, which shows the frame structure established by China Mobile. As shown in Figure 2, the bearer frame consists of 1 S code block, 195 D code blocks, and 1 T code block. The D code block in the frame is divided into overhead byte information and 24 time slots. Every 20 frames form a multiframe, and there are 480 time slots in a multiframe cycle. The lower figure in Figure 2 shows the frame structure in the standard document currently being developed by the International Telecommunication Union (ITU). The bearer frame consists of 1 S code block, 990 D code blocks, and 1 T code block. The D code block in the frame is divided into overhead byte information and 480 time slots. At the same time, 480 frames form a multiframe. Each frame in the multiframe transmits the relevant overhead information of a time slot, and the relevant overhead information of 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: timeslot number;

[0051] client num: client number;

[0052] CR: Configuration request;

[0053] CA: Configuration Acknowledge;

[0054] C: Timeslot configuration comes into force.

[0055] S: Send notice of timeslot increase adjustment.

[0056] In actual business applications, initially, customer traffic is low, the network bandwidth purchased is small, and only a small number of time slots are required. Over time, customer traffic increases, requiring more time slots to carry customer traffic. This requires adding time slots to increase the number of time slots without impacting or interrupting customer traffic. For enterprise businesses experiencing market declines, customer traffic decreases over time, requiring a reduction in the number of time slots used for carrying customer traffic. This requires dynamically reducing the number of time slots carrying customer traffic without impacting customer traffic. Traditional solutions utilize hop-by-hop negotiation and adjustment mechanisms. The adjustment process begins with a handshake negotiation for time slot adjustment: one device sends a time slot adjustment request signal. Upon receiving the signal, the other device sends back a time slot adjustment response and confirmation signal. Once the device that sent the time slot adjustment request receives the response signal, negotiation is complete between the two devices, and time slot adjustment can begin. Refer to Figure 3, which illustrates the adjustment process for reducing time slot requirements. When time slot reduction is required, the source device (Device 1) sends a time slot reduction request signal (CR) to downstream device 2. When sending the CR signal, it also sends the number of the time slot to be reduced, prompting downstream device 2 to reduce the number of the time slot. After receiving the CR signal, Device 2 completes its preparations and sends a time slot adjustment response signal (CA) to Device 1. After Device 1 receives the time slot adjustment response signal (CA), the negotiation for the time slot reduction adjustment between Devices 1 and 2 is complete. Device 1 sends an adjustment indication signal (C) (Configuration come into force). Devices 1 and 2 then carry customer services in the time slots after the reduction. After device 2 receives the adjustment instruction signal C from device 1, it begins sending a timeslot reduction adjustment request signal CR to downstream device 3, simultaneously transmitting the timeslot number to be reduced. Upon receiving the CR signal, device 3 completes its preparations and sends a response signal CA to device 2. Upon receiving device 3's response signal CA, the timeslot reduction negotiation between devices 2 and 3 is complete. After receiving device 3's response signal CA, device 2 sends an adjustment instruction signal C. Devices 2 and 3 then carry customer services in the reduced timeslot positions. Similarly, devices 3 and 4 complete the timeslot reduction negotiation and adjustment, completing all timeslot adjustments. The above adjustment process is negotiated and adjusted step by step. During the adjustment process, some devices have already completed the adjustment and are carrying services using the adjusted timeslot number, while others have not yet completed the adjustment and are carrying services using the pre-adjusted timeslot number.During the reduction adjustment process, the number of time slots between upstream adjacent devices is first reduced. Only after the number of time slots of the upstream adjacent nodes is reduced does the time slot reduction operation begin on the downstream devices. This ensures that the number of time slots between upstream nodes is always smaller than that between downstream nodes. In other words, the service bandwidth between upstream nodes is smaller than that between downstream nodes. This prevents upstream service bandwidth from being greater than downstream service bandwidth in the pipeline, which could cause service overflow at some nodes due to the upstream bandwidth being greater than downstream bandwidth. During the adjustment process, the end-to-end bandwidth reduction adjustment is completed only after the time slot reduction adjustment of the devices at the last two nodes has been completed.

[0057] When adding time slots, to ensure that the service bandwidth between upstream nodes is less than the service bandwidth between downstream nodes, China Mobile's corporate standards stipulate that the time slot increase adjustment should begin at the sink device. Figure 4 illustrates the adjustment process for adding time slots. When a time slot is needed, the sink device (device 4) sends a bandwidth increase adjustment notification (S) signal to upstream device 3. Upon receiving the S signal, upstream device 3 initiates the increase adjustment and sends a CR signal to device 4, along with the number of the time slot 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. Upon receiving the CA signal from device 4, device 3 completes the time slot increase adjustment negotiation between devices 3 and 4. Device 3 then sends an adjustment indication signal (C) to device 4. Devices 3 and 4 then carry customer services using the adjusted time slots. At the same time, device 3 sends a timeslot increase adjustment notification signal (S) to upstream device 2. Upon receiving the S signal, upstream device 2 initiates timeslot increase negotiation and sends a CR signal to device 3, along with the timeslot number to be increased. After receiving the CR signal and completing its preparations, device 3 sends a response signal (CA) back to device 2. Upon receiving the response signal (CA), device 2 completes the timeslot increase negotiation between devices 2 and 3. Device 2 sends an adjustment indication signal (C) to device 3. Devices 2 and 3 then carry customer services using the adjusted timeslots. Simultaneously, device 2 sends a bandwidth increase adjustment notification signal (S) to upstream device 1. Similarly, devices 1 and 2 complete the timeslot increase negotiation and timeslot adjustment process, thus completing the timeslot increase adjustment process. The adjustment process is negotiated and completed segment by segment. When adding time slots, the number of time slots between downstream devices is always increased first, followed by that between upstream devices. The number of time slots between upstream nodes is always kept smaller than that between downstream nodes. This means that the service bandwidth between upstream nodes is smaller than that between downstream nodes. This prevents upstream bandwidth from exceeding downstream bandwidth in the pipeline, which could lead to service overflow. During the time slot increase adjustment process, the end-to-end bandwidth increase is completed only after the last two devices complete the time slot increase adjustment.

[0058] The traditional bandwidth adjustment process is negotiated and completed segment by segment. Adjustment of the next segment is initiated only after one segment is adjusted, making the adjustment process extremely time-consuming. This segment-by-segment negotiation and completion also presents a significant drawback: some segments may have already been adjusted, while others encounter unexpected issues during the adjustment process (for example, CR or CA signals between nodes may be lost due to interference, or a device may encounter difficulties and be unable to return CA signals, leading to negotiation failure between upstream and downstream devices). If time slot adjustment negotiation fails between some devices, subsequent time slot adjustments cannot proceed. As a result, some devices on the network that have successfully adjusted will operate with the new number of time slots, while others will operate with the old number of time slots, resulting in inconsistent end-to-end bandwidth for services. If negotiation fails between some devices and time slot adjustment cannot proceed, a fallback mechanism is typically activated, returning the successfully adjusted devices to their original, unadjusted time slots using the reverse number of timeslots, following the same process as the time slot adjustment. For example, if during the time slot increase adjustment, some devices are successfully adjusted while others fail, then for the devices that have successfully adjusted, a time slot reduction adjustment activity is initiated, and the increased time slots are deleted again according to the time slot reduction mechanism, completing the time slot rollback. Similarly, if during the time slot reduction adjustment, some devices are successfully adjusted while others fail, then for the devices that have successfully adjusted, a time slot increase adjustment activity is initiated, and the reduced time slots are 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 during the rollback, the rollback adjustment may fail again, and the rollback cannot be continued, leaving the user in a dilemma of being unable to complete end-to-end time slot adjustment but unable to complete end-to-end time slot rollback. In networks built by different manufacturers, due to the 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 presents 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 the time slot configuration and adjustment command to the source device, identifying the source and sink devices. Whether increasing or decreasing the adjustment time slot, the time slot adjustment is initiated by the source device. Source device 1 sends a bandwidth adjustment request signal CR to downstream device 2, along with the adjusted time slot number, notifying downstream device 2 of the time slot number to be adjusted. After receiving the CR signal, intermediate device 2 initiates preparations but does not immediately return a response signal CA to device 1. Device 2 then continues to send a time slot adjustment request signal CR to downstream device 3, along with the adjusted time slot number. Similarly, after receiving the CR signal, intermediate device 3 initiates preparations but does not immediately return a response signal CA to device 2. Instead, it sends a bandwidth adjustment request signal CR to downstream device 4, along with the adjusted time slot number. Device 4 is a sink device. After receiving the CR signal from upstream device 3, the sink device completes its preparations and sends a time slot adjustment response signal CA and the adjusted time slot number back to upstream device 3. Intermediate device 3 receives the response signal CA from downstream device 4 before sending the time slot adjustment response signal CA and the adjusted time slot number back to upstream device 2. Similarly, after receiving the time slot adjustment response signal CA from downstream device 3, intermediate device 2 sends the response signal CA and the adjusted time slot number back to upstream device 1. Device 1 is a source device. After receiving the time slot adjustment response signal CA and the adjusted time slot number from the downstream device, the source device determines that the returned time slot number matches the requested time slot number, confirming that negotiation has completed between the source device, the sink device, and all intermediate devices, and that the time slot adjustment negotiation between all devices has been successful. In this case, source device 1 begins sending an adjustment indication signal C to the downstream device. If the adjustment negotiation between some devices in the network is unsuccessful, the source device 1 will not receive the response signal CA, and the source device 1 will not send the adjustment indication signal C. The devices will not carry customer services according to the new number of time slots, and the devices will still carry customer services according to the original number of time slots. This avoids the problem of end-to-end bandwidth inconsistency caused by successful negotiation between some devices and unsuccessful negotiation between some devices in traditional time slot adjustment, as well as the fallback problem of time slot adjustment. If the negotiation between some devices in the network fails and the source device cannot receive the time slot adjustment response signal, the source device 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 still cannot receive the adjustment response signal CA within a certain period of time, the source device considers that the end-to-end link has failed, 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 confirmation signal CA and the adjusted time slot number sent back by the downstream device and confirms that the sent back time slot number matches the requested time slot number, it sends an adjustment instruction signal C to downstream device 2. Device 1 then carries customer traffic according to the new time slot plan. Downstream device 2, upon receiving the adjustment instruction signal C, also forwards customer traffic according to the new time slot plan, completing the time slot adjustment between devices 1 and 2. When intermediate device 2 receives the adjustment instruction signal C from upstream device 1, it simultaneously sends the adjustment instruction signal C to downstream device 3. Device 2 then carries customer traffic according to the new time slot plan. Downstream device 3, upon receiving the adjustment instruction signal C, also forwards customer traffic according to the new time slot plan, completing the time slot adjustment between devices 2 and 3. Similarly, when intermediate device 3 receives the adjustment instruction signal C from upstream device 2, it also sends the adjustment instruction signal C to downstream device 4. Device 3 then carries customer traffic according to the new time slot plan. Downstream device 4, upon receiving the adjustment instruction signal C, also extracts customer traffic according to the new time slot plan, completing the time slot adjustment between devices 3 and 4. After the sink device completes the timeslot adjustment, the end-to-end timeslot adjustment is complete. After completing the timeslot adjustment, the sink device notifies the source device of the successful timeslot adjustment. If the source device does not receive the adjustment success indication signal from the sink device within a period of time, it can resend the adjustment indication signal C. Alternatively, the source device can continue to send the adjustment indication signal C until it receives the adjustment success indication signal from the sink device.

[0061] In the above scheme, time slot adjustment negotiation is performed end-to-end between the source device and the sink device. Intermediate devices participate in the negotiation and sequentially transmit time slot adjustment negotiation signals in a relay manner, implementing a handshake negotiation mechanism for time slot adjustment between the source and sink devices. Successful negotiation between the source and sink devices indicates that time slot adjustment negotiation has been successful between the source and sink devices, including between all intermediate devices in the network. Only after the handshake negotiation for time slot adjustment has succeeded between all devices will time slot adjustment be performed sequentially, starting with the source device. Whether time slots are being increased or decreased, the end-to-end time slot adjustment method described in the above scheme can be used, allowing time slot adjustment negotiation and execution to proceed from the source to the sink device. For timeslot increase adjustments, customer service bandwidth is not increased until the end-to-end timeslot increase adjustment is complete. Customer service bandwidth remains at its original value. This allows for increased bandwidth between upstream devices and decreased bandwidth between downstream devices during the end-to-end timeslot increase adjustment process. Because the customer service bandwidth remains at its original value, the bandwidth between downstream devices is consistent. Therefore, even if the upstream pipeline bandwidth increases, the effective customer service bandwidth does not increase, preventing customer overflow. As shown in Figure 5, initially, only one timeslot is configured to carry customer service between devices 1 and 2, 2 and 3, and 3 and 4. Each timeslot can only carry 10 Mbps of customer service bandwidth. When the bandwidth needs to be increased to 20 Mbps, the customer service bandwidth initially remains at 10 Mbps. Initially, the timeslot between devices 1 and 2 is adjusted from one to two, resulting in a 20 Mbps bearer bandwidth. The connections between devices 2 and 3, and 3 and 4, continue to carry 10 Mbps of customer service per timeslot. At device 1, when a 10 Mbps customer service is carried across two time slots, because the customer service speed is slower than the time slot speed, a large amount of idle information, such as idle code blocks, is inserted between each customer. This addition of idle information increases the total speed to 20 Mbps, which is then carried across two time slots. Device 2 receives the customer service from device 1 and removes the large amount of idle information inserted between packets. This allows the remaining customer service to be carried across a single time slot. Device 2 then removes the idle information and carries the customer service across a single time slot, passing it to device 3. When the time slot between devices 2 and 3 is adjusted from one to two time slots, device 2 receives the service from device 1 without removing the idle information. Device 3 removes the idle information and carries the service across a single time slot. When the time slot between devices 3 and 4 is adjusted from one to two time slots, the end-to-end bearer pipe between devices 1 and 4 adjusts to two time slots, carrying the 20 Mbps customer service. Only after the end-to-end time slot adjustment is successful is the customer service speed adjusted to 20 Mbps. For adjustments to increase the number of time slots, first complete the time slot adjustment of the end-to-end equipment before increasing or adjusting the customer service speed.Similarly, when adjusting to reduce the number of time slots, the customer service speed is first reduced before adjusting the time slots between end-to-end devices. This ensures that the customer service speed is always lower than the speed of any device in the bearer pipe of the end-to-end device. 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 the customer service is then 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 the adjustment indication C signal, it immediately sends an adjustment indication to the 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, and then proceeds from the upstream device to the downstream device, in a relay manner, with adjustments being made between upstream and downstream devices. Any inconsistency in the number of time slots and bandwidth between upstream and downstream devices is only momentary. Afterward, the number of time slots between the upstream and downstream devices is quickly aligned, eliminating bandwidth inconsistency.

[0062] During time slot adjustment, the source device and the sink device perform a handshake negotiation using an adjustment request signal CR and an adjustment response signal CA. The time slot negotiation handshake can utilize a full time slot adjustment method, periodically sending adjustment request status information for all time slots and then periodically returning response information for all time slots. Upon receiving the response information for all time slots, adjustment is initiated by sending a time slot adjustment indication signal C. Figure 6 illustrates a 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 the information, periodically forwards the information to device 3, which, in turn, periodically forwards the information to device 4. After receiving the time slot adjustment request status information, device 4 periodically returns time slot adjustment response signals for all time slots to device 3. Device 3, upon receiving the information, periodically returns the adjustment status information for all time slots to device 2. Device 2, upon receiving the information, periodically returns the adjustment status information for all time slots to device 1. After receiving the adjustment response signals for all time slots, device 1 sends a notification start adjustment indication signal C, officially activating the adjusted time slots. In the full timeslot adjustment method, regardless of whether a timeslot participates in adjustment, adjustment request status information and response information for all timeslots are periodically transmitted. Among all timeslot adjustment information, some timeslots may actually require adjustment, while others do not. If there are 480 timeslots in total, each 480 frames constitutes a multiframe, and each frame in the multiframe transmits the adjustment status information for one timeslot. Frame 0 transmits the adjustment status information for timeslot 0, frame 1 transmits the adjustment status information for timeslot 1, frame 2 transmits the adjustment status information for timeslot 2, and so on. Frame 479 transmits the adjustment status information for timeslot 479. Within a single multiframe cycle, the adjustment status information for all timeslots is transmitted. In Figure 6, timeslots 2 and 4 are actually participating in timeslot adjustment. Their CR values ​​are 1, indicating that they have requested timeslot adjustment. The other timeslots have CR values ​​of 0, indicating that they do not participate in timeslot adjustment. Since the customer numbers for timeslots 2 and 4 have changed from invalid to valid, this indicates that timeslot adjustment is being added. Device 1 transmits the adjustment status information for all time slots to device 2 within a multiframe period. Device 2 receives the information and transmits it to device 3 within a multiframe period. Device 3 receives the information and transmits it to device 4 within a multiframe period. Device 4 receives the adjustment status information for all time slots and sends back acknowledgments for all time slots to device 3. Device 3 receives the information and sends back acknowledgments for all time slots to device 2 within a multiframe period. Device 2 receives the information and sends back acknowledgments for all time slots to device 1 within a multiframe period. Device 1 receives the acknowledgments for all time slots within a multiframe period. Since only time slots 2 and 4 request to participate in the adjustment, all devices return acknowledgments indicating that only time slots 2 and 4 have valid CA information (CA = 1). The acknowledgments for other time slots are invalid (CA = 0).

[0063] After receiving all the returned CA messages, device 1 continuously sends multiple Adjustment Indication C signals. To increase reliability, multiple Adjustment Indication C messages can be sent, for example, three times. The receiving end uses the majority judgment principle (if a valid Adjustment Indication C signal appears two or more times, the Adjustment Indication C signal is considered valid; if an invalid Adjustment Indication C signal appears two or more times, the Adjustment Indication C signal is considered invalid). The initiating device and the receiving device then adjust the number of time slots based on the agreed time base. As shown in Figure 6, the newly added Time Slots 2 and 4 are officially activated at the agreed time. Both the initiating device and the receiving device use the dotted time as the time when the adjusted new time slots are activated. In order to facilitate the activation of new time slots to carry customer services, new time slots are generally activated at the starting position of the bearer frame. If the moment of activating the new time slot is in the middle of a frame, the current bearer frame will continue to carry customer services according to the original old time slot, and the new time slot will be activated to carry customer services at the beginning of the next frame. The dotted line in Figure 6 is the agreed reference time for activating the new time slot between the sending device and the receiving device, but the new time slot is actually activated at the starting position of the next adjacent bearer frame. The starting position of the bearer frame (that is, the first time slot) is used as the starting position, that is, the bold solid line position in Figure 6. Both the sending device and the receiving device enable the new time slot to carry customer services at the bold solid line position, the starting moment of the next bearer frame.

[0064] When adjusting timeslots, to synchronize changes in customer service bandwidth and the number of timeslots carrying customer services, a timeslot adjustment indication signal is inserted into the customer service flow when bandwidth changes are necessary. This signal is transmitted along with the service flow. The timeslot adjustment indication signal has two functions: indicating the time of service bandwidth change and the time of time slot adjustment for customer services. The customer service bandwidth changes according to the adjustment indication signal, and the number of timeslots carrying customer services also changes according to the adjustment indication signal, adapting the number of timeslots carrying customer services to the bandwidth change. The adjustment indication signal is carried in the customer service flow and represents the time of bandwidth adjustment for the service flow. It is transmitted along the service flow in the network. As the adjustment indication signal passes through each device in the network, it synchronizes its number of timeslots carrying customer services according to the adjustment indication signal carried in the customer service flow. The device then adjusts its number of timeslots carrying customer services according to the new number of timeslots. When the customer service bandwidth changes, the corresponding device also adjusts its number of timeslots. This ensures that changes in service bandwidth and timeslots are synchronized, reducing the total duration of the difference between the time of service bandwidth change and the time slot number change.

[0065] Compared to traditional hop-by-hop negotiation and adjustment mechanisms, after successful end-to-end timeslot adjustment negotiation, this mechanism uses customer services to carry a timeslot adjustment indication signal, initiating timeslot adjustment activities. This reduces negotiation time, avoids the serious consequences of unsuccessful adjustment negotiation during hop-by-hop adjustment, and eliminates the need for fallback in the event of an adjustment failure. This saves adjustment negotiation time and increases the probability of successful adjustment. However, when the service bandwidth change time differs from the time the timeslot number changes, a buffer is required to temporarily store customer services to accommodate the speed difference. The longer the difference between the service bandwidth change time and the timeslot number change time, the greater the amount of services that need to be buffered, and the higher the cost.

[0066] In order to reduce the duration of the asynchrony between the service bandwidth change moment and the time slot number change moment, thereby effectively reducing the number of cached services, reducing costs and customer delays, an embodiment of the present application provides a time slot adjustment method, a communication device, and a computer-readable storage medium, wherein, after determining the time slot adjustment strategy with the downstream node and the host node, the first node can adopt the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment, and send multiple time slot adjustment indication information to the host node through the downstream node, so that the downstream node and the host node can determine the time slot adjustment moment according to the multiple time slot adjustment indication information, and adopt the corresponding time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment, thereby reducing the different durations of the service bandwidth change moment and the time slot number change moment, thereby reducing the number of cached services, reducing costs and customer delays.

[0067] Based on the above analysis, the embodiments of the present application are described below in conjunction with the accompanying drawings.

[0068] 7 , which is a flowchart of a time slot adjustment method provided by an embodiment of the present application. The time slot adjustment method may be executed by the head 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 the time slot adjustment strategy is determined through negotiation with the downstream node and the sink node, the time slot adjustment strategy is adopted at the time slot adjustment moment to complete the time slot adjustment.

[0070] Step S720: Send multiple timeslot adjustment indication information to the sink node through the downstream node, so that the downstream node and the sink node determine the timeslot adjustment time according to the multiple timeslot adjustment indication information, and use the timeslot adjustment strategy to complete the timeslot adjustment at the timeslot adjustment time.

[0071] In a feasible implementation, when the customer service is in a transmission state and time slot adjustment information needs to be inserted into the service flow, the first node can initiate an application for bandwidth increase adjustment. After the first node, downstream node and host node determine the time slot adjustment strategy, the time slot adjustment indication information can be sent to the host node through the downstream node, so that during the service flow transmission process, each node can use the time slot adjustment strategy to complete the time slot adjustment at the determined time slot adjustment moment, reducing the different durations of the service bandwidth change moment and the time slot number change moment, thereby reducing the number of cached services, reducing costs and customer delays.

[0072] It can be understood that the service flow can be ordinary Ethernet service information or high service quality service information. For example, high service quality service information can be CBR service, high service quality Ethernet service information (such as eCPRI (ethernet Common Public Radio Interface) service information), voice service information, video service information, game service information, etc., which are not specifically limited here. Among them, high service quality service information can be encapsulated in various formats, such as eCPRI protocol message format or Ethernet message format, etc.; ordinary Ethernet service information can be download service information, etc., which are not specifically limited here.

[0073] In a feasible implementation manner, the head node may further send time slot switching time information to the sink node through the downstream node, wherein the time slot switching time information is used to indicate the time slot adjustment time.

[0074] In a feasible embodiment, the time slot switching time information can be carried in the time slot switching time code block in the service flow, wherein the time slot adjustment time can include one of the following three situations: 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 starting 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 starting position of the first bearer frame in the next multiframe of the multiframe where the time slot switching time code block is located or the first time slot of the first bearer frame in the next multiframe.

[0075] In a feasible implementation, the time slot adjustment indication information may be used to indicate that the time slot adjustment policy is effective. In addition, multiple time slot adjustment indication information may also be carried in multiple time slot adjustment indication code blocks in the service flow.

[0076] In a feasible implementation, when the slot switching moment information is carried in the slot switching moment code block in the service flow, there may be equal or unequal numbers of first code blocks between two adjacent slot adjustment indication code blocks and between the slot switching moment code block and the last time slot adjustment indication code block sent.

[0077] In a feasible implementation, when the slot switching moment information is carried in the slot switching moment code block in the service flow, there are a first number of first code blocks between two adjacent slot adjustment indication code blocks, and there are a second number of first code blocks between the slot switching moment code block and the last time slot adjustment indication code block sent. It should be noted that the second number is not equal to the first number.

[0078] In a feasible implementation manner, the time slot switching time code block may be determined according to the first quantity and the position of any time slot adjustment indication code block.

[0079] In a feasible implementation, the time slot switching code block corresponds to an expected position in the service flow, and the expected position can be determined based on the first quantity and the position of the code block indicated by any time slot adjustment. When the code block corresponding to the expected position is a code block in the data message, the time slot switching code block is the first code block after the end code block in the data message.

[0080] In a feasible embodiment, the time slot adjustment indication code block and the time slot switching moment code block have the same code block type, and both the time slot adjustment indication code block and the time slot switching moment code block include a time slot adjustment function field. The time slot adjustment function field in the time slot adjustment indication code block is used to carry the time slot adjustment indication information, and the time slot adjustment function field in the time slot switching moment code block is used to carry the time slot switching moment information.

[0081] In a feasible embodiment, the time slot adjustment indication code block and the time slot switching moment code block also include a synchronization header bit, a control word and a type sequence value, and 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 indication code block or the time slot switching moment code block.

[0082] In this embodiment, by adopting the time slot adjustment method including the above-mentioned steps S710 to S720, after negotiating with the downstream node and the host node to determine the time slot adjustment strategy, the first node can adopt the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment, and send multiple time slot adjustment indication information to the host node through the downstream node, so that the downstream node and the host node can determine the time slot adjustment moment according to the multiple time slot adjustment indication information, and adopt the corresponding time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment. Therefore, the different durations of the service bandwidth change moment and the time slot number change moment can be reduced, thereby reducing the number of cached services, reducing network overhead costs and customer service delays.

[0083] In one embodiment, multiple time slot adjustment indication information may be carried in multiple time slot adjustment indication code blocks in a service flow, and the time slot adjustment moment is determined according to the position of any time slot adjustment indication code block.

[0084] In one embodiment, there is a third number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot adjustment time can be determined according to the time slot adjustment reference time, and the time slot adjustment reference time can be determined according to the third number and the position of any time slot adjustment indication code block.

[0085] In one embodiment, the time slot adjustment moment includes one of the following situations: the time slot adjustment moment is the next time slot of the time slot where the time slot adjustment reference moment is located; the time slot adjustment moment is the starting position or the first time slot of the next bearer frame of the bearer frame where the time slot adjustment reference moment is located; the time slot adjustment moment is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot adjustment reference moment is located or the first time slot of the first bearer frame in the next multiframe.

[0086] In one embodiment, there are a fourth number of first code blocks between the time slot adjustment reference time and the last transmitted time slot adjustment indication 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 indication 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 indication information.

[0088] In one embodiment, when mapping the first code block stream to the first transmission container, multiple time slot adjustment indication information may 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 respectively carried in the Base1 code block, the APS code block and the Base2 code block in the OAM code block, and the time slot adjustment moment can be determined according to 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 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 respectively carried in the Base1 code block, the pseudo APS code block and the Base2 code block. For S code blocks and Base2 code blocks, the time slot adjustment moment is determined according to the position of the first Base1 code block after the Base2 code block carrying the time slot adjustment indication information; alternatively, when the OAM code block includes an APS code block, a pseudo-APS code block may be configured before or after the APS code block, and multiple time slot adjustment indication information may be respectively carried in the Base1 code block, the pseudo-APS code block, and the Base2 code block in the OAM code block, and the time slot adjustment moment may be determined according to the position of the first Base1 code block after the Base2 code block carrying the 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 may be respectively carried in a Base1 code block, a Base2 code block, and an L code block in the OAM code block, and the time slot adjustment time may 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 dummy L code block may be configured in the position of the L code block in the OAM code block, and multiple time slot adjustment indication information may be respectively carried in a Base1 code block, a Base2 code block, and a dummy L code block in the OAM code block, and the time slot adjustment time may be determined based on the position of the first Base1 code block after the dummy L code block carrying the time slot adjustment indication information. Alternatively, when the OAM code block includes an L code block, a dummy L code block may be configured before or after the L code block, and multiple time slot adjustment indication information may be respectively carried in a Base1 code block, a Base2 code block, and a dummy L code block in the OAM code block, and the time slot adjustment time may be determined based on the position of the first Base1 code block after the dummy L code block carrying the time slot adjustment indication information.

[0092] In one embodiment, the time slot adjustment indication code block may include check bit information, wherein the check bit information may be used to check the correctness of the time slot adjustment indication information.

[0093] Figure 27 is a flowchart of a process for a first node to negotiate and determine a time slot adjustment strategy according to an embodiment of the present application. When the first node negotiates with a downstream node and a sink node to determine a time slot adjustment strategy, as shown in Figure 27, the process of determining the time slot adjustment strategy may include but is not limited to steps S2710 to S2720.

[0094] Step S2710: The time slot adjustment policy information is sent to the sink node via the downstream node, so that the downstream node and the sink node determine the time slot adjustment policy according to the time slot adjustment policy information.

[0095] Step S2720: upon receiving the time slot adjustment strategy response information returned by the sink node through the downstream node, it is determined that the time slot adjustment strategy is determined through negotiation with the downstream node and the sink node.

[0096] In one embodiment, the time slot adjustment policy information may include time slot adjustment application information and pending adjustment information, wherein the time slot adjustment application information is used to request time slot adjustment, and the pending adjustment information is used to determine the policy content of the time slot adjustment policy.

[0097] The time slot adjustment method provided in the embodiment of the present application is described in detail below with specific examples.

[0098] For example, as shown in FIG8 , FIG8 is a schematic diagram of inserting time slot adjustment information into a service flow according to an embodiment of the present application. In current related technologies, Ethernet packets are transmitted by encoding them into fixed-length code blocks, typically 66-bit code blocks. As shown in FIG8 , when a customer service is in the delivery state, specially defined code blocks can be inserted into the customer service code block stream, referring to the code blocks with a white background in FIG8 . These specially defined code blocks include a time slot adjustment indication code block and a time slot switching timing code block. These specially defined code blocks can carry corresponding time slot adjustment indication information, wherein the time slot adjustment indication information includes a time slot adjustment indication signal and a time slot switching indication signal. In the example of FIG8 , the time slot adjustment indication code block can carry three time slot adjustment indication signals: C1, C2, and C3. The three data values ​​C1, C2, and C3 form a group. C1, C2, and C3 are indication signals with the same function. These indication signals appear three times. The majority judgment principle is adopted to avoid obtaining correct judgments in scenarios where a single bit error occurs. It should be noted that this example uses three indication signals, and the specific implementation process can also be other times, for example, five indication signals. C1, C2, and C3 represent indication signals for time slot adjustment. The three indication signals for time slot adjustment can adopt the majority judgment principle, wherein when at least two indication signals for time slot adjustment are valid, it indicates that the final judgment result of the time slot adjustment indication signal is a valid indication signal; when at least two indication signals among the three indication signals for time slot adjustment are invalid, it indicates that the final judgment result of the time slot adjustment indication is an invalid indication signal. C1, C2, and C3 can represent indication signals for time slot adjustment, and can also be used to indicate that the service bandwidth and the data of the bearer time slot are about to change, so as to realize the notification function for a period of time in advance to prepare for the work. The time slot switching time 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 the service bandwidth and the number of time slots carrying customer services. When the time slot adjustment indication signal is valid, the bandwidth of the customer service at the time position of the CCC signal will change. When each device detects the CCC signal, it will also synchronously enable the adjusted number of time slots, thereby realizing the synchronous adjustment of the number of time slots and service bandwidth.

[0099] It's worth noting that in the Ethernet standard, the o code block is a control code block. The two-bit synchronization header has a value of "10" and the control word is "0x4B." Bits 34-37 of the code block are the o sequence value of the o code block. Different sequence values ​​represent different types of o code blocks, as shown in the upper figure of Figure 9. The current standard already uses the o sequence values ​​of 0x0, 0x1, 0x2, 0x5, and 0xF. Therefore, o code blocks carrying other sequence values ​​can be defined as special-defined code blocks carrying time slot adjustment information. As shown in the lower figure of Figure 9, an o code block with a sequence value of 0xE is used as a special-defined code block for the time slot adjustment indication signal.

[0100] In one embodiment, a 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. A code block that meets this flag value is a code block carrying time slot adjustment indication information. The first byte in the o code block is the control word. In Figure 9 , the three bytes following the control word (D2, D3, and D4) are data bytes. The meaning of the data bytes is determined by the o code block sequence value type. When the o code block sequence value is defined as carrying a time slot adjustment indication code block, the three bytes D2, D3, and D4 can carry time slot adjustment indication information, such as C1 function information, C2 function information, C3 function information, and CCC function information. In the lower figure of Figure 9 , a D2 value of 00 indicates a time slot adjustment indication code block for the C1 function, a D2 value of 01 indicates a time slot adjustment indication code block for the C2 function, a D2 value of 10 indicates a time slot adjustment indication code block for the C3 function, and a D2 value of 11 indicates a time slot adjustment indication code block for the CCC function. In a specific implementation, the D2 byte content can also use other values ​​to represent the C1, C2, C3, or CCC function information. Of course, in addition to carrying function information values ​​in the D2 byte, it can also be carried by the D3 byte or the D4 byte.

[0101] In one embodiment, as shown in FIG5 , the source device may act as the head node, device 2 and device 3 may act as intermediate nodes, and device 4 may act as the tail node. When a timeslot needs to be increased, the source device may initiate a bandwidth increase adjustment request. Specifically, the source device sends a bearer frame carrying an adjustment request signal CR and the corresponding timeslot to device 2. Device 2 is an intermediate device and can receive the request signal CR and the corresponding timeslot. After device 2 confirms and approves the request, device 2 may forward the request signal CR and the corresponding timeslot to device 3. It is understood that device 3 is also an intermediate device and can receive the request signal CR and the corresponding timeslot. After device 3 confirms and approves the request, device 3 may forward the request signal CR and the corresponding timeslot to device 4. It should be noted that device 4 is a sink device and can receive the request signal CR and the corresponding time slot. After confirmation and approval by device 4, device 4 can return a response signal CA and the corresponding time slot to device 3. Device 3 can receive the response signal CA and the corresponding time slot sent by device 4 and, after confirmation, return 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 sent by device 3 and, after confirmation, return the response signal CA and the corresponding time slot to source device 1. After receiving the response information CA and the time slot sent by device 2, source device 1 confirms that all adjusted time slots have received the response CA information. The source device then inserts a special definition code block carrying the time slot adjustment indication into the service flow. It sends three special definition code blocks carrying the time slot adjustment indication values ​​C1, C2, and C3, respectively, and sends the special definition code blocks along with the service flow code blocks to device 2. Thereafter, source device 1 can insert a special definition code block carrying the time slot switching timing indication CCC value at the scheduled time and adjust the bandwidth of the client service flow accordingly. After source device 1 transmits a special-defined code block carrying a switching timing indicator signal CCC value, it correspondingly increases the number of time slots carrying customer services. While receiving customer services, the receiving side of device 2 can detect the type of code blocks within the customer services. If a special-defined code block carrying a time slot adjustment indicator signal C1, C2, or C3 value is detected in the customer service code block stream, it determines, based on the majority rule, that the final value of the time slot adjustment indicator is a valid indication, prepares for time slot adjustment, and continues to detect special-defined code blocks carrying a time slot switching timing indicator signal CCC value in the customer service stream. Upon detecting a special-defined code block carrying a time slot switching timing indicator signal CCC value, the receiving side of device 2 also increases the number of time slots, allowing customer services to be extracted at the new number of time slots. When the customer service code block stream is transmitted to the transmitting side of device 2, the transmitting side of device 2 can prepare for adjustment upon detecting a special-defined code block carrying a time slot adjustment indicator signal C1, C2, or C3 value. Upon detecting a special-defined code block carrying a time slot switching timing indicator signal CCC value, the transmitting side of device 2 can also 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 adopt the same operation method. After the receiving end of device 4 completes the time slot adjustment work, the number of bearer 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 actual applications, the customer service flow can be in the form of a code block flow. The customer's code block can be mapped to the time slot selected in the bearer frame in Figure 1 for carrying. The customer service code block flow is only carried on the corresponding selected time slot in the bearer frame. For example, the customer originally only carried services on time slot 3 and time slot 15. After the adjustment, the selected bearer frame carries services on time slot 3, time slot 8 and time slot 15. This time the bandwidth adjustment is to add time slot 8. After the adjustment, the customer service is carried on time slots 3, 8 and 15. In this way, the customer service code block flow carries a time slot adjustment indication special definition code block that appears on one of the time slots 3 and 8 in the bearer frame, but it is not certain whether it appears on time slot 3 or time slot 8 this time. As shown in Figure 10, the time slot adjustment indication special definition code block can appear at some time in the middle of the bearer frame. For the time slot adjustment indicator code blocks carrying the time slot adjustment indicator C1, C2, and C3 values, the receiving side simply 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 indicator validity result can be determined according to the majority judgment principle. It can be understood that the different positions of these three time slot adjustment indicator code blocks in the bearer frame do not affect the decision result. The time slot switching time code block carrying the time slot switching time indicator CCC value can also appear in any time slot carrying customer services. In Figure 10, the time slot switching time code block carrying the time slot switching time indicator CCC value can appear in time slot 3. At this time, 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 the application of this example, although the time slots carrying customer services are replaced by time slot 3 and time slot 15 to time slot 3, time slot 8 and time slot 15 starting from time slot 4, time slot 4, time slot 5, time slot 6 and time slot 7 do not belong to the time slots carrying this customer. Therefore, time slot 4, time slot 5, time slot 6 and time slot 7 do not carry this customer's services. In actual applications, this is also possible. As shown in Figure 11, after time slot 3, the next valid time slot carrying this customer can be time slot 8, or time slot 8 can be used as the reference time point to switch to the new time slot number starting from time slot 8. In this frame, starting from time slot 8, the original combination of time slot 3 and time slot 15 for carrying customer services is changed to the combination of time slot 3, time slot 8 and time slot 15 for carrying customer services. In specific applications, in addition to the next time slot position after the time slot switching time code block carrying the time slot switching time indication CCC value can be used as the reference time point to start the time slot adjustment result, the starting position of the next bearer frame after the time slot switching time code block carrying the time slot switching time indication CCC value (that is, the first time slot of the next bearer frame) can also be used as the reference time point to start the time slot adjustment. As shown in Figure 12, the bearer customer service can be replaced by the combination of time slot 3 and time slot 15 to the combination of time slot 3, time slot 8 and time slot 15.In actual applications, as shown in Figure 13, the starting position of the first bearer frame in the multiframe of the next bearer frame after the time slot switching time code block carrying the time slot switching time indication CCC value (that is, the first time slot of the first frame in the next multiframe) can be used as the reference time point to start time slot adjustment, and the bearer customer service is replaced from time slot 3 and time slot 15 to time slot 3, time slot 8 and time slot 15.

[0103] In one embodiment, multiple special definition blocks carrying time slot adjustment indicators can be inserted into a service flow and transmitted along with the service flow blocks. Multiple special definition blocks can be sent at a fixed interval (T), as shown in Figure 14 , with a fixed number of client blocks between each special definition block. By sending special definition blocks carrying time slot adjustment indicators at a fixed interval (T), the locations of other special definition blocks can be determined from any one special definition block. For example, the location of a special definition block carrying the time slot adjustment indicator C1 can be used to predict the location of special definition blocks carrying the time slot adjustment indicators C2 and C3, as well as the time slot switching timing indicator CCC. The location of any one of the special definition blocks C1, C2, and C3 can also be used to predict the location of the special definition block carrying the CCC value. Since the special-defined code block with the CCC value only serves as a reference time point for time slot adjustment, it is merely a time point. If the specific location of the special-defined code block with the CCC value can be predicted, the reference time point can be determined. This special-defined code block no longer needs to exist. The special-defined code block carrying the CCC value can be omitted, and the client code block positions (the number of client service code blocks in the T period length) following the position of the code block carrying the time slot adjustment indicator C3 are used as the reference time point for time slot adjustment. As shown in Figure 14, the special-defined code block carrying the time slot switching indicator CCC value is white, indicating that this code block does not exist and is only represented virtually. By setting an agreed reference time point in advance, the reference time point for time slot adjustment can be determined by using special-defined code blocks carrying the time slot adjustment indicators C1, C2, and C3. The actual code block carrying the time slot switching indicator CCC signal is no longer required, thus reducing the bandwidth loss caused by inserting this code block. In practical applications, the intervals between specially defined code blocks carrying time slot adjustment indicators C1, C2, and C3 can be the same T1 value, and the intervals between time slot switching time code blocks carrying time slot switching indicator CCC and time slot adjustment indicator C3 can be another T2 value. As shown in Figure 15, the T2 value can be a smaller value to execute the 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 actual applications, since the length of customer messages is random and uncertain, sometimes long messages are encountered and sometimes short messages are encountered. In scenarios where special definition code blocks are not allowed to be inserted in the middle of the message, when time slot adjustment indication code blocks such as time slot adjustment indication C1, C2, and C3 are inserted at fixed intervals, the expected insertion positions of these code blocks may be in the middle of the message. In this case, the special definition code blocks can only be inserted after the current message is transmitted. As shown in Figure 16, special definition code blocks such as time slot adjustment indication C1, C2, and C3 can be inserted and sent at equal intervals. The expected position of the special definition code block indicated by the time slot adjustment indication C3 can be in the middle of the message, but the code block cannot be inserted immediately in time. It needs to be inserted after the message transmission is completed. Otherwise, the actual position of the special definition code block indicated by the time slot adjustment indication C3 will be inconsistent with the expected position. In actual applications, when detecting a special-defined code block at an expected position, if the expected position is one of the three types of code blocks in a client message (message code blocks include S code blocks, D code blocks, and T code blocks), the actual position of the special-defined code block follows the message's end code block, T code block. For the omitted special-defined code blocks carrying the time slot switching timing indication CCC information, since no actual code blocks are inserted, the position is always determined based on the expected position. The reference time point for time slot adjustment (i.e., the expected position of the special-defined code block carrying the time slot adjustment indication CCC information) is determined based on the expected position of the special-defined code blocks carrying the time slot adjustment indication C1, C2, and C3 and the code block interval value. Referring to FIG. 16 , the adjustment reference time point is calculated based on the special-defined code blocks carrying the time slot adjustment indication CCC information at a D code block position, and time slot adjustment can begin at this D code block position. In actual applications, to facilitate adjustment of customer service speeds, the customer service speed is generally changed after the current message ends and at the start of the next message, rather than at the D block position within the message. In specific applications, although the adjustment reference time point is calculated at the D block position of the message, when the time slot adjustment is actually performed, the adjustment reference time point calculated at the D block position (in addition to the D block, this also includes three types of code blocks in the customer message that may be located at the S block, T block, etc.) can be modified to the first code block after the T block at the end of the message. As shown in Figure 16, the execution time of the first code block after the T block of the current message is used as the corrected adjustment time point, which is the actual time slot adjustment execution time.

[0105] It's worth noting that in applications, to monitor the quality of service (QoS) of customer service bearer channels, OAM blocks are typically inserted into the customer service flow. By monitoring the information contained in the OAM blocks, QoS can be determined. The MTN standards published by the International Telecommunication Union (ITU) define the format and types of OAM blocks. An OAM block is a specially defined 66-bit O block with an O sequence value of 0xC. This means the block's signature consists of a synchronization header bit of "10," a control word of 0x4B, and an O sequence value of 0xC. OAM blocks come in many different types, including Base, APS, and L. Base blocks are basic functional blocks with a single block structure, divided into two subclasses: Base1 and Base2, referred to as B1 and B2 blocks. APS blocks are protection blocks with a multi-block structure, consisting of two blocks. L blocks are low-priority blocks, further divided into subclasses such as CV, CS, 1DM, and 2DM. Some subclasses have a single block structure, while others have multiple blocks. OAM blocks can be sent in a fixed order with equal intervals of period T. As shown in Figure 17, the sequence of B1, A, B2, and L can be a small cycle, with every 64 small cycles forming a large cycle. In the L code block position of each small cycle within the large cycle, the L code block position of the 1st to 17th small cycles can be a CV code block, the L code block position of the 18th small cycle can be a CS code block, the L code block position of the 19th to 31st small cycles can be a 1DM / 2DM code block, and the L code block position of the 32nd to 64th small cycles can be a reserved position. The reserved position is currently defined as vacant and no L code block is sent. Referring to Figure 18, in the application, the B1, A, B2, and L code blocks can be OAM code blocks defined by existing standards. These OAM code blocks can be functionally expanded to simultaneously carry C1, C2, and C3 indication information. As shown in Figure 18, the B1 code block simultaneously carries C1 indication information, the A code block simultaneously carries C2 indication information, and the B2 code block simultaneously carries C3 indication information. The B1 code block of the next small cycle is used as the time slot switching reference point for carrying the CCC indication information function. In this way, the existing OAM code blocks can realize the indication information and switching time indication functions of lossless bandwidth adjustment.

[0106] It is understandable that, in the standard definition, APS code blocks can be sent only when the customer enables the APS protection function. If the APS protocol and function are not enabled in the customer application, the corresponding position is vacant and no APS code blocks are sent.

[0107] In one embodiment, the L block is not transmitted in the L block position in the 32nd-64th B1, A, B2, and L mini-cycles. In this case, a specially defined block, called a pseudo-APS block (or pseudo-A block, or C2 block), is transmitted in the APS block position. This results in the transmitted OAM sequence format shown in Figure 19 . The B1, pseudo-A, and B2 blocks can transmit the C1, C2, and C3 indication adjustment signals, with the B1 block position in the next mini-cycle serving as the agreed time slot adjustment reference point. When APS blocks are disabled, a pseudo-APS block, or a specially defined C2 indicator block, is transmitted along with the B1 and B2 blocks. In practical applications, in addition to transmitting the C1, C2, and C3 indication signals via the B1, A, and B2 blocks, the C1, C2, and C3 indication signals can also be transmitted via the B1, B2, and L blocks. The L code block function is extended. The L code block can carry C3 adjustment indication information. As shown in Figure 20, when the L code block is vacant, a pseudo L code block (also called C3 code block) can be sent to carry C3 adjustment flag information.

[0108] It is worth noting that the OAM code block established by the ITU international standard is a 66-bit code block. It 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. The specific format is shown in Table 1 below:

[0109] Table 1 Format of the OAM code block with the newly defined o sequence value

[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 the SoM bit and the EoM bit can be used to indicate the composition order of multiple code blocks and distinguish the first block, middle block, and tail block in multiple code blocks. The specific definitions are shown in Table 2:

[0111] Table 2 Definition of the combination relationship between SoM bit and EoM bit

[0112] Among them, the type field in the OAM code block is used to indicate the type of OAM code block, such as Base code block (abbreviated as B code block), APS code block (abbreviated as A code block), 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. The Base code block is divided into two subcategories, B1 and B2 (i.e., Base1 code block and Base2 code block). The contents of the two B code blocks are the same, but they are divided into B1 and B2 subcategories to determine the different positions in the order relationship of B1 (i.e., Base1 code block), A (i.e., APS code block), B2 (i.e., Base2 code block), and L (i.e., L code block). B1 is located in front of the adjacent position of the A code block, and B2 is located behind 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 block

[0114] Among them, bit 18, bit 19, and bit 20 in the B code block are represented by res, indicating that these positions have not been enabled and are reserved information. Any one of the bits can be enabled as the time slot adjustment indication C information function, see Table 5, and bit 21 can be enabled as the time slot adjustment indication C information carrying function. The B1 code block and the B2 code block can represent the time slot adjustment indication C1 and C3 information, or the time slot adjustment indication C1 and C2 information. The definition of the B code block is shown in Table 4:

[0115] Table 4 adds the B code block definition of the time slot adjustment indication C information

[0116] In addition, the APS code block consists of two code block sequences (abbreviated as A1 code block and A2 code block). Each code block can carry 2 bytes of content. The two code blocks together have 4 bytes to form the APS protocol content. The APS format is shown in Table 5:

[0117] Table 5 APS format table

[0118] Among them, 4 bits in the second code block of the APS code block sequence group are reserved and not enabled. Any bit can be enabled as the function of carrying the time slot adjustment indication C2 information. See Table 6. 21 bits can be enabled as the function of carrying the time slot adjustment indication C2 information. The APS code block structure after the new function is extended is shown in Table 6:

[0119] Table 6 APS code block structure after extending new functions

[0120] Since only the second APS code block (A2 code block) has a reserved field that can be expanded to carry the time slot adjustment indication information, as shown in Figure 21, in the application, only the second APS code block (A2) and the previous B1 code block and the next B2 code block can be selected to carry the three bits of time slot adjustment indication information C1, C2, and C3. In other words, the small cycle of B1, A2, B2, and L is selected to carry the time slot adjustment indication. However, in the small cycle of B1, A1, B2, and L, the time slot adjustment indication information cannot be carried because the A code block does not have extended bits. It should be noted that if time is tight and the time slot adjustment indication needs to be carried in the small cycle of B1, A1, B2, and L, as shown in Figure 22, a special 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 the time slot adjustment indication. The SoM and EoM values ​​in a normal A-code block are "10" or "01". The pseudo-code block can use the same A-code block format, except that the SoM and EoM values ​​are "11" to distinguish the A-code block that transmits the APS protocol, as shown in Table 7:

[0121] Table 7 Format of pseudo code block

[0122] When it is detected that the format of the code block is the type value of the A code block, but the SoM and EoM values ​​are "11", it can be determined that the code block is a pseudo-A code block, and the pseudo-A code block can be used to transmit the time slot adjustment indication C2 information. In addition to the above-mentioned use of the type value of the A code block to express the format of the pseudo-A code block, other different type values ​​can also be used to identify the function of the pseudo-A code block or C2 code block. Similarly, when the B code block is not extended to carry the information of the time slot adjustment indication C1, C2, and C3, the code block carrying the time slot adjustment indication C1, C2, and C3 can also be sent by inserting a pseudo-B code block separately. 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 CV code block, CS code block, 1DM code block, 2DM code block, etc. in the L code block also have reserved bits, and any reserved bit can be enabled as the function of carrying time slot adjustment indication information.

[0124] In one embodiment, if there is no space for an L code block, a dummy L code block (or C3 code block) can be sent separately to carry the time slot adjustment indication information. If there are no reserved bits in the L code block in the current B1, A, B2, or L cycles to extend and transmit the time slot adjustment indication, a special code block, such as a C3 code block, can be inserted before or after the L code block to supplement and transmit a time slot adjustment indication.

[0125] In one embodiment, OAM code blocks can be sent in a fixed order with equal intervals according to a period T. B1, A, B2, and L form a small sequential cycle, and every 64 small cycles form a large cycle. In the L code block position of each small cycle, the L position of the 1st to 17th small cycles is a CV code block, the 18th is a CS code block, the 19th to 31st is a 1DM / 2DM code block, and the 32nd to 64th are reserved positions. The currently defined reserved positions are vacant and no L code blocks are sent. A specially defined pseudo L code block (such as an LC code block) can be sent in the L code block position of the 32nd to 64th small cycles to convey a time slot adjustment indication. Referring to Figure 23, as shown in Figure 23, a specially defined pseudo L code block (called an LC code block) can be selected to be sent in the L code block position of the 32nd, 33rd, and 34th small cycles to convey the time slot adjustment indication. The B1 code block of the next small cycle (the 35th small cycle) is used as the reference base time for executing the time slot adjustment. In practical applications, you can also select the L code block position in the 33rd, 34th, and 35th small cycle periods to send a specially defined pseudo L code block. It should be noted that these are all within the scope of this application.

[0126] In the aforementioned embodiment, the time slot adjustment indication information is transmitted multiple times, and the majority judgment result is used as the final result of the adjustment indication information. The majority judgment principle can tolerate certain transmission errors and prevent incorrect judgment results due to minor information errors. For example, the majority judgment principle for three transmissions can tolerate any one transmission error, and the majority judgment principle for five transmissions can tolerate any two transmission errors. The majority judgment principle requires multiple transmissions. Another method to improve error tolerance is to add a parity bit to each transmission to determine whether the information transmitted in a single transmission is correct. There are three reserved bits in the B code block, and any two of them 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 the bip bit is the parity bit for the C bit. Even or odd parity can be used. 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's a fixed relationship between the C value 1 and the BIP value; they can only be "11" or "00." In the case of a single-bit error, if the C bit and BIP bit values ​​become "10" or "01," these two values ​​indicate an error, indicating a possible C bit error. Using a checksum-enabled time slot adjustment indication message eliminates the need for three or five transmissions, requiring only two. In the event of a bit error, only one information error occurs. Thus, even if one error occurs, the other value is still valid. As shown in Figure 24, the B1 and B2 code blocks carry the checksum-enabled time slot adjustment indication message. When the BIP value and C value of any B code block are combined to determine the corresponding C value is correct, the determined C value becomes the final time slot adjustment indication message. In Figure 24, the B1 and B2 code blocks carry the checksum-enabled time slot adjustment indication message, with the next B code block serving as the reference time for time slot adjustment.

[0127] Table 8 B code block format table

[0128] In the above-described embodiment, during end-to-end time slot adjustment, the source device begins sending a time slot adjustment request. The adjusted time slot numbers between the source device, intermediate network devices, and sink device can be identical. Thus, the intermediate network devices only need to forward the time slot adjustment request signal, the time slot number, and the time slot adjustment response signal to implement the end-to-end time slot adjustment handshake negotiation process. In actual applications, since each node device may have different configured time slots, the remaining time slot numbers between devices may be inconsistent. Adjacent nodes only need to ensure that the number of adjusted time slots is consistent; the time slot positions and names do not need to be completely identical. As shown in Figure 25, between source device 1 and downstream device 2, time slot 2 and idle time slot 3 can be selected for adjustment. Between device 2 and device 3, time slots 5 and 8 can be selected for adjustment. Between device 3 and device 4, time slots 1 and 7 can be selected for adjustment. In this way, the request signal CR, response signal CA, and corresponding adjusted time slot number between each adjacent device can be correlated and have a one-to-one correspondence with the corresponding adjusted time slot. When the source node sends the adjustment indication signal C, the adjustment indication signal may 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 CR valid information, the intermediate device can parse the received CR valid information and forward it to the downstream device, all the way to the destination device. In some special or abnormal circumstances, the intermediate or destination device may determine that the time slot adjustment request cannot be met based on the number of time slots requested, 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 sufficient idle time slots between device 1 and device 2 to meet the requirement, and there are sufficient idle time slots between device 2 and device 3 to meet the requirement. The adjustment request can be forwarded. However, there are insufficient idle time slots between device 3 and device 4 to meet the requirement, and device 3 cannot continue to forward the time slot adjustment request information to device 4. The time slot adjustment request is rejected. In this case, device 3 can directly send an adjustment failure response signal (CA_fail) back to the upstream device and not allocate the time slots requested by device 2. After receiving the feedback adjustment failure response signal CA_fail, device 2 cancels the applied time slot and continues to send it back to the upstream device 1. After receiving the feedback adjustment failure response signal CA_fail, device 1 determines that the time slot adjustment application has failed, withdraws the applied time slot adjustment application content, and cancels the already applied time slot adjustment operation, thus completing the time slot application cancellation process.

[0130] In the aforementioned embodiment, the customer number of the corresponding time slot can be changed from an invalid number to a valid number, indicating that the corresponding time slot is added, and the customer number of the corresponding time slot can be changed from a valid number to an invalid number, indicating that the corresponding time slot is deleted or reduced. In actual applications, in addition to the change in the customer number indicating the application for adding or deleting the time slot, it can also be expressed in other ways, such as setting an overhead indication bit to indicate the increase indication signal and the deletion indication signal of each time slot, and directly using the increase indication signal and the deletion indication signal to indicate whether each time slot is applying for an increase adjustment or a deletion adjustment. It should be noted that different indication methods are within the scope of this application.

[0131] Referring to Figure 28, Figure 28 is a flowchart of a time slot adjustment method provided by another embodiment of the present application. The time slot adjustment method can be executed by an intermediate node, and the time slot adjustment method can include but is not limited to steps S2810 to S2820.

[0132] Step S2810: After determining the time slot adjustment strategy through negotiation with the upstream node and the downstream node, upon receiving multiple time slot adjustment indication messages sent by the upstream node, determining the time slot adjustment time based on the multiple time slot adjustment indication messages, and completing the time slot adjustment using the time slot adjustment strategy at the time slot adjustment time;

[0133] Step S2820: sending multiple time slot adjustment indication information to the downstream node, so that the downstream node determines the time slot adjustment moment according to the multiple time slot adjustment indication information, and adopts the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment.

[0134] In a feasible implementation, when a customer service is in a 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 node and the downstream node, the intermediate node can receive the time slot adjustment indication information sent by the upstream node and send the time slot adjustment indication information to the downstream node, so that during the service flow transmission process, each node can use the time slot adjustment strategy to complete the time slot adjustment at the determined time slot adjustment moment, reducing the different durations of the service bandwidth change moment and the time slot number change moment, thereby reducing the number of cached services, reducing costs and customer delays.

[0135] In a feasible implementation, after the intermediate node negotiates with the upstream node and the downstream node to determine the time slot adjustment strategy, the intermediate node can also receive the time slot switching time information sent by the upstream node, where 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 a feasible implementation, the time slot switching time information can be carried in the time slot switching time code block in the service flow, and the time slot adjustment time can include one of the following situations: 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 starting 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 starting position of the first bearer frame in the next multiframe of the multiframe where the time slot switching time code block is located or the first time slot of the first bearer frame in the next multiframe.

[0137] In a feasible implementation, the time slot adjustment indication information may be used to indicate that the time slot adjustment policy is effective. In addition, multiple time slot adjustment indication information may be carried in multiple time slot adjustment indication code blocks in a service flow.

[0138] In a feasible implementation, the time slot switching time information can be carried in the time slot switching time code block in the service flow, and there can be equal or unequal numbers of first code blocks between two adjacent time slot adjustment indication code blocks and between the time slot switching time code block and the last time slot adjustment indication code block sent.

[0139] In a feasible implementation, when the slot switching moment information is carried in the slot switching moment code block in the service flow, there are a first number of first code blocks between two adjacent slot adjustment indication code blocks, and there are a second number of first code blocks between the slot switching moment code block and the last time slot adjustment indication code block sent. It should be noted that the second number is not equal to the first number.

[0140] In a feasible implementation manner, the time slot switching time code block may be determined according to the first quantity and the position of any time slot adjustment indication code block.

[0141] In a feasible implementation, the time slot switching moment code block corresponds to an expected position in the service flow, and the expected position can be determined based on the first quantity and the position of any time slot adjustment indication code block. When the code block corresponding to the expected position is a code block in the data message, the time slot switching moment code block is the first code block after the end code block in the data message.

[0142] In a feasible embodiment, the time slot adjustment indication code block and the time slot switching moment code block can have the same code block type, and the time slot adjustment indication code block and the time slot switching moment code block can both include a time slot adjustment function field. The time slot adjustment function field in the time slot adjustment indication code block can be used to carry time slot adjustment indication information, and the time slot adjustment function field in the time slot switching moment code block can be used to carry time slot switching moment information.

[0143] In a feasible embodiment, the time slot adjustment indication code block and the time slot switching moment code block can also 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 can be used as a flag value for indicating the time slot adjustment indication code block or the time slot switching moment code block.

[0144] In this embodiment, by adopting the time slot adjustment method including the above-mentioned steps S2810 to S2820, after the intermediate node negotiates with the upstream node and the downstream node to determine the time slot adjustment strategy, when the intermediate node receives multiple time slot adjustment indication information sent by the upstream node, it can determine the time slot adjustment moment according to the multiple time slot adjustment indication information, and adopt the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment. By sending multiple time slot adjustment indication information to the downstream node, the downstream node can determine the time slot adjustment moment according to the multiple time slot adjustment indication information, and adopt the corresponding time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment. Therefore, the different durations of the service bandwidth change moment and the time slot number change moment can be reduced, thereby reducing the number of cached services, reducing network overhead costs and customer service delays.

[0145] In one embodiment, multiple time slot adjustment indication information may be carried in multiple time slot adjustment indication code blocks in a service flow, and the time slot adjustment moment may be determined according to the position of any time slot adjustment indication code block.

[0146] In one embodiment, there is a third number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot adjustment time can be determined according to the time slot adjustment reference time, and the time slot adjustment reference time can be determined according to the third number and the position of any time slot adjustment indication code block.

[0147] In one embodiment, the time slot adjustment moment may include one of the following situations: the time slot adjustment moment is the next time slot of the time slot where the time slot adjustment reference moment is located; the time slot adjustment moment is the starting position or the first time slot of the next bearer frame of the bearer frame where the time slot adjustment reference moment is located; the time slot adjustment moment is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot adjustment reference moment is located or the first time slot of the first bearer frame in the next multiframe.

[0148] In one embodiment, there are a fourth number of first code blocks between the time slot adjustment reference time and the last transmitted time slot adjustment indication 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 indication 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 indication information.

[0150] In one embodiment, multiple time slot adjustment indication information may be carried in an OAM code block in a service flow.

[0151] In one embodiment, when the OAM code block includes an APS code block, multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the APS code block and the Base2 code block in the OAM code block, and the time slot adjustment moment can be determined according to 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 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 respectively carried in the Base1 code block, the pseudo APS code block and the Base2 code block. For S code blocks and Base2 code blocks, the time slot adjustment moment can be 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 APS code block, a pseudo-APS code block is configured before or after the APS code block, and multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the pseudo-APS code block and the Base2 code block in the OAM code block, and the time slot adjustment moment can be determined based on the position of the first Base1 code block after the Base2 code block carrying the 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 may be carried in the second APS code block.

[0153] In a feasible implementation, when the OAM code block includes an L code block, multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the Base2 code block, and the L code block in the OAM code block, and 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; or, when the OAM code block does not include an L code block, a dummy L code block is configured in the position of the L code block in the OAM code block, multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the Base2 code block, and the dummy L code block in the OAM code block, and the time slot adjustment time can be determined based on the position of the first Base1 code block after the dummy L code block carrying the time slot adjustment indication information; or, when the OAM code block includes an L code block, a dummy L code block is configured before or after the L code block, multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the Base2 code block, and the dummy L code block in the OAM code block, and the time slot adjustment time can be determined based on the position of the first Base1 code block after the dummy L code block carrying the time slot adjustment indication information.

[0154] In one embodiment, the time slot adjustment indication code block may further include check bit information, and the check bit information may be used to check the correctness of the time slot adjustment indication information.

[0155] In one embodiment, after the intermediate node receives multiple time slot adjustment indication messages sent by the 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, see FIG. 29 , which is a flowchart of a process for an intermediate node to negotiate and determine a time slot adjustment strategy, as provided in an embodiment of the present application. When the intermediate node negotiates with the upstream node and the downstream node to determine a time slot adjustment strategy, as shown in FIG. 29 , the process of determining the time slot adjustment strategy may include, but is not limited to, steps S2910 to S2940:

[0157] Step S2910: receiving the time slot adjustment policy information sent by the upstream node, and determining the time slot adjustment policy according to the time slot adjustment policy information;

[0158] Step S2920: Sending the time slot adjustment strategy information to the downstream node, so that the downstream node determines the time slot adjustment strategy according to the time slot adjustment strategy information;

[0159] Step S2930: upon receiving the time slot adjustment strategy response information returned by the downstream node, determining that the time slot adjustment strategy has been determined through negotiation with the downstream node;

[0160] Step S2940: forwarding the time slot adjustment strategy response information to the upstream node, so that the upstream node determines that the time slot adjustment strategy has been determined through negotiation.

[0161] In one embodiment, the time slot adjustment policy information may further include time slot adjustment application information and pending adjustment information, wherein the time slot adjustment application information may be used to request time slot adjustment, and the pending adjustment information may be used to determine the policy content of the time slot adjustment policy.

[0162] It should be noted that in the time slot adjustment method performed by the intermediate node provided in the embodiment of the present application, the relevant structural description of the OAM code block involved, as well as the description of the time slot adjustment process completed by the intermediate node through interaction with the upstream node and the downstream node, can refer to the relevant description content in the previous embodiment. In order to avoid redundant content, it will not be repeated here.

[0163] 30 , FIG30 is a flowchart of a time slot adjustment method provided by another embodiment of the present application. The time slot adjustment method may 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 determining the time slot adjustment strategy through negotiation with the upstream node, upon receiving multiple time slot adjustment indication information sent by the upstream node, determining the time slot adjustment time according to the multiple time slot adjustment indication information;

[0165] Step S3020: At the time of time slot adjustment, the time slot adjustment strategy is adopted to complete the time slot adjustment.

[0166] In a feasible implementation, when a customer service is in a delivery 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 indication information sent by the upstream node, so that during the service flow delivery process, each node can use the time slot adjustment strategy to complete the time slot adjustment at the determined time slot adjustment moment, reducing the different durations of the service bandwidth change moment and the time slot number change moment, thereby reducing the number of cached services, reducing costs and customer delays.

[0167] In a feasible implementation, after the tail node determines the time slot adjustment strategy through negotiation with the upstream node, it may further 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.

[0168] In a feasible implementation, the time slot switching time information can be carried in the time slot switching time code block in the service flow, and the time slot adjustment time can include one of the following situations: 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 starting 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 starting position of the first bearer frame in the next multiframe of the multiframe where the time slot switching time code block is located or the first time slot of the first bearer frame in the next multiframe.

[0169] In a feasible implementation manner, the time slot adjustment indication information may also be used to indicate that the time slot adjustment policy is effective, and multiple time slot adjustment indication information may be carried in multiple time slot adjustment indication code blocks in the service flow.

[0170] In a feasible implementation, the time slot switching time information can be carried in the time slot switching time code block in the service flow, and there can be equal or unequal numbers of first code blocks between two adjacent time slot adjustment indication code blocks and between the time slot switching time code block and the last time slot adjustment indication code block sent.

[0171] In a feasible implementation, when the slot switching moment information is carried in the slot switching moment code block in the service flow, there are a first number of first code blocks between two adjacent slot adjustment indication code blocks, and there are a second number of first code blocks between the slot switching moment code block and the last time slot adjustment indication code block sent. It should be noted that the second number is not equal to the first number.

[0172] In a feasible implementation manner, the time slot switching time code block may be determined according to the first quantity and the position of any time slot adjustment indication code block.

[0173] In a feasible implementation, the time slot switching moment code block corresponds to an expected position in the service flow, and the expected position can be determined based on the first quantity and the position of any time slot adjustment indication code block. When the code block corresponding to the expected position is a code block in the data message, the time slot switching moment code block is the first code block after the end code block in the data message.

[0174] In a feasible embodiment, the time slot adjustment indication code block and the time slot switching moment code block can have the same code block type, and the time slot adjustment indication code block and the time slot switching moment code block can both include a time slot adjustment function field. The time slot adjustment function field in the time slot adjustment indication code block can be used to carry time slot adjustment indication information, and the time slot adjustment function field in the time slot switching moment code block can be used to carry time slot switching moment information.

[0175] In a feasible embodiment, the time slot adjustment indication code block and the time slot switching moment code block also 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 indication code block or the time slot switching moment code block.

[0176] In this embodiment, by adopting the time slot adjustment method including steps S3010 to S3020, after the tail node and the upstream node have negotiated and determined the time slot adjustment strategy, when the tail node receives multiple time slot adjustment indication information sent by the upstream node, the time slot adjustment moment can be determined based on the multiple time slot adjustment indication information, and the time slot adjustment can be completed using the corresponding time slot adjustment strategy at the time slot adjustment moment. Therefore, the different durations of the service bandwidth change moment and the time slot number change moment can be reduced, thereby reducing the number of cached services, reducing network overhead costs and customer service delays.

[0177] In one embodiment, multiple time slot adjustment indication information may be carried in multiple time slot adjustment indication code blocks in a service flow, and the time slot adjustment moment may be determined according to the position of any time slot adjustment indication code block.

[0178] In one embodiment, there is a third number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot adjustment time can be determined according to the time slot adjustment reference time, and the time slot adjustment reference time can be determined according to the third number and the position of any time slot adjustment indication code block.

[0179] In one embodiment, the time slot adjustment moment may include one of the following situations: the time slot adjustment moment is the next time slot of the time slot where the time slot adjustment reference moment is located; the time slot adjustment moment is the starting position or the first time slot of the next bearer frame of the bearer frame where the time slot adjustment reference moment is located; the time slot adjustment moment is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot adjustment reference moment is located or the first time slot of the first bearer frame in the next multiframe.

[0180] In one embodiment, there may be a fourth number of first code blocks between the time slot adjustment reference time and the last transmitted time slot adjustment indication 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 indication 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 indication information.

[0182] In one embodiment, multiple time slot adjustment indication information may also be carried in an OAM code block in a service flow.

[0183] In one embodiment, when the OAM code block includes an APS code block, multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the APS code block and the Base2 code block in the OAM code block, and the time slot adjustment moment can be determined according to 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 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 respectively carried in the Base1 code block, the pseudo APS code block and the Base2 code block. The time slot adjustment moment may be determined based on the position of the first Base1 code block after the Base2 code block carrying the time slot adjustment indication information. Alternatively, when the OAM code block includes an APS code block, a pseudo-APS code block may be configured before or after the APS code block. Multiple time slot adjustment indication information may be 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 moment may be determined based on the position of the first Base1 code block after the Base2 code block carrying the 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 may be respectively carried in a Base1 code block, a Base2 code block, and an L code block in the OAM code block, and the time slot adjustment time may 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 dummy L code block is configured in the position of the L code block in the OAM code block, and multiple time slot adjustment indication information may be respectively carried in a Base1 code block, a Base2 code block, and a dummy L code block in the OAM code block, and the time slot adjustment time may be determined based on the position of the first Base1 code block after the dummy L code block carrying the time slot adjustment indication information. Alternatively, when the OAM code block includes an L code block, a dummy L code block may be configured before or after the L code block, and multiple time slot adjustment indication information may be respectively carried in a Base1 code block, a Base2 code block, and a dummy L code block in the OAM code block, and the time slot adjustment time may be determined based on the position of the first Base1 code block after the dummy L code block carrying the time slot adjustment indication information.

[0186] In one embodiment, the time slot adjustment indication code block may further include check bit information, wherein the check bit information may be used to check the correctness of the time slot adjustment indication 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, and then determine that the time slot adjustment strategy is effective when the number of valid time slot adjustment indication messages is greater than the number of invalid time slot adjustment indication messages.

[0188] In one embodiment, referring to FIG31 , FIG31 is a flowchart of a process for an egress node to negotiate and determine a time slot adjustment strategy, as provided in an embodiment of the present application. When the egress node negotiates and determines a time slot adjustment strategy with an upstream node, as shown in FIG31 , the process of determining the time slot adjustment strategy may include, but is not limited to, steps S3110 to S3120.

[0189] Step S3110: Receive the time slot adjustment strategy information sent by the upstream node, and determine the time slot adjustment strategy according to the time slot adjustment strategy information.

[0190] Step S3120: Sending time slot adjustment strategy response information to the upstream node, so that the upstream node determines that the time slot adjustment strategy has been determined through negotiation.

[0191] In a feasible implementation, the time slot adjustment policy information may further include time slot adjustment application information and information to be adjusted, wherein the time slot adjustment application information may be used to request time slot adjustment, and the information to be adjusted may be used to determine the policy content of the time slot adjustment policy.

[0192] It should be noted that in the time slot adjustment method performed by the tail node provided in the embodiment of the present application, the relevant structural description of the OAM code block involved and the description of the time slot adjustment process completed by the tail node and the upstream node can refer to the relevant description content in the previous embodiment. In order to avoid redundant content, it will not be repeated here.

[0193] In addition, an embodiment of the present application further 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, a time slot adjustment method as in any of the previous embodiments is implemented.

[0194] In addition, an embodiment of the present application further discloses a computer-readable storage medium, in which computer-executable instructions are stored. The computer-executable instructions are used to execute the time slot adjustment method in any of the previous embodiments.

[0195] In an embodiment of the present application, after negotiating with the downstream node and the host node to determine the time slot adjustment strategy, the first node can adopt the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment, and send multiple time slot adjustment indication information to the host node through the downstream node, so that the downstream node and the host node can determine the time slot adjustment moment according to the multiple time slot adjustment indication information, and adopt the corresponding time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment. Therefore, the different durations of the service bandwidth change moment and the time slot number change moment can be reduced, thereby reducing the number of cached services, reducing costs and customer delays.

[0196] Those skilled in the art will appreciate that all or some of the steps and systems in the method disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include computer storage media (or non-transitory media) and communication media (or temporary media). As known to those skilled in the art, the term computer storage media is included in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data) and is volatile and non-volatile, removable, and non-removable. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory, or other memory technology, CD-ROM, digital versatile disks (DVD), or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage, or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0197] The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above implementation mode. Technical personnel familiar with the field can also make various equivalent modifications or substitutions without violating the spirit of the present application. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present application.

Claims

1. A time slot adjustment method, comprising: After negotiating and determining a time slot adjustment strategy with a downstream node and a sink node, completing time slot adjustment using the time slot adjustment strategy at the time slot adjustment moment; Sending a plurality of time slot adjustment indication messages to the sink node through the downstream node, so that the downstream node and the sink node determine the time slot adjustment moment according to the plurality of time slot adjustment indication messages, and completing time slot adjustment using the time slot adjustment strategy at the time slot adjustment moment.

2. The time slot adjustment method according to claim 1, further comprising: Sending time slot switching moment information to the sink node through the downstream node, where the time slot switching moment information is used to indicate the time slot adjustment moment.

3. The time slot adjustment method according to claim 2, wherein, The time slot switching moment information is carried in a time slot switching moment code block in a service flow, and the time slot adjustment moment includes one of the following situations: The time slot adjustment moment is the next time slot of the time slot where the time slot switching moment code block is located; The time slot adjustment moment is the start position or the first time slot of the next bearer frame of the bearer frame where the time slot switching moment code block is located; The time slot adjustment moment is the start position of the first bearer frame in the next multiple frame of the multiple frame where the time slot switching moment code block is located or the first time slot of the first bearer frame in the next multiple frame.

4. The slot adjustment method according to claim 2, wherein, The time slot adjustment indication information is used to indicate that the time slot adjustment strategy takes effect, and the plurality of time slot adjustment indication messages are carried in a plurality of time slot adjustment indication code blocks in a service flow.

5. The time slot adjustment method according to claim 4, wherein: The time slot switching moment information is carried in a time slot switching moment code block in the service flow; there are an equal or unequal number of first code blocks between two adjacent time slot adjustment indication code blocks and between the time slot switching moment code block and the last sent time slot adjustment indication code block; or, The time slot switching moment information is carried in a time slot switching moment code block in the service flow; there is a first number of first code blocks between two adjacent time slot adjustment indication code blocks; there is a second number of the first code blocks between the time slot switching moment code block and the last sent time slot adjustment indication code block, 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 indication code blocks, the time slot switching moment code block is determined according to the first number and the position of any one of the time slot adjustment indication code blocks.

7. The time slot adjustment method according to claim 6, wherein, The time slot switching moment code block corresponds to an expected position in the service flow, and the expected position is determined according to the first number and the position of any one of the time slot adjustment indication code blocks. When the code block corresponding to the expected position is a code block in a data packet, the time slot switching moment 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 indication code block and the time slot switching moment code block have the same code block type. Both the time slot adjustment indication code block and the time slot switching moment code block include a time slot adjustment function field. The time slot adjustment function field in the time slot adjustment indication code block is used to carry the time slot adjustment indication information, and the time slot adjustment function field in the time slot switching moment code block is used to carry the time slot switching moment information; Both the time slot adjustment indication code block and the time slot switching moment 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 for indicating the time slot adjustment indication code block or the time slot switching moment code block.

9. The slot adjustment method according to claim 1, wherein, Multiple pieces of the time slot adjustment indication information are carried in multiple time slot adjustment indication code blocks in a service flow. The time slot adjustment moment is determined according to the position of any one of the time slot adjustment indication code blocks.

10. The time slot adjustment method according to claim 9, wherein, There is a third quantity of first code blocks between two adjacent time slot adjustment indication code blocks. The time slot adjustment moment is determined according to a time slot adjustment reference moment, and the time slot adjustment reference moment is determined according to the third quantity and the position of any one of the time slot adjustment indication code blocks.

11. The time slot adjustment method according to claim 10, wherein, The time slot adjustment moment includes one of the following situations: The time slot adjustment moment is the next time slot of the time slot where the time slot adjustment reference moment is located; The time slot adjustment moment is the starting position or the first time slot of the next bearer frame of the bearer frame where the time slot adjustment reference moment is located; The time slot adjustment moment is the starting position of the first bearer frame in the next multiple-frame of the multiple-frame where the time slot adjustment reference moment is located or the first time slot of the first bearer frame in the next multiple-frame.

12. The time slot adjustment method according to claim 10, wherein, There is a fourth quantity of the first code blocks between the position where the time slot adjustment reference moment is located and the last sent time slot adjustment indication code block, and the fourth quantity is less than or equal to the third quantity.

13. The time slot adjustment method according to any one of claims 9 to 12, wherein, The time slot adjustment indication 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, and 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 indication code block.

14. The slot adjustment method according to claim 1, wherein, Multiple pieces of the time slot adjustment indication information are carried in OAM code blocks in a service flow.

15. According to the time slot adjustment method described in claim 14, wherein: When the OAM code block includes an APS code block, multiple pieces of the time slot adjustment indication information are respectively carried in the Base1 code block, the APS code block, and the Base2 code block in the OAM code block. The time slot adjustment moment is determined according to 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 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 pieces of the time slot adjustment indication information are respectively carried in the Base1 code block, the pseudo-APS code block, and the Base2 code block, and the time slot adjustment moment is determined according to 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 APS code block, a pseudo-APS code block is configured in front of or behind the APS code block, and multiple pieces of the time slot adjustment indication information are respectively carried in the Base1 code block, the pseudo-APS code block, and the Base2 code block in the OAM code block, and the time slot adjustment moment is determined according to 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, multiple pieces of the time slot adjustment indication information are respectively carried in the Base1 code block, the Base2 code block, and the L code block in the OAM code block, and the time slot adjustment moment is determined according to the position of the first Base1 code block after the L code block carrying the time slot adjustment indication information; or, 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 pieces of the time slot adjustment indication information are respectively carried in the Base1 code block, the Base2 code block, and the pseudo-L code block in the OAM code block, and the time slot adjustment moment 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; or, When the OAM code block includes an L code block, a pseudo-L code block is configured in front of or behind the L code block, and multiple pieces of the time slot adjustment indication information are respectively carried in the Base1 code block, the Base2 code block, and the pseudo-L code block in the OAM code block, and the time slot adjustment moment 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 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 indication code block includes check bit information, and the check bit information is used to check the correctness of the time slot adjustment indication information.

18. A time slot adjustment method, comprising: After negotiating and determining a time slot adjustment strategy with an upstream node and a downstream node, when receiving multiple pieces of time slot adjustment indication information sent by the upstream node, determining a time slot adjustment moment according to the multiple pieces of time slot adjustment indication information, and completing time slot adjustment by using the time slot adjustment strategy at the time slot adjustment moment; Send multiple pieces of the time slot adjustment indication information to the downstream node, so that the downstream node determines the time slot adjustment moment according to the multiple pieces of the time slot adjustment indication information, and completes the time slot adjustment by adopting the time slot adjustment strategy at the time slot adjustment moment.

19. The time slot adjustment method according to claim 18 further includes: Receiving the time slot switching moment information sent by the upstream node, where the time slot switching moment information is used to indicate the time slot adjustment moment; Sending the time slot switching moment information to the downstream node.

20. The slot adjustment method according to claim 19, wherein, The time slot switching moment information is carried in a time slot switching moment code block in the service flow, and the time slot adjustment moment includes one of the following situations: The time slot adjustment moment is the next time slot of the time slot where the time slot switching moment code block is located; The time slot adjustment moment is the starting position or the first time slot of the next bearer frame of the bearer frame where the time slot switching moment code block is located; The time slot adjustment moment is the starting position of the first bearer frame in the next multi-frame of the multi-frame where the time slot switching moment code block is located or the first time slot of the first bearer frame in the next multi-frame.

21. The slot adjustment method according to claim 19, wherein, The time slot adjustment indication information is used to indicate that the time slot adjustment strategy takes effect, and multiple pieces of the 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 moment information is carried in a time slot switching moment code block in the service flow; there are equal or unequal first code blocks between two adjacent time slot adjustment indication code blocks and between the time slot switching moment code block and the last sent time slot adjustment indication code block; or, The time slot switching moment information is carried in a time slot switching moment code block in the service flow; there is a first number of first code blocks between two adjacent time slot adjustment indication code blocks; there is a second number of the first code blocks between the time slot switching moment code block and the last sent time slot adjustment indication code block, and the second number is not equal to the first number.

23. The slot adjustment method according to claim 22, wherein When there is a first number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot switching moment code block is determined according to the first number and the position of any one of the time slot adjustment indication code blocks.

24. The time slot adjustment method according to claim 23, wherein, The time slot switching moment code block corresponds to an expected position in the service flow, and the expected position is determined according to the first number and the position of any one of the time slot adjustment indication code blocks. When the code block corresponding to the expected position is a code block in a data packet, the time slot switching moment 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 indication code block and the time slot switching moment code block have the same code block type. Both the time slot adjustment indication code block and the time slot switching moment code block include a time slot adjustment function field. The time slot adjustment function field in the time slot adjustment indication code block is used to carry the time slot adjustment indication information, and the time slot adjustment function field in the time slot switching moment code block is used to carry the time slot switching moment information; The time slot adjustment indication code block and the time slot switching moment code block both further include a synchronization header bit, a control word, and a type sequence value, and 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 indication code block or the time slot switching moment code block.

26. The slot adjustment method according to claim 18, wherein, Multiple pieces of the time slot adjustment indication information are carried in multiple time slot adjustment indication code blocks in a service flow, and the time slot adjustment moment is determined according to the position where any one of the time slot adjustment indication code blocks is located.

27. The time slot adjustment method according to claim 26, wherein, There are a third number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot adjustment moment is determined according to a time slot adjustment reference moment, and the time slot adjustment reference moment is determined according to the third number and the position where any one of the time slot adjustment indication code blocks is located.

28. The time slot adjustment method according to claim 27, wherein, The time slot adjustment moment includes one of the following situations: The time slot adjustment moment is the next time slot of the time slot where the time slot adjustment reference moment is located; The time slot adjustment moment is the starting position or the first time slot of the next bearer frame of the bearer frame where the time slot adjustment reference moment is located; The time slot adjustment moment is the starting position of the first bearer frame in the next multiple-frame of the multiple-frame where the time slot adjustment reference moment is located or the first time slot of the first bearer frame in the next multiple-frame.

29. The slot adjustment method according to claim 27, wherein, There are a fourth number of the first code blocks between the position where the time slot adjustment reference moment is located and the last sent time slot adjustment indication code block, and the fourth number is 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 indication 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, and 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 indication code block.

31. The time slot adjustment method according to claim 18, wherein, Multiple pieces of the time slot adjustment indication information are carried in OAM code blocks in a service flow.

32. According to the time slot adjustment method of claim 31, wherein: When the OAM code block includes an APS code block, multiple pieces of the time slot adjustment indication information are respectively carried in the Base1 code block, the APS code block, and the Base2 code block in the OAM code block, and the time slot adjustment moment is determined according to 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 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 pieces of the time slot adjustment indication information are respectively carried in the Base1 code block, the pseudo-APS code block, and the Base2 code block, and the time slot adjustment moment is determined according to 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 APS code block, a pseudo APS code block is configured in front of or behind the APS code block, and multiple pieces of the time slot adjustment indication information are respectively carried in a Base1 code block, the pseudo APS code block, and a Base2 code block in the OAM code block, and the time slot adjustment moment is determined according to 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, multiple pieces of the time slot adjustment indication information are respectively carried in a Base1 code block, a Base2 code block, and the L code block in the OAM code block, and the time slot adjustment moment is determined according to the position of the first Base1 code block after the L code block carrying the time slot adjustment indication information; or, 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 pieces of the time slot adjustment indication information are respectively carried in a Base1 code block, a Base2 code block, and the pseudo L code block in the OAM code block, and the time slot adjustment moment 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; or, When the OAM code block includes an L code block, a pseudo L code block is configured in front of or behind the L code block, and multiple pieces of the time slot adjustment indication information are respectively carried in a Base1 code block, a Base2 code block, and the pseudo L code block in the OAM code block, and the time slot adjustment moment 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 indication code block includes check bit information, and the check bit information is used to check the correctness of the time slot adjustment indication information.

35. The time slot adjustment method according to claim 18 further includes: judging the validity of each piece of the time slot adjustment indication information; when the number of valid time slot adjustment indication information is greater than the number of invalid time slot adjustment indication information, determining that the time slot adjustment strategy takes effect.

36. A time slot adjustment method includes: after negotiating with an upstream node to determine a time slot adjustment strategy, when receiving multiple pieces of time slot adjustment indication information sent by the upstream node, determining a time slot adjustment moment according to the multiple pieces of time slot adjustment indication information; completing time slot adjustment by using the time slot adjustment strategy at the time slot adjustment moment.

37. The time slot adjustment method according to claim 36 further includes: receiving time slot switching moment information sent by the upstream node, where the time slot switching moment information is used to indicate the time slot adjustment moment.

38. The time slot adjustment method according to claim 37, wherein, The time slot switching moment information is carried in a time slot switching moment code block in a service flow, and the time slot adjustment moment includes one of the following situations: The slot adjustment time is the next slot of the slot where the slot switching time code block is located; The slot adjustment time is the starting position or the first slot of the next bearer frame of the bearer frame where the slot switching time code block is located; The slot adjustment time is the starting position of the first bearer frame in the next multiple-frame or the first slot of the first bearer frame in the next multiple-frame of the multiple-frame where the slot switching time code block is located.

39. The time slot adjustment method according to claim 37, wherein, The slot adjustment indication information is used to indicate that the slot adjustment strategy takes effect, and multiple pieces of the slot adjustment indication information are carried in multiple slot adjustment indication code blocks in the service flow.

40. The slot adjustment method according to claim 39, wherein: The slot switching time information is carried in the slot switching time code block in the service flow; there are equal or unequal numbers of first code blocks between two adjacent slot adjustment indication code blocks and between the slot switching time code block and the last sent slot adjustment indication code block; or, The slot switching time information is carried in the slot switching time code block in the service flow; there is a first number of first code blocks between two adjacent slot adjustment indication code blocks; there is a second number of the first code blocks between the slot switching time code block and the last sent slot adjustment indication code block, 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 slot adjustment indication code blocks, the slot switching time code block is determined according to the first number and the position of any one of the slot adjustment indication code blocks.

42. The time slot adjustment method according to claim 41, wherein, The slot switching time code block corresponds to an expected position in the service flow, and the expected position is determined according to the first number and the position of any one of the slot adjustment indication code blocks. When the code block corresponding to the expected position is a code block in the data packet, the slot switching time 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 slot adjustment indication code block and the slot switching time code block have the same code block type. Both the slot adjustment indication code block and the slot switching time code block include a slot adjustment function field. The slot adjustment function field in the slot adjustment indication code block is used to carry the slot adjustment indication information, and the slot adjustment function field in the slot switching time code block is used to carry the slot switching time information; Both the slot adjustment indication code block and the slot switching time 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 for indicating the slot adjustment indication code block or the slot switching time code block.

44. The time slot adjustment method according to claim 36, wherein, Multiple pieces of the slot adjustment indication information are carried in multiple slot adjustment indication code blocks in the service flow, and the slot adjustment time is determined according to the position of any one of the slot adjustment indication code blocks.

45. The time slot adjustment method according to claim 44, wherein, There are a third number of first code blocks between two adjacent ones of the time slot adjustment indication code blocks. The time slot adjustment moment is determined according to a time slot adjustment reference moment, and the time slot adjustment reference moment is determined according to the third number and the position where any one of the time slot adjustment indication code blocks is located.

46. The time slot adjustment method according to claim 45, wherein, The time slot adjustment moment includes one of the following cases: The time slot adjustment moment is the next time slot of the time slot where the time slot adjustment reference moment is located; The time slot adjustment moment is the starting position or the first time slot of the next bearer frame of the bearer frame where the time slot adjustment reference moment is located; The time slot adjustment moment is the starting position of the first bearer frame in the next multi-frame or the first time slot of the first bearer frame in the next multi-frame where the time slot adjustment reference moment is located.

47. The time slot adjustment method according to claim 45, wherein, There is a fourth number of the first code blocks between the position where the time slot adjustment reference moment is located and the last sent time slot adjustment indication code block, and the fourth number is 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 indication 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, and 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 indication code block.

49. The time slot adjustment method according to claim 36, wherein, Multiple pieces of the time slot adjustment indication information are carried in OAM code blocks in a service flow.

50. According to the time slot adjustment method of claim 49, wherein: When the OAM code block includes an APS code block, multiple pieces of the time slot adjustment indication information are respectively carried in the Base1 code block, the APS code block, and the Base2 code block in the OAM code block, and the time slot adjustment moment is determined according to 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 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 pieces of the time slot adjustment indication information are respectively carried in the Base1 code block, the pseudo-APS code block, and the Base2 code block, and the time slot adjustment moment is determined according to 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 APS code block, a pseudo-APS code block is configured in front of or behind the APS code block, multiple pieces of the time slot adjustment indication information are respectively carried in the Base1 code block, the pseudo-APS code block, and the Base2 code block in the OAM code block, and the time slot adjustment moment is determined according to 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, multiple pieces of the time slot adjustment indication information are respectively carried in the Base1 code block, the Base2 code block and the L code block in the OAM code block, and the time slot adjustment moment is determined according to the position of the first Base1 code block after 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 pieces of the time slot adjustment indication information are respectively carried in the Base1 code block, the Base2 code block and the pseudo L code block in the OAM code block, and the time slot adjustment moment 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; or, When the OAM code block includes an L code block, a pseudo L code block is configured in front of or behind the L code block, multiple pieces of the time slot adjustment indication information are respectively carried in the Base1 code block, the Base2 code block and the pseudo L code block in the OAM code block, and the time slot adjustment moment 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 indication code block includes check bit information, and the check bit information is used to check the correctness of the time slot adjustment indication information.

53. The time slot adjustment method according to claim 36 further includes: judging the validity of each piece of the time slot adjustment indication information; When the number of valid time slot adjustment indication information is greater than the number of invalid time slot adjustment indication information, it is determined that the time slot adjustment strategy takes effect.

Citation Information

Patent Citations

  • Method and device for adjusting bandwidth of transmission channel in flexible Ethernet

    CN114363184A

  • Service flow adjustment method and communication apparatus

    US20230035379A1

  • Bandwidth adjustment method, service transmission method, network device and readable storage medium

    WO2022017509A1

  • Slot configuration method, slot configuration apparatus, and computer-readable storage medium

    WO2023284563A1