Time slot adjusting method
By negotiating and determining the time slot adjustment strategy in the communication network and sending indication information at the time slot adjustment time, the problem of time slot adjustment process is solved, and the effect of reducing cache traffic and reducing costs is achieved.
Patent Information
- Application Number
- CN202410011738.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-02
- Publication Date
- 2025-07-04
AI Technical Summary
In the communication network, the time slot adjustment process in the prior art takes a long time and poor adjustment reliability. Due to inconsistent moments of service bandwidth change and time slot number change, the cache traffic volume, high cost and increased customer delay.
After determining the slot adjustment strategy with the downstream node and the sink node, the first node sends multiple slot adjustment instructions information at the slot adjustment time, so that the downstream node and the sink node determine the slot adjustment time according to the indication information, and execute the slot adjustment strategy at that time, reducing the inconsistent duration of the traffic bandwidth change time and the time slot number change time.
It effectively reduces the number of cache services, reduces costs and customer delays, and improves the efficiency and reliability of time slot adjustment.
Smart Images

Figure CN120264432A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to, but are not limited to, the field of communication technologies, and in particular, to a time slot adjustment method. Background Art
[0002] Currently, in a communication network, customer services are usually carried in a time slot manner. Many time slots are divided in the bearer frame of a physical channel, or many time slots are divided on many bearer frames. Customer services can be carried on each time slot, and strict physical isolation is performed between time slots without mutual influence. As Figure 1 shown, the bearer frame is divided into multiple time slots. Customer services are carried on time slot 1 and time slot 2, and other time slots do not carry customer services. In applications, each customer service can be carried and transmitted on some time slots. In this way, the speed of the customer service can be flexibly changed. When the customer service has a large bandwidth, it is carried on multiple time slots; when the customer service has a small bandwidth, it is carried on a small number of time slots. The customer service bandwidth corresponds to the number of time slots carried, so as to meet customer services with various bandwidth sizes. In actual applications, the bandwidth requirements of customer services are variable. When a customer starts in the startup stage, the business bandwidth requirement is relatively small, and a small number of time slots are purchased to carry the service. As time goes by, the customer's market may expand and grow, and a larger business bandwidth and more time slots need to be purchased to carry the customer service. For a business with a declining market, the customer service bandwidth may decrease after a period of time, and the number of time slots carried needs to be reduced. Therefore, it is necessary to dynamically and losslessly adjust the number of time slots of the customer service to meet the needs of the changing customer service bandwidth.
[0003] Compared with the traditional hop-by-hop negotiation and hop-by-hop adjustment mechanisms, after the end-to-end time slot adjustment negotiation is successful, an indication signal for time slot adjustment is carried by the customer service to initiate the activity of adjusting the time slots, which reduces the negotiation time, avoids the serious consequences when the adjustment negotiation fails during hop-by-hop adjustment, avoids the fallback requirement when the adjustment fails, saves the adjustment negotiation time, and improves the adjustment success probability. However, when the time of business bandwidth change and the time of time slot number change are different, due to the speed difference between the two, a buffer is needed to temporarily store the customer service to adapt to the speed difference between the two. The longer the duration of the difference between the time of business bandwidth change and the time of time slot number change, the greater the amount of service that needs to be cached, and the higher the cost. Summary of the Invention
[0004] The embodiments of the present application provide a time slot adjustment method, which can reduce the duration of the out-of-synchronization between the time of business bandwidth change and the time of time slot number change, thereby effectively reducing the number of cached services, reducing costs and customer latency.
[0005] On the one hand, an embodiment of the present application provides a slot adjustment method, including: after negotiating and determining a slot adjustment strategy with a downstream node and a sink node, completing slot adjustment using the slot adjustment strategy at a slot adjustment moment; sending multiple slot adjustment indication messages to the sink node through the downstream node, so that the downstream node and the sink node determine the slot adjustment moment according to the multiple slot adjustment indication messages, and complete slot adjustment using the slot adjustment strategy at the slot adjustment moment.
[0006] On the other hand, an embodiment of the present application further provides a slot adjustment method, including: after negotiating and determining a slot adjustment strategy with an upstream node and a downstream node, when receiving multiple slot adjustment indication messages sent by the upstream node, determining a slot adjustment moment according to the multiple slot adjustment indication messages, and completing slot adjustment using the slot adjustment strategy at the slot adjustment moment; sending the multiple slot adjustment indication messages to the downstream node, so that the downstream node determines the slot adjustment moment according to the multiple slot adjustment indication messages, and completes slot adjustment using the slot adjustment strategy at the slot adjustment moment.
[0007] On the other hand, an embodiment of the present application further provides a slot adjustment method, including: after negotiating and determining a slot adjustment strategy with an upstream node, when receiving multiple slot adjustment indication messages sent by the upstream node, determining a slot adjustment moment according to the multiple slot adjustment indication messages; completing slot adjustment using the slot adjustment strategy at the slot adjustment moment.
[0008] On the other hand, an embodiment of the present application further provides a communication device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, where when the processor executes the computer program, the above-mentioned slot adjustment method is implemented.
[0009] On the other hand, an embodiment of the present application further provides a computer-readable storage medium, storing computer-executable instructions for executing the above-mentioned slot adjustment method.
[0010] In an embodiment of the present application, after negotiating and determining a slot adjustment strategy with a downstream node and a sink node, the head node can complete slot adjustment using the slot adjustment strategy at a slot adjustment moment, and send multiple slot adjustment indication messages to the sink node through the downstream node, so that the downstream node and the sink node can determine the slot adjustment moment according to the multiple slot adjustment indication messages, and complete slot adjustment using the corresponding slot adjustment strategy at the slot adjustment moment. Therefore, the duration when the service bandwidth change moment and the slot number change moment are different can be reduced, thereby reducing the number of cached services, and reducing costs and customer latency. Description of the Drawings
[0011] Figure 1 It is a schematic structural diagram in the related art where a bearer frame is divided into multiple time slots;
[0012] Figure 2 It is a schematic structural diagram of the frame structure formulated by China Mobile in the related art;
[0013] Figure 3 It is a schematic diagram of the adjustment process for reducing time slot requirements in the related art;
[0014] Figure 4 It is a schematic diagram of the adjustment process for increasing time slot requirements in the related art;
[0015] Figure 5 It is a schematic diagram of the time slot adjustment process in the related art;
[0016] Figure 6 It is a schematic diagram of the time slot negotiation handshake in the related art;
[0017] Figure 7 It is a flowchart of the time slot adjustment method provided by an embodiment of the present application;
[0018] Figure 8 It is a schematic diagram of inserting time slot adjustment information into a service flow provided by an embodiment of the present application;
[0019] Figure 9 It is a schematic structural diagram of the o - code block provided by an embodiment of the present application;
[0020] Figure 10 It is a schematic structural diagram where the time slot adjustment indication code block appears at a certain intermediate moment in the bearer frame provided by an embodiment of the present application;
[0021] Figure 11 It is a schematic structural diagram where the following valid time slot positions are used as reference time points, and new adjustment time slots are switched at the valid time slot positions provided by an embodiment of the present application;
[0022] Figure 12 It is a schematic diagram of reference time point confirmation provided by an embodiment of the present application;
[0023] Figure 13 It is a schematic diagram of another reference time point confirmation provided by an embodiment of the present application;
[0024] Figure 14 It is a schematic diagram where a fixed number of customer code blocks are spaced between special - defined code blocks provided by an embodiment of the present application;
[0025] Figure 15 It is a schematic diagram of the situation where the interval between the time slot switching moment code block and the time slot adjustment indication code block is the value of T2 provided by an embodiment of the present application;
[0026] Figure 16 It is a schematic diagram showing that the expected insertion position of the time slot adjustment indication code block provided by an embodiment of the present application is located in the middle of the message;
[0027] Figure 17 It is a schematic diagram showing that the OAM code blocks are sent at equal intervals and in a fixed order according to a period T provided by an embodiment of the present application;
[0028] Figure 18 It is a schematic diagram showing the OAM code block expansion function provided by an embodiment of the present application;
[0029] Figure 19 It is a schematic diagram of the structure of a new OAM sequence provided by an embodiment of the present application;
[0030] Figure 20 It is a schematic diagram of the structure of the OAM sequence for sending pseudo-L code blocks provided by an embodiment of the present application;
[0031] Figure 21 It is a schematic diagram of the structure of the APS code block sequence for expanding and carrying time slot adjustment indication information provided by an embodiment of the present application;
[0032] Figure 22 It is a schematic diagram showing inserting a time slot adjustment indication code block into the APS code block sequence provided by an embodiment of the present application;
[0033] Figure 23 It is a schematic diagram showing sending a specially defined pseudo-L code block at the position of the L code block in the 32nd - 64th small cycle period of the OAM sequence provided by an embodiment of the present application;
[0034] Figure 24 It is a schematic diagram showing that the time slot adjustment indication information with a check function is carried on the B1 and B2 code blocks provided by an embodiment of the present application;
[0035] Figure 25 It is a schematic diagram of the process for selecting a time slot for adjustment between devices provided by an embodiment of the present application;
[0036] Figure 26 It is a schematic diagram of the revocation process of the time slot application provided by an embodiment of the present application;
[0037] Figure 27 It is a flowchart of the process for the head node to negotiate and determine the time slot adjustment strategy provided by an embodiment of the present application;
[0038] Figure 28 It is a flowchart of the time slot adjustment method provided by another embodiment of the present application;
[0039] Figure 29 It is a flowchart of the process for the intermediate node to negotiate and determine the time slot adjustment strategy provided by an embodiment of the present application;
[0040] Figure 30 It is a flowchart of a time slot adjustment method provided by another embodiment of the present application;
[0041] Figure 31 It is a flowchart of the process for the tail node to negotiate and determine the time slot adjustment strategy provided by the embodiment of the present application. Detailed implementation manners
[0042] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order from that in the flowchart. In the description of the specification, claims and the above drawings, the meaning of "multiple (or plural)" is more than two, and "greater than", "less than", "exceeding", etc. are understood as not including the present number, and "above", "below", "within", etc. are understood as including the present number. If there is a description of "first", "second", etc., it is only for the purpose of distinguishing technical features and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features or implicitly indicating the sequence of the indicated technical features.
[0044] It is worth noting that a frame structure is usually adopted on a communication network to carry customer services, and time slots are divided in the carried frame. Devices generally support devices that carry customer services in a time slot manner, such as devices that support the international standard MTN protocol and various carrying devices such as SPN devices defined by China Mobile. The carried frame consists of a frame header, a container and a frame tail. Time slots can be divided in the container, and the positions of the time slots are fixed and are transmitted on the network along with the carried frame. Each customer service can choose to be transmitted in a fixed time slot, and different customers can choose different time slot positions for carrying. When the customer bandwidth is large, multiple time slot positions can be selected for carrying, and when the customer bandwidth is small, a small number of time slot positions can be selected for carrying. When carrying customer services, the customer services can be first mapped to the corresponding time slots of the carried frame on the source device and then sent out, and then the intermediate device forwards the carried frame, and finally the customer services are extracted from the corresponding time slots of the carried frame on the sink device to restore the original customer services.
[0045] The bearer frame generally has a fixed frame structure, similar to the encoding result of an Ethernet packet. When transmitting Ethernet services, 64 / 66 encoding can be performed. In the 64 / 66 encoding rule of the Ethernet 802.3 protocol, each code block consists of 66 bits. The first 2 bits are the synchronization header of the code block. When the synchronization header bits are "01", it indicates a D code block (data code block), and the subsequent 8 bytes (64 bits) are the data content of 8 bytes; when the synchronization header bits are "10", it indicates a control code block. The content of the first byte following it represents the type of the control block, and the subsequent 7 bytes are the content of the control block. The content of the 7 bytes is determined by the type of the control block. S code blocks, T code blocks, o code blocks, and idle code blocks all belong to control. S code blocks, T code blocks, IDLE code blocks, and o code blocks all belong to control code blocks. The content of the first byte in the S code block is 0x78, indicating that the control code block is an S code block, and the S code block represents the first code block in a data packet code block stream. The T code block represents the last code block in a data packet code block stream and is the end block of the packet. In addition to indicating the end block, the T code block can also carry customer byte content (located in the last 7 bytes of the code block). In the Ethernet standard, the T code block is divided into 8 types: T0, T1, T2, T3, T4, T5, T6, T7. The T0 code block (the content of the first byte is 0x87) does not carry customer information, the T1 code block (the content of the first byte is 0x99) carries 1 byte of customer information, the T2 code block (the content of the first byte is 0x99) carries 2 bytes of customer information, and so on. The T7 code block (the content of the first byte is 0xFF) carries 7 bytes of customer information. The IDLE code block (also abbreviated as the I code block) is an idle code block or an error indication code block, and the control word content is 0x1E. The o code block is a maintenance and management code block, and the control word content is 0x4B.
[0046] Currently, different standards at home and abroad have defined different bearer frame formats. See Figure 2 , Figure 2 which is the frame structure defined by China Mobile. As Figure 2 shown, the bearer frame consists of 1 S code block, 195 D code blocks, and 1 T code block. Overhead byte information and 24 time slots are divided on the D code blocks in the frame. Every 20 frames form a multiplexed frame, and there are 480 time slots in a multiplexed frame period. Figure 2 The following figure in
[0047] MFI: Multi-frame indicator;
[0048] GCC: General Communication Channel;
[0049] Slot num: Slot number;
[0050] client num: client number;
[0051] CR: Configuration request;
[0052] CA: Configuration Acknowledge;
[0053] C: Configuration come into force;
[0054] S: Send notice.
[0055] In actual business applications, initially, the customer's business volume is small, the purchased network bandwidth is small, and only a small number of bearer time slots are required. After a period of time, the customer's business volume increases, and more time slots are needed to carry the customer's business. The operation of increasing the time slots needs to be completed. Without affecting or interrupting the customer's business, the number of time slots is increased without loss. For the business of an enterprise with a declining market, after a period of time, the customer's business decreases, and the number of time slots to be carried needs to be reduced. In this case, the number of time slots carrying the customer's business needs to be dynamically reduced without affecting the customer's business. The traditional solution adopts a hop-by-hop negotiation and hop-by-hop adjustment mechanism. The adjustment process first starts the handshake negotiation process for time slot adjustment: one device sends a time slot adjustment request signal. After the other device receives the time slot adjustment request signal, it sends back a time slot adjustment response and confirmation signal. When the device that sends the time slot adjustment request signal receives the response signal, the negotiation work between the two devices is completed, and the adjustment of the number of time slots can be started. Refer to Figure 3 as shown Figure 3It is an adjustment process to reduce the time slot requirements. When it is necessary to reduce the time slots, the source device (Device 1) sends a time slot adjustment reduction request signal CR (Configuration request) to the downstream Device 2. When sending the CR signal, the time slot number for reduction adjustment is sent to prompt Device 2 of the time slot number that needs to be reduced. After receiving the CR signal, Device 2 sends a time slot adjustment acknowledgment signal CA (Configuration Acknowledge) to Device 1 after completing the preparation work. After receiving the time slot adjustment acknowledgment signal CA from Device 2, Device 1 completes the negotiation work for the time slot reduction adjustment between Device 1 and Device 2, and Device 1 sends an adjustment indication signal C (Configuration come into force). Then, Device 1 and Device 2 carry the customer service on the time slot positions after the reduction adjustment. When Device 2 receives the adjustment indication signal C from Device 1, it starts to send a time slot reduction adjustment request signal CR to the downstream Device 3, and at the same time sends the time slot number for reduction adjustment when sending the CR signal. After receiving the CR signal, Device 3 sends an acknowledgment CA to Device 2 after completing the preparation work. After receiving the acknowledgment CA signal from Device 3, Device 2 completes the negotiation work for the time slot reduction adjustment between Device 2 and Device 3. After receiving the acknowledgment CA signal from Device 3, Device 2 sends an adjustment indication signal C. Then, Device 2 and Device 3 carry the customer service on the time slot positions after the reduction adjustment. By analogy, Device 3 and Device 4 complete the negotiation and time slot reduction adjustment work, and only then is all the time slot adjustment work completed. The above adjustment process is to negotiate and complete the adjustment section by section. During the adjustment process, some devices have completed the adjustment and carry the service according to the adjusted number of time slots; some devices have not completed the adjustment and carry the service according to the number of time slots before the adjustment. During the reduction adjustment process, the number of time slots between adjacent upstream devices is reduced first. After the number of time slots of adjacent upstream nodes is reduced, the time slot reduction operation of the downstream devices is started, always keeping the number of time slots between upstream nodes less than the number of time slots between downstream nodes, that is, the service bandwidth between upstream nodes is less than the service bandwidth between downstream nodes, to avoid the service bandwidth of the upstream being greater than that of the downstream in the pipeline, resulting in service overflow at some node positions due to the upstream bandwidth being greater than the downstream bandwidth. During the adjustment process, after the devices at the last two nodes complete the time slot reduction adjustment, the end-to-end bandwidth reduction adjustment of the service is completed.
[0056] When increasing the time slots, to ensure that the service bandwidth between upstream nodes is less than the service bandwidth between downstream nodes, the China Mobile enterprise standard stipulates that when adjusting the time slot increase, the time slot increase adjustment starts from the sink device, referring to Figure 4 as shown Figure 4It is an adjustment process for increasing time slot requirements. When time slots need to be increased, the sink device (Device 4) sends a bandwidth increase adjustment notice information S (send notice) signal to the upstream device 3. After receiving the S signal, Device 3 initiates an increase adjustment, sends a CR signal to Device 4, and simultaneously sends the time slot number for the increase adjustment. After receiving the CR signal, Device 4 sends a time slot increase adjustment response signal CA to Device 3 after completing the preparation work. After receiving the response CA signal from Device 4, Device 3 completes the negotiation work for the time slot increase adjustment between Device 3 and Device 4, and then Device 3 sends an adjustment indication signal C to Device 4. Then, Device 3 and Device 4 carry the customer service according to the time slots after the time slot increase adjustment. At the same time, Device 3 sends a time slot increase adjustment notice information S signal to the upstream device 2. After receiving the S signal, Device 2 initiates the negotiation work for the time slot increase adjustment, sends a CR signal to Device 3, and simultaneously sends the time slot number for the increase adjustment. After receiving the CR signal, Device 3 sends a response CA signal to Device 2 after completing the preparation work. After receiving the response CA signal from Device 3, Device 2 completes the negotiation work for the time slot increase adjustment between Device 2 and Device 3, and then Device 2 sends an adjustment indication signal C to Device 3. Then, Device 2 and Device 3 carry the customer service according to the time slots after the time slot increase adjustment. At the same time, Device 2 sends a bandwidth increase adjustment notice information S to the upstream device 1. By analogy, Device 1 and Device 2 complete the negotiation and the time slot increase adjustment work for the time slot increase adjustment, and only then is the entire time slot increase adjustment process completed. The adjustment process is negotiated and completed segment by segment. During the time slot increase adjustment process, the number of time slots is always increased first among the downstream devices, and then among the upstream devices. The number of time slots between the upstream nodes is always kept less than that between the downstream nodes, that is, the service bandwidth between the upstream nodes is less than that between the downstream nodes, to avoid the service bandwidth of the upstream service in the pipeline being greater than that of the downstream, resulting in service overflow. During the time slot increase adjustment process, after the last two nodes complete the time slot increase adjustment, the end-to-end bandwidth increase adjustment of the service is completed.
[0057] The traditional bandwidth adjustment process is negotiated and completed segment by segment. After one segment is adjusted, the adjustment work of the next segment is started, and the adjustment process takes a very long time. At the same time, negotiating and completing segment by segment brings a major drawback, that is, some segments have been adjusted, while some segments encounter unexpected situations during the adjustment process (for example, CR and CA are interfered during the adjustment between some nodes, resulting in signal loss, or a certain device encounters difficulties and cannot send back the response CA signal, and the negotiation between upstream and downstream devices fails). When the time slot adjustment negotiation fails between some devices, the subsequent time slot adjustment work cannot be carried out. In this way, some devices that have successfully adjusted work according to the new number of time slots, while some devices work according to the old number of time slots, and the end-to-end bearer bandwidth of the service is inconsistent. In the case where the negotiation fails between some devices and the time slot adjustment of the subsequent devices cannot be continued, generally, a rollback mechanism needs to be started, and the devices that have been successfully adjusted are rolled back to the original, unadjusted time slot state according to the time slot adjustment process and with the opposite quantity. For example, if some devices are successfully adjusted and some devices fail during the time slot increase adjustment, then for the devices that have been successfully adjusted, start the time slot decrease adjustment activity, and delete the increased time slots according to the time slot decrease mechanism to complete the time slot rollback work. Similarly, if some devices are successfully adjusted and some devices fail during the time slot decrease adjustment, then for the devices that have been successfully adjusted, start the time slot increase adjustment activity, and add back the decreased time slots according to the time slot increase mechanism to complete the time slot rollback work. The time slot rollback process is also very cumbersome. For example, sometimes the rollback adjustment may fail again during the rollback, and the rollback cannot be continued, resulting in a dilemma where the end-to-end time slot adjustment cannot be completed but the end-to-end time slot rollback cannot be completed. In the networking of different manufacturers, due to the different internal processing mechanisms of different manufacturers, the time slot adjustment negotiation is prone to failure, resulting in difficulties in applying the traditional time slot adjustment.
[0058] To solve the problems of slow adjustment speed and poor adjustment reliability in the current time slot adjustment scheme, a prior art provides an end-to-end time slot negotiation adjustment scheme, as shown in Figure 5 shown. Figure 5It is a schematic diagram of the time slot adjustment process, which is as follows: The network management system issues time slot configuration content and adjustment commands to the source device to determine the source device and the sink device. Whether increasing or decreasing the adjusted time slots, the time slot adjustment is initiated by the source device. The source device 1 sends an adjustment bandwidth application signal CR to the downstream device 2, and at the same time sends the adjusted time slot number when sending the CR signal to prompt the downstream device 2 of the time slot number to be adjusted. After receiving the CR signal, the intermediate device 2 starts the preparation work but does not immediately send a response signal CA back to the device 1. The device 2 continues to send a time slot adjustment application signal CR to the downstream device 3, and at the same time sends the adjusted time slot number. Similarly, after receiving the CR signal, the intermediate device 3 starts the preparation work but does not immediately send a response signal CA back to the device 2. Instead, it sends an adjustment bandwidth application signal CR to the downstream device 4, and at the same time sends the adjusted time slot number. The device 4 is the sink device. After receiving the CR signal from the upstream device 3, the sink device completes the preparation work and sends a time slot adjustment response signal CA and the adjusted time slot number back to the upstream device 3. After receiving the response signal CA from the downstream device 4, the intermediate device 3 then sends a time slot adjustment response signal CA and the adjusted time slot number back to the upstream device 2. Similarly, after receiving the time slot adjustment response signal CA from the downstream device 3, the intermediate device 2 then sends a response signal CA and the adjusted time slot number back to the upstream device 1. The device 1 is the source device. After receiving the time slot adjustment response signal CA and the adjusted time slot number from the downstream, it determines that the returned time slot number is consistent with the applied time slot number, and determines that the negotiation work has been completed among the source device, the sink device, and all intermediate devices. The time slot adjustment negotiation among all devices is successful. In this case, the source device 1 starts to send 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 the customer service according to the new time slot quantity, and the devices will still carry the customer service according to the original time slot quantity, avoiding the problem of inconsistent end-to-end bandwidth caused by successful negotiation between some devices and unsuccessful negotiation between some devices in the traditional time slot adjustment, as well as the fallback problem of time slot adjustment. If the negotiation fails for some devices in the network and the source device cannot receive the time slot adjustment response signal, the source device can repeatedly or continuously send the time slot adjustment application 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 the end-to-end link faulty and terminates sending the time slot adjustment application signal CR, terminating the time slot adjustment activity.
[0059] When the source device 1 receives the time slot adjustment response confirmation signal CA and the adjusted time slot number sent back by the downstream device, and determines that the sent-back time slot number is the same as the applied time slot number, the source device then sends the adjustment indication signal C to the downstream device 2. At the same time, device 1 bears the customer service according to the new time slot scheme. When the downstream device 2 receives the adjustment indication signal C, it also forwards the customer service according to the new time slot scheme, completing the time slot adjustment between device 1 and device 2. When the intermediate device 2 receives the adjustment indication signal C from the upstream device 1, device 2 simultaneously sends the adjustment indication signal C to the downstream device 3. At the same time, device 2 bears the customer service according to the new time slot scheme. When the downstream device 3 receives the adjustment indication signal C, it also forwards the customer service according to the new time slot scheme, completing the time slot adjustment between device 2 and device 3. And so on. When the intermediate device 3 receives the adjustment indication signal C from the upstream device 2, device 3 also sends the adjustment indication signal C to the downstream device 4. At the same time, device 3 bears the customer service according to the new time slot scheme. When the downstream device 4 receives the adjustment indication signal C, it also extracts the customer service according to the new time slot scheme, completing the time slot adjustment between device 3 and device 4. After the destination device completes the time slot adjustment, the end-to-end time slot adjustment work is completed. After the destination device completes the time slot adjustment, it notifies the source device that the time slot adjustment is successful. If the source device does not receive the adjustment success indication signal from the destination device within a certain period of time, the source device can resend the adjustment indication signal C; the source device can also continuously send the adjustment indication signal C until it receives the adjustment success indication signal from the destination device and then stops sending the adjustment indication signal C.
[0060] In the above solution, the time slot adjustment negotiation is carried out end-to-end from the source device to the destination device. The intermediate devices participate in the negotiation, and the intermediate devices use the relay race method to sequentially transmit the time slot adjustment negotiation signals, implementing the handshake negotiation mechanism for time slot adjustment between the source device and the destination device. When the negotiation between the source device and the destination device is successful, it means that the negotiation on time slot adjustment between the source device and the destination device, including all intermediate devices in the network, is successful. Only after the handshake negotiation on time slot adjustment among all devices is successful, the time slot adjustment work is sequentially executed starting from the source device. Whether the time slots increase or decrease, the end-to-end time slot adjustment method in the above solution can be used, and the time slot adjustment negotiation and the execution of time slot adjustment can be carried out from the source device to the destination device. For the adjustment requirement of time slot increase, before the end-to-end time slot increase adjustment is completed, the customer service bandwidth is not increased first, and the customer service bandwidth remains the original bandwidth. In this way, even during the end-to-end time slot increase adjustment process, the bandwidth between the upstream devices is large and the bandwidth between the downstream devices is small, but because the customer service bandwidth still remains the original bandwidth size and is the same as the bandwidth between the downstream devices, even though the upstream pipeline bandwidth is large, the effective customer service bandwidth does not increase, so there will be no customer overflow phenomenon. Such as Figure 5As shown, initially only 1 time slot was configured for transmitting customer services between device 1 and device 2, between device 2 and device 3, and between device 3 and device 4. The bandwidth of customer services that can be transmitted through one time slot is only 10M speed. When the bandwidth needs to be adjusted to 20M, the customer service bandwidth initially remains at 10M bandwidth. During the adjustment process, initially, the time slots between device 1 and device 2 are adjusted from 1 time slot to 2 time slots, and the carrying bandwidth becomes 20M. Between device 2 and device 3, and between device 3 and device 4, there is still 1 time slot for transmitting customer services at a rate of 10M. At device 1, when carrying customer services at a rate of 10M on 2 time slots, since the customer service speed is less than the speed of the carrying time slots, a large amount of idle information, such as idle code blocks, needs to be inserted between customers. After adding a large amount of idle information, the total speed is increased to 20M and then carried on 2 time slots. At device 2, when receiving the customer stream from device 1, a large amount of idle information inserted between packets is deleted, and the remaining customer service speed can be carried on 1 time slot. Device 2 will carry the customer service after deleting the idle information on 1 time slot and send it to device 3. When the time slots between device 2 and device 3 are adjusted from 1 time slot to 2 time slots, then device 2 does not delete the idle information when receiving the service flow from device 1, and device 3 deletes the idle information and carries it on 1 time slot. When the time slots between device 3 and device 4 are adjusted from 1 time slot to 2 time slots, the number of end-to-end carrying pipeline time slots between device 1 and device 4 is adjusted to 2 time slots to carry 20M customer services. After the end-to-end time slot number adjustment is successful, the customer service speed is adjusted to 20M. For the adjustment of increasing the number of time slots, after completing the time slot adjustment of end-to-end devices, the customer service speed is increased. By analogy, for the adjustment of reducing the number of time slots, the customer service speed is first reduced, and then the time slot adjustment between end-to-end devices is carried out, always keeping the customer service speed less than the carrying speed of any device in the end-to-end device's carrying pipeline. 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 customer services coming from the upstream is deleted, and then the customer services are sent to the downstream time slots; when the upstream time slot bandwidth is less than the downstream time slot bandwidth, a large amount of idle information is inserted into the customer services coming from the upstream and then sent to the downstream time slots. In addition, if the intermediate node receives the adjustment indication C signal, it immediately sends the adjustment indication downstream, and the downstream time slot increase adjustment is also immediately started. In this way, the time slot increase adjustment starts from the source device and is carried out in a relay manner between all devices from upstream to downstream. The adjustment between upstream and downstream devices is carried out sequentially. The phenomenon of inconsistent time slot numbers and inconsistent bandwidths between upstream and downstream devices only exists instantaneously, and then the time slot numbers between upstream and downstream devices quickly become consistent, and there will be no bandwidth inconsistency problem.
[0061] In time slot adjustment, the source device and the sink device perform handshake negotiation through the adjustment request signal CR and the adjustment response signal CA. The time slot negotiation handshake method can adopt the full-time slot adjustment method, periodically sending the adjustment request status information of all time slots, and then periodically sending back the response information of all time slots. After receiving the response information of all time slots, the adjustment is started, and the time slot adjustment indication signal C is sent. Figure 6 is a schematic diagram of time slot negotiation handshake. In Figure 6 , device 1 can periodically send the time slot adjustment request status information of all time slots to device 2. After receiving it, device 2 forwards it to device 3 periodically, and device 3 forwards it to device 4 periodically after receiving it. After device 4 receives the time slot adjustment request status information, device 4 periodically sends back the time slot adjustment response signals of all time slots to device 3. After device 3 receives it, it periodically sends back the adjustment status information of all time slots to device 2. After device 2 receives it, it periodically sends back the adjustment status information of all time slots to device 1. After device 1 receives all the time slot adjustment response signals, it sends a notification to start the adjustment indication signal C, and officially enables the adjusted time slots. In the full-time slot adjustment method, regardless of whether a time slot participates in the adjustment, the adjustment request status information and response information of all time slot information are periodically transmitted. Among all the time slot adjustment information, some time slots may be the ones that really need to be adjusted, and some time slots do not need to participate in the adjustment. If there are a total of 480 time slots, and every 480 frames form a multi-frame, each frame in the multi-frame transmits the adjustment status information of one time slot. Frame 0 transmits the adjustment status information of time slot 0, frame 1 transmits the adjustment status information of time slot 1, frame 2 transmits the adjustment status information of time slot 2, and so on. Frame 479 transmits the adjustment status information of time slot 479. All the adjustment status information of all time slots is transmitted through a multi-frame cycle. In Figure 6In the middle, time slots 2 and 4 are the ones truly participating in time slot adjustment. The CR values of time slots 2 and 4 are 1, indicating an application for time slot adjustment. The CR values of other time slots are 0 and they do not participate in time slot adjustment. Since the customer numbers of time slots 2 and 4 change from the previous invalid numbers to valid numbers, it means an increase in time slot adjustment. Device 1 transmits the adjustment status information of all time slots to Device 2 within one multiple-frame period. After receiving it, Device 2 transmits the adjustment status information of all time slots to Device 3 within one multiple-frame period. After receiving it, Device 3 transmits the adjustment status information of all time slots to Device 4 within one multiple-frame period. After receiving the adjustment status information of all time slots, Device 4 sends back the response information of all time slots to Device 3. After receiving it, Device 3 sends back the response information of all time slots to Device 2 within one multiple-frame period. After receiving it, Device 2 sends back the response information of all time slots to Device 1 within one multiple-frame period. Device 1 receives the response information of all time slots within one multiple-frame period. Since only time slots 2 and 4 apply to participate in the adjustment, among the response information sent back by all devices, only the response CA information of time slots 2 and 4 is valid (CA = 1), and the response information of other time slots is invalid (CA = 0).
[0062] After Device 1 receives all the response CA information sent back, it continuously sends multiple adjustment indication C signals. To increase reliability, the adjustment indication C information can be sent multiple times. For example, the adjustment indication C information is sent three times. The receiving end adopts the majority judgment principle (when the valid adjustment indication C signal appears two or more times, the adjustment indication signal C is judged to be valid; when the adjustment indication C signal is invalid two or more times, the adjustment indication C signal is judged to be invalid), and then the initiating device and the receiving device adjust the number of time slots based on the agreed time reference, such as Figure 6 shown. At the agreed moment, the newly added time slots 2 and 4 are officially enabled. Both the initiating device and the receiving device use the dotted line moment as the moment to enable the adjusted new time slots. To facilitate the use of the new time slots to carry customer services, generally the new time slots are enabled at the starting position of the carrying frame. If the moment to enable the new time slots is in the middle of a frame, the current carrying frame still carries the customer services according to the original old time slots, and the new time slots are enabled to carry the customer services only at the start of the next frame, Figure 6 in which the dotted line is the agreed reference moment for enabling the new time slots between the transmitting device and the receiving device. But the new time slots are truly enabled at the starting position of the next adjacent carrying frame. Starting from the starting position of the carrying frame (i.e., the first time slot), that is Figure 6 at the bold solid line position in the middle. Both the transmitting device and the receiving device enable the new time slots to carry customer services at the bold solid line position and at the starting moment of the next carrying frame.
[0063] When performing time slot adjustment, in order to synchronize the bandwidth change of customer services with the corresponding change in the number of time slots carrying customer services, when the bandwidth of customer services needs to be changed, a time slot adjustment indication signal is inserted into the customer service flow. The time slot adjustment indication signal is transmitted along with the service flow. The time slot adjustment indication signal has two functions: indicating the moment of service bandwidth change and indicating the moment of time slot adjustment for carrying customer services. The bandwidth of customer services is changed according to the adjustment indication signal, and the number of time slots carrying customer services is also changed according to the adjustment indication signal, so that the number of time slots carrying customer services adapts to the bandwidth change of customer services. The adjustment indication signal is carried in the customer service flow, and the adjustment indication signal represents the adjustment moment of the service flow bandwidth. The adjustment indication signal is transmitted in the network along with the service flow. When the adjustment indication signal passes through each device in the network, the passing device synchronously adjusts the number of carrying time slots of the device according to the adjustment indication carried in the customer service flow, and carries the customer service according to the new number of time slots. When the customer service bandwidth changes, the corresponding device also adjusts the number of time slots simultaneously, realizing the synchronous change of service bandwidth and the number of time slots, and reducing the total duration of the difference between the service bandwidth change moment and the time slot number change moment.
[0064] Compared with the traditional hop-by-hop negotiation and hop-by-hop adjustment mechanism, after the end-to-end time slot adjustment negotiation is successful, the indication signal of time slot adjustment is carried by the customer service to start the activity of adjusting time slots, reducing the negotiation time, avoiding the serious consequences when the adjustment negotiation fails during hop-by-hop adjustment, avoiding the fallback requirement when the adjustment fails, saving the adjustment negotiation time, and increasing the probability of successful adjustment. However, when the service bandwidth change moment and the time slot number change moment are different, due to the speed difference between the two, a buffer is needed to temporarily store the customer service to adapt to the speed difference between the two. The longer the duration of the difference between the service bandwidth change moment and the time slot number change moment, the greater the amount of service to be cached and the higher the cost.
[0065] In order to reduce the duration of the out-of-synchronization 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 latency, the embodiments of the present application provide a time slot adjustment method, a communication device, and a computer-readable storage medium. Among them, after determining the time slot adjustment strategy with the downstream node and the sink node, the head node can complete the time slot adjustment using the time slot adjustment strategy at the time slot adjustment moment, and send multiple time slot adjustment indication messages to the sink node through the downstream node, so that the downstream node and the sink node can determine the time slot adjustment moment according to the multiple time slot adjustment indication messages, and complete the time slot adjustment using the corresponding time slot adjustment strategy at the time slot adjustment moment. Therefore, the duration of the difference between 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 latency.
[0066] Based on the above analysis, the embodiments of the present application will be further described below in conjunction with the accompanying drawings.
[0067] Refer to Figure 7 , Figure 7 which is a flowchart of a time slot adjustment method provided by an embodiment of the present application. The time slot adjustment method can 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.
[0068] Step S710: After negotiating and determining a time slot adjustment strategy with the downstream node and the sink node, complete the time slot adjustment using the time slot adjustment strategy at the time slot adjustment moment;
[0069] Step S720: Send multiple 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 multiple time slot adjustment indication messages, and complete the time slot adjustment using the time slot adjustment strategy at the time slot adjustment moment.
[0070] In a feasible implementation manner, when the customer service is in a transfer state and time slot adjustment information needs to be inserted into the service flow, the head node can initiate an application for bandwidth increase adjustment. After the head node determines the time slot adjustment strategy with the downstream node and the sink node, it can send time slot adjustment indication messages to the sink node through the downstream node, so that during the transfer process of the service flow, each node can complete the time slot adjustment using the time slot adjustment strategy at the determined time slot adjustment moment, reducing the duration when the service bandwidth change moment and the time slot quantity change moment are different, thereby reducing the cached service quantity and lowering the cost and customer latency.
[0071] It can be understood that the service flow can be ordinary Ethernet service information or high-quality service information. For example, the high-quality service information can be CBR service, high-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, the high-quality service information can be encapsulated in various formats, such as eCPRI protocol message format or Ethernet packet format, etc.; the ordinary Ethernet service information can be download service information, etc., which are not specifically limited here.
[0072] In a feasible implementation manner, the head node can also send 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.
[0073] In a feasible embodiment, the time slot switching moment information may be carried in a time slot switching moment code block in a service flow. Among them, the time slot adjustment moment may include one of the following three cases: 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.
[0074] In a feasible embodiment, the time slot adjustment indication information may be used to indicate that the time slot adjustment strategy takes effect. In addition, multiple time slot adjustment indication information may also be carried in multiple time slot adjustment indication code blocks in a service flow.
[0075] In a feasible embodiment, when the time slot switching moment information is carried in a time slot switching moment code block in a service flow, there may be 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.
[0076] In a feasible embodiment, when the time slot switching moment information is carried in a time slot switching moment code block in a service flow, there is a first number of first code blocks between two adjacent time slot adjustment indication code blocks, and there is a second number of first code blocks between the time slot switching moment code block and the last sent time slot adjustment indication code block. It should be noted that the second number is not equal to the first number.
[0077] In a feasible embodiment, the time slot switching moment code block may be determined according to the first number and the position of any time slot adjustment indication code block.
[0078] In a feasible embodiment, the time slot switching moment code block corresponds to an expected position in the service flow. The expected position may be determined according to the first number 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 a data packet, the time slot switching moment code block is the first code block after the end code block in the data packet.
[0079] 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. 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.
[0080] In a feasible embodiment, 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.
[0081] In this embodiment, by adopting the time slot adjustment method including the above steps S710 to S720, after negotiating and determining the time slot adjustment strategy with the downstream node and the sink node, the head node can complete the time slot adjustment by adopting this time slot adjustment strategy at the time slot adjustment moment, and send multiple time slot adjustment indication messages to the sink node through the downstream node, so that the downstream node and the sink node can determine the time slot adjustment moment according to the multiple time slot adjustment indication messages, and complete the time slot adjustment by adopting the corresponding time slot adjustment strategy at the time slot adjustment moment. Therefore, the duration when the service bandwidth changes and the duration when the number of time slots changes can be reduced, thereby reducing the number of cached services, and reducing the network overhead cost and the customer service delay.
[0082] In an embodiment, multiple time slot adjustment indication messages can be carried in multiple time slot adjustment indication code blocks in the service flow, and the time slot adjustment moment is determined according to the position where any time slot adjustment indication code block is located.
[0083] In an embodiment, there are a third number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot adjustment moment can be determined according to the time slot adjustment reference moment, and the time slot adjustment reference moment can be determined according to the third number and the position where any time slot adjustment indication code block is located.
[0084] In an embodiment, the time slot adjustment moment includes one of the following situations:
[0085] The time slot adjustment moment is the next time slot of the time slot where the time slot adjustment reference moment is located;
[0086] 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;
[0087] 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 of the multi-frame where the time slot adjustment reference moment is located.
[0088] In an embodiment, there are a fourth number of 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. It should be noted that the fourth number is less than or equal to the third number.
[0089] In an embodiment, the time slot adjustment indication code block further includes a time slot adjustment function field, where the time slot adjustment function field can be used to carry the time slot adjustment indication information.
[0090] In one embodiment, when mapping the first code block stream to the first transport container, multiple time slot adjustment indication messages may be carried in the OAM code blocks in the service flow.
[0091] In one embodiment, when the OAM code block includes APS code blocks, multiple time slot adjustment indication messages may be respectively carried in the Base1 code block, APS code blocks, and 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 message;
[0092] Or,
[0093] When the OAM code block does not include APS code blocks, 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 messages may be respectively carried in the Base1 code block, pseudo APS code block, and 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 message;
[0094] Or,
[0095] When the OAM code block includes APS code blocks, a pseudo APS code block may be configured in front of or behind the APS code block, and multiple time slot adjustment indication messages may be respectively carried in the Base1 code block, pseudo APS code block, and 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 message.
[0096] In one embodiment, when the OAM code block includes APS code blocks, the APS code block may include a first APS code block and a second APS code block. At this time, the time slot adjustment indication message may be carried in the second APS code block.
[0097] In one embodiment, when the OAM code block includes L code blocks, multiple time slot adjustment indication messages may be respectively carried in the Base1 code block, Base2 code block, and L 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 L code block carrying the time slot adjustment indication message;
[0098] Or,
[0099] When the OAM code block does not include the L code block, the position of the L code block in the OAM code block can be configured with a pseudo L code block. Multiple time slot adjustment indication messages can be carried in the Base1 code block, Base2 code block, and pseudo L code block in the OAM code block respectively. The time slot adjustment moment can be determined according to the position of the first Base1 code block after the pseudo L code block carrying the time slot adjustment indication message;
[0100] Or,
[0101] When the OAM code block includes the L code block, a pseudo L code block can be configured in front of or behind the L code block. Multiple time slot adjustment indication messages can be carried in the Base1 code block, Base2 code block, and pseudo L code block in the OAM code block respectively. The time slot adjustment moment can be determined according to the position of the first Base1 code block after the pseudo L code block carrying the time slot adjustment indication message.
[0102] In an embodiment, the time slot adjustment indication code block can include check bit information, where the check bit information can be used to check the correctness of the time slot adjustment indication message.
[0103] Participate Figure 27 , Figure 27 is a flowchart of the process for the first node to negotiate and determine the time slot adjustment strategy provided by the embodiments of the present application. When the first node negotiates and determines the time slot adjustment strategy with the downstream node and the sink node, as Figure 27 shown, the process of determining the time slot adjustment strategy can include but is not limited to steps S2710 - S2720:
[0104] Step S2710: Send the time slot adjustment strategy information to the sink node through the downstream node, so that the downstream node and the sink node determine the time slot adjustment strategy according to the time slot adjustment strategy information;
[0105] Step S2720: When receiving the time slot adjustment strategy response message returned by the sink node through the downstream node, determine that the time slot adjustment strategy has been negotiated and determined with the downstream node and the sink node.
[0106] In an embodiment, the time slot adjustment strategy information can include time slot adjustment application information and information to be adjusted, where the time slot adjustment application information is used to request time slot adjustment, and the information to be adjusted is used to determine the policy content of the time slot adjustment strategy.
[0107] The following uses a specific example to detail the time slot adjustment method provided by the embodiments of the present application.
[0108] For example Figure 8 shown, Figure 8It is a schematic diagram of inserting time slot adjustment information in a service flow provided by an embodiment of the present application. In the current related technologies, Ethernet packets are transmitted in a fixed-length code block encoding manner, and the commonly used one is a 66-bit length code block. As Figure 8 shown, when the customer service is in the transmission state, specially defined code blocks can be inserted into the customer service code block stream. Refer to Figure 8 for the code blocks with a white background. These specially defined code blocks include time slot adjustment indication code blocks and time slot switching moment code blocks. These specially defined code blocks can carry corresponding time slot adjustment indication information. Among them, the time slot adjustment indication information includes a time slot adjustment indication signal and a time slot switching indication signal. In Figure 8 's example, the time slot adjustment indication code block can carry three time slot adjustment indication signals: C1, C2, and C3. The three data values of C1, C2, and C3 are a group. C1, C2, and C3 are indication signals with the same function. These indication signals will appear three times. The majority judgment principle is used to obtain a correct judgment even in the case of a single bit error. It should be noted that in this example, three indication signals are used, and the specific implementation process can also be other numbers, such as using five indication signals. C1, C2, and C3 represent the time slot adjustment indication signals. The three time slot adjustment indication signals can adopt the majority judgment principle. Among them, when at least 2 time slot adjustment indication signals are valid, it means that the final judgment result of the time slot adjustment indication signal is a valid indication signal; when at least 2 of the three time slot adjustment indication signals are invalid, it means that the final judgment result of the time slot adjustment indication is an invalid indication signal. C1, C2, and C3 can represent the time slot adjustment indication signals, and can also be used to indicate that the service bandwidth and the data of the carried time slot are about to change, so as to realize the notification function for a previous period of time to prepare for the work. The time slot switching moment code block can carry the time slot switching indication signal CCC. As Figure 8 shown, the CCC signal represents the actual execution moment of the adjustment of the service bandwidth and the number of time slots carrying the customer service. When the time slot adjustment indication signal is valid, the bandwidth of the customer service will change at the CCC signal moment position, and each device also synchronously enables the adjusted number of time slots when detecting the CCC signal moment, so as to realize the synchronous adjustment of the number of time slots and the service bandwidth.
[0109] It should be noted that in the Ethernet standard, the o code block is a control code block. The 2-bit synchronization header bit value is "10", the control word content is "0x4B", and the 34th - 37th bit values in the code block are the o sequence values of the o code block. Different sequence values represent different types of o code blocks with different meanings. As Figure 9 shown in the upper figure. In the current standard, the o sequence values of 0x0, 0x1, 0x2, 0x5, and 0xF have been enabled. Therefore, o code blocks carrying other sequence values can be defined as specially defined code blocks carrying time slot adjustment information. AsFigure 9 As shown in the following figure in , the o-code block with the 0xE sequence value is a special defined code block for the time slot adjustment indication signal.
[0110] In one embodiment, the combination of the synchronization header bit being "10", the control word being "0x4B", and the o-sequence value being "0xE" can be used as the flag value for carrying the time slot adjustment indication code block, and the code block that conforms to this flag value is the code block carrying the time slot adjustment indication information. The first byte in the o-code block is the control word. Figure 9 There are 3 data bytes (D2, D3, D4) after the control word in . The meaning of the data byte content is determined according to the o-code block sequence value type. When the sequence value of the o-code block is defined as carrying the time slot adjustment indication code block, time slot adjustment indication information such as C1 function information, C2 function information, C3 function information, and CCC function information can be carried in these three bytes of D2, D3, and D4. Figure 9 In the following figure in , when the content of D2 is 00, it indicates that the code block is the time slot adjustment indication information of the C1 function; when the content of D2 is 01, it indicates that the code block is the time slot adjustment indication information of the C2 function; when the content of D2 is 10, it indicates that the code block is the time slot adjustment indication information of the C3 function; when the content of D2 is 11, it indicates that the code block is the time slot adjustment indication information of the CCC function. In a specific implementation, the content of the D2 byte can also be represented by other values to indicate the C1, C2, C3, and CCC function information. Of course, in addition to the D2 byte that can carry the function information value, it can also be carried by the D3 byte or the D4 byte.
[0111] In one embodiment, such as Figure 5As shown, the source device can act as the head node, Device 2 and Device 3 can act as intermediate nodes, and Device 4 can act as the tail node. When it is necessary to increase the time slot, the source device can initiate a bandwidth increase adjustment application. Specifically, the source device sends the adjustment application signal CR and the corresponding time slot slot to Device 2 through the bearer frame. Device 2 is an intermediate device and can receive the application signal CR and the corresponding time slot slot. After being determined and permitted by Device 2, Device 2 can forward the application signal CR and the corresponding time slot slot to Device 3. It can be understood that Device 3 is also an intermediate device and can receive the application signal CR and the corresponding time slot slot. After being determined and permitted by Device 3, Device 3 can forward the application signal CR and the corresponding time slot slot to Device 4. It should be noted that Device 4 is the destination device and can receive the application signal CR and the corresponding time slot slot. After being determined and permitted by Device 4, Device 4 can send back the response signal CA and the corresponding time slot slot to Device 3. Device 3 can receive the response signal CA and the corresponding time slot slot sent back by Device 4, and after determination, send back the response signal CA and the corresponding time slot slot to Device 2. Device 2 can receive the received response signal CA and the corresponding time slot slot sent back by Device 3, and after determination, send back the response signal CA and the corresponding time slot slot to the source device 1. After receiving the response information CA and the time slot slot sent back by Device 2, the source device 1 determines that all adjusted time slots have received the response CA information. The source device inserts a special definition code block carrying a time slot adjustment indication into the service flow, and sends three special definition code blocks carrying the time slot adjustment indication values C1, C2, and C3 respectively, and sends the special definition code block and the service flow code block to Device 2 together. Thereafter, the source device 1 can insert a special definition code block carrying the time slot switching moment indication value CCC at the agreed moment, and correspondingly increase the bandwidth of the adjusted customer service flow. After the source device 1 sends the special definition code block carrying the switching moment indication signal CCC value, the number of time slots carrying the customer service is correspondingly increased. The receiving side of Device 2 can detect the type of code block in the customer service during the process of receiving the customer service. If a special definition code block carrying the time slot adjustment indication values C1, C2, and C3 is detected in the customer service code block stream, according to the majority judgment principle, it is judged that the final value of the time slot adjustment indication carried is a valid indication, and the time slot adjustment preparation work is done, and continue to detect the special definition code block carrying the time slot switching moment indication value CCC in the customer service flow. The receiving side of Device 2 also increases the number of time slots at the position where the special definition code block carrying the time slot switching moment indication value CCC is detected, and can extract the customer service on the new number of time slots. When the customer service code block stream reaches the sending end of Device 2, the sending end of Device 2 can be prepared for the implementation of the adjustment when detecting the special definition code block carrying the time slot adjustment indication values C1, C2, and C3. When detecting the special definition code block carrying the time slot switching moment indication value CCC, the sending end of Device 2 can also adjust the number of time slots at the same time.When the service flow is transmitted to the receiving end of Device 3, the receiving end of Device 3 can adopt the same operation mode as the receiving end of Device 2. By analogy, the sending end of Device 3 and the receiving end of Device 4 can all adopt the same operation mode. After the receiving end of Device 4 completes the time slot adjustment work, the adjustment of the number of bearer time slots from Device 1 to Device 4 can be realized, and at this time, the time slot adjustment work is all completed.
[0112] It should be noted that in practical applications, the customer service flow can be in the form of a code block flow, and the customer's code blocks can be mapped to Figure 1 the time slots selected in the bearer frame in Figure 10 for bearer. The customer service code block flow is only carried on the corresponding selected time slots in the bearer frame. For example, the customer originally only carried services on time slots 3 and 15. After adjustment, the selected bearer frame carries services on three time slots: time slots 3, 8, and 15. The bandwidth adjustment this time is to add time slot 8, and after adjustment, the customer service is carried on time slots 3, 8, and 15. In this way, the special defined code block carrying the time slot adjustment indication in the customer service code block flow appears on a certain time slot among 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 Figure 10 shown, the special defined code block of the time slot adjustment indication can appear at a certain moment in the middle of the bearer frame. For the time slot adjustment indication code blocks carrying the values of time slot adjustment indications C1, C2, and C3, the receiving side only detects these three specially defined code blocks in the service code block flow. After detecting these three time slot adjustment indication code blocks, the final adjustment indication valid result can be given according to the majority judgment principle. It can be understood that the different positions of these three time slot adjustment indication code blocks in the bearer frame do not affect the decision result. The time slot switching moment code block carrying the CCC value of the time slot switching moment indication may also appear on any time slot carrying the customer service. Figure 10 In Figure 11As shown, 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. Starting from time slot 8, the number of new time slots is switched, and in this frame, starting from time slot 8, the customer service originally carried by time slot 3 and time slot 15 is changed to be carried by time slot 3, time slot 8, and time slot 15. In specific applications, in addition to the next time slot position after the time slot switching time code block carrying the time slot switching indication CCC value can be used as the reference time point to start the time slot adjustment result, the start position of the next carrying frame (i.e., the first time slot of the next carrying frame) after the time slot switching time code block carrying the time slot switching indication CCC value can also be used as the reference time point to start the time slot adjustment, such as Figure 12 As shown, the combination of time slot 3 and time slot 15 carrying the customer service can be replaced by the combination of time slot 3, time slot 8, and time slot 15. In practical applications, such as Figure 13 As shown, the start position of the first carrying frame in the multiframe of the next carrying frame after the time slot switching time code block carrying the time slot switching indication CCC value (i.e., the first time slot of the first frame in the next multiframe) can also be used as the reference time point to start the time slot adjustment, and the combination of time slot 3 and time slot 15 carrying the customer service is replaced by time slot 3, time slot 8, and time slot 15.
[0113] In one embodiment, multiple special definition code blocks carrying time slot adjustment indications can be inserted into the service flow, and these special definition code blocks and service flow code blocks are transmitted together. The multiple special definition code blocks can be sent at a fixed period (T), such as Figure 14 As shown, there is a fixed number of customer code blocks between the special definition code blocks. After sending the special definition code blocks carrying time slot adjustment indications at a fixed period (T), the positions of other special definition code blocks can be known through any one special definition code block. For example, the positions of the special definition code blocks carrying time slot adjustment indications C2, C3, and the time slot switching indication CCC value can be predicted through the position of the special definition code block carrying time slot adjustment indication C1 value. Through any one of the special definition code blocks of C1, C2, C3, the position of the special definition code block of the CCC value can also be predicted. Since the special definition code block of the CCC value only serves as the reference time point for time slot adjustment, which is just a time point, when the specific position of the special definition code block of the CCC value can be predicted, the reference time point can be known, and this special definition code block does not need to actually exist. The position of a fixed number of customer code blocks (the number of customer service code blocks in the T period length) after the position of the special definition code block carrying time slot adjustment indication C3 code block can be used as the reference time point for time slot adjustment, such as Figure 14 As shown, Figure 14 The special definition code block carrying the time slot switching indication CCC value in it is white, indicating that this code block does not exist, Figure 14It is only a virtual presentation. By setting a pre-agreed reference time point in advance and carrying special defined code blocks such as time slot adjustment indicators C1, C2, C3, etc., the reference time point for time slot adjustment can be determined, and there is no longer a need for a real code block carrying the time slot switching moment indicator signal CCC, reducing the bandwidth loss caused by inserting this code block. In practical applications, the interval between special defined code blocks carrying time slot adjustment indicators C1, C2, C3, etc. can be the same T1 value, and the interval between time slot switching moment code blocks such as the time slot switching moment indicator CCC and time slot adjustment indicator code blocks such as the time slot adjustment indicator C3 can be another T2 value. As Figure 15 shown, the T2 value can be a smaller value to perform the time slot adjustment at an earlier moment. Whether it is an equal interval value such as T1 or multiple interval values such as T1 and T2, these are all within the scope of protection of this application.
[0114] In practical applications, since the length of the customer message is random and uncertain, sometimes long messages are encountered, and sometimes short messages are encountered. In scenarios where it is not allowed to insert special defined code blocks in the middle of the message, when inserting time slot adjustment indicator code blocks such as time slot adjustment indicators C1, C2, C3, etc. at fixed intervals, the expected insertion positions of these code blocks may be in the middle of the message. In this case, the special defined code blocks can only be inserted after the current message is transmitted. As Figure 16 shown, special defined code blocks carrying time slot adjustment indicators C1, C2, C3, etc. can be inserted and sent at equal intervals. The expected position of the special defined code block indicated by the time slot adjustment indicator C3 can be in the middle of the message, but it cannot be inserted immediately in terms of time. It needs to wait until the message is transmitted before it can be inserted. Otherwise, the actual position of the special defined code block indicated by the time slot adjustment indicator C3 will be inconsistent with the expected position. In practical applications, when detecting special defined code blocks at the expected position, if the expected position is one of the three types of code blocks of the customer message (the message code blocks are S code blocks, D code blocks, and T code blocks), then the actual position of the special defined code block is after the end code block T of the message. For special defined code blocks that omit the time slot switching moment indicator CCC information, since no real code block is inserted, the position is always determined according to the expected position when determining the position, and the reference time point for time slot adjustment is determined by the expected position and the code block interval value of special defined code blocks such as time slot adjustment indicators C1, C2, C3, etc. (i.e., the expected position of the special defined code block carrying the time slot adjustment indicator CCC information). See Figure 16, according to the time slot adjustment indication C1, C2, C3 and other special defined code blocks, the adjustment reference time point can be calculated at a D code block position, and the time slot adjustment can be started at this D code block position. In practical applications, in order to facilitate the adjustment of the customer service speed, generally, the customer service speed is changed only after the end of the current message and at the start position of the next message, and the customer service speed will not be changed at the D code block position in the message. In specific applications, although the adjustment reference time point is calculated at the D code block position of the message, when actually performing the time slot adjustment, the adjustment reference time point calculated at the D code block position (except for the D code block, it also includes the three types of code blocks of the customer message such as the S code block and the T code block position) can be modified to the first code block after the T code block at the end of the message. For example, Figure 16 As shown, the execution time of the first code block after the T code block of the current message is used as the corrected adjustment time point of the adjustment time point, which is the actual time slot adjustment execution time.
[0115] It should be noted that in order to monitor the quality of service of the customer service bearing pipeline in the application, OAM code blocks are usually inserted into the customer service flow, and the quality of service of the bearing pipeline can be determined by monitoring the information status in the OAM code blocks. The MTN standard issued by the International Telecommunication Union (ITU organization) defines the format and types of OAM code blocks. The OAM code block is a special defined o code block with a length of 66 bits, and the o sequence value is 0xC, that is, the code block characteristic value is composed of: synchronization header bit "10" + control word 0x4B + o sequence value 0xC. Among them, there are many types of OAM code blocks, which are divided into three categories: Base code block, APS code block, and L code block. The Base code block is a basic function code block with a single code block structure, which can be divided into two subclasses, Base1 and Base2, simply referred to as B1 and B2 code blocks; the APS code block is a protection code block with a multi-code block structure, which is composed of two code blocks; the L code block is a low-priority code block, and the low-priority code block is further divided into several subclasses such as CV, CS, 1DM, and 2DM. Some subclasses of the low-priority code block have a single code block structure, and some subclasses of the low-priority code block have a multi-code block structure. The OAM code blocks can be sent at equal intervals and in a fixed order according to the period T, such as Figure 17 As shown, the sequence relationship of B1, A, B2, and L can be a small sequence cycle, and every 64 small cycle sequences form a large cycle sequence. At the L code block position of each small cycle in the large cycle, the L position of the 1st - 17th small cycle 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 - 31st small cycle can be a 1DM / 2DM code block, and the L code block position of the 32nd - 64th small cycle can be a reserved position. The currently defined reserved position is vacant and no L code block is sent. See Figure 18, in an application, B1, A, B2, and L code blocks can be OAM code blocks defined by existing standards. The functions of these OAM code blocks can be extended to enable them to have the dual functions of carrying indication information such as C1, C2, and C3 at the same time. For example, Figure 18 As shown, the B1 code block carries C1 indication information at the same time, the A code block carries C2 indication information at the same time, the B2 code block carries C3 indication information at the same time, and the B1 code block in the next small cycle is used as the time slot switching reference time point position for carrying CCC indication information function. In this way, the indication information for bandwidth lossless adjustment and the switching time indication function can be realized through existing OAM code blocks.
[0116] It can be understood that in the standard definition, only when the customer enables the APS protection function can the APS code block be sent. If the APS protocol and function are not enabled in the customer application, the corresponding position is vacant and the APS code block is not sent.
[0117] In one embodiment, in the 32nd - 64th B1, A, B2, L small cycles, the L code block is not sent at the L code block position. In this case, a specially defined code block, called a pseudo-APS code block (or called a pseudo-A code block, or C2 code block), needs to be sent at the APS code block position. In this way, the sent OAM sequence becomes Figure 19 the format in. The B1, pseudo-A, and B2 code blocks can transmit C1, C2, C3 indication adjustment indication signals, and the B1 code block position in the next small cycle is used as the agreed time slot adjustment reference time point. When the APS code block is not enabled for sending, a pseudo-APS code block, or a specially defined C2 indication code block, needs to be sent additionally and transmitted together with the B1 and B2 code blocks. In actual applications, in addition to transmitting C1, C2, C3 indication signals through the B1, A, and B2 code blocks, C1, C2, C3 indication signals can also be transmitted through the B1, B2, and L code blocks. The function of the L code block is extended, and the L code block can carry C3 adjustment indication information. For example, Figure 20 As shown, when the L code block is vacant, a pseudo-L code block (also called a C3 code block) can be sent to carry the C3 adjustment flag information.
[0118] It should be noted that the OAM code block formulated by the ITU international standard is a 66-bit length code block, which is an extension of the o code block in the Ethernet standard. The o code block with the o sequence value selected as 0xC value is defined as the OAM code block. The specific format is shown in Table 1 below:
[0119] Table 1 Format table of the OAM code block with the newly defined o sequence value
[0120] 0 1 2-9 10 11 12-17 18-25 26-33 34-37 25-65 1 0 0x4B SoM EoM type value1 value2 0xC 0x000000000000
[0121] It can be seen that 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 represent the composition order relationship of multiple code blocks, distinguishing the first block, intermediate blocks, and last block among multiple code blocks. The specific definitions are shown in Table 2:
[0122] Table 2 Definition Table of the Combination Relationship between SoM Bit and EoM Bit
[0123]
[0124]
[0125] Among them, the type field in the OAM code block is used to represent the type of the OAM code block, such as the 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 subclasses, 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 subclasses only to determine their 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). Among them, B1 is in the front adjacent position to the A code block, and B2 is in the back adjacent position to the A code block. The specific structure of the B code block is shown in Table 3:
[0126] Table 3 Specific Structure of B Code Block
[0127] type SoM EoM bit18 bit19 bit20 bit21 bit22 bit23 bit24 bit25 26-33 B1 1 0 res res res rdi rei rei rei rei parity B2 0 1 res res res rdi rei rei rei rei parity
[0128] Among them, in the B code block, the positions of bit 18, bit 19, and bit 20 are represented by res, indicating that these positions are not yet enabled and are reserved information. Any one of these bits can be enabled as the time slot adjustment indication C information function. Refer to Table 5. Bit 21 can be enabled as the function of carrying the time slot adjustment indication C information. Through the B1 code block and the B2 code block, the time slot adjustment indication C1 and C3 information, or the time slot adjustment indication C1 and C2 information can be represented. In this way, the definition of the B code block is shown in Table 4:
[0129] Table 4 Definition of B Code Block with Added Time Slot Adjustment Indication C Information
[0130] type SoM EoM bit18 bit19 bit20 bit21 bit22 bit23 bit24 bit25 bit26 - 33 B1 1 0 res res C rdi rei rei rei rei parity B2 0 1 res res C rdi rei rei rei rei parity
[0131] 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 form 4 bytes of APS protocol content. The APS format is shown in Table 5:
[0132] Table 5 APS Format Table
[0133]
[0134] Among them, in the second code block of the APS code block sequence group, 4 bits are reserved and not enabled. Any one of these bits can be enabled to carry the function of the time slot adjustment indication C2 information. Refer to Table 6, 21 bits can be enabled to carry the function of the time slot adjustment indication C2 information. The APS code block structure after expanding the new function is shown in Table 6:
[0135] Table 6 APS Code Block Structure Table after Expanding New Function
[0136]
[0137] Since only the second APS code block (A2 code block) has a reserved field for expansion to carry time slot adjustment indication information, as Figure 21 shown, in the application, only the second APS code block (A2) and the previous B1 code block and the next B2 code block of this code block can be combined to transmit and carry the three-bit information of the time slot adjustment indication C1, C2, and C3, that is, select the small loop of B1, A2, B2, L to transmit and carry the time slot adjustment indication. In the small loop of B1, A1, B2, L, because the A code block has no extended bits, it cannot transmit and carry the time slot adjustment indication information. It should be noted that if, due to time constraints, it is necessary to transmit and carry the time slot adjustment indication in the small loop cycle of B1, A1, B2, L, as Figure 22 shown, a specially defined code block, such as a C2 code block (or called a pseudo A code block), can be inserted after (or before) this A code block, which is specifically used to supplement and transmit and carry a time slot adjustment indication. The SoM and EoM values in the normal A code block are "10" or "01". The pseudo code block can adopt the same A code block format, except that the SoM and EoM values are "11" to distinguish the A code block transmitted by the APS protocol, as shown in Table 7:
[0138] Table 7 Format Table of Pseudo Code Block
[0139]
[0140] 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 this pseudo A code block can be used for the function of transmitting the time slot adjustment indication C2 information. In addition to the format of expressing the pseudo A code block by using the type value of the A code block given above, the functions of the pseudo A code block or the C2 code block can also be identified by other different type values. Similarly, when the B code block is not extended to carry and transmit the time slot adjustment indication C1, C2, and C3 information, the code block carrying the time slot adjustment indication C1, C2, and C3 can also be sent in the form of inserting a pseudo B code block alone. It should be noted that all of these are within the scope of this application.
[0141] It should be noted that, similar to the APS code block, there are also reserved bits in the CV code block, CS code block, 1DM code block, 2DM code block, etc. in the L code block, and any one of the reserved bits can be enabled for the function of carrying the time slot adjustment indication information.
[0142] In one embodiment, in the case where there is no L code block position, a pseudo L code block (or called C3 code block) can be sent alone to carry the time slot adjustment indication information. When there are no reserved bits in the L code block in the current round of B1, A, B2, L cycles that can be expanded to transmit the time slot adjustment indication, a specially defined code block, such as the C3 code block, can also be inserted before or after the L code block, which is specifically used to supplement and transmit a time slot adjustment indication.
[0143] In one embodiment, the OAM code blocks can be sent at equal intervals and in a fixed order pattern according to the period T. B1, A, B2, L is a small order cycle, and every 64 small cycles form a large cycle. In the L code block position of each small cycle, the L position in the 1st - 17th small cycles is the CV code block, the 18th is the CS code block, the 19th - 31st are the 1DM / 2DM code blocks, the 32nd - 64th are reserved positions, and the currently defined reserved positions are vacant and no L code block is sent. A specially defined pseudo L code block (such as called the LC code block) can be sent in the L code block position in the 32nd - 64th small cycle period for transmitting the time slot adjustment indication. See Figure 23 , such as Figure 23 As shown, it is possible to select the L code block position in the 32nd, 33rd, and 34th small cycle periods to send a specially defined pseudo L code block (called the LC code block) to transmit the time slot adjustment indication, and use the B1 code block in the next small cycle period (the 35th small cycle) as the reference benchmark moment for the time slot adjustment execution. In practical applications, it is also possible to 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 all of these are within the scope of this application.
[0144] In the foregoing embodiments, 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 a certain amount of transmission information errors and will not result in incorrect judgment results due to a small amount of 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 transmitting information multiple times. In applications, there is another method to improve error tolerance. For example, adding check bits to each transmitted information can determine whether the single transmitted information is correct. There are 3 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 is the check bit for the C bit. Even parity 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 is a fixed relationship between the value of C and the value of BIP, and they can only be "11" or "00". In the scenario of single-bit error, when the values of the C bit and the BIP bit become "10" or "01", these two values are error results, and it can be known that the C bit may be in error. By transmitting the time slot adjustment indication information with a check function, it is not necessary to transmit three or five times. Only two transmissions are required. When the scenario of bit error only results in one information error, even if there is one error, the other value is correct and available. As Figure 24 shown, the time slot adjustment indication information with a check function is carried on the code blocks of B1 and B2. When the combination of the check bit BIP value and the C value in any B code block determines that the corresponding C value is correct, the determined C value is the final time slot adjustment indication information. In Figure 24 , only the time slot adjustment indication information with a check function is carried on the code blocks of B1 and B2, and the next B code block is used as the reference time point for time slot adjustment.
[0145] Table 8 B code block format table
[0146]
[0147] In the above embodiments, during end-to-end time slot adjustment, the source device starts to send a time slot adjustment application. The time slot numbers adjusted among the source device, intermediate network devices, and sink device can be exactly the same. In this way, the intermediate network device only needs to forward the time slot adjustment application signal, time slot number, and time slot adjustment response signal to implement the end-to-end time slot adjustment handshake negotiation process. In practical applications, since the time slot content configured for each node device may be different and the remaining time slot numbers among devices may be inconsistent, it is only necessary to ensure that the number of adjusted time slots is the same between two adjacent nodes, and it is not necessary for the time slot positions and time slot names to be exactly the same. As Figure 25 shown, between the source device 1 and the downstream device 2, time slot 2 and free time slot 3 can be selected for adjustment. Between the selected 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 application signal CR, response signal CA, and corresponding adjusted time slot numbers between each adjacent device can be correlated with each other and correspond one by one to the corresponding adjusted time slots. When the source node sends the adjustment indication signal C, the adjustment indication signal can also be transmitted to each device on the corresponding valid adjustment time slot.
[0148] In one embodiment, under normal circumstances, after the source device sends the valid CR information, the intermediate device can parse the received valid CR information and forward it to the downstream device until it is forwarded to the sink device. In some special or abnormal situations, it is possible that the intermediate or sink device determines that the time slot adjustment requirement cannot be met based on the number of requested time slots, and the time slot adjustment application is rejected. As Figure 26 shown, when the source device applies to increase 10 time slots, there are enough free time slots between device 1 and device 2 to meet the requirement, and there are enough free time slots between device 2 and device 3 to meet the requirement, so the adjustment application can continue to be forwarded. However, there are not enough free time slots between device 3 and device 4 to meet the increased adjustment, and when device 3 cannot continue to forward the time slot adjustment application information to device 4, the time slot adjustment application will be rejected. At this time, device 3 can directly send back the adjustment failure response signal CA_fail to the upstream device without allocating the time slots planned for device 2. After receiving the adjustment failure response signal CA_fail, device 2 cancels the requested time slots and continues to send them back to the upstream device 1. After receiving the adjustment failure response signal CA_fail, device 1 determines that the time slot adjustment application fails, withdraws the content of the requested time slot adjustment application, and cancels the operation of the adjusted time slots that have been applied for, thus completing the cancellation process of the time slot application.
[0149] In the foregoing embodiments, the customer number corresponding to a time slot can be changed from an invalid number to a valid number, indicating an increase in the corresponding time slot, or the customer number corresponding to the time slot can be changed from a valid number to an invalid number, indicating a deletion or reduction of the corresponding time slot. In practical applications, in addition to the change in the customer number indicating an application for an increase or deletion of a time slot, other methods can also be used. For example, an overhead indication bit is set to represent an increase indication signal and a deletion indication signal for each time slot, and the increase indication signal and the deletion indication signal are directly used to represent whether each time slot is an application for an increase adjustment or a deletion adjustment. It should be noted that different indication methods are within the scope of this application.
[0150] Referring to Figure 28 , Figure 28 is a flowchart of a time slot adjustment method provided by another embodiment of this 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.
[0151] Step S2810: After negotiating and determining a time slot adjustment policy with the upstream node and the downstream node, when receiving multiple time slot adjustment indication messages sent by the upstream node, determine the time slot adjustment moment according to the multiple time slot adjustment indication messages, and complete the time slot adjustment by adopting the time slot adjustment policy at the time slot adjustment moment;
[0152] Step S2820: Send multiple time slot adjustment indication messages to the downstream node, so that the downstream node determines the time slot adjustment moment according to the multiple time slot adjustment indication messages, and completes the time slot adjustment by adopting the time slot adjustment policy at the time slot adjustment moment.
[0153] In a feasible implementation manner, when the customer service is in a transfer state and time slot adjustment information needs to be inserted into the service flow, after the intermediate node negotiates and determines a time slot adjustment policy with the upstream node and the downstream node, the intermediate node can receive the time slot adjustment indication message sent by the upstream node and send the time slot adjustment indication message to the downstream node, so that during the transfer of the service flow, each node can complete the time slot adjustment by adopting the time slot adjustment policy at the determined time slot adjustment moment, reducing the different durations of the service bandwidth change moment and the time slot quantity change moment, thereby reducing the number of cached services, and reducing costs and customer latency.
[0154] In a feasible implementation manner, after the intermediate node negotiates and determines a time slot adjustment policy with the upstream node and the downstream node, the intermediate node can also receive 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, and then send the time slot switching moment information to the downstream node.
[0155] In a feasible implementation manner, the time slot switching moment information may be carried in a time slot switching moment code block in a service flow, and 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 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.
[0156] In a feasible implementation manner, the time slot adjustment indication information may be used to indicate that the time slot adjustment policy takes effect. In addition, multiple time slot adjustment indication information may be carried in multiple time slot adjustment indication code blocks in a service flow.
[0157] In a feasible implementation manner, the time slot switching moment information may be carried in a time slot switching moment code block in a service flow. There may be 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 transmitted time slot adjustment indication code block.
[0158] In a feasible implementation manner, when the time slot switching moment information is carried in a time slot switching moment code block in a service flow, there is a first number of first code blocks between two adjacent time slot adjustment indication code blocks, and there is a second number of first code blocks between the time slot switching moment code block and the last transmitted time slot adjustment indication code block. It should be noted that the second number is not equal to the first number.
[0159] In a feasible implementation manner, the time slot switching moment code block may be determined according to the first number and the position of any one time slot adjustment indication code block.
[0160] In a feasible implementation manner, the time slot switching moment code block has an expected position in the service flow. The expected position may be determined according to the first number and the position of any one time slot adjustment indication code block. 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.
[0161] In a feasible implementation manner, the time slot adjustment indication code block and the time slot switching moment code block may have the same code block type. Both the time slot adjustment indication code block and the time slot switching moment code block may include a time slot adjustment function field. The time slot adjustment function field in the time slot adjustment indication code block may be used to carry the time slot adjustment indication information, and the time slot adjustment function field in the time slot switching moment code block may be used to carry the time slot switching moment information.
[0162] In a feasible embodiment, the time slot adjustment indication code block and the time slot switching moment code block may further include a synchronization header bit, a control word, and a type sequence value. Among them, the combination of the synchronization header bit, the control word, and the type sequence value may be used as a flag value for indicating the time slot adjustment indication code block or the time slot switching moment code block.
[0163] In this embodiment, by adopting the time slot adjustment method including the above 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 messages sent by the upstream node, it can determine the time slot adjustment moment according to the multiple time slot adjustment indication messages, and complete the time slot adjustment by adopting the time slot adjustment strategy at the time slot adjustment moment. By sending multiple time slot adjustment indication messages to the downstream node, the downstream node can determine the time slot adjustment moment according to the multiple time slot adjustment indication messages, and complete the time slot adjustment by adopting the corresponding time slot adjustment strategy at the time slot adjustment moment. Therefore, the duration when the service bandwidth changes and the duration when the number of time slots changes can be reduced, thereby reducing the number of buffered services, reducing the network overhead cost, and reducing the customer service delay.
[0164] In an embodiment, multiple time slot adjustment indication messages may be carried in multiple time slot adjustment indication code blocks in the service flow, and the time slot adjustment moment may be determined according to the position where any time slot adjustment indication code block is located.
[0165] In an embodiment, there are a third number of first code blocks between two adjacent time slot adjustment indication code blocks. The time slot adjustment moment may be determined according to the time slot adjustment reference moment, and the time slot adjustment reference moment may be determined according to the third number and the position where any time slot adjustment indication code block is located.
[0166] In an embodiment, the time slot adjustment moment may include one of the following situations:
[0167] The time slot adjustment moment is the next time slot of the time slot where the time slot adjustment reference moment is located;
[0168] 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;
[0169] 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.
[0170] In an embodiment, there are a fourth number of 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. It should be noted that the fourth number is less than or equal to the third number.
[0171] In one embodiment, the time slot adjustment indication code block may further include a time slot adjustment function field, where the time slot adjustment function field is used to carry time slot adjustment indication information.
[0172] In one embodiment, multiple time slot adjustment indication information may be carried in the OAM code block in the service flow.
[0173] In one embodiment, when the OAM code block includes an APS code block, multiple time slot adjustment indication information may 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 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;
[0174] Or,
[0175] 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 may be respectively carried in the Base1 code block, the pseudo-APS code block, and the Base2 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;
[0176] Or,
[0177] 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 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.
[0178] 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.
[0179] In a feasible implementation manner, when the OAM code block includes an L code block, multiple time slot adjustment indication information may 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 moment may be determined according to the position of the first Base1 code block after the L code block carrying the time slot adjustment indication information;
[0180] Or,
[0181] When the OAM code block does not include the L code block, the position of the L code block in the OAM code block is configured with a pseudo L code block. Multiple time slot adjustment indication messages can be respectively carried in the Base1 code block, Base2 code block and pseudo L 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 pseudo L code block carrying the time slot adjustment indication message;
[0182] Or,
[0183] When the OAM code block includes the L code block, a pseudo L code block is configured in front of or behind the L code block. Multiple time slot adjustment indication messages can be respectively carried in the Base1 code block, Base2 code block and pseudo L 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 pseudo L code block carrying the time slot adjustment indication message.
[0184] In an embodiment, the time slot adjustment indication code block may further include check bit information, and the check bit information can be used to check the correctness of the time slot adjustment indication message.
[0185] In an 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 takes effect.
[0186] In an embodiment, participate Figure 29 , Figure 29 is a flowchart of the process for the intermediate node provided by the embodiment of the present application to negotiate and determine the time slot adjustment strategy. When the intermediate node negotiates and determines the time slot adjustment strategy with the upstream node and the downstream node, as Figure 29 shown, the process of determining the time slot adjustment strategy may include but is not limited to steps S2910 - step S2940:
[0187] Step S2910: 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;
[0188] Step S2920: Send 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;
[0189] Step S2930: When receiving the time slot adjustment strategy response information returned by the downstream node, determine that the time slot adjustment strategy has been negotiated and determined with the downstream node;
[0190] Step S2940: Forward the time slot adjustment strategy response information to the upstream node, so that the upstream node determines that the negotiation has determined the time slot adjustment strategy.
[0191] In one embodiment, the time slot adjustment policy information may further include time slot adjustment application information and information to be adjusted. Among them, 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 executed by the intermediate node provided in the embodiments of the present application, the related structure description of the OAM code block involved, and the description of the process of the intermediate node interacting with the upstream node and the downstream node to complete the time slot adjustment can refer to the related description content in the previous embodiments. To avoid redundant content, it will not be elaborated here.
[0193] Refer to Figure 30 , Figure 30 FIG. 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.
[0194] Step S3010: After negotiating with the upstream node to determine the time slot adjustment policy, when receiving multiple time slot adjustment indication messages sent by the upstream node, determine the time slot adjustment moment according to the multiple time slot adjustment indication messages;
[0195] Step S3020: Complete the time slot adjustment by adopting the time slot adjustment policy at the time slot adjustment moment.
[0196] In a feasible implementation manner, when the customer service is in a transfer state and time slot adjustment information needs to be inserted into the service flow, after the tail node negotiates with the upstream node to determine the time slot adjustment policy, the tail node may receive the time slot adjustment indication message sent by the upstream node, so that in the process of service flow transfer, each node can complete the time slot adjustment by adopting the time slot adjustment policy at the determined time slot adjustment moment, reducing the duration when the service bandwidth change moment and the time slot quantity change moment are different, thereby reducing the number of buffered services, and reducing costs and customer latency.
[0197] In a feasible implementation manner, after the tail node negotiates with the upstream node to determine the time slot adjustment policy, the tail node may further receive 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.
[0198] In a feasible implementation manner, the time slot switching moment information may be carried in a time slot switching moment code block in the service flow, and the time slot adjustment moment may include one of the following situations:
[0199] The time slot adjustment moment is the next time slot of the time slot where the time slot switching moment code block is located;
[0200] The slot adjustment moment is the starting position of the next bearer frame of the bearer frame in which the slot switching moment code block is located or the first time slot;
[0201] The slot adjustment moment is the starting position of the first bearer frame in the next multiframe of the multiframe in which the slot switching moment code block is located or the first time slot of the first bearer frame in the next multiframe.
[0202] In a feasible implementation manner, the slot adjustment indication information can also be used to indicate that the slot adjustment strategy takes effect, and multiple slot adjustment indication information can be carried in multiple slot adjustment indication code blocks in the service flow.
[0203] In a feasible implementation manner, the slot switching moment information can be carried in the slot switching moment code block in the service flow. There can be an equal or unequal number of first code blocks between two adjacent slot adjustment indication code blocks and between the slot switching moment code block and the last sent slot adjustment indication code block.
[0204] In a feasible implementation manner, when the slot switching moment information is carried in the slot switching moment code block in the service flow, there is a first quantity of first code blocks between two adjacent slot adjustment indication code blocks, and there is a second quantity of first code blocks between the slot switching moment code block and the last sent slot adjustment indication code block. It should be noted that the second quantity is not equal to the first quantity.
[0205] In a feasible implementation manner, the slot switching moment code block can be determined according to the first quantity and the position of any one slot adjustment indication code block.
[0206] In a feasible implementation manner, the slot switching moment code block has an expected position in the service flow. The expected position can be determined according to the first quantity and the position of any one slot adjustment indication code block. When the code block corresponding to the expected position is a code block in the data packet, the slot switching moment code block is the first code block after the end code block in the data packet.
[0207] In a feasible implementation manner, the slot adjustment indication code block and the slot switching moment code block can have the same code block type. Both the slot adjustment indication code block and the slot switching moment code block can include a slot adjustment function field. The slot adjustment function field in the slot adjustment indication code block can be used to carry the slot adjustment indication information, and the slot adjustment function field in the slot switching moment code block can be used to carry the slot switching moment information.
[0208] In a feasible implementation manner, both the slot adjustment indication code block and the slot switching moment code block further include a synchronization header bit, a control word, and a type sequence value. Among them, the combination of the synchronization header bit, the control word, and the type sequence value is used as a flag value for indicating the slot adjustment indication code block or the slot switching moment code block.
[0209] In this embodiment, by adopting the time slot adjustment method including the above steps S3010 to S3020, after the tail node and the upstream node negotiate and determine the time slot adjustment strategy, when the tail node receives multiple time slot adjustment indication messages sent by the upstream node, the time slot adjustment moment can be determined according to the multiple time slot adjustment indication messages, and the corresponding time slot adjustment strategy can be adopted at the time slot adjustment moment to complete the time slot adjustment. Therefore, the duration when the service bandwidth changes and the duration when the number of time slots changes can be reduced, thereby reducing the number of buffered services, reducing the network overhead cost and the customer service delay.
[0210] In one embodiment, multiple time slot adjustment indication messages can be carried in multiple time slot adjustment indication code blocks in the service flow, and the time slot adjustment moment can be determined according to the position of any one of the time slot adjustment indication code blocks.
[0211] In one embodiment, there are a third number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot adjustment moment can be determined according to the time slot adjustment reference moment, and the time slot adjustment reference moment can be determined according to the third number and the position of any one of the time slot adjustment indication code blocks.
[0212] In one embodiment, the time slot adjustment moment can include one of the following situations:
[0213] The time slot adjustment moment is the next time slot of the time slot where the time slot adjustment reference moment is located;
[0214] 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;
[0215] 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 adjustment reference moment is located or the first time slot of the first bearer frame in the next multi-frame.
[0216] In one embodiment, there can be a fourth number of 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. It should be noted that the fourth number is less than or equal to the third number.
[0217] In one embodiment, the time slot adjustment indication code block can further include a time slot adjustment function field, where the time slot adjustment function field is used to carry the time slot adjustment indication information.
[0218] In one embodiment, multiple time slot adjustment indication messages can also be carried in the OAM code blocks in the service flow.
[0219] In one embodiment, when the OAM code block includes an APS code block, multiple time slot adjustment indication messages 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 message;
[0220] Or,
[0221] When the OAM code block does not include an APS code block, a pseudo APS code block is configured between the Base1 code block and the Base2 code block in the OAM code block. Multiple time slot adjustment indication messages can be respectively carried in the Base1 code block, the pseudo APS code block, and the Base2 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 message;
[0222] Or,
[0223] When the OAM code block includes an APS code block, a pseudo APS code block can be configured in front of or behind the APS code block. Multiple time slot adjustment indication messages 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 according to the position of the first Base1 code block after the Base2 code block carrying the time slot adjustment indication message.
[0224] In one embodiment, when the OAM code block includes an APS code block, the APS code block can include a first APS code block and a second APS code block, and the time slot adjustment indication message can be carried in the second APS code block.
[0225] In one embodiment, when the OAM code block includes an L code block, multiple time slot adjustment indication messages 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 moment can be determined according to the position of the first Base1 code block after the L code block carrying the time slot adjustment indication message;
[0226] Or,
[0227] When the OAM code block does not include an L code block, a pseudo L code block is configured at the position of the L code block in the OAM code block. Multiple time slot adjustment indication messages can be 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 can be determined according to the position of the first Base1 code block after the pseudo L code block carrying the time slot adjustment indication message;
[0228] Or,
[0229] When the OAM code block includes an L code block, a pseudo L code block can be configured before or after the L code block. Multiple time slot adjustment indication messages can be carried in the Base1 code block, Base2 code block, and pseudo L code block in the OAM code block respectively. The time slot adjustment moment can be determined according to the position of the first Base1 code block after the pseudo L code block carrying the time slot adjustment indication message.
[0230] In one embodiment, the time slot adjustment indication code block may further include check bit information, where the check bit information can be used to verify the correctness of the time slot adjustment indication message.
[0231] 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. 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 policy takes effect.
[0232] In one embodiment, refer to Figure 31 , Figure 31 is a flowchart of the process for the tail node to negotiate and determine the time slot adjustment policy provided by the embodiments of the present application. When the tail node negotiates with the upstream node to determine the time slot adjustment policy, as Figure 31 shown, the process of determining the time slot adjustment policy may include but is not limited to step S3110 - step S3120.
[0233] Step S3110: Receive the time slot adjustment policy information sent by the upstream node, and determine the time slot adjustment policy according to the time slot adjustment policy information;
[0234] Step S3120: Send a time slot adjustment policy response message to the upstream node, so that the upstream node determines that the time slot adjustment policy has been negotiated and determined.
[0235] In a feasible embodiment, the time slot adjustment policy information may further include time slot adjustment application information and information to be adjusted. Among them, the time slot adjustment application information can be used to request time slot adjustment, and the information to be adjusted can be used to determine the policy content of the time slot adjustment policy.
[0236] It should be noted that in the time slot adjustment method executed by the tail node provided by the embodiments of the present application, the related structure description of the OAM code block and the description of the process of the tail node and the upstream node interacting to complete the time slot adjustment can refer to the relevant description content in the previous embodiments. To avoid content duplication and redundancy, it will not be elaborated here.
[0237] In addition, an embodiment of the present application also discloses a communication device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements the time slot adjustment method in any of the previous embodiments.
[0238] In addition, an embodiment of the present application also discloses a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are used to execute the time slot adjustment method in any of the previous embodiments.
[0239] Those of ordinary skill in the art can understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and their appropriate combinations. 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 can be implemented as hardware, or can be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information, such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, a communication medium typically contains computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and can include any information delivery medium.
[0240] The above is a specific description of the preferred embodiments of the present application, but the present application is not limited to the above embodiments. Those skilled in the art can make various equivalent deformations or substitutions without departing from the spirit of the present application, and these equivalent deformations or substitutions are all included within 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 complete time slot adjustment using the time slot adjustment strategy at the time slot adjustment moment.
2. The slot adjustment method according to claim 1, characterized in that The method further comprises: Sending time slot switching moment information to the sink node through the downstream node, wherein 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, characterized in that 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 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.
4. The slot adjustment method according to claim 2, characterized in that 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 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.
6. The 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 slot adjustment method according to claim 6, characterized in that 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 slot adjustment method according to any one of claims 5 to 7, characterized in that The slot adjustment indication code block and the slot switching moment code block have the same code block type. Both the slot adjustment indication code block and the slot switching moment 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 moment code block is used to carry the slot switching moment information; Both the slot adjustment indication code block and the 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 slot adjustment indication code block or the slot switching moment code block.
9. The slot adjustment method according to claim 1, characterized in that Multiple pieces of the slot adjustment indication information are carried in multiple slot adjustment indication code blocks in a service flow. The slot adjustment moment is determined according to the position of any one of the slot adjustment indication code blocks.
10. The slot adjustment method according to claim 9, wherein There is a third quantity of first code blocks between two adjacent slot adjustment indication code blocks. The slot adjustment moment is determined according to a slot adjustment reference moment, and the slot adjustment reference moment is determined according to the third quantity and the position of any one of the slot adjustment indication code blocks.
11. The slot adjustment method according to claim 10, characterized in that, The slot adjustment moment includes one of the following situations: The slot adjustment moment is the next slot of the slot where the slot adjustment reference moment is located; The slot adjustment moment is the start position or the first slot of the next bearer frame of the bearer frame where the slot adjustment reference moment is located; The slot adjustment moment is the start position of the first bearer frame in the next multi-frame of the multi-frame where the slot adjustment reference moment is located or the first slot of the first bearer frame in the next multi-frame.
12. The slot adjustment method according to claim 10, wherein There is a fourth quantity of the first code blocks between the position where the slot adjustment reference moment is located and the last transmitted 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, characterized in that, The slot adjustment indication code block includes a synchronization header bit, a control word, a type sequence value, and a slot adjustment function field. The slot adjustment function field is used to carry the 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 slot adjustment indication code block.
14. The slot adjustment method according to claim 1, characterized in that Multiple pieces of the slot adjustment indication information are carried in OAM code blocks in a service flow.
15. The slot adjustment method according to claim 14, wherein: When the OAM code block includes an APS code block, multiple pieces of the 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 slot adjustment moment is determined according to the position of the first Base1 code block after the Base2 code block carrying the 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, characterized in that, 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 slot adjustment method according to claim 4 or 9, characterized in that, 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, including: 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 slot adjustment method according to claim 18, wherein The method 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 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 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 slot adjustment method according to claim 23, wherein The time slot switching moment code block has 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 slot adjustment method according to any one of claims 22 to 24, characterized in that 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 time 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 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 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, characterized in that, 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 transmitted 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, characterized in that, 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. The time slot adjustment method according to 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. 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. 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. 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. 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 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, characterized in that 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 slot adjustment method according to claim 18, characterized in that, The method further includes: Judging the validity of each piece of the time slot adjustment indication information; When the number of valid pieces of the time slot adjustment indication information is greater than the number of invalid pieces of the time slot adjustment indication information, determining that the time slot adjustment strategy takes effect.
36. A time slot adjustment method, including: 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, characterized in that, The method 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 slot adjustment method according to claim 37, characterized in that, 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 of the next bearer frame of the bearer frame where the time slot switching moment code block is located or the first time slot; The time slot adjustment moment is the start 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.
39. The time slot adjustment method according to claim 37, characterized in that, 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.
40. The time slot adjustment method according to claim 39, wherein: The time slot switching moment information is carried in the time slot switching moment code block in the service flow; there are equal or unequal numbers 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 the 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.
41. The slot adjustment method according to claim 40, 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.
42. The slot adjustment method according to claim 41, wherein The time slot switching moment code block has 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 the data packet, the time slot switching moment 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, characterized in that, 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.
44. The time slot adjustment method according to claim 36, wherein Multiple pieces of the time slot adjustment indication information are carried in multiple time slot adjustment indication code blocks in the service flow, and the time slot adjustment moment is determined according to the position of any one of the time slot adjustment indication code blocks.
45. The slot adjustment method according to claim 44, wherein There is 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 of any one of the time slot adjustment indication code blocks.
46. The slot adjustment method according to claim 45, characterized in that, The slot adjustment moment includes one of the following situations: The slot adjustment moment is the next slot of the slot where the slot adjustment reference moment is located; The slot adjustment moment is the starting position or the first slot of the next bearer frame of the bearer frame where the slot adjustment reference moment is located; The slot adjustment moment is the starting position of the first bearer frame in the next multiple-frame of the multiple-frame where the slot adjustment reference moment is located or the first slot of the first bearer frame in the next multiple-frame.
47. The time slot adjustment method according to claim 45, wherein There is a fourth quantity of the first code blocks between the position where the slot adjustment reference moment is located and the last transmitted slot adjustment indication code block, and the fourth quantity is less than or equal to the third quantity.
48. The time slot adjustment method according to any one of claims 44 to 47, characterized in that The slot adjustment indication code block includes a synchronization header bit, a control word, a type sequence value, and a slot adjustment function field. The slot adjustment function field is used to carry the 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 slot adjustment indication code block.
49. The slot adjustment method according to claim 36, wherein Multiple pieces of the slot adjustment indication information are carried in the OAM code blocks in the service flow.
50. The slot adjustment method according to claim 49, wherein: When the APS code block is included in the OAM code block, multiple pieces of the 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 slot adjustment moment is determined according to the position of the first Base1 code block after the Base2 code block carrying the slot adjustment indication information; Or, When the APS code block is not included in the OAM 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 slot adjustment indication information are respectively carried in the Base1 code block, the pseudo-APS code block, and the Base2 code block, and the slot adjustment moment is determined according to the position of the first Base1 code block after the Base2 code block carrying the slot adjustment indication information; Or, When the APS code block is included in the OAM code block, a pseudo-APS code block is configured in front of or behind the APS code block, multiple pieces of the 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 slot adjustment moment is determined according to the position of the first Base1 code block after the Base2 code block carrying the slot adjustment indication information; Or, When the L code block is included in the OAM code block, multiple pieces of the 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 slot adjustment moment is determined according to the position of the first Base1 code block after the L code block carrying the 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.
51. The 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, characterized in that, 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 slot adjustment method according to claim 36, characterized in that, The method 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.