[go: up one dir, main page]

WO2025146038A1 - Time slot adjustment method - Google Patents

Time slot adjustment method Download PDF

Info

Publication number
WO2025146038A1
WO2025146038A1 PCT/CN2024/144308 CN2024144308W WO2025146038A1 WO 2025146038 A1 WO2025146038 A1 WO 2025146038A1 CN 2024144308 W CN2024144308 W CN 2024144308W WO 2025146038 A1 WO2025146038 A1 WO 2025146038A1
Authority
WO
WIPO (PCT)
Prior art keywords
time slot
code block
slot adjustment
time
adjustment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
PCT/CN2024/144308
Other languages
French (fr)
Chinese (zh)
Inventor
刘峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Publication of WO2025146038A1 publication Critical patent/WO2025146038A1/en
Pending legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/04Wireless resource allocation
    • H04W72/044Wireless resource allocation based on the type of the allocated resource
    • H04W72/0446Resources in time domain, e.g. slots or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/20Control channels or signalling for resource management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/40Resource management for direct mode communication, e.g. D2D or sidelink
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/535Allocation or scheduling criteria for wireless resources based on resource usage policies

Definitions

  • the embodiments of the present application relate to but are not limited to the field of communication technology, and in particular, to a time slot adjustment method.
  • customer services are usually carried in a time slot manner. Many time slots are divided in the bearer frame of the physical channel, or many time slots are divided in many bearer frames. Customer services can be carried in each time slot, and the time slots are strictly physically isolated from each other without affecting each other. As shown in Figure 1, the bearer frame is divided into multiple time slots. Customer services are carried in time slots 1 and 2, and other time slots do not carry customer services. In the application, each customer service can be carried and transmitted in some time slots, so that the speed of customer services can be flexibly changed. When the customer service bandwidth is large, it is selected to be carried in multiple time slots; when the customer service bandwidth is small, it is carried in a small number of time slots.
  • the customer service bandwidth and the number of time slots carried correspond to meet customer services of various bandwidth sizes.
  • the bandwidth demand of customer services is variable.
  • the service bandwidth demand is relatively small, and a small number of time slots are purchased to carry services.
  • the customer's market may expand and grow, requiring larger service bandwidth and more time slots to carry customer services.
  • the customer service bandwidth may decrease after a period of time, and the number of time slots carried may need to be reduced. Therefore, the number of time slots for customer services needs to be adjusted dynamically and losslessly to meet the needs of changing customer service bandwidth.
  • an embodiment of the present application also provides a time slot adjustment method, including: after negotiating and determining the time slot adjustment strategy with the upstream node, when receiving multiple time slot adjustment indication information sent by the upstream node, determining the time slot adjustment time according to the multiple time slot adjustment indication information; and using the time slot adjustment strategy at the time slot adjustment time to complete the time slot adjustment.
  • an embodiment of the present application further provides a communication device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the time slot adjustment method as described above when executing the computer program.
  • an embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the time slot adjustment method as described above.
  • FIG1 is a schematic diagram of a structure in which a bearer frame is divided into multiple time slots in the related art
  • FIG4 is a schematic diagram of an adjustment process for increasing time slot requirements in the related art
  • FIG5 is a schematic diagram of a time slot adjustment process in the related art
  • FIG6 is a schematic diagram of a time slot negotiation handshake in the related art
  • FIG7 is a flow chart of a time slot adjustment method provided in an embodiment of the present application.
  • 20 is a schematic diagram of the structure of an OAM sequence for sending a pseudo-L code block provided in an embodiment of the present application
  • 21 is a schematic diagram of the structure of an APS code block sequence extending the APS code block sequence carrying time slot adjustment indication information provided in an embodiment of the present application;
  • 23 is a schematic diagram of sending a specially defined pseudo L code block at the L code block position in the 32nd to 64th small cycle period of the OAM sequence provided by an embodiment of the present application;
  • 24 is a schematic diagram of time slot adjustment indication information carrying a check function on B1 and B2 code blocks provided in an embodiment of the present application;
  • FIG25 is a schematic diagram of a process for selecting time slots for adjustment between devices provided in an embodiment of the present application.
  • FIG28 is a flowchart of a time slot adjustment method provided by another embodiment of the present application.
  • 29 is a flowchart of a process in which intermediate nodes negotiate and determine a time slot adjustment strategy according to an embodiment of the present application
  • FIG30 is a flowchart of a time slot adjustment method provided by another embodiment of the present application.
  • FIG. 31 is a flowchart of a process for tail node negotiation and determination of a time slot adjustment strategy provided in an embodiment of the present application.
  • the communication network usually adopts a frame structure to carry customer services and divides time slots in the bearer frame.
  • the equipment generally supports carrying customer services in a time slot manner, such as equipment that supports the international standard MTN protocol and various types of bearer equipment that supports the SPN equipment defined by China Mobile.
  • the bearer frame consists of a frame header, a container, and a frame tail. Time slots can be divided in the container. The position of the time slot is fixed and is transmitted on the network with the bearer frame. Each customer service can be selected to be transmitted in a fixed time slot, and different customers can choose different time slot positions to carry. 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.
  • the customer service can be first mapped to the corresponding time slot of the bearer frame on the source device and sent out, and then the intermediate device forwards the bearer frame, and finally the host device extracts the customer service from the corresponding time slot in the bearer frame to restore the original customer service.
  • the bearer frame generally has a fixed frame structure, similar to the result of Ethernet message encoding.
  • Ethernet services can be 64/66 encoded when transmitting.
  • each code block consists of 66 bytes.
  • the first two bits are the synchronization header of the code block.
  • the synchronization header bit is "01" to indicate that it is a D code block (data code block), and the following 8 bytes (64 bits) are 8 bytes of data content; the synchronization header bit is "10" to indicate that it is a control code block.
  • the first byte content immediately following indicates the type of control block, and the following 7 bytes are the content of the control block.
  • the 7-byte content is determined by the type of control block.
  • S code blocks, T code blocks, o code blocks, and idle code blocks are all control code blocks.
  • S code blocks, T code blocks, IDLE code blocks, and o code blocks are all control code blocks.
  • the first byte content in the S code block is 0x78, indicating that the control code block is an S code block.
  • the S code block represents the first code block in a data message code block stream.
  • the T code block indicates the last code block in a data message code block stream and is the end block of the message. 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).
  • the T0 code block (the first byte content is 0x87) does not carry customer information
  • the T1 code block (the first byte content is 0x99) carries 1 byte of customer information
  • the T2 code block (the first byte content is 0x99) carries 2 bytes of customer information
  • the T7 code block (the first byte content is 0xFF) carries 7 bytes of customer information.
  • the IDLE code block (also referred to as the I code block) is an idle code block or an error indication code block
  • the control word content is 0x1E.
  • the o code block is a maintenance management code block
  • the control word content is 0x4B.
  • Figure 2 is the frame structure formulated by China Mobile.
  • 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 block in the frame. Every 20 frames organize a multiframe, and there are 480 time slots in a multiframe cycle.
  • the lower figure in Figure 2 is the frame structure in the standard document being formulated by the International Telecommunication Union (ITU).
  • the bearer frame consists of 1 S code block, 990 D code blocks, and 1 T code block. Overhead byte information and 480 time slots are divided on the D code block in the frame.
  • 480 frames organize a multiframe. Each frame in the multiframe transmits the relevant overhead information of a time slot, and the relevant overhead information of 480 time slots is transmitted through 480 frames in a multiframe.
  • the overhead bytes in the bearer frame generally include the following information:
  • MFI Multi-frame indicator
  • client num client number
  • device 2 After receiving the CR signal, device 2 sends a time slot adjustment response signal CA (Configuration Acknowledge) to device 1 after completing the preparation work. After device 1 receives the time slot adjustment response signal CA from device 2, the negotiation work of time slot reduction adjustment between device 1 and device 2 is completed. Device 1 sends an adjustment indication signal C (Configuration come into force). Device 1 and device 2 then carry customer services according to the time slot position 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 application signal CR to the downstream device 3 from device 2. When sending the CR signal, it also sends the time slot number to be reduced and adjusted. After receiving the CR signal, device 3 will send a response CA to device 2 after completing the preparation work.
  • CA Configuration Acknowledge
  • the time slot reduction operation of downstream devices is started, and the number of time slots between upstream nodes is always kept 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 upstream service bandwidth in the pipeline being greater than the downstream service bandwidth, resulting in service overflow at some node locations because the upstream bandwidth is greater than the downstream bandwidth.
  • the end-to-end bandwidth reduction adjustment of the service is completed only after the devices of the last two nodes complete the time slot reduction adjustment.
  • the negotiation work of the time slot increase adjustment between the device 3 and the device 4 is completed, and the device 3 sends the adjustment indication signal C to the device 4. Then the device 3 and the device 4 carry the customer service according to the time slot after the increase and adjustment of the time slot.
  • device 3 sends a time slot increase adjustment notification information S signal to upstream device 2.
  • upstream device 2 receives the S signal
  • device 2 starts the time slot increase adjustment negotiation work, sends a CR signal to device 3, and sends the increased and adjusted time slot number at the same time.
  • device 3 After receiving the CR signal, device 3 returns a response CA signal to device 2 after completing the preparation work.
  • the negotiation work of time slot increase adjustment between device 2 and device 3 is completed.
  • Device 2 sends an adjustment indication signal C to device 3.
  • Device 2 and device 3 then carry customer services according to the time slot after the increased time slot adjustment.
  • device 2 sends a bandwidth increase adjustment notification information S to upstream device 1.
  • device 1 and device 2 complete the negotiation and time slot increase adjustment work of time slot increase adjustment, thus completing all time slot increase adjustment processes.
  • the adjustment process is negotiated and completed segment by segment. In the process of adding time slots, the number of time slots is always increased between downstream devices first, and the number of time slots is increased between upstream devices later.
  • time slot increase adjustment activity is initiated, and the reduced time slots are added back according to the time slot increase mechanism, and the time slot rollback work is completed.
  • the time slot rollback process is also very cumbersome. For example, sometimes during the rollback, the rollback adjustment may fail again, and the rollback cannot be continued, which puts the device in a dilemma of being unable to complete the end-to-end time slot adjustment but unable to complete the end-to-end time slot rollback.
  • failures are prone to occur in the time slot adjustment negotiation, which makes the traditional time slot adjustment application difficult.
  • device 3 After receiving, device 3 periodically sends back the adjustment status information of all time slots to device 2. After receiving, device 2 periodically sends back the adjustment status information of all time slots to device 1. After receiving the adjustment response signal of all time slots, device 1 sends a notification start adjustment indication signal C signal to officially enable the adjusted time slot.
  • the adjustment application status information and response information of all time slot information are periodically transmitted. Among all the time slot adjustment information, some time slots may really need to be adjusted, and some time slots do not need to participate in the adjustment. If there are 480 time slots in total, every 480 frames are used as a multiframe, and each frame in the multiframe transmits the adjustment status information of a time slot.
  • the 0th frame transmits the adjustment status information of time slot 0, the 1st frame transmits the adjustment status information of time slot 1, and the 2nd frame transmits the adjustment status information of time slot 2. And so on, the 479th frame transmits the adjustment status information of time slot 479.
  • time slots 2 and time slot 4 really participate in the time slot adjustment.
  • the CR value of time slots 2 and time slot 4 is 1, indicating that the time slot adjustment is applied.
  • the CR value of other time slots is 0, and they do not participate in the time slot adjustment. Since the customer numbers of time slots 2 and time slots 4 have changed from invalid numbers to valid numbers, it means that the time slot adjustment is increased.
  • new time slots are generally activated at the starting position of the bearer frame. If the time for activating the new time slot is in the middle of a frame, the current bearer frame will continue to carry customer services according to the original old time slot, and the new time slot will be activated to carry customer services at the beginning of the next frame.
  • the dotted line in Figure 6 is the agreed reference time for activating new time slots between the sending device and the receiving device, but the new time slot is actually activated at the starting position of the next adjacent bearer frame.
  • the starting position of the bearer frame i.e., the first time slot
  • Both the sending device and the receiving device enable the new time slot to carry customer services at the bold solid line position, the starting time of the next bearer frame.
  • a time slot adjustment indication signal is inserted into the customer service flow, and the time slot adjustment indication signal is transmitted together with the service flow.
  • the time slot adjustment indication signal has two functions, indicating the change time of the service bandwidth and indicating the time of the adjustment of the time slot carrying the customer service.
  • the bandwidth of the customer service is changed according to the adjustment indication signal, and the number of time slots carrying the customer service is also changed according to the adjustment indication signal.
  • the number of time slots carrying the customer service adapts to the change of the bandwidth of the customer service.
  • the adjustment indication signal is carried in the customer service flow, and the adjustment indication signal represents the adjustment time of the service flow bandwidth.
  • the adjustment indication signal is transmitted in the network with the service flow.
  • the device passing through adjusts the number of time slots carrying the device synchronously according to the adjustment indication carried in the customer service flow, and carries the customer service according to the new number of time slots.
  • the corresponding device also adjusts the number of time slots at the same time, so that the service bandwidth change and the number of time slots are basically synchronized, and the total duration due to the difference between the time of the service bandwidth change and the time slot number change is reduced.
  • FIG. 7 is a flowchart of a time slot adjustment method provided by an embodiment of the present application.
  • the time slot adjustment method may be executed by the head node, and the steps of the time slot adjustment method may include but are not limited to steps S710 to S720.
  • Step S710 After the time slot adjustment strategy is determined through negotiation with the downstream node and the sink node, the time slot adjustment strategy is adopted at the time of time slot adjustment to complete the time slot adjustment.
  • Step S720 Send multiple time slot adjustment indication information to the sink node through the downstream node, so that the downstream node and the sink node determine the time slot adjustment time according to the multiple time slot adjustment indication information, and use the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment time.
  • the first node when the customer service is in a transmission state and time slot adjustment information needs to be inserted into the service flow, the first node can initiate an application for bandwidth increase adjustment.
  • the downstream node and the host node determine the time slot adjustment strategy
  • the time slot adjustment indication information can be sent to the host node through the downstream node, so that in the process of service flow transmission, each node can adopt the time slot adjustment strategy at the determined time slot adjustment time to complete the time slot adjustment, reduce the different durations of the service bandwidth change time and the time slot number change time, thereby reducing the number of cached services, reducing costs and customer delays.
  • the service flow can be ordinary Ethernet service information or high service quality service information.
  • the high service quality service information can be CBR service, high service quality Ethernet service information (such as eCPRI (ethernet Common Public Radio Interface) service information), voice service information, video service information, game service information, etc., which is not specifically limited here.
  • the high service quality service information can be encapsulated in various formats, such as eCPRI protocol message format or Ethernet message format, etc.; ordinary Ethernet service information can be download service information, etc., which is not specifically limited here.
  • the head node may also send time slot switching time information to the sink node through the downstream node, wherein the time slot switching time information is used to indicate the time slot adjustment time.
  • the time slot switching time information can be carried in the time slot switching time code block in the service flow, wherein the time slot adjustment time may include one of the following three situations: the time slot adjustment time is the next time slot of the time slot where the time slot switching time code block is located; the time slot adjustment time is the starting position of the next bearer frame of the bearer frame where the time slot switching time code block is located or the first time slot; the time slot adjustment time is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot switching time code block is located or the first time slot of the first bearer frame in the next multiframe.
  • the time slot adjustment indication information may be used to indicate that the time slot adjustment strategy is effective.
  • multiple time slot adjustment indication information may also be carried in multiple time slot adjustment indication code blocks in the service flow.
  • the slot switching time information when carried in the slot switching time code block in the service flow, there are a first number of first code blocks between two adjacent time slot adjustment indication code blocks, and there are a second number of first code blocks between the time slot switching time code block and the last time slot adjustment indication code block sent. It should be noted that the second number is not equal to the first number.
  • the time slot switching code block corresponds to an expected position in the service flow, and the expected position can be determined based on the first quantity and the position of any time slot adjustment indication code block.
  • the code block corresponding to the expected position is a code block in the data message
  • the time slot switching code block is the first code block after the end code block in the data message.
  • multiple time slot adjustment indication information may be carried in multiple time slot adjustment indication code blocks in a service flow, and the time slot adjustment moment is determined according to the position of any time slot adjustment indication code block.
  • the time slot adjustment time can be determined according to the time slot adjustment reference time, and the time slot adjustment reference time can be determined according to the third number and the position of any time slot adjustment indication code block.
  • the time slot adjustment indication code block further includes a time slot adjustment function field, wherein the time slot adjustment function field can be used to carry time slot adjustment indication information.
  • a plurality of time slot adjustment indication information may be carried in an OAM code block in the service stream.
  • the OAM code block when the OAM code block includes an APS code block, the APS code block may include a first APS code block and a second APS code block. In this case, the time slot adjustment indication information may be carried in the second APS code block.
  • the time slot adjustment strategy information may include time slot adjustment application information and information to be adjusted, wherein 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.
  • time slot adjustment method provided in the embodiment of the present application is described in detail below with reference to a specific example.
  • the CCC signal indicates the actual execution time of the adjustment of the service bandwidth and the number of time slots carrying customer services.
  • the indication signal of the time slot adjustment is valid, the bandwidth of the customer service will change at the time position of the CCC signal.
  • the adjusted number of time slots is also enabled synchronously, so as to realize the synchronous adjustment of the number of time slots and service bandwidth.
  • the o code block is a control code block
  • the 2-bit synchronization header bit value is "10”
  • the control word content is "0x4B”
  • the 34th to 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, as shown in the upper figure in Figure 9.
  • the current standard has enabled the o sequence values of 0x0, 0x1, 0x2, 0x5, and 0xF, so the o code blocks carrying other sequence values can be defined as special definition code blocks carrying time slot adjustment information.
  • the o code block with the 0xE sequence value is used as a special definition code block for the time slot adjustment indication signal.
  • a combination of a synchronization header bit of "10", a control word of "0x4B", and an o sequence value of "0xE" can be used as a flag value for a code block carrying a time slot adjustment indication, and a code block that meets the flag value is a code block carrying time slot adjustment indication information.
  • the first byte in the o code block is the control word.
  • the three bytes D2, D3, and D4 can carry time slot adjustment indication information, such as C1 function information, C2 function information, C3 function information, and CCC function information.
  • D2 content 00 indicates a code block of time slot adjustment indication information of the C1 function
  • D2 content 01 indicates a code block of time slot adjustment indication information of the C2 function
  • D2 content 10 indicates a code block of time slot adjustment indication information of the C3 function
  • D2 content 11 indicates a code block of time slot adjustment indication information of the CCC function.
  • the D2 byte content can also use other values to represent the C1, C2, C3, and CCC function information.
  • the D2 byte in addition to the D2 byte being able to carry the function information value, it can also be carried by the D3 byte or by the D4 byte.
  • the source device can act as the head node, device 2 and device 3 can act as the intermediate nodes, and device 4 can act as the tail node.
  • the source device can initiate a bandwidth increase adjustment application. Specifically, the source device carries the adjustment application signal CR and the corresponding time slot slot through a bearer frame and sends it to device 2.
  • Device 2 is an intermediate device and can receive the application signal CR and the corresponding time slot slot. After device 2 determines and permits, 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.
  • device 3 can forward the application signal CR and the corresponding time slot slot to device 4.
  • device 4 is a sink device, which can receive the application signal CR and the corresponding time slot.
  • device 4 can send back a response signal CA and the corresponding time slot to device 3.
  • Device 3 can receive the response signal CA and the corresponding time slot sent back by device 4, and send back the response signal CA and the corresponding time slot to device 2 after determination.
  • Device 2 can receive the response signal CA and the corresponding time slot sent back by device 3, and send back the response signal CA and the corresponding time slot to source device 1 after determination.
  • the receiving side of the device 2 can detect the type of code block in the customer service during the process of receiving the customer service. If the special definition code block carrying the time slot adjustment indication C1, C2, C3 values 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 is a valid indication, and the time slot adjustment preparation is done. The special definition code block carrying the time slot switching moment indication CCC value in the customer service stream is continued to be detected. The receiving side of the device 2 also increases the number of time slots at the same time when the special definition code block position carrying the time slot switching moment indication CCC value is detected, and the customer service can be extracted at the new number of time slots.
  • the customer service flow can be in the form of a code block flow.
  • the customer's code block can be mapped to the time slot selected in the bearer frame in Figure 1 for carrying.
  • the customer service code block flow is only carried on the corresponding selected time slot in the bearer frame.
  • the customer originally only carried services on time slots 3 and time slots 15.
  • the selected bearer frame carries services on time slots 3, 8 and 15.
  • the bandwidth adjustment this time is to add time slot 8.
  • the customer service is carried on time slots 3, 8 and 15.
  • the starting position of the next bearer frame after the time slot switching time code block carrying the time slot switching time indication CCC value i.e., the first time slot of the next bearer frame
  • the bearer customer service can be replaced from the combination of time slot 3 and time slot 15 to the combination of time slot 3, time slot 8 and time slot 15.
  • the starting position of the first bearer frame in the multiframe of the next bearer frame after the time slot switching time code block carrying the time slot switching time indication CCC value (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 bearer customer service can be replaced from time slot 3 and time slot 15 to time slot 3, time slot 8 and time slot 15.
  • multiple special definition code blocks carrying time slot adjustment indications can be inserted into the service flow, and these special definition code blocks are transmitted together with the service flow code blocks.
  • Multiple special definition code blocks can be sent at a fixed period (T), as shown in FIG14, and a fixed number of client code blocks are spaced between the special definition code blocks.
  • T time period
  • the positions of other special definition code blocks can be known through any special definition code block. For example, the positions of the special definition code blocks carrying the time slot adjustment indication C1 value can be predicted through the positions of the special definition code blocks carrying the time slot adjustment indication C2, C3, and the time slot switching moment indication CCC value.
  • the positions of the special definition code blocks carrying the CCC value can also be predicted through any of the special definition code blocks C1, C2, and C3. Since the special definition code block of the CCC value only serves as the reference time point for time slot adjustment, it is only 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 the special definition code block does not need to exist in reality.
  • the special definition code block carrying the CCC value can be omitted, and the fixed number of customer code block positions (the number of customer service code blocks in the T cycle length) after the code block position carrying the time slot adjustment indication C3 is used as the reference time point for time slot adjustment, as shown in Figure 14.
  • the special definition code block carrying the time slot switching time indication CCC value in Figure 14 is white, indicating that the code block does not exist, and is only virtually presented in Figure 14.
  • the agreed reference time point is set in advance, and the reference time point for time slot adjustment can be determined by carrying the special definition code blocks such as the time slot adjustment indication C1, C2, and C3.
  • the real code block carrying the time slot switching time indication signal CCC is no longer needed, reducing the bandwidth loss caused by inserting the code block.
  • the intervals between special definition code blocks carrying time slot adjustment indications C1, C2, C3, etc. can be the same T1 value, and the intervals between time slot switching time code blocks carrying time slot switching indications CCC, etc. and time slot adjustment indication code blocks carrying time slot adjustment indications C3, etc.
  • T2 value can be another T2 value, as shown in FIG15 , T2 value can be a smaller value, so as to execute the time slot adjustment earlier. Whether it is a T1 interval value, or multiple interval values such as T1, T2, etc., these are within the protection scope of this application.
  • the expected position of the special definition code block indicated by the time slot adjustment indication C3 can be located in the middle of the message, but the code block cannot be inserted immediately in time. It needs to be inserted after the message transmission is completed, otherwise the actual position of the special definition code block indicated by the time slot adjustment indication C3 will be inconsistent with the expected position.
  • the expected position is one of the three code blocks of a customer message (the message code blocks include S code blocks, D code blocks, and T code blocks)
  • the actual position of the special definition code block is after the end code block T of the message.
  • the position is always determined according to the expected position, and the reference time point of the time slot adjustment (i.e., the expected position of the special definition code block carrying the time slot adjustment indication CCC information) is determined by the expected position of the special definition code block carrying the time slot adjustment indication C1, C2, C3 and the code block interval value, see Figure 16, the adjustment reference time point is calculated according to the special definition code block carrying the time slot adjustment indication C1, C2, C3 and the like, at a D code block position, and the time slot adjustment can be performed starting from the D code block position.
  • the reference time point of the time slot adjustment i.e., the expected position of the special definition code block carrying the time slot adjustment indication CCC information
  • the adjustment reference time point is calculated according to the special definition code block carrying the time slot adjustment indication C1, C2, C3 and the like, at a D code block position, and the time slot adjustment can be performed starting from the D code block position.
  • the speed of customer service is changed after the current message ends and at the starting position of the next message, and the customer service speed is not changed at the D code block position in the message.
  • the adjustment reference time point is calculated to be at the D code block position of the message, when the time slot adjustment is actually performed, the adjustment reference time point calculated at the D code block position (in addition to the D code block, it also includes the three types of code blocks of the customer message that may be at the S code block, T code block position, etc.) can be modified to the first code block after the T code block at the end of the message, as shown in Figure 16, and the execution time of the first code block after the T code block of the current message is used as the adjusted time point.
  • the corrected adjustment time point is the real time slot adjustment execution time.
  • OAM code blocks are usually inserted into the customer service flow.
  • the service quality of the bearer pipe can be determined by monitoring the information status in the OAM code blocks.
  • the format and types of OAM code blocks are defined in the MTN standard released by the International Telecommunication Union (ITU).
  • OAM code blocks are a specially defined 66-bit length o code block, 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.
  • there are many types of OAM code blocks which are divided into three categories: Base code blocks, APS code blocks, and L code blocks.
  • the order relationship of B1, A, B2, and L can be a small order cycle, and every 64 small cycle sequences form a large cycle sequence.
  • the L position of the 1st to 17th small cycles can be a CV code block
  • the L code block position of the 18th small cycle can be a CS code block
  • the L code block position of the 19th to 31st small cycles can be a 1DM/2DM code block
  • the L code block position of the 32nd to 64th small cycles can be a reserved position.
  • the currently defined reserved position is vacant and no L code block is sent.
  • B1, A, B2, and L code blocks can be OAM code blocks defined by existing standards.
  • these OAM code blocks can be expanded so that they have the dual functions of carrying C1, C2, C3 and other indication information at the same time.
  • 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
  • the B1 code block of the next small cycle is used as the time slot switching reference time point position for carrying the CCC indication information function, so that the indication information of lossless bandwidth adjustment and the switching time indication function can be realized through the existing OAM code blocks.
  • the L code block is not sent at the L code block position in the 32nd to 64th B1, A, B2, L small cycles.
  • a specially defined code block needs to be sent at the APS code block position, which is called a pseudo APS code block (or pseudo A code block, or C2 code block).
  • the sent OAM sequence becomes the format in Figure 19.
  • the three code blocks B1, pseudo A, and B2 can transmit C1, C2, and C3 indication adjustment indication signals, and the B1 code block position of the next small cycle is used as the agreed time slot adjustment reference time point.
  • the sending of APS code blocks is not enabled, it is necessary to send a pseudo APS code block, or a specially defined C2 indication code block, together with the B1 and B2 code blocks.
  • C1, C2, and C3 indication signals can also be transmitted through the three code blocks B1, A, and B2, C1, C2, and C3 indication signals can also be transmitted through the three code blocks B1, B2, and L.
  • the L code block function is extended so that the L code block can carry C3 adjustment indication information.
  • a pseudo L code block also called a C3 code block
  • C3 code block can be sent to carry C3 adjustment flag information.
  • OAM code block formulated by the ITU international standard is a 66-bit code block, which is an extension of the o code block in the Ethernet standard.
  • the o code block with the o sequence value selected as 0xC is defined as the OAM code block.
  • the specific format is shown in Table 1 below:
  • the OAM code block synchronization header bit is "10"
  • the code block control word value is 0x4B
  • the o sequence value is 0xC.
  • the combination of the SoM bit and the EoM bit can be used to indicate the composition order of multiple code blocks and distinguish the first block, middle block and tail block in multiple code blocks. The specific definition is shown in Table 2:
  • a pseudo L code block (or C3 code block) may be sent separately to carry the time slot adjustment indication information.
  • a special definition code block such as a C3 code block, may be inserted before or after the L code block to supplement the transmission of a time slot adjustment indication.
  • a specially defined pseudo L code block (called an LC code block) can be selected to transmit the time slot adjustment indication at the L code block position in the 32nd, 33rd, and 34th small cycle periods, and the B1 code block of the next small cycle period (the 35th small cycle) is used as the reference base time for the time slot adjustment execution.
  • the C bit is the adjustment indication information
  • the bip is the check bit for the C bit, which can use even parity or odd parity.
  • 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.
  • the C bit value and the BIP bit value become "10" or "01"
  • these two values are error results, so it is known that the C bit may be wrong.
  • the use of the time slot adjustment indication information with a check function does not require three or five transmissions, but only two transmissions.
  • the OAM code block 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.
  • multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the Base2 code block and the L code block in the OAM code block, and the time slot adjustment 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 information; or, 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 information 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 information; or, when the OAM code block includes the L code block, the pseudo L code block is configured before or after the L code block, multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the Base2 code block and the pseudo L code block in the OAM
  • the time slot adjustment indication code block may further include check bit information, and the check bit information may be used to check the correctness of the time slot adjustment indication information.
  • the intermediate node after the intermediate node receives multiple time slot adjustment indication information sent by the upstream node, it can first determine the validity of each time slot adjustment indication information. When the number of valid time slot adjustment indication information is greater than the number of invalid time slot adjustment indication information, it is determined that the time slot adjustment strategy is effective.
  • FIG. 29 is a flowchart of a process of an intermediate node negotiating and determining a time slot adjustment strategy provided by an embodiment of the present application.
  • the process of determining the time slot adjustment strategy may include but is not limited to steps S2910-step S2940:
  • Step S2910 receiving the time slot adjustment strategy information sent by the upstream node, and determining the time slot adjustment strategy according to the time slot adjustment strategy information;
  • Step S2930 upon receiving the time slot adjustment strategy response information returned by the downstream node, determining that the time slot adjustment strategy has been determined through negotiation with the downstream node;
  • Step S2940 forwarding the time slot adjustment strategy response information to the upstream node, so that the upstream node determines that the time slot adjustment strategy has been determined through negotiation.
  • the time slot adjustment strategy information may further include time slot adjustment application information and information to be adjusted, wherein the time slot adjustment application information may be used to request time slot adjustment, and the information to be adjusted may be used to determine the policy content of the time slot adjustment strategy.
  • the relevant structural description of the OAM code blocks involved can refer to the relevant description content in the previous embodiments. In order to avoid redundant content, it will not be repeated here.
  • Figure 30 is a flowchart of a time slot adjustment method provided by another embodiment of the present application.
  • the time slot adjustment method can be executed by the tail node, and the time slot adjustment method can include but is not limited to steps S3010 to S3020.
  • Step S3010 after determining the time slot adjustment strategy through negotiation with the upstream node, upon receiving multiple time slot adjustment indication information sent by the upstream node, determining the time slot adjustment moment according to the multiple time slot adjustment indication information;
  • Step S3020 At the time of time slot adjustment, the time slot adjustment strategy is adopted to complete the time slot adjustment.
  • the tail node when a customer service is in a transmission state and time slot adjustment information needs to be inserted into the service flow, after the tail node and the upstream node determine the time slot adjustment strategy, the tail node can receive the time slot adjustment indication information sent by the upstream node, so that in the process of service flow transmission, each node can adopt the time slot adjustment strategy at the determined time slot adjustment moment to complete the time slot adjustment, thereby reducing the different durations of the service bandwidth change moment and the time slot number change moment, thereby reducing the number of cached services, reducing costs and customer delays.
  • the tail node may also receive time slot switching time information sent by the upstream node, wherein the time slot switching time information is used to indicate the time slot adjustment time.
  • the time slot switching time information can be carried in the time slot switching time code block in the service flow, and the time slot adjustment time can include one of the following situations: the time slot adjustment time is the next time slot of the time slot where the time slot switching time code block is located; the time slot adjustment time is the starting position of the next bearer frame of the bearer frame where the time slot switching time code block is located or the first time slot; the time slot adjustment time is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot switching time code block is located or the first time slot of the first bearer frame in the next multiframe.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Time-Division Multiplex Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

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

Description

一种时隙调整方法A time slot adjustment method

相关申请的交叉引用CROSS-REFERENCE TO RELATED APPLICATIONS

本申请基于申请号为202410011738.1、申请日为2024年1月2日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on the Chinese patent application with application number 202410011738.1 and application date January 2, 2024, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference.

技术领域Technical Field

本申请实施例涉及但不限于通信技术领域,尤其涉及一种时隙调整方法。The embodiments of the present application relate to but are not limited to the field of communication technology, and in particular, to a time slot adjustment method.

背景技术Background Art

目前在通讯网络中,通常采用时隙方式承载客户业务,在物理通道的承载帧中划分许多时隙,或在许多承载帧上划分许多时隙,在每个时隙上可以承载客户业务,时隙与时隙之间严格进行物理隔离,互不影响。如图1所示,承载帧被划分为多个时隙,时隙1和时隙2上承载客户业务,其他时隙不承载客户业务,在应用中每条客户业务可以在部分时隙上承载传递,这样客户业务的速度可灵活变动,当客户业务带宽大时,就选择在多个时隙上承载;客户业务带宽小时,就在少量时隙上承载,客户业务带宽和承载的时隙数量对应起来,满足各类带宽大小的客户业务。在实际应用中,客户业务的带宽需求是变动的,客户开始处于创业阶段时,业务带宽需求比较小,购买少量的时隙来承载业务。时间一长,客户的市场可能会扩展壮大,需要更大的业务带宽以及需要购买更多时隙来承载客户业务。对于市场衰退的业务,可能过一段时间后客户业务带宽减少,需要减少承载的时隙数量,因此需要动态地、无损地调整客户业务的时隙数量,满足客户业务带宽变动的需求。At present, in communication networks, customer services are usually carried in a time slot manner. Many time slots are divided in the bearer frame of the physical channel, or many time slots are divided in many bearer frames. Customer services can be carried in each time slot, and the time slots are strictly physically isolated from each other without affecting each other. As shown in Figure 1, the bearer frame is divided into multiple time slots. Customer services are carried in time slots 1 and 2, and other time slots do not carry customer services. In the application, each customer service can be carried and transmitted in some time slots, so that the speed of customer services can be flexibly changed. When the customer service bandwidth is large, it is selected to be carried in multiple time slots; when the customer service bandwidth is small, it is carried in a small number of time slots. The customer service bandwidth and the number of time slots carried correspond to meet customer services of various bandwidth sizes. In actual applications, the bandwidth demand of customer services is variable. When customers are in the start-up stage, the service bandwidth demand is relatively small, and a small number of time slots are purchased to carry services. Over time, the customer's market may expand and grow, requiring larger service bandwidth and more time slots to carry customer services. For services in a declining market, the customer service bandwidth may decrease after a period of time, and the number of time slots carried may need to be reduced. Therefore, the number of time slots for customer services needs to be adjusted dynamically and losslessly to meet the needs of changing customer service bandwidth.

相对于传统的逐跳协商和逐跳调整机制,在端到端的时隙调整协商成功后通过客户业务携带时隙调整的指示信号,启动调整时隙的活动,减少了协商时间,规避了逐跳调整时遇到调整协商不成功时的严重后果,规避了调整不成功时的回退需求,节省了调整协商时间,提高了调整成功概率。但当业务带宽变动时刻和时隙数量变动时刻不相同,由于两者之间存在速度差,需要一个缓存器将客户业务暂存起来以适配两者速度的差异,业务带宽变动时刻和时隙数量变动时刻的不相同的持续时间越长,需要缓存的业务量越大,成本越高。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 time slot adjustment activity is started by carrying the time slot adjustment indication signal through the customer service, which reduces the negotiation time, avoids the serious consequences of unsuccessful adjustment negotiation during hop-by-hop adjustment, avoids the need for fallback when the adjustment is unsuccessful, saves adjustment negotiation time, and increases the probability of successful adjustment. However, when the service bandwidth change time and the time slot number change time 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 difference between the service bandwidth change time and the time slot number change time lasts, the larger the amount of service that needs to be cached, and the higher the cost.

发明内容Summary of the invention

本申请实施例提供了一种时隙调整方法。An embodiment of the present application provides a time slot adjustment method.

一方面,本申请实施例提供了一种时隙调整方法,包括:当与下游节点和宿节点协商确定了时隙调整策略之后,在时隙调整时刻采用所述时隙调整策略完成时隙调整;通过所述下游节点向所述宿节点发送多个时隙调整指示信息,使得所述下游节点和所述宿节点根据多个所述时隙调整指示信息确定所述时隙调整时刻,以及在所述时隙调整时刻采用所述时隙调整策略完成时隙调整。On the one hand, an embodiment of the present application provides a time slot adjustment method, including: after the time slot adjustment strategy is determined through negotiation with the downstream node and the host node, the time slot adjustment strategy is adopted at the time slot adjustment moment to complete the time slot adjustment; multiple time slot adjustment indication information is sent to the host node through the downstream node, so that the downstream node and the host node determine the time slot adjustment moment according to the multiple time slot adjustment indication information, and the time slot adjustment strategy is adopted at the time slot adjustment moment to complete the time slot adjustment.

另一方面,本申请实施例还提供了一种时隙调整方法,包括:在与上游节点和下游节点协商确定了时隙调整策略之后,当接收到所述上游节点发送的多个时隙调整指示信息,根据多个所述时隙调整指示信息确定时隙调整时刻,并在所述时隙调整时刻采用所述时隙调整策略完成时隙调整;向所述下游节点发送多个所述时隙调整指示信息,使得所述下游节点根据多个所述时隙调整指示信息确定所述时隙调整时刻,以及在所述时隙调整时刻采用所述时隙调整策略完成时隙调整。On the other hand, an embodiment of the present application also provides a time slot adjustment method, including: after determining the time slot adjustment strategy through negotiation with the upstream node and the downstream node, when receiving multiple time slot adjustment indication information sent by the upstream node, determining the time slot adjustment moment according to the multiple time slot adjustment indication information, and using the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment; sending the multiple time slot adjustment indication information to the downstream node, so that the downstream node determines the time slot adjustment moment according to the multiple time slot adjustment indication information, and uses the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment.

另一方面,本申请实施例还提供了一种时隙调整方法,包括:在与上游节点协商确定了时隙调整策略之后,当接收到所述上游节点发送的多个时隙调整指示信息,根据多个所述时隙调整指示信息确定时隙调整时刻;在所述时隙调整时刻采用所述时隙调整策略完成时隙调整。On the other hand, an embodiment of the present application also provides a time slot adjustment method, including: after negotiating and determining the time slot adjustment strategy with the upstream node, when receiving multiple time slot adjustment indication information sent by the upstream node, determining the time slot adjustment time according to the multiple time slot adjustment indication information; and using the time slot adjustment strategy at the time slot adjustment time to complete the time slot adjustment.

另一方面,本申请实施例还提供了一种通信设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上所述的时隙调整方法。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 in the memory and executable on the processor, wherein the processor implements the time slot adjustment method as described above when executing the computer program.

另一方面,本申请实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如上所述的时隙调整方法。On the other hand, an embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the time slot adjustment method as described above.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是相关技术中承载帧被划分为多个时隙的结构示意图;FIG1 is a schematic diagram of a structure in which a bearer frame is divided into multiple time slots in the related art;

图2是相关技术中中国移动制定的帧结构示意图;FIG2 is a schematic diagram of a frame structure developed by China Mobile in the related art;

图3是相关技术中减少时隙需求的调整过程示意图;FIG3 is a schematic diagram of an adjustment process for reducing time slot requirements in the related art;

图4是相关技术中增加时隙需求的调整过程示意图;FIG4 is a schematic diagram of an adjustment process for increasing time slot requirements in the related art;

图5是相关技术中时隙调整过程示意图;FIG5 is a schematic diagram of a time slot adjustment process in the related art;

图6是相关技术中时隙协商握手示意图;FIG6 is a schematic diagram of a time slot negotiation handshake in the related art;

图7是本申请实施例提供的时隙调整方法的流程图;FIG7 is a flow chart of a time slot adjustment method provided in an embodiment of the present application;

图8是本申请实施例提供的在业务流中插入时隙调整信息的示意图;8 is a schematic diagram of inserting time slot adjustment information in a service flow according to an embodiment of the present application;

图9是本申请实施例提供的o码块的结构示意图;FIG9 is a schematic diagram of the structure of an o-code block provided in an embodiment of the present application;

图10是本申请实施例提供的时隙调整指示码块在承载帧中的中间某个时刻出现的结构示意图;10 is a schematic diagram of a structure in which a time slot adjustment indication code block appears at a certain time in the middle of a bearer frame according to an embodiment of the present application;

图11是本申请实施例提供的以下有效时隙位置作为基准时刻点,在有效时隙位置切换成新的调整时隙的结构示意图;11 is a schematic diagram of a structure in which the effective time slot position is used as a reference time point and a new adjustment time slot is switched at the effective time slot position according to an embodiment of the present application;

图12是本申请实施例提供的基准时刻点确认示意图;FIG12 is a schematic diagram of confirming a reference time point provided in an embodiment of the present application;

图13是本申请实施例提供的另一个基准时刻点确认示意图;FIG13 is another schematic diagram of confirming a reference time point provided in an embodiment of the present application;

图14是本申请实施例提供的特殊定义码块之间间隔固定数量的客户码块的示意图;FIG14 is a schematic diagram of a fixed number of client code blocks spaced between specially defined code blocks provided by an embodiment of the present application;

图15是本申请实施例提供的时隙切换时刻码块和时隙调整指示码块之间间隔是T2数值的情况的示意图;15 is a schematic diagram of a case where the interval between the time slot switching time code block and the time slot adjustment indication code block is a T2 value provided by an embodiment of the present application;

图16是本申请实施例提供的时隙调整指示码块的期望插入位置位于报文中间位置的示意图;16 is a schematic diagram of an embodiment of the present application providing a time slot adjustment indication code block where the desired insertion position is located in the middle of the message;

图17是本申请实施例提供的OAM码块之间按照周期T等间隔和固定顺序规律发送的示意图;17 is a schematic diagram of an embodiment of the present application providing an OAM code block that is sent at equal intervals and in a fixed order according to a period T;

图18是本申请实施例提供的OAM码块扩充功能的示意图;FIG18 is a schematic diagram of an OAM code block expansion function provided in an embodiment of the present application;

图19是本申请实施例提供的新的OAM序列的结构示意图;FIG19 is a schematic diagram of the structure of a new OAM sequence provided in an embodiment of the present application;

图20是本申请实施例提供的发送伪L码块的OAM序列的结构示意图;20 is a schematic diagram of the structure of an OAM sequence for sending a pseudo-L code block provided in an embodiment of the present application;

图21是本申请实施例提供的扩充携带时隙调整指示信息的APS码块序列的结构示意图;21 is a schematic diagram of the structure of an APS code block sequence extending the APS code block sequence carrying time slot adjustment indication information provided in an embodiment of the present application;

图22是本申请实施例提供的在APS码块序列中插入一个时隙调整指示码块的示意图;FIG22 is a schematic diagram of inserting a time slot adjustment indication code block into an APS code block sequence provided by an embodiment of the present application;

图23是本申请实施例提供的在OAM序列的第32-64次小循环周期中的L码块位置发送特殊定义的伪L码块的示意图;23 is a schematic diagram of sending a specially defined pseudo L code block at the L code block position in the 32nd to 64th small cycle period of the OAM sequence provided by an embodiment of the present application;

图24是本申请实施例提供的B1、B2码块上携带校验功能的时隙调整指示信息的示意图;24 is a schematic diagram of time slot adjustment indication information carrying a check function on B1 and B2 code blocks provided in an embodiment of the present application;

图25是本申请实施例提供的设备之间选择时隙进行调整的流程示意图;FIG25 is a schematic diagram of a process for selecting time slots for adjustment between devices provided in an embodiment of the present application;

图26是本申请实施例提供的时隙申请的撤销过程示意图;26 is a schematic diagram of the cancellation process of the time slot application provided in an embodiment of the present application;

图27是本申请实施例提供的首节点协商确定时隙调整策略的过程的流程图;27 is a flowchart of a process of first nodes negotiating and determining a time slot adjustment strategy according to an embodiment of the present application;

图28是本申请另一个实施例提供的时隙调整方法的流程图;FIG28 is a flowchart of a time slot adjustment method provided by another embodiment of the present application;

图29是本申请实施例提供的中间节点协商确定时隙调整策略的过程的流程图;29 is a flowchart of a process in which intermediate nodes negotiate and determine a time slot adjustment strategy according to an embodiment of the present application;

图30是本申请另一个实施例提供的时隙调整方法的流程图;FIG30 is a flowchart of a time slot adjustment method provided by another embodiment of the present application;

图31是本申请实施例提供的尾节点协商确定时隙调整策略的过程的流程图。FIG. 31 is a flowchart of a process for tail node negotiation and determination of a time slot adjustment strategy provided in an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

为了使本申请的目的、技术方法及优点更加清楚明白,以下结合附图及实施例,对本申请进行详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical methods and advantages of this application more clear, the following is a detailed description of this application in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain this application and are not used to limit this application.

需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图的描述中,多个(或多项)的含义是两个以上,大于、小于、超过等理解为不包括本数,以上、以下、以内等理解为包括本数。如果有描述到“第一”、“第二”等只是用于区分技术特征为目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量或者隐含指明所指示的技术特征的先后关系。It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that in the flowchart. In the description of the specification, claims and the above-mentioned drawings, the meaning of multiple (or multiple) is more than two, greater than, less than, exceeding, etc. are understood to exclude the number itself, and above, below, within, etc. are understood to include the number itself. If there is a description of "first", "second", etc., it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

值得注意的是,通讯网络上通常采用帧结构来承载客户业务,并在承载帧中划分时隙。设备一般都是支持按照时隙方式承载客户业务的设备,如支持国际标准MTN协议的设备和支持中国移动企业定义的SPN设备等各类承载设备。承载帧由帧头、容器和帧尾组成,可以在容器中划分时隙,时隙的位置是固定的,随承载帧在网络上传递。每条客户业务可以选择在固定时隙传递,不同客户可以选择不同的时隙位置承载。客户带宽大时可以选择多个时隙位置承载,客户带宽小时可以选在少量时隙位置承载。承载客户业务时,可以先在源端设备上将客户业务映射到承载帧对应时隙上发送出去,然后中间设备转发该承载帧,最后在宿端设备从承载帧中对应时隙上提取客户业务,恢复出原始的客户业务。It is worth noting that the communication network usually adopts a frame structure to carry customer services and divides time slots in the bearer frame. The equipment generally supports carrying customer services in a time slot manner, such as equipment that supports the international standard MTN protocol and various types of bearer equipment that supports the SPN equipment defined by China Mobile. The bearer frame consists of a frame header, a container, and a frame tail. Time slots can be divided in the container. The position of the time slot is fixed and is transmitted on the network with the bearer frame. Each customer service can be selected to be transmitted in a fixed time slot, and different customers can choose different time slot positions to carry. 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 service can be first mapped to the corresponding time slot of the bearer frame on the source device and sent out, and then the intermediate device forwards the bearer frame, and finally the host device extracts the customer service from the corresponding time slot in the bearer frame to restore the original customer service.

承载帧一般具备固定的帧结构,类似一个以太网报文编码结果。以太网业务传递时可以进行64/66编码,在以太网802.3协议64/66编码规则中,每个码块由66个组成,前2个比特是码块的同步头,同步头比特为“01”是表示是D码块(数据码块),后面8个字节(64位比特)位置是8个字节数据内容;同步头比特为“10”是表示是控制码块,紧跟的第一个字节内容表示控制块的类型,此后7个字节是控制块的内容,7个字节内容由控制块的类型决定,S码块、T码块、o码块和空闲码块等都属于控制。S码块、T码块、IDLE码块和o码块等都属于控制码块。S码块中第一个字节内容是0x78,表示控制码块是S码块,S码块表示一个数据报文码块流中第一个码块。T码块表示一个数据报文码块流中最后一个码块,是报文的结束块。T码块除了表示是结束块外,也可以承载客户字节内容(位于码块中后7个字节位置)。以太网标准中T码块分为8种:T0、T1、T2、T3、T4、T5、T6、T7,T0(第一个字节内容是0x87)码块上不承载客户信息,T1码块(第一个字节内容是0x99)上承载1个字节的客户信息,T2码块(第一个字节内容是0x99)上承载2个字节的客户信息,依次类推,T7码块(第一个字节内容是0xFF)上承载7个字节的客户信息。IDLE码块(也简称I码块)是空闲码块或误码指示码块,控制字内容是0x1E。o码块是维护管理码块,控制字内容是0x4B。The bearer frame generally has a fixed frame structure, similar to the result of Ethernet message encoding. Ethernet services can be 64/66 encoded when transmitting. In the 64/66 encoding rules of the Ethernet 802.3 protocol, each code block consists of 66 bytes. The first two bits are the synchronization header of the code block. The synchronization header bit is "01" to indicate that it is a D code block (data code block), and the following 8 bytes (64 bits) are 8 bytes of data content; the synchronization header bit is "10" to indicate that it is a control code block. The first byte content immediately following indicates the type of control block, and the following 7 bytes are the content of the control block. The 7-byte content is determined by the type of control block. S code blocks, T code blocks, o code blocks, and idle code blocks are all control code blocks. S code blocks, T code blocks, IDLE code blocks, and o code blocks are all control code blocks. The first byte content in the S code block is 0x78, indicating that the control code block is an S code block. The S code block represents the first code block in a data message code block stream. The T code block indicates the last code block in a data message code block stream and is the end block of the message. 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, there are 8 types of T code blocks: T0, T1, T2, T3, T4, T5, T6, and T7. The T0 code block (the first byte content is 0x87) does not carry customer information, the T1 code block (the first byte content is 0x99) carries 1 byte of customer information, the T2 code block (the first byte content is 0x99) carries 2 bytes of customer information, and so on. The T7 code block (the first byte content is 0xFF) carries 7 bytes of customer information. The IDLE code block (also referred to 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 management code block, and the control word content is 0x4B.

目前国内外不同标准制定了不同的承载帧帧格式,参见图2,图2是中国移动制定的帧结构。如图2所示,承载帧由1个S码块、195个D码块、1个T码块组成。在帧中的D码块上划分了开销字节信息和24个时隙。每20个帧组织一个复帧,一个复帧周期中有480个时隙。图2中的下图是国际电信联盟(ITU)正在制定标准文件中的帧结构,承载帧由1个S码块、990个D码块、1个T码块组成,帧中的D码块上划分了开销字节信息和480个时隙,同时480个帧组织一个复帧,复帧中的每一帧传递一个时隙的相关开销信息,通过一个复帧中的480帧传递完480个时隙的相关开销信息。无论那种标准,承载帧中开销字节一般包括如下信息:At present, different standards at home and abroad have formulated different bearer frame formats, see Figure 2, Figure 2 is the frame structure formulated by China Mobile. As shown in Figure 2, the bearer frame consists of 1 S code block, 195 D code blocks, and 1 T code block. Overhead byte information and 24 time slots are divided on the D code block in the frame. Every 20 frames organize a multiframe, and there are 480 time slots in a multiframe cycle. The lower figure in Figure 2 is the frame structure in the standard document being formulated by the International Telecommunication Union (ITU). The bearer frame consists of 1 S code block, 990 D code blocks, and 1 T code block. Overhead byte information and 480 time slots are divided on the D code block in the frame. At the same time, 480 frames organize a multiframe. Each frame in the multiframe transmits the relevant overhead information of a time slot, and the relevant overhead information of 480 time slots is transmitted through 480 frames in a multiframe. Regardless of the standard, the overhead bytes in the bearer frame generally include the following information:

MFI:复帧指示Multi-frame indicator;MFI: Multi-frame indicator;

GCC:通用通讯通道General Communication Channe l;GCC: General Communication Channel;

Slot num:时隙号Slot number;Slot num: slot number;

client num:客户编号client number;client num: client number;

CR:时隙配置申请指示Configuration request;CR: Configuration request;

CA:时隙配置应答指示Configuration Acknowledge;CA: Configuration Acknowledge;

C:时隙配置生效指示Configuration come into force;C: Configuration come into force;

S:时隙增大调整通告Send notice。S: Send notice of time slot increase adjustment.

在实际业务应用中,起初客户业务量少,购买的网络带宽小,只需要少量承载时隙。一段时间后,客户业务量增大,需要更多的时隙来承载客户业务,需要完成时隙增加的操作,在不影响、不中断客户业务的情况下无损地增加时隙数量。对于市场衰退的企业业务,一段时间后客户业务减少,需要减少承载的时隙数量,这样需要在不影响客户业务的情况下,动态地减少承载客户业务的时隙数量。传统的方案采用逐跳协商、逐跳调整机制。调整过程首先启动时隙调整的握手协商过程:一端设备发送时隙调整申请信号,另外一端设备接收到时隙调整申请信号后,回送时隙调整应答、确认信号,发送时隙调整申请信号的设备收到应答信号就完成两台设备之间的协商工作,可以开始启动时隙数量调整了。参考图3所示,图3是减少时隙需求的调整过程,当需要减少时隙时,源端设备(设备1)向下游设备2发送时隙调整减少申请信号CR(Configuration request),在发送CR信号时发送减少调整的时隙编号,提示下游设备2需要减少调整的时隙编号,设备2收到CR信号后,完成准备工作后向设备1发送时隙调整应答信号CA(Configuration Acknowledge)。设备1收到设备2的时隙调整应答信号CA后,完成设备1和设备2之间时隙减少调整的协商工作,设备1发送调整指示信号C(Configuration come into force),设备1和设备2然后按照减少调整后的时隙位置上承载客户业务。当设备2收到设备1的调整指示信号C后,从设备2开始向下游设备3发送时隙减少调整申请信号CR,在发送CR信号时同时发送减少调整的时隙编号,设备3收到CR信号后,完成准备工作后向设备2会送应答CA,信号设备2收到设备3的应答CA信号后,完成设备2和设备3之间时隙减少调整的协商工作。设备2收到设备3的应答CA信号后,发送调整指示信号C,设备2和设备3然后在减少调整后的时隙位置上承载客户业务。依次类推,设备3和设备4完成时隙减少调整的协商和时隙减少调整工作,这样才完成所有时隙调整工作。上面的调整过程是逐段协商、逐段完成调整,在调整过程中有的设备已经完成调整,按照调整后的时隙数量承载业务;有的设备未完成调整,按照调整前的时隙数量承载业务。在减少调整过程中,上游相邻设备之间先减少时隙数量,上游相邻节点的时隙数量减少之后,才开始启动下游设备的时隙减少操作,始终保持上游节点之间的时隙数量少于下游节点之间的时隙数量,即上游节点之间的业务带宽小于下游节点之间的业务带宽,避免管道中上游业务带宽大于下游的业务带宽,导致业务在部分节点位置因为上游带宽大于下游带宽而出现业务溢出。在调整过程中,最后两个节点的设备完成时隙减少调整之后,才完成业务端到端的带宽减少调整。In actual business applications, initially, the customer service volume is small, the purchased network bandwidth is small, and only a small number of time slots are needed. After a period of time, the customer service volume increases, and more time slots are needed to carry customer services. The time slot increase operation needs to be completed, and the number of time slots needs to be increased without affecting or interrupting customer services. For corporate services in a declining market, customer services decrease after a period of time, and the number of time slots carried needs to be reduced. In this way, the number of time slots carrying customer services needs to be dynamically reduced without affecting customer services. The traditional solution adopts a hop-by-hop negotiation and hop-by-hop adjustment mechanism. The adjustment process first starts the handshake negotiation process of time slot adjustment: one end device sends a time slot adjustment request signal, and the other end device receives the time slot adjustment request signal and 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 between the two devices is completed, and the time slot number adjustment can be started. Referring to FIG3, FIG3 is an adjustment process for reducing time slot requirements. When the time slot needs to be reduced, 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 to be reduced is sent, prompting the downstream device 2 that the time slot number needs to be reduced. After receiving the CR signal, device 2 sends a time slot adjustment response signal CA (Configuration Acknowledge) to device 1 after completing the preparation work. After device 1 receives the time slot adjustment response signal CA from device 2, the negotiation work of time slot reduction adjustment between device 1 and device 2 is completed. Device 1 sends an adjustment indication signal C (Configuration come into force). Device 1 and device 2 then carry customer services according to the time slot position 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 application signal CR to the downstream device 3 from device 2. When sending the CR signal, it also sends the time slot number to be reduced and adjusted. After receiving the CR signal, device 3 will send a response CA to device 2 after completing the preparation work. After device 2 receives the response CA signal from device 3, the negotiation of time slot reduction adjustment between device 2 and device 3 is completed. After device 2 receives the response CA signal from device 3, it sends an adjustment indication signal C. Devices 2 and 3 then carry customer services at the reduced and adjusted time slot positions. By analogy, device 3 and device 4 complete the negotiation and adjustment of time slot reduction adjustment, thus completing all time slot adjustment work. The above adjustment process is negotiated and adjusted section by section. During the adjustment process, some devices have completed the adjustment and carry services according to the adjusted number of time slots; some devices have not completed the adjustment and carry services according to the number of time slots before the adjustment. During the reduction adjustment process, the number of time slots between upstream adjacent devices is reduced first. After the number of time slots of upstream adjacent nodes is reduced, the time slot reduction operation of downstream devices is started, and the number of time slots between upstream nodes is always kept 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 upstream service bandwidth in the pipeline being greater than the downstream service bandwidth, resulting in service overflow at some node locations because the upstream bandwidth is greater than the downstream bandwidth. During the adjustment process, the end-to-end bandwidth reduction adjustment of the service is completed only after the devices of the last two nodes complete the time slot reduction adjustment.

当增加时隙时,为了保证上游节点之间的业务带宽小于下游节点之间的业务带宽,中移企业标准规定时隙增加调整时,从宿端设备开始时隙增加调整,参考图4所示,图4是增加时隙需求的调整过程,当需要增加时隙时,宿端设备(设备4)向上游设备3发送带宽增大调整通知信息S(send notice)信号,上游设备3收到S信号后,设备3启动增大调整,向设备4发送CR信号上,同时发送增加调整的时隙编号,设备4收到CR信号后,完成准备工作后向设备3回送时隙增大调整应答信号CA。设备3收到设备4的应答CA信号后,完成设备3和设备4之间时隙增加调整的协商工作,设备3向设备4发送调整指示信号C,设备3和设备4然后按照增加时隙调整后的时隙承载客户业务。同时设备3向上游设备2发送时隙增大调整通知信息S信号,上游设备2收到S信号后,设备2启动增大时隙调整协商工作,向设备3发送CR信号上,同时发送增加调整的时隙编号,设备3收到CR信号后,完成准备工作后向设备2回送应答CA信号。设备2收到设备3的应答CA信号后,完成设备2和设备3之间时隙增加调整的协商工作,设备2向设备3发送调整指示信号C,设备2和设备3然后按照增加时隙调整后的时隙承载客户业务。同时设备2向上游设备1发送带宽增大调整通知信息S。依次类推,设备1和设备2完成时隙增加调整的协商和时隙增加调整工作,这样才完成所有时隙增加调整过程。调整过程是逐段协商、逐段完成的,在增加时隙的调整过程中,始终是下游设备之间先增加时隙数量,上游设备之间后增加时隙数量,始终保持上游节点之间的时隙数量少于下游节点之间时隙数量,即上游节点之间的业务带宽小于下游节点之间的业务带宽,避免管道中上游业务带宽大于下游的业务带宽,导致业务溢出。在增加时隙调整过程中,最后两个节点的设备完成时隙增加调整之后,才完成业务端到端的带宽增加调整。When adding time slots, in order to ensure that the service bandwidth between upstream nodes is less than the service bandwidth between downstream nodes, China Mobile's corporate standard stipulates that when time slots are added and adjusted, the time slots are added and adjusted starting from the sink device. Refer to Figure 4, which is the adjustment process of increasing the time slot demand. When time slots need to be added, the sink device (device 4) sends a bandwidth increase adjustment notification information S (send notice) signal to the upstream device 3. After the upstream device 3 receives the S signal, the device 3 starts the increase adjustment and sends a CR signal to the device 4, and sends the time slot number to be increased and adjusted at the same time. After receiving the CR signal, the device 4 returns the time slot increase adjustment response signal CA to the device 3 after completing the preparation work. After receiving the response CA signal from the device 4, the negotiation work of the time slot increase adjustment between the device 3 and the device 4 is completed, and the device 3 sends the adjustment indication signal C to the device 4. Then the device 3 and the device 4 carry the customer service according to the time slot after the increase and adjustment of the time slot. At the same time, device 3 sends a time slot increase adjustment notification information S signal to upstream device 2. After upstream device 2 receives the S signal, device 2 starts the time slot increase adjustment negotiation work, sends a CR signal to device 3, and sends the increased and adjusted time slot number at the same time. After receiving the CR signal, device 3 returns a response CA signal to device 2 after completing the preparation work. After device 2 receives the response CA signal from device 3, the negotiation work of time slot increase adjustment between device 2 and device 3 is completed. Device 2 sends an adjustment indication signal C to device 3. Device 2 and device 3 then carry customer services according to the time slot after the increased time slot adjustment. At the same time, device 2 sends a bandwidth increase adjustment notification information S to upstream device 1. By analogy, device 1 and device 2 complete the negotiation and time slot increase adjustment work of time slot increase adjustment, thus completing all time slot increase adjustment processes. The adjustment process is negotiated and completed segment by segment. In the process of adding time slots, the number of time slots is always increased between downstream devices first, and the number of time slots is increased between upstream devices later. The number of time slots between upstream nodes is always kept less than that between downstream nodes, that is, the service bandwidth between upstream nodes is less than that between downstream nodes, to avoid the upstream service bandwidth in the pipeline being greater than the downstream service bandwidth, resulting in service overflow. In the process of adding time slots, the end-to-end bandwidth increase adjustment of the service is completed only after the devices of the last two nodes complete the time slot increase adjustment.

传统的带宽调整过程是逐段协商、逐段完成的,一段调整完成之后,才启动下一段的调整工作,调整过程耗时非常大。同时逐段协商、逐段完成带来一个重大弊端,就是有些段已经调整完成,有些段在调整过程遇到意外情况(例如有些节点之间调整中CR、CA遇到干扰导致信号丢失,或某个设备遇到困难无法回送应答CA信号,上下游设备之间协商失败),当部分设备之间时隙调整协商失败后,无法进行后续的时隙调整工作,这样网络上出现有些调整成功的设备按照新时隙数量工作,有些设备之间按照老时隙数量工作,业务的端到端的承载带宽不一致。在部分设备之间协商失败、无法继续后续设备的时隙调整情况下,一般要启动回退机制,按照时隙调整过程、采用相反数量将调整成功的设备退回到原始、未调整的时隙状态。例如,如果时隙增大调整中,部分设备调整成功,部分设备调整失败,则对于调整成功的设备启动时隙减少调整活动,将增加的时隙按照时隙减少机制重新删除掉,完成时隙回退工作。类似,如果时隙减少调整中,部分设备调整成功,部分设备调整失败,则对于调整成功的设备启动时隙增加调整活动,将减少的时隙按照时隙增加机制重新增加回来,完成时隙回退工作。时隙回退过程也是非常繁琐。例如,有时在回退中可能再次遇到回退调整失败,无法继续回退,处于无法完成端到端的时隙调整、但无法完成端到端的时隙退回的两难状况。在不同厂家组网中,因为不同厂商内部处理机制的不同,时隙调整协商中容易出现失败现象,导致传统的时隙调整应用困难。The traditional bandwidth adjustment process is negotiated and completed segment by segment. After one segment is adjusted, the adjustment of the next segment is started. The adjustment process is very time-consuming. At the same time, the negotiation and completion of each segment bring a major disadvantage, that is, some segments have been adjusted, and some segments encounter unexpected situations during the adjustment process (for example, CR and CA encounter interference 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 between some devices fails, the subsequent time slot adjustment work cannot be carried out. In this way, some devices that have successfully adjusted on the network work according to the new number of time slots, and 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 of negotiation failure between some devices and the inability to continue the time slot adjustment of subsequent devices, the fallback mechanism is generally started, and the successfully adjusted devices are returned to the original, unadjusted time slot state according to the time slot adjustment process and with the opposite number. For example, if during the time slot increase adjustment, some devices are successfully adjusted while others fail to adjust, then for the successfully adjusted devices, the time slot reduction adjustment activity is initiated, and the increased time slots are deleted again according to the time slot reduction mechanism, and the time slot rollback work is completed. Similarly, if during the time slot reduction adjustment, some devices are successfully adjusted while others fail to adjust, then for the successfully adjusted devices, the time slot increase adjustment activity is initiated, and the reduced time slots are added back according to the time slot increase mechanism, and the time slot rollback work is completed. The time slot rollback process is also very cumbersome. For example, sometimes during the rollback, the rollback adjustment may fail again, and the rollback cannot be continued, which puts the device in a dilemma of being unable to complete the end-to-end time slot adjustment but unable to complete the end-to-end time slot rollback. In the networking of different manufacturers, due to the different internal processing mechanisms of different manufacturers, failures are prone to occur in the time slot adjustment negotiation, which makes the traditional time slot adjustment application difficult.

为了解决当前时隙调整方案出现的调整速度缓慢、调整可靠性差的问题,图5给出一种端点到端点的时隙协商调整方案,如图5所示时隙调整过程示意图,该时隙调整过程如下:网管系统向源端设备下发时隙配置内容和调整命令,确定源端设备和宿端设备。无论增加调整时隙,还是减少调整时隙,时隙调整都由源端设备发起,源端设备1向下游设备2发送调整带宽申请信号CR,在发送CR信号时同时发送调整的时隙编号,提示下游设备2需要调整的时隙编号,中间设备2收到CR信号后启动准备工作后,但不立即向设备1回送应答信号CA,设备2继续向下游设备3发送时隙调整申请信号CR,同时发送调整的时隙编号。类似地,中间设备3收到CR信号后启动准备工作后,当不立即向设备2回送应答信号CA,而是向下游设备4发送调整带宽申请信号CR,同时发送调整的时隙编号。设备4是宿点设备,宿点设备在收到上游设备3的CR信号后完成准备工作,向上游设备3回送时隙调整应答信号CA和调整的时隙编号。中间设备3收到下游设备4的应答信号CA后,中间设备3才向上游设备2回送时隙调整应答信号CA和调整的时隙编号。类似地,中间设备2收到下游设备3的时隙调整应答信号CA后,中间设备2才向上游设备1回送应答信号CA和调整的时隙编号。设备1是源点设备,源点收到下游的时隙调整应答信号CA和调整的时隙编号后,确定回送的时隙编号和申请的时隙编号一致,确定了源端设备和宿点设备、以及所有中间设备之间都完成了协商工作,所有设备之间时隙调整协商都是成功的,这种情况下源端设备1才开始向下游设备发送调整指示信号C。如果网络中部分设备之间调整协商不成功,则源端设备1是不会收到应答信号CA的,源端设备1就不会发送调整指示信号C,设备之间不会按照新时隙数量承载客户业务,设备之间依旧按照原始时隙数量承载客户业务,避免了传统时隙调整中部分设备之间协商成功、部分设备之间协商不成功导致端到带宽不一致的问题,以及时隙调整的回退问题。如果网络中部分设备协商出现失败,源端设备无法收到时隙调整应答信号,则源端设备可以重复或持续地发送时隙调申请信号CR,直到收到时隙调整应答信号CA为止。如果一定时间内源端设备始终无法收到调整应答信号CA,则源端设备认为端到端链路故障,终止发送时隙调申请信号CR,终止时隙调整活动。In order to solve the problems of slow adjustment speed and poor adjustment reliability in the current time slot adjustment scheme, FIG5 provides an end-to-end time slot negotiation adjustment scheme, as shown in FIG5, which is a schematic diagram of the time slot adjustment process. The time slot adjustment process is as follows: the network management system sends the time slot configuration content and adjustment command to the source device to determine the source device and the sink device. Whether increasing or reducing the adjustment time slot, the time slot adjustment is initiated by the source device. The source device 1 sends a bandwidth adjustment application signal CR to the downstream device 2, and sends the adjusted time slot number at the same time when sending the CR signal, prompting the downstream device 2 to adjust the time slot number. After receiving the CR signal, the intermediate device 2 starts the preparation work, but does not immediately send the response signal CA back to the device 1. The device 2 continues to send the time slot adjustment application signal CR to the downstream device 3, and sends the adjusted time slot number at the same time. Similarly, after receiving the CR signal, the intermediate device 3 starts the preparation work, and does not immediately send the response signal CA back to the device 2, but sends the bandwidth adjustment application signal CR to the downstream device 4, and sends the adjusted time slot number at the same time. Device 4 is a sink device. After receiving the CR signal from the upstream device 3, the sink device completes the preparation work and sends back the time slot adjustment response signal CA and the adjusted time slot number to the upstream device 3. After the intermediate device 3 receives the response signal CA from the downstream device 4, the intermediate device 3 sends back the time slot adjustment response signal CA and the adjusted time slot number to the upstream device 2. Similarly, after the intermediate device 2 receives the time slot adjustment response signal CA from the downstream device 3, the intermediate device 2 sends back the response signal CA and the adjusted time slot number to the upstream device 1. Device 1 is a source device. After the source receives the time slot adjustment response signal CA and the adjusted time slot number from the downstream, it determines that the sent back time slot number is consistent with the applied time slot number, and determines that the negotiation work between the source device and the sink device and all the intermediate devices has been completed, and the time slot adjustment negotiation between all devices is successful. In this case, the source device 1 starts to send the adjustment indication signal C to the downstream device. If the adjustment negotiation between some devices in the network is unsuccessful, the source device 1 will not receive the response signal CA, and the source device 1 will not send the adjustment indication signal C. The devices will not carry customer services according to the new number of time slots, and the devices will still carry customer services according to the original number of time slots, avoiding the problem of end-to-end bandwidth inconsistency caused by successful negotiation between some devices and unsuccessful negotiation between some devices in traditional time slot adjustment, as well as the fallback problem of time slot adjustment. If the negotiation of some devices in the network fails, and the source device cannot receive the time slot adjustment response signal, the source device can repeatedly or continuously send the time slot adjustment 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 that the end-to-end link has failed, stops sending the time slot adjustment application signal CR, and terminates the time slot adjustment activity.

当源端设备1收到下游设备回送的时隙调整应答确认信号CA和调整时隙编号,确定回送的时隙编号和申请的时隙编号一致,则源端设备才向下游设备2发送调整指示信号C,同时设备1按照新时隙方案承载客户业务,下游设备2收到调整指示信号C,也按照新时隙方案转发客户业务,完成设备1和设备2之间的时隙调整工作。中间设备2收到上游设备1的调整指示信号C时,设备2同时向下游设备3发送调整指示信号C,同时设备2按照新时隙方案承载客户业务,下游设备3收到调整指示信号C,也按照新时隙方案转发客户业务,完成设备2和设备3之间的时隙调整工作。以此类推,中间设备3收到上游设备2的调整指示信号C时,设备3也向下游设备4发送调整指示信号C,同时设备3按照新时隙方案承载客户业务,下游设备4收到调整指示信号C,也按照新时隙方案提取客户业务,完成设备3和设备4之间的时隙调整工作。在宿端设备完成时隙调整后,端到端的时隙调整工作就完成。宿端设备在完成时隙调整后,通知源端设备时隙调整成功,源端设备在一段时间内没有收到宿端设备的调整成功指示信号,源端设备可以重新发送一次调整指示信号C;源端设备也可以持续性发送调整指示信号C,直到收到宿端设备的调整成功指示信号后才停止发送调整指示信号C。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 consistent with the applied time slot number, the source device sends the adjustment indication signal C to the downstream device 2. At the same time, device 1 carries the customer service according to the new time slot plan. The downstream device 2 receives the adjustment indication signal C and also forwards the customer service according to the new time slot plan, 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 sends the adjustment indication signal C to the downstream device 3 at the same time. At the same time, device 2 carries the customer service according to the new time slot plan. The downstream device 3 receives the adjustment indication signal C and also forwards the customer service according to the new time slot plan, completing the time slot adjustment between device 2 and device 3. Similarly, 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 carries the customer service according to the new time slot plan. The downstream device 4 receives the adjustment indication signal C and also extracts the customer service according to the new time slot plan, completing the time slot adjustment between device 3 and device 4. After the sink device completes the time slot adjustment, the end-to-end time slot adjustment work is completed. After completing the time slot adjustment, the sink device notifies the source device that the time slot adjustment is successful. If the source device does not receive the adjustment success indication signal from the sink device within a 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 sink device and stops sending the adjustment indication signal C.

上述方案中时隙调整协商从源端设备到宿端设备之间端到端进行协商,中间设备参与协商、中间设备采用接力赛方式依次传递时隙调整协商信号,实现源端设备和宿端设备之间关于时隙调整的握手协商机制。当源端设备和宿端设备之间协商成功后,表示源端设备到宿端设备之间、包括网络中的所有中间设备之间关于时隙调整的协商成功,只有在所有设备之间关于时隙调整的握手协商成功后,才从源端设备开始依次执行时隙调整工作。无论时隙增减还是时隙减少,都可以采用上述方案中端到端的时隙调整方法,都可以从源端设备到宿端设备之间进行时隙调整协商、时隙调整的执行工作。对于时隙增大的调整需求,在端到端的时隙增大调整完成之前,先不增加客户业务带宽,客户业务带宽仍保持原始带宽,这样即使在端到端的时隙增加调整过程,上游设备之间的带宽大,下游设备之间的带宽小,但因为客户业务带宽仍是保持原始带宽大小,客户业务带宽和下游设备之间的带宽大小一致,因此即使上游管道带宽大,但有效的客户业务带宽并没有增大,因此不会出现客户溢出现象。如图5所示,设备1和设备2、设备2和设备3、设备3和设备4之间开始时都只配置了1个时隙传递客户业务,一个时隙可以传递的客户业务带宽只有10M速度。当需要将带宽调整为20M时,客户业务带宽开始时仍保持为10M带宽,调整过程中起初设备1和设备2时隙由1个时隙调整为2个时隙,承载带宽变为20M。设备2和设备3、设备3和设备4之间仍为1个时隙、传递10M速率的客户业务。在设备1处,将10M速率的客户业务承载在2个时隙时,由于客户业务速度小于承载的时隙速度,因此需要一个客户之间插入大量的空闲信息,如空闲码块,增加大量的空闲信息后总速度就提升为20M,然后在2个时隙上承载。在设备2上,接收到来自设备1的客户流,删除报文之间插入的大量的空闲信息,剩余的客户业务速度就可以在1个时隙上承载,设备2将删除空闲信息后客户业务在一个时隙上承载、给设备3。当设备2和设备3之间从1个时隙调整为2个时隙时,则设备2接收到设备1的业务流时不删除空闲信息,设备3删除空闲信息后在一个时隙上承载。当设备3和设备4之间从1个时隙调整为2个时候后,设备1和设备4之间端到端承载管道时隙数量调整为2个时隙,承载20M的客户业务,端到端时隙数量调整成功后才将客户业务速度调整为20M。对于增加时隙数量的调整,先完成端到端设备的时隙调整之后,才增加调整客户业务速度。类推,对于减少时隙数量的调整,先减少调整客户业务速度,才进行端到端设备之间时隙调整,始终保持客户业务速度小于端到端设备的承载管道中任何一台设备上的承载速度。对于任何一台设备,当上游时隙带宽大于下游时隙带宽时,则删除上游来的客户业务中大量的空闲信息,然后将客户业务发送到下游时隙中;当上游时隙带宽小于下游时隙带宽时,则在上游来的客户业务中插入大量的空闲信息,然后发送到下游时隙中。另外,如果中间节点接收到调整指示C信号,立即向下游发送调整指示,下游的时隙增大调整也立即启动,这样时隙增大调整从源端设备开始,自上游设备到下游设备,依次往上所有设备之间采用接力方式进行时隙增加调整,上下游设备之间的调整依次进行,上下游设备之间的时隙数量不一致、带宽不一致的现象只是瞬间存在,之后上下游设备之间的时隙数量很快就一致了,不会出现带宽不一致问题。In the above scheme, the time slot adjustment negotiation is conducted end-to-end from the source device to the sink device, the intermediate devices participate in the negotiation, and the intermediate devices use a relay race to sequentially transmit the time slot adjustment negotiation signal, so as to realize the handshake negotiation mechanism between the source device and the sink device regarding the time slot adjustment. When the negotiation between the source device and the sink device is successful, it means that the negotiation between the source device and the sink device, including all the intermediate devices in the network, regarding the time slot adjustment is successful. Only after the handshake negotiation between all devices regarding the time slot adjustment is successful, the time slot adjustment work is performed sequentially starting from the source device. Regardless of whether the time slot is increased or decreased, the end-to-end time slot adjustment method in the above scheme can be used, and the time slot adjustment negotiation and execution work can be performed from the source device to the sink device. For the adjustment demand of time slot increase, before the end-to-end time slot increase adjustment is completed, the customer service bandwidth will not be increased, and the customer service bandwidth will remain the original bandwidth. In this way, even if the bandwidth between upstream devices is large and the bandwidth between downstream devices is small during the end-to-end time slot increase adjustment process, the customer service bandwidth will still maintain the original bandwidth size, and the customer service bandwidth and the bandwidth between downstream devices will be the same. Therefore, even if the upstream pipeline bandwidth is large, the effective customer service bandwidth will not increase, so there will be no customer overflow. As shown in Figure 5, only one time slot is configured to transmit customer services between device 1 and device 2, device 2 and device 3, and device 3 and device 4 at the beginning, and the customer service bandwidth that can be transmitted in one time slot is only 10M. When the bandwidth needs to be adjusted to 20M, the customer service bandwidth will still remain at 10M at the beginning. During the adjustment process, the time slots of device 1 and device 2 are initially adjusted from 1 time slot to 2 time slots, and the bearer bandwidth becomes 20M. There is still one time slot between device 2 and device 3, and device 3 and device 4, transmitting customer services at a rate of 10M. At device 1, when the 10M customer service is carried in 2 time slots, since the customer service speed is lower than the time slot speed, 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 in 2 time slots. At device 2, the customer flow from device 1 is received, and the large amount of idle information inserted between the messages is deleted. The remaining customer service speed can be carried in 1 time slot. Device 2 carries the customer service after deleting the idle information in one time slot and gives it to device 3. When the time slot between device 2 and device 3 is adjusted from 1 time slot to 2 time slots, device 2 does not delete the idle information when receiving the service flow of device 1, and device 3 carries it in one time slot after deleting the idle information. When the time slot between device 3 and device 4 is adjusted from 1 time slot to 2, the number of time slots of the end-to-end bearer pipe between device 1 and device 4 is adjusted to 2 time slots, carrying 20M customer services. The customer service speed is adjusted to 20M only after the end-to-end time slot number is successfully adjusted. For the adjustment of increasing the number of time slots, the time slot adjustment of the end-to-end device is completed first, and then the customer service speed is increased and adjusted. Similarly, for the adjustment of reducing the number of time slots, the customer service speed is reduced and adjusted first, and then the time slot adjustment between the end-to-end devices is performed, and the customer service speed is always kept lower than the carrying speed of any device in the carrying pipeline of the end-to-end device. For any device, when the upstream time slot bandwidth is larger than the downstream time slot bandwidth, a large amount of idle information in the upstream customer service is deleted, and then the customer service is sent to the downstream time slot; when the upstream time slot bandwidth is smaller than the downstream time slot bandwidth, a large amount of idle information is inserted into the upstream customer service, and then sent to the downstream time slot. In addition, if the intermediate node receives the adjustment indication C signal, it immediately sends an adjustment indication to the downstream, and the downstream time slot increase adjustment is also started immediately. In this way, the time slot increase adjustment starts from the source device, from the upstream device to the downstream device, and then all the devices upstream use a relay method to increase the time slot adjustment. The adjustments between the upstream and downstream devices are carried out in sequence. The phenomenon of inconsistent time slot numbers and inconsistent bandwidths between the upstream and downstream devices only exists for a moment, and then the number of time slots between the upstream and downstream devices will soon be consistent, and there will be no bandwidth inconsistency problem.

在时隙调整中,源端设备和宿端设备通过调整申请信号CR、调整应答信号CA进行握手协商,时隙协商握手方式可以采用全量时隙调整方法,周期性地发送所有时隙的调整申请状态信息,然后周期性地回送所有时隙的应答信息,当接收到所有时隙的应答信息后开始启动调整,发送时隙调整指示信号C。图6是时隙协商握手示意图,在图6中,设备1可以周期性地发送所有时隙的时隙调整申请状态信息给设备2,设备2接收到后周期性地转发给设备3,设备3接收后周期性地转发给设备4。设备4收到时隙调整申请状态信息后,设备4周期性回送所有时隙的时隙调整应答信号给设备3,设备3收到后又周期性回送所有时隙的调整状态信息给设备2,设备2收到后又周期性回送所有时隙的调整状态信息给设备1,设备1收到所有时隙调整应答信号后发送通知启动调整指示信号C信号,正式启用调整的时隙。在全量时隙调整方式中,无论一个时隙是否参与调整,周期性地都会传递所有时隙信息的调整申请状态信息和应答信息,所有时隙调整信息中可能部分时隙是真正需要调整调整,部分时隙是不需要参与调整的。如果总共有480个时隙,每480帧作为一个复帧,复帧中的每一帧传递一个时隙的调整状态信息,第0帧传递时隙0的调整状态信息,第1帧传递时隙1的调整状态信息,第2帧传递时隙2的调整状态信息,依次类推,第479帧传递时隙479的调整状态信息,通过一个复帧周期传递完所有时隙的调整状态信息,在图6中时隙2和时隙4是真正参与时隙调整,时隙2和时隙4的CR值为1,表示申请时隙调整,其他时隙的CR值为0,不参与时隙调整。由于时隙2和时隙4的客户编号由上次无效编号变为有效编号,表示是增加时隙调整。设备1在一个复帧周期内传递完所有时隙的调整状态信息给设备2,设备2接收后在一个复帧周期内传递完所有时隙的调整状态信息给设备3,设备3接收后在一个复帧周期内传递完所有时隙的调整状态信息给设备4,设备4接收完所有时隙的调整状态信息后回送所有时隙的应答信息给设备3,设备3接收后在一个复帧周期内回送所有时隙的应答信息给设备2,设备2接收后在一个复帧周期内回送所有时隙的应答信息给设备1,设备1在一个复帧周期内接收完所有时隙的应答信息。由于只有时隙2和时隙4申请参与调整,所有设备在回送应答信息中,只有时隙2和时隙4应答CA信息有效(CA=1),其他时隙的应答信息无效(CA=0)。In the time slot adjustment, the source device and the sink device conduct handshake negotiation through the adjustment application signal CR and the adjustment response signal CA. The time slot negotiation handshake method can adopt the full time slot adjustment method, periodically send the adjustment application status information of all time slots, and then periodically send back the response information of all time slots. After receiving the response information of all time slots, start the adjustment and send the time slot adjustment indication signal C. Figure 6 is a schematic diagram of the time slot negotiation handshake. In Figure 6, device 1 can periodically send the time slot adjustment application status information of all time slots to device 2. After receiving, device 2 periodically forwards it to device 3. After receiving, device 3 periodically forwards it to device 4. After receiving the time slot adjustment application status information, device 4 periodically sends back the time slot adjustment response signal of all time slots to device 3. After receiving, device 3 periodically sends back the adjustment status information of all time slots to device 2. After receiving, device 2 periodically sends back the adjustment status information of all time slots to device 1. After receiving the adjustment response signal of all time slots, device 1 sends a notification start adjustment indication signal C signal to officially enable the adjusted time slot. In the full time slot adjustment mode, regardless of whether a time slot participates in the adjustment, the adjustment application status information and response information of all time slot information are periodically transmitted. Among all the time slot adjustment information, some time slots may really need to be adjusted, and some time slots do not need to participate in the adjustment. If there are 480 time slots in total, every 480 frames are used as a multiframe, and each frame in the multiframe transmits the adjustment status information of a time slot. The 0th frame transmits the adjustment status information of time slot 0, the 1st frame transmits the adjustment status information of time slot 1, and the 2nd frame transmits the adjustment status information of time slot 2. And so on, the 479th frame transmits the adjustment status information of time slot 479. After the adjustment status information of all time slots is transmitted through a multiframe cycle, in FIG6, time slots 2 and time slot 4 really participate in the time slot adjustment. The CR value of time slots 2 and time slot 4 is 1, indicating that the time slot adjustment is applied. The CR value of other time slots is 0, and they do not participate in the time slot adjustment. Since the customer numbers of time slots 2 and time slots 4 have changed from invalid numbers to valid numbers, it means that the time slot adjustment is increased. Device 1 transmits the adjustment status information of all time slots to device 2 within a multiframe period. After receiving the information, device 2 transmits the adjustment status information of all time slots to device 3 within a multiframe period. After receiving the information, device 3 transmits the adjustment status information of all time slots to device 4 within a multiframe 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 the information, device 3 sends back the response information of all time slots to device 2 within a multiframe period. After receiving the information, device 2 sends back the response information of all time slots to device 1 within a multiframe period. Device 1 receives the response information of all time slots within a multiframe period. Since only time slots 2 and time slots 4 apply to participate in the adjustment, in the response information sent back by all devices, only time slots 2 and time slots 4 respond that the CA information is valid (CA=1), and the response information of other time slots is invalid (CA=0).

设备1在接收完回送的所有应答CA信息后,连续发送多个调整指示C信号。为了增加可靠性,可以发送多次调整指示C信息,例如发送三次调整指示C的信息,接收端采用多数判断原则(两次及以上次数出现有效调整指示C信号时则判断调整指示信号C有效;两次及以上次数出现调整指示C信号无效时则判断调整指示C信号无效),然后发起设备和接收设备以约定的时间基准调整时隙数量,如图6所示,在约定的时刻正式启用新增加的时隙2和时隙4,发起设备和接收设备都以虚线时刻作为启用调整后新时隙的时刻。为了方便启用新时隙来承载客户业务,一般都是在承载帧的起始位置启用新时隙,如果启用新时隙的时刻位于一帧的中间位置时,则当前的承载帧仍按照原有的老时隙继续承载客户业务,在下个帧开始才启用新时隙承载客户业务,图6中虚线是发送设备和接收设备之间启用新时隙的约定基准时刻,但真正启用新时隙在后续相邻的下一个承载帧的起始位置,从承载帧的起始位置(即第一个时隙)作为起始位置,即图6中加粗的实线位置,发送设备和接收设备都是在加粗的实线位置、下个承载帧起始时刻启用新时隙承载客户业务。After receiving all the response CA information sent back, device 1 continuously sends multiple adjustment indication C signals. In order to increase reliability, multiple adjustment indication C messages can be sent, for example, three adjustment indication C messages are sent, and the receiving end adopts the majority judgment principle (when a valid adjustment indication C signal appears two or more times, the adjustment indication C signal is judged to be valid; when an invalid adjustment indication C signal appears 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, as shown in Figure 6, the newly added time slots 2 and 4 are officially enabled at the agreed time, and the initiating device and the receiving device both use the dotted line time as the time to enable the adjusted new time slots. In order to facilitate the activation of new time slots to carry customer services, new time slots are generally activated at the starting position of the bearer frame. If the time for activating the new time slot is in the middle of a frame, the current bearer frame will continue to carry customer services according to the original old time slot, and the new time slot will be activated to carry customer services at the beginning of the next frame. The dotted line in Figure 6 is the agreed reference time for activating new time slots between the sending device and the receiving device, but the new time slot is actually activated at the starting position of the next adjacent bearer frame. The starting position of the bearer frame (i.e., the first time slot) is used as the starting position, i.e., the bold solid line position in Figure 6. Both the sending device and the receiving device enable the new time slot to carry customer services at the bold solid line position, the starting time of the next bearer frame.

当进行时隙调整时,为了实现客户业务的带宽变化和对应承载客户业务的时隙数量同步变化,客户业务的带宽需要进行变动时在客户业务流中插入携带时隙调整指示信号,时隙调整指示信号随着业务流一起进行传递。时隙调整指示信号有两个功能,指示业务带宽的变动时刻,以及指示承载客户业务的时隙调整的时刻,按照调整指示信号改变客户业务的带宽,也按照调整指示信号改变承载客户业务的时隙数量,承载客户业务的时隙数量适应客户业务的带宽变化情况。在客户业务流中携带调整指示信号,调整指示信号代表业务流带宽的调整时刻,调整指示信号随着业务流在网络中传递,调整指示信号通过网络中每台设备时,通过的设备根据客户业务流中携带的调整指示同步调整设备的承载时隙数量,按照新时隙数量承载客户业务,客户业务带宽变动时对应设备也同时调整时隙数量,实现业务带宽变动和时隙数量基本同步进行,减少因为业务带宽变动时刻和时隙数量变动时刻的不相同的总持续时间。When adjusting the time slot, in order to achieve the synchronous change of the bandwidth of the customer service and the corresponding number of time slots carrying the customer service, when the bandwidth of the customer service needs to change, a time slot adjustment indication signal is inserted into the customer service flow, and the time slot adjustment indication signal is transmitted together with the service flow. The time slot adjustment indication signal has two functions, indicating the change time of the service bandwidth and indicating the time of the adjustment of the time slot carrying the customer service. The bandwidth of the customer service is changed according to the adjustment indication signal, and the number of time slots carrying the customer service is also changed according to the adjustment indication signal. The number of time slots carrying the customer service adapts to the change of the bandwidth of the customer service. The adjustment indication signal is carried in the customer service flow, and the adjustment indication signal represents the adjustment time of the service flow bandwidth. The adjustment indication signal is transmitted in the network with the service flow. When the adjustment indication signal passes through each device in the network, the device passing through adjusts the number of time slots carrying the device synchronously 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 at the same time, so that the service bandwidth change and the number of time slots are basically synchronized, and the total duration due to the difference between the time of the service bandwidth change and the time slot number change is reduced.

相对于传统的逐跳协商和逐跳调整机制,在端到端的时隙调整协商成功后通过客户业务携带时隙调整的指示信号,启动调整时隙的活动,减少了协商时间,规避了逐跳调整时遇到调整协商不成功时的严重后果,规避了调整不成功时的回退需求,节省了调整协商时间,提高了调整成功概率。但当业务带宽变动时刻和时隙数量变动时刻不相同时,由于两者之间存在速度差,需要一个缓存器将客户业务暂存起来以适配两者速度的差异,业务带宽变动时刻和时隙数量变动时刻的不相同的持续时间越长,需要缓存的业务量越大,成本越高。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 time slot adjustment activity is started by carrying the time slot adjustment indication signal through the customer service, which reduces the negotiation time, avoids the serious consequences of unsuccessful adjustment negotiation during hop-by-hop adjustment, avoids the need for fallback when the adjustment is unsuccessful, saves adjustment negotiation time, and increases the probability of successful adjustment. However, when the service bandwidth change time and the time slot number change time 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 difference between the service bandwidth change time and the time slot number change time lasts, the larger the amount of service that needs to be cached, and the higher the cost.

为了能够减少业务带宽变动时刻和时隙数量变动时刻不同步的持续时间,从而可以有效减少缓存业务数量,降低成本和客户延迟,本申请实施例提供了一种时隙调整方法、通信设备以及计算机可读存储介质,其中,在与下游节点和宿节点确定了时隙调整策略之后,首节点可以在时隙调整时刻采用该时隙调整策略完成时隙调整,通过下游节点向宿节点发送多个时隙调整指示信息,使得下游节点和宿节点能够根据多个时隙调整指示信息确定时隙调整时刻,以及在时隙调整时刻采用相应的时隙调整策略完成时隙调整,因此可以减少业务带宽变动时刻和时隙数量变动时刻的不相同的持续时间,从而可以减少缓存业务数量,降低成本和客户延迟。In order to reduce the duration of the asynchrony between the service bandwidth change moment and the time slot number change moment, thereby effectively reducing the number of cached services, reducing costs and customer delays, the embodiments of the present application provide a time slot adjustment method, a communication device and a computer-readable storage medium, wherein, after determining the time slot adjustment strategy with the downstream node and the host node, the first node can adopt the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment, and send multiple time slot adjustment indication information to the host node through the downstream node, so that the downstream node and the host node can determine the time slot adjustment moment according to the multiple time slot adjustment indication information, and adopt the corresponding time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment, thereby reducing the different durations of the service bandwidth change moment and the time slot number change moment, thereby reducing the number of cached services, reducing costs and customer delays.

基于上述分析,下面结合附图,对本申请实施例作阐述。Based on the above analysis, the embodiments of the present application are described below in conjunction with the accompanying drawings.

参照图7,图7是本申请一个实施例提供的时隙调整方法的流程图,该时隙调整方法可以由首节点执行,该时隙调整方法的步骤可以包括但不限于步骤S710至步骤S720。Referring to FIG. 7 , FIG. 7 is a flowchart of a time slot adjustment method provided by an embodiment of the present application. The time slot adjustment method may be executed by the head node, and the steps of the time slot adjustment method may include but are not limited to steps S710 to S720.

步骤S710:当与下游节点和宿节点协商确定了时隙调整策略之后,在时隙调整时刻采用时隙调整策略完成时隙调整。Step S710: After the time slot adjustment strategy is determined through negotiation with the downstream node and the sink node, the time slot adjustment strategy is adopted at the time of time slot adjustment to complete the time slot adjustment.

步骤S720:通过下游节点向宿节点发送多个时隙调整指示信息,使得下游节点和宿节点根据多个时隙调整指示信息确定时隙调整时刻,以及在时隙调整时刻采用时隙调整策略完成时隙调整。Step S720: Send multiple time slot adjustment indication information to the sink node through the downstream node, so that the downstream node and the sink node determine the time slot adjustment time according to the multiple time slot adjustment indication information, and use the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment time.

在一可行的实施方式中,当客户业务处于传递的状态且在需要业务流中插入时隙调整信息时,首节点可以发起带宽增大调整的申请,当首节点与下游节点和宿节点确定时隙调整策略之后,可以通过下节点向宿节点发送时隙调整的指示信息,以使在业务流传递的过程中,各节点能够在确定好的时隙调整时刻采用时隙调整策略完成时隙调整,减少业务带宽变动时刻和时隙数量变动时刻的不相同的持续时间,从而可以减少缓存业务数量,降低成本和客户延迟。In a feasible implementation, when the customer service is in a transmission state and time slot adjustment information needs to be inserted into the service flow, the first node can initiate an application for bandwidth increase adjustment. After the first node, the downstream node and the host node determine the time slot adjustment strategy, the time slot adjustment indication information can be sent to the host node through the downstream node, so that in the process of service flow transmission, each node can adopt the time slot adjustment strategy at the determined time slot adjustment time to complete the time slot adjustment, reduce the different durations of the service bandwidth change time and the time slot number change time, thereby reducing the number of cached services, reducing costs and customer delays.

可以理解的是,业务流可以是普通以太网业务信息或者高服务质量业务信息,例如,高服务质量业务信息可以是CBR业务、高服务质量的以太网业务信息(如eCPRI(ethernet Common Public Radio Interface,以太网通用公共无线电接口)业务信息)、语音业务信息、视频业务信息、游戏业务信息等,此处不作具体限定,其中,高服务质量业务信息可以以各种格式进行封装,比如eCPRI协议消息格式或者以太网报文格式等;普通以太网业务信息可以是下载业务信息等,此处不作具体限定。It can be understood that the service flow can be ordinary Ethernet service information or high service quality service information. For example, the high service quality service information can be CBR service, high service quality Ethernet service information (such as eCPRI (ethernet Common Public Radio Interface) service information), voice service information, video service information, game service information, etc., which is not specifically limited here. Among them, the high service quality service information can be encapsulated in various formats, such as eCPRI protocol message format or Ethernet message format, etc.; ordinary Ethernet service information can be download service information, etc., which is not specifically limited here.

在一可行的实施方式中,首节点还可以通过下游节点向宿节点发送时隙切换时刻信息,其中,时隙切换时刻信息用于指示时隙调整时刻。In a feasible implementation manner, the head node may also send time slot switching time information to the sink node through the downstream node, wherein the time slot switching time information is used to indicate the time slot adjustment time.

在一可行的实施方式中,时隙切换时刻信息可以承载于业务流中的时隙切换时刻码块,其中,时隙调整时刻可以包括以下三种情况之一:时隙调整时刻为时隙切换时刻码块所处的时隙的下一个时隙;时隙调整时刻为时隙切换时刻码块所处的承载帧的下一个承载帧的起始位置或第一个时隙;时隙调整时刻为时隙切换时刻码块所处的复帧的下一个复帧中第一个承载帧的起始位置或下一个复帧中第一个承载帧的第一个时隙。In a feasible implementation, the time slot switching time information can be carried in the time slot switching time code block in the service flow, wherein the time slot adjustment time may include one of the following three situations: the time slot adjustment time is the next time slot of the time slot where the time slot switching time code block is located; the time slot adjustment time is the starting position of the next bearer frame of the bearer frame where the time slot switching time code block is located or the first time slot; the time slot adjustment time is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot switching time code block is located or the first time slot of the first bearer frame in the next multiframe.

在一可行的实施方式中,时隙调整指示信息可以用于指示时隙调整策略生效,此外,多个时隙调整指示信息还可以承载于业务流中的多个时隙调整指示码块。In a feasible implementation manner, the time slot adjustment indication information may be used to indicate that the time slot adjustment strategy is effective. In addition, multiple time slot adjustment indication information may also be carried in multiple time slot adjustment indication code blocks in the service flow.

在一可行的实施方式中,当时隙切换时刻信息承载于业务流中的时隙切换时刻码块,相邻两个时隙调整指示码块之间以及时隙切换时刻码块与最后一个被发送的时隙调整指示码块之间,可以具有数量相等或者不相等的第一码块。In a feasible implementation, when the slot switching time information is carried in the time slot switching time code block in the service flow, there may be equal or unequal numbers of first code blocks between two adjacent time slot adjustment indication code blocks and between the time slot switching time code block and the last time slot adjustment indication code block sent.

在一可行的实施方式中,当时隙切换时刻信息承载于业务流中的时隙切换时刻码块时,相邻两个时隙调整指示码块之间具有第一数量的第一码块,时隙切换时刻码块与最后一个被发送的时隙调整指示码块之间具有第二数量的第一码块,需要说明的是,第二数量不等于第一数量。In a feasible implementation, when the slot switching time information is carried in the slot switching time code block in the service flow, there are a first number of first code blocks between two adjacent time slot adjustment indication code blocks, and there are a second number of first code blocks between the time slot switching time code block and the last time slot adjustment indication code block sent. It should be noted that the second number is not equal to the first number.

在一可行的实施方式中,时隙切换时刻码块可以根据第一数量和任意一个时隙调整指示码块所在的位置而确定。In a feasible implementation manner, the time slot switching time code block can be determined according to the first quantity and the position of any time slot adjustment indication code block.

在一可行的实施方式中,时隙切换时刻码块在业务流中对应有期望位置,期望位置可以根据第一数量和任意一个时隙调整指示码块所在的位置而确定,当期望位置所对应的码块是数据报文之中的码块,时隙切换时刻码块为数据报文中的结束码块之后的第一个码块。In a feasible implementation, the time slot switching code block corresponds to an expected position in the service flow, and the expected position can be determined based on the first quantity and the position of any time slot adjustment indication code block. When the code block corresponding to the expected position is a code block in the data message, the time slot switching code block is the first code block after the end code block in the data message.

在一可行的实施方式中,时隙调整指示码块和时隙切换时刻码块具有相同的码块类型,时隙调整指示码块和时隙切换时刻码块均包括时隙调整功能字段,时隙调整指示码块中的时隙调整功能字段用于承载时隙调整指示信息,时隙切换时刻码块中的时隙调整功能字段用于承载时隙切换时刻信息。In a feasible implementation, the time slot adjustment indication code block and the time slot switching moment code block have the same code block type, and both the time slot adjustment indication code block and the time slot switching moment code block include a time slot adjustment function field. The time slot adjustment function field in the time slot adjustment indication code block is used to carry the time slot adjustment indication information, and the time slot adjustment function field in the time slot switching moment code block is used to carry the time slot switching moment information.

在一可行的实施方式中,时隙调整指示码块和时隙切换时刻码块均还包括同步头比特、控制字和类型序列值,同步头比特、控制字和类型序列值的组合作为用于指示时隙调整指示码块或者时隙切换时刻码块的标志值。In a feasible implementation, the time slot adjustment indication code block and the time slot switching moment code block also include a synchronization header bit, a control word and a type sequence value, and the combination of the synchronization header bit, the control word and the type sequence value serves as a flag value for indicating the time slot adjustment indication code block or the time slot switching moment code block.

本实施例中,通过采用包括上述步骤S710至步骤S720的时隙调整方法,在与下游节点和宿节点协商确定了时隙调整策略之后,首节点可以在时隙调整时刻采用该时隙调整策略完成时隙调整,通过下游节点向宿节点发送多个时隙调整指示信息,使得下游节点和宿节点能够根据多个时隙调整指示信息确定时隙调整时刻,以及在时隙调整时刻采用相应的时隙调整策略完成时隙调整,因此可以减少业务带宽变动时刻和时隙数量变动时刻的不相同的持续时间,从而可以减少缓存业务数量,降低网络开销成本和客户业务延迟。In this embodiment, by adopting the time slot adjustment method including the above-mentioned steps S710 to S720, after negotiating with the downstream node and the host node to determine the time slot adjustment strategy, the first node can adopt the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment, and send multiple time slot adjustment indication information to the host node through the downstream node, so that the downstream node and the host node can determine the time slot adjustment moment according to the multiple time slot adjustment indication information, and adopt the corresponding time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment, thereby reducing the different durations of the service bandwidth change moment and the time slot number change moment, thereby reducing the number of cached services, reducing network overhead costs and customer service delays.

在一实施例中,多个时隙调整指示信息可以承载于业务流中的多个时隙调整指示码块,时隙调整时刻根据任意一个时隙调整指示码块所在的位置而确定。In one embodiment, multiple time slot adjustment indication information may be carried in multiple time slot adjustment indication code blocks in a service flow, and the time slot adjustment moment is determined according to the position of any time slot adjustment indication code block.

在一实施例中,相邻两个时隙调整指示码块之间具有第三数量的第一码块,时隙调整时刻可以根据时隙调整参考时刻而确定,时隙调整参考时刻可以根据第三数量和任意一个时隙调整指示码块所在的位置而确定。In one embodiment, there is a third number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot adjustment time can be determined according to the time slot adjustment reference time, and the time slot adjustment reference time can be determined according to the third number and the position of any time slot adjustment indication code block.

在一实施例中,时隙调整时刻包括以下情况之一:时隙调整时刻为时隙调整参考时刻所处的时隙的下一个时隙;时隙调整时刻为时隙调整参考时刻所处的承载帧的下一个承载帧的起始位置或第一个时隙;时隙调整时刻为时隙调整参考时刻所处的复帧的下一个复帧中第一个承载帧的起始位置或下一个复帧中第一个承载帧的第一个时隙。In one embodiment, the time slot adjustment moment includes one of the following situations: the time slot adjustment moment is the next time slot of the time slot where the time slot adjustment reference moment is located; the time slot adjustment moment is the starting position or the first time slot of the next bearer frame of the bearer frame where the time slot adjustment reference moment is located; the time slot adjustment moment is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot adjustment reference moment is located or the first time slot of the first bearer frame in the next multiframe.

在一实施例中,时隙调整参考时刻所在的位置与最后一个被发送的时隙调整指示码块之间具有第四数量的第一码块,需要说明的是,第四数量小于或者等于第三数量。In one embodiment, there are a fourth number of first code blocks between the position of the time slot adjustment reference time 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.

在一实施例中,时隙调整指示码块还包括时隙调整功能字段,其中,时隙调整功能字段可以用于承载时隙调整指示信息。In one embodiment, the time slot adjustment indication code block further includes a time slot adjustment function field, wherein the time slot adjustment function field can be used to carry time slot adjustment indication information.

在一实施例中,在将第一码块流映射到第一传输容器时,多个时隙调整指示信息可以承载于业务流中的OAM码块。In one embodiment, when mapping the first code block stream to the first transmission container, a plurality of time slot adjustment indication information may be carried in an OAM code block in the service stream.

在一实施例中,当OAM码块中包括APS码块时,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、APS码块和Base2码块,时隙调整时刻可以根据携带有时隙调整指示信息的Base2码块之后的第一个Base1码块所在的位置而确定;或者,当OAM码块中不包括APS码块时,OAM码块中的Base1码块和Base2码块之间被配置有伪APS码块,多个时隙调整指示信息可以分别承载于Base1码块、伪APS码块和Base2码块,时隙调整时刻根据携带有时隙调整指示信息的Base2码块之后的第一个Base1码块所在的位置而确定;或者,当OAM码块中包括APS码块时,APS码块的前面或者后面可以被配置有伪APS码块,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、伪APS码块和Base2码块,时隙调整时刻可以根据携带有时隙调整指示信息的Base2码块之后的第一个Base1码块所在的位置而确定。In one embodiment, when the OAM code block includes an APS code block, multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the APS code block and the Base2 code block in the OAM code block, and the time slot adjustment moment can be determined according to the position of the first Base1 code block after the Base2 code block carrying the time slot adjustment indication information; or, when the OAM code block does not include an APS code block, a pseudo APS code block is configured between the Base1 code block and the Base2 code block in the OAM code block, and multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the pseudo APS code block, and the Base2 code block. S code blocks and Base2 code blocks, the time slot adjustment moment is determined according to the position of the first Base1 code block after the Base2 code block carrying the time slot adjustment indication information; or, when the OAM code block includes an APS code block, a pseudo APS code block may be configured before or after the APS code block, and multiple time slot adjustment indication information may be respectively carried in the Base1 code block, the pseudo APS code block and the Base2 code block in the OAM code block, and the time slot adjustment moment may be determined according to the position of the first Base1 code block after the Base2 code block carrying the time slot adjustment indication information.

在一实施例中,当OAM码块中包括APS码块时,APS码块可以包括第一APS码块和第二APS码块,此时,时隙调整指示信息可以承载于第二APS码块。In one embodiment, when the OAM code block includes an APS code block, the APS code block may include a first APS code block and a second APS code block. In this case, the time slot adjustment indication information may be carried in the second APS code block.

在一实施例中,当OAM码块中包括L码块时,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、Base2码块和L码块,时隙调整时刻可以根据携带有时隙调整指示信息的L码块之后的第一个Base1码块所在的位置而确定;或者,当OAM码块中不包括L码块时,OAM码块中的L码块的位置可以被配置有伪L码块,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、Base2码块和伪L码块,时隙调整时刻可以根据携带有时隙调整指示信息的伪L码块之后的第一个Base1码块所在的位置而确定;或者,当OAM码块中包括L码块时,L码块的前面或者后面可以被配置有伪L码块,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、Base2码块和伪L码块,时隙调整时刻可以根据携带有时隙调整指示信息的伪L码块之后的第一个Base1码块所在的位置而确定。In one embodiment, when the OAM code block includes an L code block, multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the Base2 code block and the L code block in the OAM code block, and the time slot adjustment 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 information; or, 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, and multiple time slot adjustment indication information 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 information; or, when the OAM code block includes the L code block, the front or back of the L code block can be configured with a pseudo L code block, and multiple time slot adjustment indication information 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 information.

在一实施例中,时隙调整指示码块中可以包括校验比特信息,其中,校验比特信息可以用于对时隙调整指示信息的正确性进行校验。In one embodiment, the time slot adjustment indication code block may include check bit information, wherein the check bit information may be used to check the correctness of the time slot adjustment indication information.

图27是本申请实施例提供的首节点协商确定时隙调整策略的过程的流程图。当首节点在与下游节点和宿节点协商确定时隙调整策略时,如图27所示,该确定时隙调整策略的过程可以包括但不限于步骤S2710-步骤S2720。Figure 27 is a flowchart of a process of determining a time slot adjustment strategy through negotiation by a first node provided in an embodiment of the present application. When the first node negotiates with a downstream node and a sink node to determine a time slot adjustment strategy, as shown in Figure 27, the process of determining the time slot adjustment strategy may include but is not limited to steps S2710-S2720.

步骤S2710:通过下游节点向宿节点发送时隙调整策略信息,使得下游节点和宿节点根据时隙调整策略信息确定时隙调整策略。Step S2710: Sending 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.

步骤S2720:当接收到宿节点通过下游节点返回的时隙调整策略应答信息,确定与下游节点和宿节点协商确定了时隙调整策略。Step S2720: when receiving the time slot adjustment strategy response information returned by the sink node through the downstream node, it is determined that the time slot adjustment strategy is determined through negotiation with the downstream node and the sink node.

在一实施例中,时隙调整策略信息可以包括时隙调整申请信息和待调整信息,其中,时隙调整申请信息用于请求进行时隙调整,待调整信息用于确定时隙调整策略的策略内容。In one embodiment, the time slot adjustment strategy information may include time slot adjustment application information and information to be adjusted, wherein 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.

下面以具体的例子对本申请实施例提供的时隙调整方法进行详细的说明。The time slot adjustment method provided in the embodiment of the present application is described in detail below with reference to a specific example.

例如图8所示,图8是本申请实施例提供的在业务流中插入时隙调整信息的示意图。在目前的相关技术中,以太网报文在传递时是编码成定长的码块方式传递,常用的是66比特长度的码块,如图8所示,当客户业务处于传递的状态,在客户业务码块流中可以插入特殊定义的码块,参见图8中白色背景的码块,这些特殊定义的码块包括时隙调整指示码块和时隙切换时刻码块,这些特殊定义的码块可以携带对应的时隙调整指示信息,其中,时隙调整指示信息包括时隙调整的指示信号和时隙切换的指示信号,在图8的示例中,时隙调整指示码块可以携带三种时隙调整指示信号:C1、C2和C3,C1、C2和C3三个数据值是一组,C1、C2和C3是具有相同功能的指示信号,这些指示信号会出现三次,采用多数判断原则是为了避免单次误码错误的场景下仍能获得正确判断。需要说明的是,本示例采用三次指示信号,具体的实现过程还可以是其他次数,例如采用五次指示信号。C1、C2和C3表示时隙调整的指示信号,三个时隙调整的指示信号可以采用多数判断原则,其中当至少2个时隙调整的指示信号有效时,则表示时隙调整指示信号的最终判断结果为有效指示信号;当三个时隙调整的指示信号中至少2个指示信号为无效时,则表示时隙调整指示最终判断结果是无效的指示信号。C1、C2和C3可以表示时隙调整的指示信号,还可以用来表示业务带宽和承载时隙的数据将要进行变动,实现以前一段时间的通知功能以做好准备工作。时隙切换时刻码块可以携带时隙切换的指示信号CCC,如图8所示,CCC信号表示业务带宽和承载客户业务的时隙数量调整的真正执行时刻,在时隙调整的指示信号有效时,在CCC信号时刻位置上客户业务的带宽会发生变化,每台设备检测到CCC信号的时刻也同步启用调整后的时隙数量,实现时隙数量和业务带宽调整同步进行。For example, as shown in FIG8, FIG8 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 art, Ethernet messages are transmitted in a code block format encoded in a fixed length, and a 66-bit length code block is commonly used. As shown in FIG8, when the customer service is in a state of transmission, a specially defined code block can be inserted into the customer service code block stream, referring to the code block with a white background in FIG8. These specially defined code blocks include a time slot adjustment indication code block and a time slot switching time code block. These specially defined code blocks can carry corresponding time slot adjustment indication information, wherein the time slot adjustment indication information includes an indication signal for time slot adjustment and an indication signal for time slot switching. In the example of FIG8, the time slot adjustment indication code block can carry three types of 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 adopted to avoid the scene of a single bit error and still obtain a correct judgment. It should be noted that this example uses three indication signals, and the specific implementation process can also be other times, such as five indication signals. C1, C2 and C3 represent indication signals for time slot adjustment. The three indication signals for time slot adjustment can adopt the majority judgment principle, wherein when at least two indication signals for time slot adjustment are valid, it indicates that the final judgment result of the time slot adjustment indication signal is a valid indication signal; when at least two indication signals among the three indication signals for time slot adjustment are invalid, it indicates that the final judgment result of the time slot adjustment indication is an invalid indication signal. C1, C2 and C3 can represent indication signals for time slot adjustment, and can also be used to indicate that the service bandwidth and the data of the bearer time slot are about to change, so as to realize the notification function for a period of time in the past to prepare for the work. The time slot switching code block can carry the time slot switching indication signal CCC, as shown in Figure 8. The CCC signal indicates the actual execution time of the adjustment of the service bandwidth and the number of time slots carrying customer services. When the indication signal of the time slot adjustment is valid, the bandwidth of the customer service will change at the time position of the CCC signal. When each device detects the CCC signal, the adjusted number of time slots is also enabled synchronously, so as to realize the synchronous adjustment of the number of time slots and service bandwidth.

值得注意的是,在以太网标准中o码块是控制码块,2位同步头比特值为“10”,控制字内容是“0x4B”,码块中第34-37比特值是o码块的o序列值,不同序列值代表不同含义的o码块种类,如图9中的上图所示。当前标准中已经启用了0x0、0x1、0x2、0x5、0xF这五个值的o序列值,因此可以定义携带其他序列值的o码块作为携带时隙调整信息的特殊定义码块,如图9中的下图所示,将0xE序列值的o码块作为时隙调整指示信号的特殊定义码块。It is worth noting 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 to 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, as shown in the upper figure in Figure 9. The current standard has enabled the o sequence values of 0x0, 0x1, 0x2, 0x5, and 0xF, so the o code blocks carrying other sequence values can be defined as special definition code blocks carrying time slot adjustment information. As shown in the lower figure in Figure 9, the o code block with the 0xE sequence value is used as a special definition code block for the time slot adjustment indication signal.

在一实施例中,同步头比特为“10”、控制字为“0x4B”、o序列值为“0xE”的组合可以作为携带时隙调整指示码块的标志值,符合该标志值的码块就是携带时隙调整指示信息的码块。o码块中第一个字节是控制字,图9中控制字之后有3个字节(D2、D3、D4)是数据字节,根据o码块序列值类型确定数据字节内容含义,当o码块的序列值定义为携带时隙调整指示码块时,在D2、D3、D4这三个字节中可以携带时隙调整指示信息,如C1功能信息、C2功能信息、C3功能信息、CCC功能信息,图9的下图中D2内容为00是表示是C1功能的时隙调整指示信息的码块,D2内容为01是表示是C2功能的时隙调整指示信息的码块,D2内容为10是表示是C3功能的时隙调整指示信息的码块,D2内容为11是表示是CCC功能的时隙调整指示信息的码块。在具体实现中,D2字节内容也可以用其他值来表示C1、C2、C3、CCC功能信息,当然除了D2字节可以携带功能信息值外,也可以由D3字节携带,或由D4字节携带。In one embodiment, a combination of a synchronization header bit of "10", a control word of "0x4B", and an o sequence value of "0xE" can be used as a flag value for a code block carrying a time slot adjustment indication, and a code block that meets the flag value is a code block carrying time slot adjustment indication information. The first byte in the o code block is the control word. In FIG9 , there are three bytes (D2, D3, and D4) after the control word, which are data bytes. The meaning of the data byte content is determined according to the type of the o code block sequence value. When the sequence value of the o code block is defined as a code block carrying a time slot adjustment indication, the three bytes D2, D3, and D4 can carry time slot adjustment indication information, such as C1 function information, C2 function information, C3 function information, and CCC function information. In the lower figure of FIG9 , D2 content 00 indicates a code block of time slot adjustment indication information of the C1 function, D2 content 01 indicates a code block of time slot adjustment indication information of the C2 function, D2 content 10 indicates a code block of time slot adjustment indication information of the C3 function, and D2 content 11 indicates a code block of time slot adjustment indication information of the CCC function. In a specific implementation, the D2 byte content can also use other values to represent the C1, C2, C3, and CCC function information. Of course, in addition to the D2 byte being able to carry the function information value, it can also be carried by the D3 byte or by the D4 byte.

在一实施例中,如图5所示,源设备可以充当首节点,设备2和设备3可以充当中间节点,设备4可以充当尾节点.当需要增大时隙时,源设备可以发起带宽增大调整申请,具体的,源设备通过承载帧携带调整申请信号CR和对应的时隙slot发送给设备2,设备2是中间设备,可以接收申请信号CR和对应的时隙slot,经过设备2确定以及许可后,设备2可以转发申请信号CR和对应的时隙slot给设备3。可以理解的是,设备3也是中间设备,可以接收申请信号CR和对应的时隙slot,经过设备3确定以及许可后,设备3可以转发申请信号CR和对应的时隙slot给设备4。需要说明的是,设备4是宿点设备,可以接收申请信号CR和对应的时隙slot,经过设备4确定以及许可后,设备4可以回送应答信号CA和对应的时隙slot给设备3,设备3可以接收设备4回送的应答信号CA和对应的时隙slot,确定后回送应答信号CA和对应的时隙slot给设备2,设备2可以设备3回送的接收应答信号CA和对应的时隙slot,确定后回送应答信号CA和对应的时隙slot给源设备1。源设备1接收到设备2回送的应答信息CA和时隙slot后,确定所有调整的时隙都得到应答CA信息,源设备在业务流中插入携带时隙调整指示的特殊定义码块,发送三次分别携带时隙调整指示C1、C2、C3值的特殊定义码块,将特殊定义码块和业务流码块一起发送给设备2,此后源设备1可以在约定时刻插入携带时隙切换时刻指示CCC值的特殊定义码块,并对应增大调整客户业务流的带宽。源设备1在发送携带切换时刻指示信号CCC值的特殊定义码块后,对应增大承载客户业务的时隙数量。设备2的接收侧在接收客户业务过程中可以检测客户业务内码块种类,如果在客户业务码块流中检测到携带时隙调整指示C1、C2、C3值的特殊定义码块,按照多数判断原则,判断携带时隙调整指示最终值是有效指示,做好时隙调整准备工作,继续检测客户业务流中携带时隙切换时刻指示CCC值的特殊定义码块,设备2的接收侧在检测到携带时隙切换时刻指示CCC值的特殊定义码块位置也同时增大时隙数量,可以在新时隙数量上提取客户业务。客户业务码块流传递到设备2的发送端时,设备2的发送端可以检测到携带时隙调整指示C1、C2、C3值的特殊定义码块时做好实现调整的准备工作,当检测到携带时隙切换时刻指示CCC值的特殊定义码块时,设备2的发送端也可以同时调整时隙数量。业务流传递到设备3的接收端时,设备3的接收端可以采用和设备2的接收端同样的操作方式,依次类推,设备3的发送端、设备4的接收端都可以采用相同方式操作,设备4接收端完成时隙调整工作后,可以实现设备1到设备4的承载时隙数量的调整工作,至此时隙调整工作全部完成。In one embodiment, as shown in FIG5 , the source device can act as the head node, device 2 and device 3 can act as the intermediate nodes, and device 4 can act as the tail node. When the time slot needs to be increased, the source device can initiate a bandwidth increase adjustment application. Specifically, the source device carries the adjustment application signal CR and the corresponding time slot slot through a bearer frame and sends it to device 2. Device 2 is an intermediate device and can receive the application signal CR and the corresponding time slot slot. After device 2 determines and permits, 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 device 3 determines and permits, 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 a sink device, which can receive the application signal CR and the corresponding time slot. After device 4 determines and authorizes, device 4 can send back a response signal CA and the corresponding time slot to device 3. Device 3 can receive the response signal CA and the corresponding time slot sent back by device 4, and send back the response signal CA and the corresponding time slot to device 2 after determination. Device 2 can receive the response signal CA and the corresponding time slot sent back by device 3, and send back the response signal CA and the corresponding time slot to source device 1 after determination. After source device 1 receives the response information CA and the time slot sent back by device 2, it determines that all adjusted time slots have received the response CA information. The source device inserts a special definition code block carrying the time slot adjustment indication into the service flow, sends three special definition code blocks carrying the time slot adjustment indication C1, C2, and C3 values respectively, and sends the special definition code block and the service flow code block together to device 2. Thereafter, source device 1 can insert a special definition code block carrying the time slot switching time indication CCC value at the agreed time, and correspondingly increase and adjust the bandwidth of the 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 the device 2 can detect the type of code block in the customer service during the process of receiving the customer service. If the special definition code block carrying the time slot adjustment indication C1, C2, C3 values 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 is a valid indication, and the time slot adjustment preparation is done. The special definition code block carrying the time slot switching moment indication CCC value in the customer service stream is continued to be detected. The receiving side of the device 2 also increases the number of time slots at the same time when the special definition code block position carrying the time slot switching moment indication CCC value is detected, and the customer service can be extracted at the new number of time slots. When the customer service code block stream is transmitted to the transmitting end of the device 2, the transmitting end of the device 2 can be ready to implement the adjustment when the special definition code block carrying the time slot adjustment indication C1, C2, C3 values is detected. When the special definition code block carrying the time slot switching moment indication CCC value is detected, the transmitting end of the 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 method as the receiving end of device 2. Similarly, the transmitting end of device 3 and the receiving end of device 4 can be operated in the same way. After the receiving end of device 4 completes the time slot adjustment work, the adjustment work of the number of bearer time slots from device 1 to device 4 can be realized. At this point, the time slot adjustment work is completed.

值得注意的是,在实际应用中,客户业务流可以是码块流形态,客户的码块可以映射到图1中的承载帧中所选择的时隙上进行承载,客户业务码块流只在承载帧中对应选择时隙上承载,例如客户原来客户只在时隙3和时隙15上承载业务,调整后选择的承载帧中时隙3、时隙8和时隙15三个时隙承载,本次进行带宽调整是增加时隙8,调整后变成时隙3、8、15上进行承载客户业务,这样客户业务码块流中携带时隙调整指示特殊定义码块在承载帧中时隙3、8上某个时隙上出现,但不确定本次是在时隙3上还是时隙8上出现,如图10所示,时隙调整指示特殊定义码块可以在承载帧中的中间某个时刻出现。对于携带时隙调整指示C1、C2、C3值的时隙调整指示码块,接收侧只是在业务码块流中检测这三个特殊定义的码块,当检测到这三个时隙调整指示的码块之后,可以按照多数判断原则给出最终调整指示有效结果,可以理解的是,这三个时隙调整指示码块在承载帧中的位置不同不影响决策结果。携带时隙切换时刻指示CCC值的时隙切换时刻码块也可能出现在承载客户业务的任意时隙上,图10中携带时隙切换时刻指示CCC值的时隙切换时刻码块可以出现在时隙3上,此时,时隙3变成时隙数量调整的基准时刻点,以时隙3为基准时刻点,下个时隙(即时隙4)开始承载客户业务变成时隙3、时隙8和时隙15承载客户业务(前面是由时隙3和时隙15承载),见图10中所示。在本示例的应用中,承载客户业务的时隙中虽然从时隙4开始由时隙3、时隙15替换成时隙3、时隙8和时隙15,但时隙4、时隙5、时隙6和时隙7不属于本客户承载时隙,因此时隙4、时隙5、时隙6和时隙7并不承载本客户业务,实际应用中也可以,如图11所示,在时隙3之后,下个承载本客户的有效时隙可以是时隙8,也可以将时隙8作为基准时刻点,从时隙8开始切换成新时隙数量,在本帧中从时隙8开始由原来的时隙3和时隙15组合承载客户业务改为由时隙3、时隙8和时隙15组合承载客户业务。在具体应用中,除了在携带时隙切换时刻指示CCC值的时隙切换时刻码块之后的下个时隙位置可以作为基准时刻点启动时隙调整结果,也可以在携带时隙切换时刻指示CCC值的时隙切换时刻码块之后的下个承载帧的起始位置(即下个承载帧的第一个时隙)作为基准时刻点启动时隙调整,如图12所示,可以将承载客户业务由时隙3和时隙15组合替换成时隙3、时隙8和时隙15组合。实际应用中,如图13所示,也可以在携带时隙切换时刻指示CCC值的时隙切换时刻码块之后的下个承载帧的复帧中首个承载帧的起始位置(即下个复帧中第一个帧的第一个时隙)作为基准时间点启动时隙调整,将承载客户业务由时隙3和时隙15替换成时隙3、时隙8和时隙15。It is worth noting that in actual applications, the customer service flow can be in the form of a code block flow. The customer's code block can be mapped to the time slot selected in the bearer frame in Figure 1 for carrying. The customer service code block flow is only carried on the corresponding selected time slot in the bearer frame. For example, the customer originally only carried services on time slots 3 and time slots 15. After the adjustment, the selected bearer frame carries services on time slots 3, 8 and 15. The bandwidth adjustment this time is to add time slot 8. After the adjustment, the customer service is carried on time slots 3, 8 and 15. In this way, the customer service code block flow carries a time slot adjustment indication special definition code block that appears in one of the time slots 3 and 8 in the bearer frame, but it is not certain whether it appears in time slot 3 or time slot 8 this time. As shown in Figure 10, the time slot adjustment indication special definition code block can appear at a certain time in the middle of the bearer frame. For the time slot adjustment indication code blocks carrying the time slot adjustment indication C1, C2, and C3 values, the receiving side only detects these three specially defined code blocks in the service code block stream. After detecting the code blocks of these three time slot adjustment indications, the final adjustment indication validity 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 time code block carrying the time slot switching time indication CCC value may also appear in any time slot carrying customer services. In Figure 10, the time slot switching time code block carrying the time slot switching time indication CCC value may appear in time slot 3. At this time, time slot 3 becomes the reference time point for adjusting the number of time slots. With time slot 3 as the reference time point, the next time slot (i.e., time slot 4) starts to carry customer services and becomes time slot 3, time slot 8, and time slot 15 to carry customer services (previously carried by time slot 3 and time slot 15), as shown in Figure 10. In the application of this example, although the time slots carrying customer services are replaced by time slots 3, time slots 15 to time slots 3, time slots 8 and time slots 15 starting from time slot 4, time slots 4, time slots 5, time slots 6 and time slots 7 do not belong to the time slots carrying this customer. Therefore, time slots 4, time slots 5, time slots 6 and time slots 7 do not carry this customer's services. In actual applications, this is also possible. As shown in Figure 11, after time slot 3, the next valid time slot carrying this customer can be time slot 8, or time slot 8 can be used as a reference time point to switch to a new time slot number starting from time slot 8. In this frame, starting from time slot 8, the original combination of time slots 3 and time slots 15 for carrying customer services is changed to a combination of time slots 3, time slots 8 and time slots 15 for carrying customer services. In specific applications, in addition to the next time slot position after the time slot switching time code block carrying the time slot switching time indication CCC value can be used as the reference time point to start the time slot adjustment result, the starting position of the next bearer frame after the time slot switching time code block carrying the time slot switching time indication CCC value (i.e., the first time slot of the next bearer frame) can also be used as the reference time point to start the time slot adjustment, as shown in Figure 12, the bearer customer service can be replaced from the combination of time slot 3 and time slot 15 to the combination of time slot 3, time slot 8 and time slot 15. In practical applications, as shown in Figure 13, the starting position of the first bearer frame in the multiframe of the next bearer frame after the time slot switching time code block carrying the time slot switching time indication CCC value (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 bearer customer service can be replaced from time slot 3 and time slot 15 to time slot 3, time slot 8 and time slot 15.

在一实施例中,在业务流中可以插入多个携带时隙调整指示的特殊定义码块,并将这些特殊定义码块和业务流码块一起进行传递,多个特殊定义码块可以采用固定周期(T)发送,如图14所示,特殊定义码块之间间隔固定数量的客户码块。采用固定周期(T)发送携带时隙调整指示的特殊定义码块后,通过任意一个特殊定义码块就可以知道其他特殊定义码块的位置,例如通过携带时隙调整指示C1值的特殊定义码块位置就可是预测出携带时隙调整指示C2、C3,以及时隙切换时刻指示CCC值的特殊定义码块位置。通过C1、C2、C3中任何一个特殊定义码块,也能预测CCC值的特殊定义码块位置。由于CCC值的特殊定义码块只是起到时隙调整的基准时刻点,仅仅是一个时刻点,当能预测CCC值的特殊定义码块的具体位置时,就可以知道基准时刻点,该特殊定义码块就没有必要真实存在,可以省略掉携带CCC值的特殊定义码块,以携带时隙调整指示C3码块位置之后固定数量的客户码块位置(T周期长度中的客户业务码块数量)作为时隙调整的基准时刻点,如图14所示,图14中携带时隙切换时刻指示CCC值的特殊定义码块是白色,表示该码块并不存在,图14中只是虚拟呈现。提前设定出约定基准时刻点,通过携带时隙调整指示C1、C2、C3等特殊定义码块就可以确定时隙调整的基准时刻点,不再需要真实的携带时隙切换时刻指示信号CCC的码块,减少插入该码块时带来的带宽损失。在实际应用中携带时隙调整指示C1、C2、C3等特殊定义码块之间的间隔可以是一个相同T1值,携带时隙切换时刻指示CCC等时隙切换时刻码块和携带时隙调整指示C3等时隙调整指示码块之间间隔可以是另外一个T2数值,如图15所示,T2值可以是更小的值,以更早地执行时隙调整的时刻。无论是一个T1等间隔数值,还是T1、T2等多个间隔数值,这些都在本申请保护范围内。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 are transmitted together with the service flow code blocks. Multiple special definition code blocks can be sent at a fixed period (T), as shown in FIG14, and a fixed number of client code blocks are spaced between the special definition code blocks. After the special definition code blocks carrying the time slot adjustment indication are sent at a fixed period (T), the positions of other special definition code blocks can be known through any special definition code block. For example, the positions of the special definition code blocks carrying the time slot adjustment indication C1 value can be predicted through the positions of the special definition code blocks carrying the time slot adjustment indication C2, C3, and the time slot switching moment indication CCC value. The positions of the special definition code blocks carrying the CCC value can also be predicted through any of the special definition code blocks C1, C2, and C3. Since the special definition code block of the CCC value only serves as the reference time point for time slot adjustment, it is only 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 the special definition code block does not need to exist in reality. The special definition code block carrying the CCC value can be omitted, and the fixed number of customer code block positions (the number of customer service code blocks in the T cycle length) after the code block position carrying the time slot adjustment indication C3 is used as the reference time point for time slot adjustment, as shown in Figure 14. The special definition code block carrying the time slot switching time indication CCC value in Figure 14 is white, indicating that the code block does not exist, and is only virtually presented in Figure 14. The agreed reference time point is set in advance, and the reference time point for time slot adjustment can be determined by carrying the special definition code blocks such as the time slot adjustment indication C1, C2, and C3. The real code block carrying the time slot switching time indication signal CCC is no longer needed, reducing the bandwidth loss caused by inserting the code block. In practical applications, the intervals between special definition code blocks carrying time slot adjustment indications C1, C2, C3, etc. can be the same T1 value, and the intervals between time slot switching time code blocks carrying time slot switching indications CCC, etc. and time slot adjustment indication code blocks carrying time slot adjustment indications C3, etc. can be another T2 value, as shown in FIG15 , T2 value can be a smaller value, so as to execute the time slot adjustment earlier. Whether it is a T1 interval value, or multiple interval values such as T1, T2, etc., these are within the protection scope of this application.

在实际应用中,由于客户报文的长度是随机、不确定的,有时遇到的是长报文,有时遇到的是短报文,在不允许在报文中间位置插入特殊定义码块的场景下,按照固定间隔插入携带时隙调整指示C1、C2、C3等时隙调整指示码块时,这些码块的期望插入位置可能位于报文中间位置,在这种情况下只能等当前报文传递结束后才插入特殊定义码块,如图16所示,携带时隙调整指示C1、C2、C3等特殊定义码块可以按照等间隔插入和发送,携带时隙调整指示C3指示的特殊定义码块的期望位置可以位于报文中间,但时间上不能立即插入该码块,需要等报文传递结束后才能插入,否则携带时隙调整指示C3指示的特殊定义码块的实际位置和期望位置不一致。实际应用中在期望位置检测特殊定义码块时,如果期望位置是客户报文的三种码块之一(报文码块有S码块、D码块、T码块)时,则等报文的结束码块T码块之后就是特殊定义码块的实际位置。在对于省去的携带时隙切换时刻指示CCC信息的特殊定义码块,由于没有插入真实码块,确定位置时始终按照期望位置进行定位,以携带时隙调整指示C1、C2、C3等特殊定义码块的期望位置和码块间隔数值确定时隙调整的基准时刻点(即携带时隙调整指示CCC信息的特殊定义码块的期望位置),参见图16,根据时隙调整指示C1、C2、C3等特殊定义码块计算出调整基准时刻点在一个D码块位置,可以在该D码块位置开始执行时隙调整。在实际应用中,为了方便客户业务速度的调整,一般当前报文结束以后、下个报文的起始位置才改变客户业务的速度,不会在报文中D码块位置改变客户业务速度。在具体应用中,虽然计算出调整基准时刻点在报文的D码块位置,但真正执行时隙调整时,可以将计算出在D码块位置(除了D码块,也包括可能在S码块、T码块位置上等客户报文的这三种码块)的调整基准时刻点修改到报文结束T码块之后的第一个码块,如图16所示,将当前报文的T码块之后的第一个码块的执行时刻作为调整时刻点的修正后调整时刻点,就是真正的时隙调整执行时刻。In actual applications, since the length of customer messages is random and uncertain, sometimes long messages are encountered and sometimes short messages are encountered. In the scenario where special definition code blocks are not allowed to be inserted in the middle of the message, when time slot adjustment indication code blocks carrying time slot adjustment indications C1, C2, C3, etc. are inserted at fixed intervals, the expected insertion positions of these code blocks may be located in the middle of the message. In this case, the special definition code blocks can only be inserted after the current message is transmitted. As shown in Figure 16, special definition code blocks carrying time slot adjustment indications C1, C2, C3, etc. can be inserted and sent at equal intervals, and the expected position of the special definition code block indicated by the time slot adjustment indication C3 can be located in the middle of the message, but the code block cannot be inserted immediately in time. It needs to be inserted after the message transmission is completed, otherwise the actual position of the special definition code block indicated by the time slot adjustment indication C3 will be inconsistent with the expected position. In actual applications, when a special definition code block is detected at an expected position, if the expected position is one of the three code blocks of a customer message (the message code blocks include S code blocks, D code blocks, and T code blocks), the actual position of the special definition code block is after the end code block T of the message. For the omitted special definition code block carrying the time slot switching moment indication CCC information, since no real code block is inserted, the position is always determined according to the expected position, and the reference time point of the time slot adjustment (i.e., the expected position of the special definition code block carrying the time slot adjustment indication CCC information) is determined by the expected position of the special definition code block carrying the time slot adjustment indication C1, C2, C3 and the code block interval value, see Figure 16, the adjustment reference time point is calculated according to the special definition code block carrying the time slot adjustment indication C1, C2, C3 and the like, at a D code block position, and the time slot adjustment can be performed starting from the D code block position. In practical applications, in order to facilitate the adjustment of customer service speed, generally, the speed of customer service is changed after the current message ends and at the starting position of the next message, and the customer service speed is not changed at the D code block position in the message. In specific applications, although the adjustment reference time point is calculated to be at the D code block position of the message, when the time slot adjustment is actually performed, the adjustment reference time point calculated at the D code block position (in addition to the D code block, it also includes the three types of code blocks of the customer message that may be at the S code block, T code block position, etc.) can be modified to the first code block after the T code block at the end of the message, as shown in Figure 16, and the execution time of the first code block after the T code block of the current message is used as the adjusted time point. The corrected adjustment time point is the real time slot adjustment execution time.

值得注意的是,在应用中为了实现对客户业务承载管道的服务质量进行监视,通常会在客户业务流中插入OAM码块,通过监视OAM码块中信息状况可以确定承载管道的服务质量。国际电信联盟(ITU组织)发布的MTN标准中定义了OAM码块的格式和种类。OAM码块是一种特殊定义的66比特长度的o码块,o序列值为0xC,即码块特征值由:同步头比特为“10”+控制字为0x4B+o序列值为0xC组成。其中,OAM码块有许多种类,分为Base码块、APS码块、L码块三大类,Base码块是基础功能码块,单个码块结构,可以分成Base1和Base2两个子类,简称为B1和B2码块;APS码块是保护码块,多码块结构,由两个码块组成;L码块是低优先级码块,低优先级码块又分为CV、CS、1DM、2DM等几种子类,有的子类的低优先级码块是单码块结构,有的子类的低优先级码块是多码块组成的结构。OAM码块之间可以按照周期T等间隔和固定顺序规律发送,如图17所示,B1、A、B2、L顺序关系可以是一个小顺序循环,每64个小循环顺序又组成一个大循环顺序。在大循环中的每个小循环的L码块位置上,第1-17次小循环的L位置可以是CV码块,第18次小循环的L码块位置可以是CS码块,第19-31次小循环的L码块位置可以是1DM/2DM码块,第32-64次小循环的L码块位置可以是保留位置,当前定义保留位置是空缺、不发送L码块。参见图18,在应用中B1、A、B2、L码块可以是现有标准定义的OAM码块,可以对这些OAM码块进行功能扩充,以使同时具备携带C1、C2、C3等指示信息的双重功能,如图18所示,在B1码块同时携带C1指示信息、A码块同时携带C2指示信息、B2码块上同时携带C3指示信息,并以下一轮小循环的B1码块作为携带CCC指示信息功能的时隙切换基准时刻点位置,这样通过现有OAM码块就可以实现带宽无损调整的指示信息和切换时刻指示功能。It is worth noting that in order to monitor the service quality of the customer service bearer pipe in the application, OAM code blocks are usually inserted into the customer service flow. The service quality of the bearer pipe can be determined by monitoring the information status in the OAM code blocks. The format and types of OAM code blocks are defined in the MTN standard released by the International Telecommunication Union (ITU). OAM code blocks are a specially defined 66-bit length o code block, 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 blocks, APS code blocks, and L code blocks. Base code blocks are basic function code blocks, single code block structures, and can be divided into two subclasses, Base1 and Base2, referred to as B1 and B2 code blocks; APS code blocks are protection code blocks, multi-code block structures, and are composed of two code blocks; L code blocks are low-priority code blocks, which are divided into several subclasses such as CV, CS, 1DM, and 2DM. Some subclasses of low-priority code blocks are single-code block structures, and some subclasses of low-priority code blocks are structures composed of multiple code blocks. OAM code blocks can be sent at equal intervals and fixed order according to period T. As shown in Figure 17, the order relationship of B1, A, B2, and L can be a small order cycle, and every 64 small cycle sequences form a large cycle sequence. In the L code block position of each small cycle in the large cycle, the L position of the 1st to 17th small cycles can be a CV code block, the L code block position of the 18th small cycle can be a CS code block, the L code block position of the 19th to 31st small cycles can be a 1DM/2DM code block, and the L code block position of the 32nd to 64th small cycles can be a reserved position. The currently defined reserved position is vacant and no L code block is sent. Referring to FIG. 18, in the 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 expanded so that they have the dual functions of carrying C1, C2, C3 and other indication information at the same time. As shown in FIG. 18, the B1 code block carries C1 indication information at the same time, the A code block carries C2 indication information at the same time, and the B2 code block carries C3 indication information at the same time, and the B1 code block of the next small cycle is used as the time slot switching reference time point position for carrying the CCC indication information function, so that the indication information of lossless bandwidth adjustment and the switching time indication function can be realized through the existing OAM code blocks.

可以理解的是,在标准定义中,只有客户启用APS保护功能时才可以发送APS码块,如果客户应用中不启用APS协议和功能,则对应位置空缺、不发送APS码块。It is understandable that, in the standard definition, the APS code block can be sent only when the customer enables the APS protection function. If the APS protocol and function are not enabled in the customer application, the corresponding position is vacant and the APS code block is not sent.

在一实施例中,在第32-64次的B1、A、B2、L小循环中L码块位置也是不发送L码块,这种情况下需要在APS码块位置补发送一个特殊定义码块,称为伪APS码块(或称为伪A码块,或C2码块),这样发送的OAM序列就变成图19中的格式,B1、伪A、B2三个码块可以传递C1、C2、C3指示调整指示信号,以下一小循环的B1码块位置作为约定的时隙调整参考时刻点。当不启用发送APS码块时,需要补充发送一个称为伪APS码块,或特殊定义的C2指示码块,和B1、B2码块一起传递。在实际应用中除了可以通过B1、A、B2三个码块传递C1、C2、C3指示信号,也可以通过B1、B2、L三个码块传递C1、C2、C3指示信号。对L码块功能进行扩展,L码块可以携带C3调节指示信息,如图20所示,当L码块空缺时,则可以发送一个伪L码块(也称为C3码块),以携带C3调整标志信息。In one embodiment, the L code block is not sent at the L code block position in the 32nd to 64th B1, A, B2, L small cycles. In this case, a specially defined code block needs to be sent at the APS code block position, which is called a pseudo APS code block (or pseudo A code block, or C2 code block). In this way, the sent OAM sequence becomes the format in Figure 19. The three code blocks B1, pseudo A, and B2 can transmit C1, C2, and C3 indication adjustment indication signals, and the B1 code block position of the next small cycle is used as the agreed time slot adjustment reference time point. When the sending of APS code blocks is not enabled, it is necessary to send a pseudo APS code block, or a specially defined C2 indication code block, together with the B1 and B2 code blocks. In practical applications, in addition to transmitting C1, C2, and C3 indication signals through the three code blocks B1, A, and B2, C1, C2, and C3 indication signals can also be transmitted through the three code blocks B1, B2, and L. The L code block function is extended so that the L code block can carry C3 adjustment indication information. As shown in FIG20 , when the L code block is vacant, a pseudo L code block (also called a C3 code block) can be sent to carry C3 adjustment flag information.

值得注意的是,ITU国际标准制定的OAM码块是66比特长度的码块,是对以太网标准中的o码块进行了拓展,将o序列值选为0xC值的o码块定义为OAM码块,具体格式如下表1所示:It is worth noting that the OAM code block formulated by the ITU international standard is a 66-bit code block, which is an extension of the o code block in the Ethernet standard. The o code block with the o sequence value selected as 0xC is defined as the OAM code block. The specific format is shown in Table 1 below:

表1新定义o序列值的OAM码块的格式表
Table 1 Format of OAM code block with newly defined o sequence value

其中可见,OAM码块同步头比特为“10”,码块控制字值为0x4B,o序列值为0xC值。SoM比特、EoM比特的组合可以用来表示多个码块的组成顺序关系,区分多个码块中首块、中间块和尾块,具体定义如表2所示: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 indicate the composition order of multiple code blocks and distinguish the first block, middle block and tail block in multiple code blocks. The specific definition is shown in Table 2:

表2 SoM比特、EoM比特的组合关系定义表
Table 2 Definition of the combination relationship between SoM bit and EoM bit

其中,OAM码块中type字段用于表示OAM码块种类,如Base码块(简称B码块)、APS码块(简称A码块)、L码块(低优先级码块,如CV码块、CS码块、1DM等)。value1、value2字段可以用来承载OAM码块具体信息内容。对于Base码块分成B1和B2两个子类(即Base1码块和Base2码块),两种B码块的内容一样的,只是用于确定在B1(即Base1码块)、A(即APS码块)、B2(即Base2码块)、L(即L码块)顺序关系中位置不同才分成B1和B2两子类,其中B1位于A码块相邻位置前面,B2位于A码块相邻位置后面。B码块具体结构如表3所示:Among them, the type field in the OAM code block is used to indicate the type of OAM code block, such as Base code block (B code block for short), APS code block (A code block for short), L code block (low priority code block, such as CV code block, CS code block, 1DM, etc.). The value1 and value2 fields can be used to carry the specific information content of the OAM code block. The Base code block is divided into two subcategories, B1 and B2 (i.e., Base1 code block and Base2 code block). The contents of the two B code blocks are the same, but they are divided into B1 and B2 subcategories because of their different positions in the order relationship of B1 (i.e., Base1 code block), A (i.e., APS code block), B2 (i.e., Base2 code block), and L (i.e., L code block). B1 is located in front of the adjacent position of the A code block, and B2 is located behind the adjacent position of the A code block. The specific structure of the B code block is shown in Table 3:

表3 B码块的具体结构
Table 3 Specific structure of B code block

其中,在B码块中的比特18、比特19、比特20位置以res表示,表示这些位置尚未启用,是保留信息,可以启用其中任何一个比特作为时隙调整指示C信息功能,参见表5,可以启用21比特作为承载时隙调整指示C信息功能,通过B1码块和B2码块可以表示时隙调整指示C1和C3信息,或表示时隙调整指示C1和C2信息,这样B码块定义如表4所示:Among them, the positions of bit 18, bit 19, and bit 20 in the B code block are represented by res, indicating that these positions have not been enabled and are reserved information. Any one of the bits can be enabled as a time slot adjustment indication C information function, see Table 5, and the 21st bit can be enabled as a time slot adjustment indication C information function. The B1 code block and the B2 code block can represent the time slot adjustment indication C1 and C3 information, or represent the time slot adjustment indication C1 and C2 information. The definition of the B code block is shown in Table 4:

表4添加了时隙调整指示C信息的B码块定义
Table 4 adds the B code block definition of time slot adjustment indication C information

此外,对于APS码块由两个码块序列组成(简称A1码块和A2码块),每个码块可以携带2个字节内容,两个码块共4个字节组成APS协议内容,APS格式如表5所示:In addition, the APS code block consists of two code block sequences (referred to as A1 code block and A2 code block), each code block can carry 2 bytes of content, and the two code blocks have a total of 4 bytes to form the APS protocol content. The APS format is shown in Table 5:

表5 APS格式表
Table 5 APS format table

其中,在APS码块序列组中第二码块中有4个比特是保留未启用,可以启用任意一个比特作为承载时隙调整指示C2信息功能,参见表6,可以启用21比特作为承载时隙调整指示C2信息功能,扩展新功能后的APS码块结构如表6所示:Among them, in the second code block of the APS code block sequence group, 4 bits are reserved and not enabled. Any bit can be enabled as a bearer time slot adjustment indication C2 information function. See Table 6. 21 bits can be enabled as a bearer time slot adjustment indication C2 information function. The APS code block structure after the new function is extended is shown in Table 6:

表6扩展新功能后的APS码块结构表
Table 6 APS code block structure table after extending new functions

由于只有第二APS码块(A2码块)才有保留字段进扩充以携带时隙调整指示信息,如图21所示,应用中只能选择第二个APS码块(A2)和该码块前一个B1码块、后一个B2码块组合起来传递携带时隙调整指示C1、C2、C3三个比特信息,即选择B1、A2、B2、L这个小循环来传递携带时隙调整指示,而B1、A1、B2、L这个小循环中因为A码块没有扩展比特无法传递携带时隙调整指示信息。需要说明的是,如果因为时间紧迫,需要在B1、A1、B2、L这一轮小循环周期中传递携带时隙调整指示,如图22所示,可以在该A码块之后(或之前)插入一个特殊定义码块,如C2码块(或称为伪A码块),专用于补充传递携带一个时隙调整指示。正常的A码块中SoM、EoM值是“10”或“01”,伪码块可以采用相同的A码块格式,只是SoM、EoM值是“11”,以区别传递APS协议的A码块,如表7所示:Since only the second APS code block (A2 code block) has a reserved field to be expanded to carry the time slot adjustment indication information, as shown in FIG21, in the application, only the second APS code block (A2) and the previous B1 code block and the next B2 code block can be selected to combine and transmit the three bits of information C1, C2, and C3 of the time slot adjustment indication, that is, the small cycle of B1, A2, B2, and L is selected to transmit the time slot adjustment indication, and the A code block in the small cycle of B1, A1, B2, and L cannot transmit the time slot adjustment indication information because there is no extended bit. It should be noted that if the time slot adjustment indication needs to be transmitted in the small cycle of B1, A1, B2, and L due to time constraints, as shown in FIG22, a special definition code block, such as a C2 code block (or pseudo A code block), can be inserted after (or before) the A code block, which is dedicated to supplement the transmission of a time slot adjustment indication. The SoM and EoM values in a normal A code block are "10" or "01". The pseudo code block can use the same A code block format, but the SoM and EoM values are "11" to distinguish the A code block that transmits the APS protocol, as shown in Table 7:

表7伪码块的格式表
Table 7 Format of pseudo code block

当检测到码块的格式是A码块的类型值,但SoM、EoM值是“11”时,可以确定该码块是伪A码块,该伪A码块可以用于传递时隙调整指示C2信息的功能。除了上面给出采用A码块的类型值来表达伪A码块的格式外,也可以通过其他不同类型值来标识伪A码块或C2码块的功能。类似的,当不进行B码块进行扩展携带传递时隙调整指示C1、C2、C3的信息时,也可以单独插入伪B码块的方式发送携带传递时隙调整指示C1、C2、C3的码块,需要说明的是,这些都在本申请范围内。When it is detected that the format of the code block is the type value of the A code block, but the SoM and EoM values are "11", it can be determined that the code block is a pseudo A code block, and the pseudo A code block can be used to transmit the time slot adjustment indication C2 information. In addition to the above-mentioned use of the type value of the A code block to express the format of the pseudo A code block, other different type values can also be used to identify the function of the pseudo A code block or C2 code block. Similarly, when the B code block is not extended to carry the information of the time slot adjustment indication C1, C2, C3, the code block carrying the time slot adjustment indication C1, C2, C3 can also be sent by inserting a pseudo B code block separately. It should be noted that these are all within the scope of this application.

值得注意的是,和APS码块类似,L码块中CV码块、CS码块、1DM码块、2DM码块等也有保留比特,可以启用任意一个保留比特作为承载时隙调整指示信息功能。It is worth noting that, similar to the APS code block, the CV code block, CS code block, 1DM code block, 2DM code block, etc. in the L code block also have reserved bits, and any reserved bit can be enabled as a function of carrying time slot adjustment indication information.

在一实施例中,在没有L码块位置的情况下,可以单独发送一个伪L码块(或称为C3码块)承载时隙调整指示信息。当本轮B1、A、B2、L周期中L码块没有保留比特可以扩充传递时隙调整指示时,也可以在L码块的前面或后面插入插入一个特殊定义码块,如C3码块,专用于补充传递携带一个时隙调整指示。In one embodiment, when there is no L code block position, a pseudo L code block (or C3 code block) may be sent separately to carry the time slot adjustment indication information. When there is no reserved bit in the L code block in the current B1, A, B2, L cycle to extend the transmission of the time slot adjustment indication, a special definition code block, such as a C3 code block, may be inserted before or after the L code block to supplement the transmission of a time slot adjustment indication.

在一实施例中,OAM码块之间可以按照周期T等间隔、固定顺序规律发送,B1、A、B2、L是一个小顺序循环,每64个小循环组成一个大循环。在每个小循环的L码块位置中,第1-17次小循环的L位置是CV码块,第18次是CS码块,第19-31次是1DM/2DM码块,第32-64次是保留位置,当前定义保留位置是空缺、不发送L码块,可以在第32-64次小循环周期中的L码块位置发送特殊定义的伪L码块(如称为LC码块),用于传递时隙调整指示。参见图23,如图23所示,可以选择第32、33、34次小循环周期中的L码块位置发送一个特殊定义的伪L码块(称为LC码块)传递时隙调整指示,以下一个小循环周期(第35次小周期)的B1码块作为时隙调整执行的参考基准时刻。在实际应用中也可以选择第33、34、35次小循环周期中的L码块位置发送一个特殊定义的伪L码块,需要说明的是,这些都在本申请范围内。In one embodiment, the OAM code blocks can be sent in a fixed order with equal intervals according to the period T. B1, A, B2, and L are a small sequential cycle, and every 64 small cycles form a large cycle. In the L code block position of each small cycle, the L position of the 1st to 17th small cycles is a CV code block, the 18th is a CS code block, the 19th to 31st is a 1DM/2DM code block, and the 32nd to 64th is a reserved position. The currently defined reserved position is vacant and no L code block is sent. A specially defined pseudo L code block (such as an LC code block) can be sent at the L code block position in the 32nd to 64th small cycle period to transmit the time slot adjustment indication. Referring to Figure 23, as shown in Figure 23, a specially defined pseudo L code block (called an LC code block) can be selected to transmit the time slot adjustment indication at the L code block position in the 32nd, 33rd, and 34th small cycle periods, and the B1 code block of the next small cycle period (the 35th small cycle) is used as the reference base time for the time slot adjustment execution. In practical applications, you can also select the L code block position in the 33rd, 34th, and 35th small cycle periods to send a specially defined pseudo L code block. It should be noted that these are all within the scope of this application.

在前述的实施例中携带时隙调整指示信息是多次传递,以多数判断结果作为调整指示信息的最终结果,多数判断原则可以冗余一定的传递信息错误,不因为少量信息错误而导致错误的判断结果,如三次传递信息的多数判断原则可以容忍其中任何一次的传递错误,五次传递信息的多数判断原则可以容忍其中任何两次的传递错误。多数判断原则需要传递多次信息,在应用中还有另外一种提高错误容忍的方法,例如对每次传递的信息增加校验比特,可以判断出单次传递信息是否正确。在B码块中有3个保留比特,可以使用其中任意两个比特传递调整指示信息,任意两个比特组合起来决定调整比特信息是否正确,如表8所示,C比特是调整指示信息,bip是对C比特的校验比特,可以采用偶校验或奇校验。在采用偶校验时,当C的值1时,BIP的值也是1;当C的值0时,BIP的值也是0。C的值1和BIP的值之间有固定关系,两者之间只能是“11”或者“00”,在单比特误码的场景下当遇到C比特值和BIP比特值变成“10”或“01”,这两种值时错误结果,这样就知道该C比特可能出现错误。采用带校验功能的传递时隙调整指示信息就可以不需要要三次、五次传递,只需要两次传递就可以,当比特错误的场景只会出现一次信息错误,这样即使有一次错误导,另外一个值是正确可用的,如图24所示,在B1、B2的码块上携带者带有校验功能的时隙调整指示信息,任何一个B码块中校验比特BIP值和C值组合起来、确定对应的C值是正确时,该确定后的C值就是最终的时隙调整指示信息。在图24中,只在B1、B2的码块上携带者带有校验功能的时隙调整指示信息,以下一个B码块作为时隙调整的基准时刻点。In the aforementioned embodiment, the time slot adjustment indication information is transmitted multiple times, and the majority judgment result is used as the final result of the adjustment indication information. The majority judgment principle can redundancy certain transmission information errors, and will not cause wrong judgment results due to a small amount of information errors. For example, the majority judgment principle of three transmissions can tolerate any one of the transmission errors, and the majority judgment principle of five transmissions can tolerate any two of the transmission errors. The majority judgment principle requires multiple transmissions of information. There is another method to improve error tolerance in the application, such as adding a check bit to each transmitted information, which can determine whether the single transmission 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. Any two bits are combined to determine 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, which can use even parity or odd parity. When using even parity, when the value of C is 1, the value of BIP is also 1; when the value of C is 0, the value of BIP is also 0. There is a fixed relationship between the value 1 of C and the value of BIP, and the two can only be "11" or "00". In the scenario of a single bit error, when the C bit value and the BIP bit value become "10" or "01", these two values are error results, so it is known that the C bit may be wrong. The use of the time slot adjustment indication information with a check function does not require three or five transmissions, but only two transmissions. In the case of a bit error, only one information error will occur. In this way, even if there is an error, another value is correct and available. As shown in Figure 24, the time slot adjustment indication information with a check function is carried on the code blocks of B1 and B2. When the check bit BIP value and C value in any B code block are combined to determine that the corresponding C value is correct, the determined C value is the final time slot adjustment indication information. In Figure 24, the time slot adjustment indication information with a check function is carried only on the code blocks of B1 and B2, and the next B code block is used as the reference time point for the time slot adjustment.

表8 B码块格式表
Table 8 B code block format table

在上述的实施例中,在进行端到端时隙调整中,源点设备开始发送时隙调整申请,源端设备、中间网络设备和宿端设备之间调整的时隙编号可以是完全一样的,这样中间网络设备只需转发时隙调整申请信号、时隙编号和时隙调整应答信号,就可以实现端到端的时隙调整握手协商过程。在实际应用中,由于每个节点设备配置时隙内容可能不同,设备之间剩余时隙编号可能不一致,相邻两个节点之间只需要保证调整的时隙数量一致就可以,不需要时隙位置、时隙名字完全一致。如图25所示,源端设备1和下游设备2之间可以选择时隙2和空闲时隙3进行调整,选择设备2和设备3之间可以选择时隙5、时隙8进行调整,设备3和设备4之间可以选择时隙1、时隙7进行调整,这样每相邻设备之间的申请信号CR、应答信号CA和对应调整时隙编号可以相互关联,并且和对应的调整时隙一一对应。当源节点发送调整指示信号C时,调整指示信号也可以在对应的有效调整时隙上传递到每台设备。In the above embodiment, when performing end-to-end time slot adjustment, the source device starts to send a time slot adjustment application. The time slot numbers adjusted between the source device, the intermediate network device and the host device can be exactly the same. In this way, the intermediate network device only needs to forward the time slot adjustment application signal, the time slot number and the time slot adjustment response signal to realize the end-to-end time slot adjustment handshake negotiation process. In actual applications, since the time slot content configured by each node device may be different, the remaining time slot numbers between devices may be inconsistent. It is only necessary to ensure that the number of adjusted time slots is consistent between two adjacent nodes, and the time slot positions and time slot names do not need to be completely consistent. As shown in Figure 25, time slot 2 and idle time slot 3 can be selected for adjustment between the source device 1 and the downstream device 2, time slot 5 and time slot 8 can be selected for adjustment between the selected device 2 and the device 3, and time slot 1 and time slot 7 can be selected between the device 3 and the device 4. In this way, the application signal CR, the response signal CA and the corresponding adjustment time slot number between each adjacent device can be associated with each other and correspond one-to-one with the corresponding adjustment time slot. When the source node sends the adjustment indication signal C, the adjustment indication signal may also be transmitted to each device in the corresponding valid adjustment time slot.

在一实施例中,在正常情况下源端设备发送CR有效信息后,中间设备可以对接收到的CR有效信息解析并转发给下游设备,一直转发到宿端设备。在一些特殊情况或异常情况下,可能中间或宿端设备根据申请的时隙数量,判断为无法满足时隙调整需求,时隙调整申请被拒绝。如图26所示,当源端设备申请增加10个时隙时,设备1和设备2之间有足够空闲时隙可以满足,设备2和设备3之间有足够空闲时隙可以满足,调整申请可以继续转发下去,但设备3和设备4之间没有足够空闲时隙可以满足增加调整,设备3无法继续转发时隙调整申请信息给设备4时,时隙调整申请会被拒绝。此时,设备3可以直接向上游设备回送调整失败应答信号CA_fail信号,不分配设备2计划的申请时隙。设备2收到回送调整失败应答信号CA_fail信号后,撤销申请的时隙,并继续回送给上游设备1,设备1收到回送调整失败应答信号CA_fail信号后判断时隙调整申请失败,撤回申请的时隙调整申请内容,撤销已经申请的调整时隙操作,这样就完成时隙申请的撤销过程。In one embodiment, after the source device sends the CR valid information under normal circumstances, the intermediate device can parse the received CR valid information and forward it to the downstream device, and forward it to the destination device. In some special or abnormal circumstances, the intermediate or destination device may determine that the time slot adjustment requirement cannot be met based on the number of time slots applied, and the time slot adjustment application is rejected. As shown in Figure 26, when the source device applies to add 10 time slots, there are enough idle time slots between device 1 and device 2 to meet the requirements, and there are enough idle time slots between device 2 and device 3 to meet the requirements, and the adjustment application can continue to be forwarded, but there are not enough idle time slots between device 3 and device 4 to meet the increase in adjustment, and device 3 cannot continue to forward the time slot adjustment application information to device 4, and the time slot adjustment application will be rejected. At this time, device 3 can directly send back the adjustment failure response signal CA_fail signal to the upstream device, and does not allocate the application time slot planned by device 2. After receiving the feedback adjustment failure response signal CA_fail, device 2 cancels the applied time slot and continues to send it back to the upstream device 1. After receiving the feedback adjustment failure response signal CA_fail, device 1 determines that the time slot adjustment application has failed, withdraws the applied time slot adjustment application content, and cancels the applied adjustment time slot operation, thus completing the withdrawal process of the time slot application.

在前述实施例中,可以将对应时隙的客户编号由无效编号变为有效编号,表示增加对应时隙,也可以将对应时隙的客户编号由有效编号变为无效编号,表示删除减少对应时隙,在实际应用中除了客户编号的变化情况表示时隙的增加或删除申请,也可以用其他方式表示,例如设置开销指示比特用来表示每个时隙的增加指示信号和删除指示信号,直接用增加指示信号和删除指示信号来表示每个时隙是申请增加调整还是申请删除调整,需要说明的是,不同的指示方式都在本申请范围内。In the aforementioned embodiment, the customer number of the corresponding time slot can be changed from an invalid number to a valid number, indicating that the corresponding time slot is added, and the customer number of the corresponding time slot can be changed from a valid number to an invalid number, indicating that the corresponding time slot is deleted or reduced. In actual applications, in addition to the change in the customer number indicating the application for adding or deleting the time slot, it can also be expressed in other ways. For example, an overhead indication bit is set to indicate the increase indication signal and the deletion indication signal of each time slot, and the increase indication signal and the deletion indication signal are directly used to indicate whether each time slot is applying for an increase adjustment or a deletion adjustment. It should be noted that different indication methods are within the scope of this application.

参照图28,图28是本申请另一个实施例提供的时隙调整方法的流程图,该时隙调整方法可以由中间节点执行,该时隙调整方法可以包括但不限于步骤S2810至步骤S2820。Referring to Figure 28, Figure 28 is a flowchart of a time slot adjustment method provided by another embodiment of the present application. The time slot adjustment method can be executed by an intermediate node, and the time slot adjustment method can include but is not limited to steps S2810 to S2820.

步骤S2810:在与上游节点和下游节点协商确定了时隙调整策略之后,当接收到上游节点发送的多个时隙调整指示信息,根据多个时隙调整指示信息确定时隙调整时刻,并在时隙调整时刻采用时隙调整策略完成时隙调整;Step S2810: after determining the time slot adjustment strategy through negotiation with the upstream node and the downstream node, upon receiving multiple time slot adjustment indication information sent by the upstream node, determining the time slot adjustment moment according to the multiple time slot adjustment indication information, and completing the time slot adjustment by adopting the time slot adjustment strategy at the time slot adjustment moment;

步骤S2820:向下游节点发送多个时隙调整指示信息,使得下游节点根据多个时隙调整指示信息确定时隙调整时刻,以及在时隙调整时刻采用时隙调整策略完成时隙调整。Step S2820: sending multiple time slot adjustment indication information to the downstream node, so that the downstream node determines the time slot adjustment moment according to the multiple time slot adjustment indication information, and adopts the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment.

在一可行的实施方式中,当客户业务处于传递的状态且在需要业务流中插入时隙调整信息时,当中间节点与上游节点和下游节点确定时隙调整策略之后,中间节点可以接收上游节点发送的时隙调整的指示信息并向下游节点发送时隙调整指示信息,以使在业务流传递的过程中,各节点能够在确定好的时隙调整时刻采用时隙调整策略完成时隙调整,减少业务带宽变动时刻和时隙数量变动时刻的不相同的持续时间,从而可以减少缓存业务数量,降低成本和客户延迟。In a feasible implementation, when a customer service is in a transmission state and time slot adjustment information needs to be inserted into the service flow, after the intermediate node determines the time slot adjustment strategy with the upstream node and the downstream node, the intermediate node can receive the time slot adjustment indication information sent by the upstream node and send the time slot adjustment indication information to the downstream node, so that in the process of service flow transmission, each node can adopt the time slot adjustment strategy to complete the time slot adjustment at the determined time slot adjustment moment, reduce the different durations of the service bandwidth change moment and the time slot number change moment, thereby reducing the number of cached services, reducing costs and customer delays.

在一可行的实施方式中,当中间节点与上游节点和下游节点协商确定了时隙调整策略之后,该中间节点还可以接收上游节点发送的时隙切换时刻信息,其中,时隙切换时刻信息用于指示时隙调整时刻,然后向下游节点发送时隙切换时刻信息。In a feasible implementation, after the intermediate node negotiates with the upstream node and the downstream node to determine the time slot adjustment strategy, the intermediate node can also receive the time slot switching time information sent by the upstream node, where the time slot switching time information is used to indicate the time slot adjustment time, and then send the time slot switching time information to the downstream node.

在一可行的实施方式中,时隙切换时刻信息可以承载于业务流中的时隙切换时刻码块,时隙调整时刻可以包括以下情况之一:时隙调整时刻为时隙切换时刻码块所处的时隙的下一个时隙;时隙调整时刻为时隙切换时刻码块所处的承载帧的下一个承载帧的起始位置或第一个时隙;时隙调整时刻为时隙切换时刻码块所处的复帧的下一个复帧中第一个承载帧的起始位置或下一个复帧中第一个承载帧的第一个时隙。In a feasible implementation, the time slot switching time information can be carried in the time slot switching time code block in the service flow, and the time slot adjustment time can include one of the following situations: the time slot adjustment time is the next time slot of the time slot where the time slot switching time code block is located; the time slot adjustment time is the starting position of the next bearer frame of the bearer frame where the time slot switching time code block is located or the first time slot; the time slot adjustment time is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot switching time code block is located or the first time slot of the first bearer frame in the next multiframe.

在一可行的实施方式中,时隙调整指示信息可以用于指示时隙调整策略生效,此外,多个时隙调整指示信息可以承载于业务流中的多个时隙调整指示码块。In a feasible implementation manner, the time slot adjustment indication information may be used to indicate that the time slot adjustment strategy is effective. In addition, multiple time slot adjustment indication information may be carried in multiple time slot adjustment indication code blocks in the service flow.

在一可行的实施方式中,时隙切换时刻信息可以承载于业务流中的时隙切换时刻码块,相邻两个时隙调整指示码块之间以及时隙切换时刻码块与最后一个被发送的时隙调整指示码块之间,可以具有数量相等或者不相等的第一码块。In a feasible implementation, the time slot switching time information can be carried in the time slot switching time code block in the service flow, and there can be equal or unequal numbers of first code blocks between two adjacent time slot adjustment indication code blocks and between the time slot switching time code block and the last time slot adjustment indication code block sent.

在一可行的实施方式中,当时隙切换时刻信息承载于业务流中的时隙切换时刻码块时,相邻两个时隙调整指示码块之间具有第一数量的第一码块,时隙切换时刻码块与最后一个被发送的时隙调整指示码块之间具有第二数量的第一码块,需要说明的是,第二数量不等于第一数量。In a feasible implementation, when the slot switching time information is carried in the slot switching time code block in the service flow, there are a first number of first code blocks between two adjacent time slot adjustment indication code blocks, and there are a second number of first code blocks between the time slot switching time code block and the last time slot adjustment indication code block sent. It should be noted that the second number is not equal to the first number.

在一可行的实施方式中,时隙切换时刻码块可以根据第一数量和任意一个时隙调整指示码块所在的位置而确定。In a feasible implementation manner, the time slot switching time code block can be determined according to the first quantity and the position of any time slot adjustment indication code block.

在一可行的实施方式中,时隙切换时刻码块在业务流中对应有期望位置,期望位置可以根据第一数量和任意一个时隙调整指示码块所在的位置而确定,当期望位置所对应的码块是数据报文之中的码块时,时隙切换时刻码块为数据报文中的结束码块之后的第一个码块。In a feasible implementation, the time slot switching code block corresponds to an expected position in the service flow, and the expected position can be determined based on the first quantity and the position of any time slot adjustment indication code block. When the code block corresponding to the expected position is a code block in a data message, the time slot switching code block is the first code block after the end code block in the data message.

在一可行的实施方式中,时隙调整指示码块和时隙切换时刻码块可以具有相同的码块类型,时隙调整指示码块和时隙切换时刻码块均可以包括时隙调整功能字段,时隙调整指示码块中的时隙调整功能字段可以用于承载时隙调整指示信息,时隙切换时刻码块中的时隙调整功能字段可以用于承载时隙切换时刻信息。In a feasible implementation, the time slot adjustment indication code block and the time slot switching moment code block can have the same code block type, and the time slot adjustment indication code block and the time slot switching moment code block can both include a time slot adjustment function field, and the time slot adjustment function field in the time slot adjustment indication code block can 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 can be used to carry the time slot switching moment information.

在一可行的实施方式中,时隙调整指示码块和时隙切换时刻码块均还可以包括同步头比特、控制字和类型序列值,其中,同步头比特、控制字和类型序列值的组合可以作为用于指示时隙调整指示码块或者时隙切换时刻码块的标志值。In a feasible implementation, the time slot adjustment indication code block and the time slot switching moment code block may also include a synchronization header bit, a control word and a type sequence value, wherein the combination of the synchronization header bit, the control word and the type sequence value may be used as a flag value for indicating the time slot adjustment indication code block or the time slot switching moment code block.

本实施例中,通过采用包括上述步骤S2810至步骤S2820的时隙调整方法,在中间节点与上游节点和下游节点协商确定了时隙调整策略之后,当中间节点接收到上游节点发送的多个时隙调整指示信息时,可以根据多个时隙调整指示信息确定时隙调整时刻,并在时隙调整时刻采用时隙调整策略完成时隙调整,通过向下游节点发送多个时隙调整指示信息,使得下游节点能够根据多个时隙调整指示信息确定时隙调整时刻,以及在时隙调整时刻采用相应的时隙调整策略完成时隙调整,因此可以减少业务带宽变动时刻和时隙数量变动时刻的不相同的持续时间,从而可以减少缓存业务数量,降低网络开销成本和客户业务延迟。In this embodiment, by adopting the time slot adjustment method including the above-mentioned steps S2810 to S2820, after the intermediate node negotiates with the upstream node and the downstream node to determine the time slot adjustment strategy, when the intermediate node receives multiple time slot adjustment indication information sent by the upstream node, it can determine the time slot adjustment moment according to the multiple time slot adjustment indication information, and adopt the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment. By sending multiple time slot adjustment indication information to the downstream node, the downstream node can determine the time slot adjustment moment according to the multiple time slot adjustment indication information, and adopt the corresponding time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment. Therefore, the different durations of the service bandwidth change moment and the time slot number change moment can be reduced, thereby reducing the number of cached services, reducing network overhead costs and customer service delays.

在一实施例中,多个时隙调整指示信息可以承载于业务流中的多个时隙调整指示码块,时隙调整时刻可以根据任意一个时隙调整指示码块所在的位置而确定。In one embodiment, multiple time slot adjustment indication information may be carried in multiple time slot adjustment indication code blocks in a service flow, and the time slot adjustment moment may be determined according to the position of any time slot adjustment indication code block.

在一实施例中,相邻两个时隙调整指示码块之间具有第三数量的第一码块,时隙调整时刻可以根据时隙调整参考时刻而确定,时隙调整参考时刻可以根据第三数量和任意一个时隙调整指示码块所在的位置而确定。In one embodiment, there is a third number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot adjustment time can be determined according to the time slot adjustment reference time, and the time slot adjustment reference time can be determined according to the third number and the position of any time slot adjustment indication code block.

在一一实施例中,时隙调整时刻可以包括以下情况之一:时隙调整时刻为时隙调整参考时刻所处的时隙的下一个时隙;时隙调整时刻为时隙调整参考时刻所处的承载帧的下一个承载帧的起始位置或第一个时隙;时隙调整时刻为时隙调整参考时刻所处的复帧的下一个复帧中第一个承载帧的起始位置或下一个复帧中第一个承载帧的第一个时隙。In one embodiment, the time slot adjustment moment may include one of the following situations: the time slot adjustment moment is the next time slot of the time slot where the time slot adjustment reference moment is located; the time slot adjustment moment is the starting position or the first time slot of the next bearer frame of the bearer frame where the time slot adjustment reference moment is located; the time slot adjustment moment is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot adjustment reference moment is located or the first time slot of the first bearer frame in the next multiframe.

在一实施例中,时隙调整参考时刻所在的位置与最后一个被发送的时隙调整指示码块之间具有第四数量的第一码块,需要说明的是,第四数量小于或者等于第三数量。In one embodiment, there are a fourth number of first code blocks between the position of the time slot adjustment reference time 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.

在一实施例中,时隙调整指示码块还可以包括时隙调整功能字段,其中,时隙调整功能字段用于承载时隙调整指示信息。In one embodiment, the time slot adjustment indication code block may further include a time slot adjustment function field, wherein the time slot adjustment function field is used to carry time slot adjustment indication information.

在一实施例中,多个时隙调整指示信息可以承载于业务流中的OAM码块。In one embodiment, multiple time slot adjustment indication information may be carried in an OAM code block in a service flow.

在一实施例中,当OAM码块中包括APS码块时,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、APS码块和Base2码块,时隙调整时刻可以根据携带有时隙调整指示信息的Base2码块之后的第一个Base1码块所在的位置而确定;或者,当OAM码块中不包括APS码块时,OAM码块中的Base1码块和Base2码块之间被配置有伪APS码块,多个时隙调整指示信息可以分别承载于Base1码块、伪APS码块和Base2码块,时隙调整时刻可以根据携带有时隙调整指示信息的Base2码块之后的第一个Base1码块所在的位置而确定;或者,当OAM码块中包括APS码块时,APS码块的前面或者后面被配置有伪APS码块,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、伪APS码块和Base2码块,时隙调整时刻可以根据携带有时隙调整指示信息的Base2码块之后的第一个Base1码块所在的位置而确定。In one embodiment, when the OAM code block includes an APS code block, multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the APS code block and the Base2 code block in the OAM code block, and the time slot adjustment moment can be determined according to the position of the first Base1 code block after the Base2 code block carrying the time slot adjustment indication information; or, when the OAM code block does not include an APS code block, a pseudo APS code block is configured between the Base1 code block and the Base2 code block in the OAM code block, and multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the pseudo APS code block, and the Base2 code block. For an OAM code block, an S code block and a Base2 code block, 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; or, when the OAM code block includes an APS code block, a pseudo-APS code block is configured before or after the APS code block, and multiple time slot adjustment indication information 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.

在一实施例中,当OAM码块中包括APS码块时,APS码块包括第一APS码块和第二APS码块,时隙调整指示信息可以承载于第二APS码块。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.

在一可行的实施方式中,当OAM码块中包括L码块时,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、Base2码块和L码块,时隙调整时刻可以根据携带有时隙调整指示信息的L码块之后的第一个Base1码块所在的位置而确定;或者,当OAM码块中不包括L码块时,OAM码块中的L码块的位置被配置有伪L码块,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、Base2码块和伪L码块,时隙调整时刻可以根据携带有时隙调整指示信息的伪L码块之后的第一个Base1码块所在的位置而确定;或者,当OAM码块中包括L码块,L码块的前面或者后面被配置有伪L码块,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、Base2码块和伪L码块,时隙调整时刻可以根据携带有时隙调整指示信息的伪L码块之后的第一个Base1码块所在的位置而确定。In a feasible implementation manner, when the OAM code block includes an L code block, multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the Base2 code block and the L code block in the OAM code block, and the time slot adjustment 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 information; or, 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 information 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 information; or, when the OAM code block includes the L code block, the pseudo L code block is configured before or after the L code block, multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the Base2 code block and the 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 information.

在一实施例中,时隙调整指示码块中还可以包括校验比特信息,校验比特信息可以用于对时隙调整指示信息的正确性进行校验。In one embodiment, the time slot adjustment indication code block may further include check bit information, and the check bit information may be used to check the correctness of the time slot adjustment indication information.

在一实施例中,当中间节点接收到上游节点发送的多个时隙调整指示信息之后,可以先判断各个时隙调整指示信息的有效性,当有效的时隙调整指示信息的数量大于无效的时隙调整指示信息的数量时,确定时隙调整策略生效。In one embodiment, after the intermediate node receives multiple time slot adjustment indication information sent by the upstream node, it can first determine the validity of each time slot adjustment indication information. When the number of valid time slot adjustment indication information is greater than the number of invalid time slot adjustment indication information, it is determined that the time slot adjustment strategy is effective.

在一实施例中,参加图29,图29是本申请实施例提供的中间节点协商确定时隙调整策略的过程的流程图。当中间节点在与上游节点和下游节点协商确定时隙调整策略时,如图29所示,该确定时隙调整策略的过程可以包括但不限于步骤S2910-步骤S2940:In one embodiment, see FIG. 29, which is a flowchart of a process of an intermediate node negotiating and determining a time slot adjustment strategy provided by an embodiment of the present application. When the intermediate node negotiates with the upstream node and the downstream node to determine the time slot adjustment strategy, as shown in FIG. 29, the process of determining the time slot adjustment strategy may include but is not limited to steps S2910-step S2940:

步骤S2910:接收上游节点发送的时隙调整策略信息,并根据时隙调整策略信息确定时隙调整策略;Step S2910: receiving the time slot adjustment strategy information sent by the upstream node, and determining the time slot adjustment strategy according to the time slot adjustment strategy information;

步骤S2920:向下游节点发送时隙调整策略信息,使得下游节点根据时隙调整策略信息确定时隙调整策略;Step S2920: sending the time slot adjustment strategy information to the downstream node, so that the downstream node determines the time slot adjustment strategy according to the time slot adjustment strategy information;

步骤S2930:当接收到下游节点返回的时隙调整策略应答信息,确定与下游节点协商确定了时隙调整策略;Step S2930: upon receiving the time slot adjustment strategy response information returned by the downstream node, determining that the time slot adjustment strategy has been determined through negotiation with the downstream node;

步骤S2940:向上游节点转发时隙调整策略应答信息,使得上游节点确定协商确定了时隙调整策略。Step S2940: forwarding the time slot adjustment strategy response information to the upstream node, so that the upstream node determines that the time slot adjustment strategy has been determined through negotiation.

在一实施例中,时隙调整策略信息还可以包括时隙调整申请信息和待调整信息,其中,时隙调整申请信息可以用于请求进行时隙调整,待调整信息可以用于确定时隙调整策略的策略内容。In one embodiment, the time slot adjustment strategy information may further include time slot adjustment application information and information to be adjusted, wherein the time slot adjustment application information may be used to request time slot adjustment, and the information to be adjusted may be used to determine the policy content of the time slot adjustment strategy.

需要说明的是,在本申请实施例提供的由中间节点执行时隙调整方法中,所涉及到的OAM码块的相关结构描述,以及中间节点与上游节点、下游节点交互完成时隙调整过程的描述,可以参考前面实施例中的相关描述内容,为了避免内容重复冗余,此处不再赘述。It should be noted that in the time slot adjustment method performed by the intermediate node provided in the embodiment of the present application, the relevant structural description of the OAM code blocks involved, as well as the description of the time slot adjustment process completed by the intermediate node interacting with the upstream node and the downstream node, can refer to the relevant description content in the previous embodiments. In order to avoid redundant content, it will not be repeated here.

参照图30,图30是本申请另一个实施例提供的时隙调整方法的流程图,该时隙调整方法可以由尾结点执行,该时隙调整方法可以包括但不限于步骤S3010至步骤S3020。Referring to Figure 30, Figure 30 is a flowchart of a time slot adjustment method provided by another embodiment of the present application. The time slot adjustment method can be executed by the tail node, and the time slot adjustment method can include but is not limited to steps S3010 to S3020.

步骤S3010:在与上游节点协商确定了时隙调整策略之后,当接收到上游节点发送的多个时隙调整指示信息,根据多个时隙调整指示信息确定时隙调整时刻;Step S3010: after determining the time slot adjustment strategy through negotiation with the upstream node, upon receiving multiple time slot adjustment indication information sent by the upstream node, determining the time slot adjustment moment according to the multiple time slot adjustment indication information;

步骤S3020:在时隙调整时刻采用时隙调整策略完成时隙调整。Step S3020: At the time of time slot adjustment, the time slot adjustment strategy is adopted to complete the time slot adjustment.

在一可行的实施方式中,当客户业务处于传递的状态且在需要业务流中插入时隙调整信息时,当尾节点与上游节点确定时隙调整策略之后,尾节点可以接收上游节点发送的时隙调整的指示信息,以使在业务流传递的过程中,各节点能够在确定好的时隙调整时刻采用时隙调整策略完成时隙调整,减少业务带宽变动时刻和时隙数量变动时刻的不相同的持续时间,从而可以减少缓存业务数量,降低成本和客户延迟。In a feasible implementation, when a customer service is in a transmission state and time slot adjustment information needs to be inserted into the service flow, after the tail node and the upstream node determine the time slot adjustment strategy, the tail node can receive the time slot adjustment indication information sent by the upstream node, so that in the process of service flow transmission, each node can adopt the time slot adjustment strategy at the determined time slot adjustment moment to complete the time slot adjustment, thereby reducing the different durations of the service bandwidth change moment and the time slot number change moment, thereby reducing the number of cached services, reducing costs and customer delays.

在一可行的实施方式中,当尾结点在与上游节点协商确定了时隙调整策略之后,还可以接收上游节点发送的时隙切换时刻信息,其中,时隙切换时刻信息用于指示时隙调整时刻。In a feasible implementation, after the tail node negotiates with the upstream node to determine the time slot adjustment strategy, it may also receive time slot switching time information sent by the upstream node, wherein the time slot switching time information is used to indicate the time slot adjustment time.

在一可行的实施方式中,时隙切换时刻信息可以承载于业务流中的时隙切换时刻码块,时隙调整时刻可以包括以下情况之一:时隙调整时刻为时隙切换时刻码块所处的时隙的下一个时隙;时隙调整时刻为时隙切换时刻码块所处的承载帧的下一个承载帧的起始位置或第一个时隙;时隙调整时刻为时隙切换时刻码块所处的复帧的下一个复帧中第一个承载帧的起始位置或下一个复帧中第一个承载帧的第一个时隙。In a feasible implementation, the time slot switching time information can be carried in the time slot switching time code block in the service flow, and the time slot adjustment time can include one of the following situations: the time slot adjustment time is the next time slot of the time slot where the time slot switching time code block is located; the time slot adjustment time is the starting position of the next bearer frame of the bearer frame where the time slot switching time code block is located or the first time slot; the time slot adjustment time is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot switching time code block is located or the first time slot of the first bearer frame in the next multiframe.

在一可行的实施方式中,时隙调整指示信息还可以用于指示时隙调整策略生效,多个时隙调整指示信息可以承载于业务流中的多个时隙调整指示码块。In a feasible implementation manner, the time slot adjustment indication information may also be used to indicate that the time slot adjustment strategy is effective, and multiple time slot adjustment indication information may be carried in multiple time slot adjustment indication code blocks in the service flow.

在一可行的实施方式中,时隙切换时刻信息可以承载于业务流中的时隙切换时刻码块,相邻两个时隙调整指示码块之间以及时隙切换时刻码块与最后一个被发送的时隙调整指示码块之间,可以具有数量相等或者不相等的第一码块。In a feasible implementation, the time slot switching time information can be carried in the time slot switching time code block in the service flow, and there can be equal or unequal numbers of first code blocks between two adjacent time slot adjustment indication code blocks and between the time slot switching time code block and the last time slot adjustment indication code block sent.

在一可行的实施方式中,当时隙切换时刻信息承载于业务流中的时隙切换时刻码块时,相邻两个时隙调整指示码块之间具有第一数量的第一码块,时隙切换时刻码块与最后一个被发送的时隙调整指示码块之间具有第二数量的第一码块,需要说明的是,第二数量不等于第一数量。In a feasible implementation, when the slot switching time information is carried in the slot switching time code block in the service flow, there are a first number of first code blocks between two adjacent time slot adjustment indication code blocks, and there are a second number of first code blocks between the time slot switching time code block and the last time slot adjustment indication code block sent. It should be noted that the second number is not equal to the first number.

在一可行的实施方式中,时隙切换时刻码块可以根据第一数量和任意一个时隙调整指示码块所在的位置而确定。In a feasible implementation manner, the time slot switching time code block can be determined according to the first quantity and the position of any time slot adjustment indication code block.

在一可行的实施方式中,时隙切换时刻码块在业务流中对应有期望位置,期望位置可以根据第一数量和任意一个时隙调整指示码块所在的位置而确定,当期望位置所对应的码块是数据报文之中的码块时,时隙切换时刻码块为数据报文中的结束码块之后的第一个码块。In a feasible implementation, the time slot switching code block corresponds to an expected position in the service flow, and the expected position can be determined based on the first quantity and the position of any time slot adjustment indication code block. When the code block corresponding to the expected position is a code block in a data message, the time slot switching code block is the first code block after the end code block in the data message.

在一可行的实施方式中,时隙调整指示码块和时隙切换时刻码块可以具有相同的码块类型,时隙调整指示码块和时隙切换时刻码块均可以包括时隙调整功能字段,时隙调整指示码块中的时隙调整功能字段可以用于承载时隙调整指示信息,时隙切换时刻码块中的时隙调整功能字段可以用于承载时隙切换时刻信息。In a feasible implementation, the time slot adjustment indication code block and the time slot switching moment code block can have the same code block type, and the time slot adjustment indication code block and the time slot switching moment code block can both include a time slot adjustment function field, and the time slot adjustment function field in the time slot adjustment indication code block can 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 can be used to carry the time slot switching moment information.

在一可行的实施方式中,时隙调整指示码块和时隙切换时刻码块均还包括同步头比特、控制字和类型序列值,其中,同步头比特、控制字和类型序列值的组合作为用于指示时隙调整指示码块或者时隙切换时刻码块的标志值。In a feasible implementation, the time slot adjustment indication code block and the time slot switching moment code block also include a synchronization header bit, a control word and a type sequence value, wherein the combination of the synchronization header bit, the control word and the type sequence value serves as a flag value for indicating the time slot adjustment indication code block or the time slot switching moment code block.

本实施例中,通过采用包括上述步骤S3010至步骤S3020的时隙调整方法,在尾节点与上游节点协商确定了时隙调整策略之后,当尾节点接收到上游节点发送的多个时隙调整指示信息时,可以根据多个时隙调整指示信息确定时隙调整时刻,以及在时隙调整时刻采用相应的时隙调整策略完成时隙调整,因此可以减少业务带宽变动时刻和时隙数量变动时刻的不相同的持续时间,从而可以减少缓存业务数量,降低网络开销成本和客户业务延迟In this embodiment, by adopting the time slot adjustment method including the above steps S3010 to S3020, after the tail node negotiates with the upstream node to determine the time slot adjustment strategy, when the tail node receives multiple time slot adjustment indication information sent by the upstream node, the time slot adjustment moment can be determined according to the multiple time slot adjustment indication information, and the corresponding time slot adjustment strategy can be adopted at the time slot adjustment moment to complete the time slot adjustment, so that the different durations of the service bandwidth change moment and the time slot number change moment can be reduced, thereby reducing the number of cached services, reducing network overhead costs and customer service delays.

在一实施例中,多个时隙调整指示信息可以承载于业务流中的多个时隙调整指示码块,时隙调整时刻可以根据任意一个时隙调整指示码块所在的位置而确定。In one embodiment, multiple time slot adjustment indication information may be carried in multiple time slot adjustment indication code blocks in a service flow, and the time slot adjustment moment may be determined according to the position of any time slot adjustment indication code block.

在一实施例中,相邻两个时隙调整指示码块之间具有第三数量的第一码块,时隙调整时刻可以根据时隙调整参考时刻而确定,时隙调整参考时刻可以根据第三数量和任意一个时隙调整指示码块所在的位置而确定。In one embodiment, there is a third number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot adjustment time can be determined according to the time slot adjustment reference time, and the time slot adjustment reference time can be determined according to the third number and the position of any time slot adjustment indication code block.

在一实施例中,时隙调整时刻可以包括以下情况之一:时隙调整时刻为时隙调整参考时刻所处的时隙的下一个时隙;时隙调整时刻为时隙调整参考时刻所处的承载帧的下一个承载帧的起始位置或第一个时隙;时隙调整时刻为时隙调整参考时刻所处的复帧的下一个复帧中第一个承载帧的起始位置或下一个复帧中第一个承载帧的第一个时隙。In one embodiment, the time slot adjustment moment may include one of the following situations: the time slot adjustment moment is the next time slot of the time slot where the time slot adjustment reference moment is located; the time slot adjustment moment is the starting position or the first time slot of the next bearer frame of the bearer frame where the time slot adjustment reference moment is located; the time slot adjustment moment is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot adjustment reference moment is located or the first time slot of the first bearer frame in the next multiframe.

在一实施例中,时隙调整参考时刻所在的位置与最后一个被发送的时隙调整指示码块之间可以具有第四数量的第一码块,需要说明的是,第四数量小于或者等于第三数量。In one embodiment, there may be a fourth number of first code blocks between the position where the time slot adjustment reference time is located and the last time slot adjustment indication code block sent. It should be noted that the fourth number is less than or equal to the third number.

在一实施例中,时隙调整指示码块还可以包括时隙调整功能字段,其中,时隙调整功能字段用于承载时隙调整指示信息。In one embodiment, the time slot adjustment indication code block may further include a time slot adjustment function field, wherein the time slot adjustment function field is used to carry time slot adjustment indication information.

在一实施例中,多个时隙调整指示信息还可以承载于业务流中的OAM码块。In one embodiment, multiple time slot adjustment indication information may also be carried in an OAM code block in a service flow.

在一实施例中,当OAM码块中包括APS码块时,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、APS码块和Base2码块,时隙调整时刻可以根据携带有时隙调整指示信息的Base2码块之后的第一个Base1码块所在的位置而确定;或者,当OAM码块中不包括APS码块时,OAM码块中的Base1码块和Base2码块之间被配置有伪APS码块,多个时隙调整指示信息可以分别承载于Base1码块、伪APS码块和Base2码块,时隙调整时刻可以根据携带有时隙调整指示信息的Base2码块之后的第一个Base1码块所在的位置而确定;或者,当OAM码块中包括APS码块时,APS码块的前面或者后面可以被配置有伪APS码块,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、伪APS码块和Base2码块,时隙调整时刻可以根据携带有时隙调整指示信息的Base2码块之后的第一个Base1码块所在的位置而确定。In one embodiment, when the OAM code block includes an APS code block, multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the APS code block and the Base2 code block in the OAM code block, and the time slot adjustment moment can be determined according to the position of the first Base1 code block after the Base2 code block carrying the time slot adjustment indication information; or, when the OAM code block does not include an APS code block, a pseudo APS code block is configured between the Base1 code block and the Base2 code block in the OAM code block, and multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the pseudo APS 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 in the OAM code block; or, when the APS code block is included in the OAM code block, a pseudo APS code block may be configured before or after the APS code block, and multiple time slot adjustment indication information may be respectively carried in the Base1 code block, the pseudo APS code block and the Base2 code block in the OAM code block, and the time slot adjustment moment may be determined according to the position of the first Base1 code block after the Base2 code block carrying the time slot adjustment indication information.

在一实施例中,当OAM码块中包括APS码块时,APS码块可以包括第一APS码块和第二APS码块,时隙调整指示信息可以承载于第二APS码块。In one embodiment, when the OAM code block includes an APS code block, the APS code block may include a first APS code block and a second APS code block, and the time slot adjustment indication information may be carried in the second APS code block.

在一实施例中,当OAM码块中包括L码块时,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、Base2码块和L码块,时隙调整时刻可以根据携带有时隙调整指示信息的L码块之后的第一个Base1码块所在的位置而确定;或者,当OAM码块中不包括L码块时,OAM码块中的L码块的位置被配置有伪L码块,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、Base2码块和伪L码块,时隙调整时刻可以根据携带有时隙调整指示信息的伪L码块之后的第一个Base1码块所在的位置而确定;或者,当OAM码块中包括L码块时,L码块的前面或者后面可以被配置有伪L码块,多个时隙调整指示信息可以分别承载于OAM码块中的Base1码块、Base2码块和伪L码块,时隙调整时刻可以根据携带有时隙调整指示信息的伪L码块之后的第一个Base1码块所在的位置而确定。In one embodiment, when the OAM code block includes an L code block, multiple time slot adjustment indication information can be respectively carried in the Base1 code block, the Base2 code block and the L code block in the OAM code block, and the time slot adjustment 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 information; or, 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 information 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 information; or, when the OAM code block includes the L code block, the front or back of the L code block can be configured with a pseudo L code block, multiple time slot adjustment indication information 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 information.

在一实施例中,时隙调整指示码块中还可以包括校验比特信息,其中,校验比特信息可以用于对时隙调整指示信息的正确性进行校验。In one embodiment, the time slot adjustment indication code block may further include check bit information, wherein the check bit information may be used to check the correctness of the time slot adjustment indication information.

在一实施例中,当尾结点接收到上游节点发送的多个时隙调整指示信息之后,尾结点可以先判断各个时隙调整指示信息的有效性,当有效的时隙调整指示信息的数量大于无效的时隙调整指示信息的数量,再确定时隙调整策略生效。In one embodiment, after the tail node receives multiple time slot adjustment indication information sent by the upstream node, the tail node can first determine the validity of each time slot adjustment indication information, and then determine that the time slot adjustment strategy is effective when the number of valid time slot adjustment indication information is greater than the number of invalid time slot adjustment indication information.

在一实施例中,参见图31,图31是本申请实施例提供的尾节点协商确定时隙调整策略的过程的流程图。当尾节点在与上游节点协商确定时隙调整策略时,如图31所示,该确定时隙调整策略的过程可以包括但不限于步骤S3110-步骤S3120。In one embodiment, referring to Figure 31, Figure 31 is a flow chart of a process of determining a time slot adjustment strategy through negotiation by an end node provided in an embodiment of the present application. When the end node negotiates with an upstream node to determine a time slot adjustment strategy, as shown in Figure 31, the process of determining the time slot adjustment strategy may include but is not limited to steps S3110-S3120.

步骤S3110:接收上游节点发送的时隙调整策略信息,并根据时隙调整策略信息确定时隙调整策略。Step S3110: receiving the time slot adjustment strategy information sent by the upstream node, and determining the time slot adjustment strategy according to the time slot adjustment strategy information.

步骤S3120:向上游节点发送时隙调整策略应答信息,使得上游节点确定协商确定了时隙调整策略。Step S3120: Sending time slot adjustment strategy response information to the upstream node, so that the upstream node determines that the time slot adjustment strategy has been negotiated and determined.

在一可行的实施方式中,时隙调整策略信息还可以包括时隙调整申请信息和待调整信息,其中,时隙调整申请信息可以用于请求进行时隙调整,待调整信息可以用于确定时隙调整策略的策略内容。In a feasible implementation, the time slot adjustment strategy information may further include time slot adjustment application information and information to be adjusted, wherein the time slot adjustment application information may be used to request time slot adjustment, and the information to be adjusted may be used to determine the policy content of the time slot adjustment strategy.

需要说明的是,在本申请实施例提供的由尾节点执行时隙调整方法中,所涉及到的OAM码块的相关结构描述和尾节点与上游节点交互完成时隙调整过程的描述,可以参考前面实施例中的相关描述内容,为了避免内容重复冗余,此处不再赘述。It should be noted that in the method for performing time slot adjustment by the tail node provided in the embodiment of the present application, the description of the relevant structure of the OAM code block involved and the description of the time slot adjustment process completed by the tail node and the upstream node interacting can refer to the relevant description content in the previous embodiment. In order to avoid redundant content, it will not be repeated here.

另外,本申请的一个实施例还公开了一种通信设备,该通信设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现如前面任意实施例中的时隙调整方法。In addition, an embodiment of the present application further discloses a communication device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, a time slot adjustment method as in any of the previous embodiments is implemented.

另外,本申请的一个实施例还公开了一种计算机可读存储介质,其中存储有计算机可执行指令,计算机可执行指令用于执行如前面任意实施例中的时隙调整方法。In addition, an embodiment of the present application further discloses a computer-readable storage medium, in which computer-executable instructions are stored. The computer-executable instructions are used to execute the time slot adjustment method in any of the previous embodiments.

本申请实施例中,在与下游节点和宿节点协商确定了时隙调整策略之后,首节点可以在时隙调整时刻采用该时隙调整策略完成时隙调整,通过下游节点向宿节点发送多个时隙调整指示信息,使得下游节点和宿节点能够根据多个时隙调整指示信息确定时隙调整时刻,以及在时隙调整时刻采用相应的时隙调整策略完成时隙调整,因此可以减少业务带宽变动时刻和时隙数量变动时刻的不相同的持续时间,从而可以减少缓存业务数量,降低成本和客户延迟。In an embodiment of the present application, after negotiating with the downstream node and the host node to determine the time slot adjustment strategy, the first node can adopt the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment, and send multiple time slot adjustment indication information to the host node through the downstream node, so that the downstream node and the host node can determine the time slot adjustment moment according to the multiple time slot adjustment indication information, and adopt the corresponding time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment, thereby reducing the different durations of the service bandwidth change moment and the time slot number change moment, thereby reducing the number of cached services, reducing costs and customer delays.

本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled 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 include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

以上是对本申请的较佳实施进行了具体说明,但本申请并不局限于上述实施方式,熟悉本领域的技术人员在不违背本申请精神的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a specific description of the preferred implementation of the present application, but the present application is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present application. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present application.

Claims (53)

一种时隙调整方法,包括:A time slot adjustment method, comprising: 当与下游节点和宿节点协商确定了时隙调整策略之后,在时隙调整时刻采用所述时隙调整策略完成时隙调整;After the time slot adjustment strategy is determined through negotiation with the downstream node and the sink node, the time slot adjustment is completed by using the time slot adjustment strategy at the time of time slot adjustment; 通过所述下游节点向所述宿节点发送多个时隙调整指示信息,使得所述下游节点和所述宿节点根据多个所述时隙调整指示信息确定所述时隙调整时刻,以及在所述时隙调整时刻采用所述时隙调整策略完成时隙调整。The downstream node sends multiple time slot adjustment indication information to the destination node, so that the downstream node and the destination node determine the time slot adjustment moment according to the multiple time slot adjustment indication information, and use the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment. 根据权利要求1所述的时隙调整方法,还包括:The time slot adjustment method according to claim 1, further comprising: 通过所述下游节点向所述宿节点发送时隙切换时刻信息,其中,所述时隙切换时刻信息用于指示所述时隙调整时刻。The time slot switching time information is sent to the sink node through the downstream node, wherein the time slot switching time information is used to indicate the time slot adjustment time. 根据权利要求2所述的时隙调整方法,其中,所述时隙切换时刻信息承载于业务流中的时隙切换时刻码块,所述时隙调整时刻包括以下情况之一:The time slot adjustment method according to claim 2, wherein the time slot switching time information is carried in a time slot switching time code block in a service flow, and the time slot adjustment time includes one of the following situations: 所述时隙调整时刻为所述时隙切换时刻码块所处的时隙的下一个时隙;The time slot adjustment moment is a time slot next to the time slot where the code block at the time slot switching 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 code block at the time slot switching moment is located; 所述时隙调整时刻为所述时隙切换时刻码块所处的复帧的下一个复帧中第一个承载帧的起始位置或下一个复帧中第一个承载帧的第一个时隙。The time slot adjustment moment is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot switching moment code block is located or the first time slot of the first bearer frame in the next multiframe. 根据权利要求2所述的时隙调整方法,其中,所述时隙调整指示信息用于指示所述时隙调整策略生效,多个所述时隙调整指示信息承载于业务流中的多个时隙调整指示码块。According to the time slot adjustment method according to claim 2, wherein the time slot adjustment indication information is used to indicate that the time slot adjustment strategy is effective, and multiple time slot adjustment indication information are carried in multiple time slot adjustment indication code blocks in the service flow. 根据权利要求4所述的时隙调整方法,其中:The time slot adjustment method according to claim 4, wherein: 所述时隙切换时刻信息承载于所述业务流中的时隙切换时刻码块;相邻两个所述时隙调整指示码块之间以及所述时隙切换时刻码块与最后一个被发送的所述时隙调整指示码块之间,具有数量相等或者不相等的第一码块;或者,The time slot switching time information is carried in the time slot switching time code block in the service flow; there are equal or unequal first code blocks between two adjacent time slot adjustment indication code blocks and between the time slot switching time code block and the last time slot adjustment indication code block sent; or, 所述时隙切换时刻信息承载于所述业务流中的时隙切换时刻码块;相邻两个所述时隙调整指示码块之间具有第一数量的第一码块;所述时隙切换时刻码块与最后一个被发送的所述时隙调整指示码块之间具有第二数量的所述第一码块,所述第二数量不等于所述第一数量。The time slot switching time information is carried in the time slot switching time code block in the business 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 first code blocks between the time slot switching time code block and the last time slot adjustment indication code block sent, and the second number is not equal to the first number. 根据权利要求5所述的时隙调整方法,其中,当相邻两个所述时隙调整指示码块之间具有第一数量的第一码块,所述时隙切换时刻码块根据所述第一数量和任意一个所述时隙调整指示码块所在的位置而确定。According to the time slot adjustment method according to claim 5, when there is a first number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot switching time code block is determined according to the first number and the position of any one of the time slot adjustment indication code blocks. 根据权利要求6所述的时隙调整方法,其中,所述时隙切换时刻码块在所述业务流中对应有期望位置,所述期望位置根据所述第一数量和任意一个所述时隙调整指示码块所在的位置而确定,当所述期望位置所对应的码块是数据报文之中的码块,所述时隙切换时刻码块为所述数据报文中的结束码块之后的第一个码块。According to the time slot adjustment method according to claim 6, wherein the time slot switching time code block corresponds to an expected position in the business 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 message, the time slot switching time code block is the first code block after the end code block in the data message. 根据权利要求5至7任意一项所述的时隙调整方法,其中,所述时隙调整指示码块和所述时隙切换时刻码块具有相同的码块类型,所述时隙调整指示码块和所述时隙切换时刻码块均包括时隙调整功能字段,所述时隙调整指示码块中的所述时隙调整功能字段用于承载所述时隙调整指示信息,所述时隙切换时刻码块中的所述时隙调整功能字段用于承载所述时隙切换时刻信息;The time slot adjustment method according to any one of claims 5 to 7, wherein the time slot adjustment indication code block and the time slot switching time code block have the same code block type, and both the time slot adjustment indication code block and the time slot switching time code block include a time slot adjustment function field, the time slot adjustment function field in the time slot adjustment 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 time code block is used to carry the time slot switching time information; 所述时隙调整指示码块和所述时隙切换时刻码块均还包括同步头比特、控制字和类型序列值,所述同步头比特、所述控制字和所述类型序列值的组合作为用于指示所述时隙调整指示码块或者所述时隙切换时刻码块的标志值。The time slot adjustment indication code block and the time slot switching moment code block both 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. 根据权利要求1所述的时隙调整方法,其中,多个所述时隙调整指示信息承载于业务流中的多个时隙调整指示码块,所述时隙调整时刻根据任意一个所述时隙调整指示码块所在的位置而确定。According to the time slot adjustment method according to claim 1, wherein the multiple time slot adjustment indication information is carried in multiple time slot adjustment indication code blocks in the business flow, and the time slot adjustment time is determined according to the position of any one of the time slot adjustment indication code blocks. 根据权利要求9所述的时隙调整方法,其中,相邻两个所述时隙调整指示码块之间具有第三数量的第一码块,所述时隙调整时刻根据时隙调整参考时刻而确定,所述时隙调整参考时刻根据所述第三数量和任意一个所述时隙调整指示码块所在的位置而确定。According to the time slot adjustment method according to claim 9, there is a third number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot adjustment time is determined according to the time slot adjustment reference time, and the time slot adjustment reference time is determined according to the third number and the position of any one of the time slot adjustment indication code blocks. 根据权利要求10所述的时隙调整方法,其中,所述时隙调整时刻包括以下情况之一:The time slot adjustment method according to claim 10, wherein the time slot adjustment moment includes one of the following situations: 所述时隙调整时刻为所述时隙调整参考时刻所处的时隙的下一个时隙;The time slot adjustment time is a time slot next to the time slot where the time slot adjustment reference time is located; 所述时隙调整时刻为所述时隙调整参考时刻所处的承载帧的下一个承载帧的起始位置或第一个时隙;The time slot adjustment time is the starting position or the first time slot of the next bearer frame of the bearer frame where the time slot adjustment reference time is located; 所述时隙调整时刻为所述时隙调整参考时刻所处的复帧的下一个复帧中第一个承载帧的起始位置或下一个复帧中第一个承载帧的第一个时隙。The time slot adjustment time is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot adjustment reference time is located or the first time slot of the first bearer frame in the next multiframe. 根据权利要求10所述的时隙调整方法,其中,所述时隙调整参考时刻所在的位置与最后一个被发送的所述时隙调整指示码块之间具有第四数量的所述第一码块,所述第四数量小于或者等于所述第三数量。The time slot adjustment method according to claim 10, wherein there are a fourth number of the first code blocks between the position of the time slot adjustment reference time and the last time slot adjustment indication code block sent, and the fourth number is less than or equal to the third number. 根据权利要求9至12任意一项所述的时隙调整方法,其中,所述时隙调整指示码块包括同步头比特、控制字、类型序列值和时隙调整功能字段,所述时隙调整功能字段用于承载所述时隙调整指示信息,所述同步头比特、所述控制字和所述类型序列值的组合作为用于指示所述时隙调整指示码块的标志值。According to the time slot adjustment method according to any one of claims 9 to 12, 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 is used as a flag value for indicating the time slot adjustment indication code block. 根据权利要求1所述的时隙调整方法,其中,多个所述时隙调整指示信息承载于业务流中的OAM码块。The time slot adjustment method according to claim 1, wherein the multiple time slot adjustment indication information is carried in an OAM code block in the service flow. 根据权利要求14所述的时隙调整方法,其中:The time slot adjustment method according to claim 14, wherein: 当所述OAM码块中包括APS码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、所述APS码块和Base2码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述Base2码块之后的第一个Base1码块所在的位置而确定;或者,When the OAM code block includes an APS code block, the multiple 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 time 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, 当所述OAM码块中不包括APS码块,所述OAM码块中的Base1码块和Base2码块之间被配置有伪APS码块,多个所述时隙调整指示信息分别承载于所述Base1码块、所述伪APS码块和所述Base2码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述Base2码块之后的第一个Base1码块所在的位置而确定;或者,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, a plurality 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 time 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, 当所述OAM码块中包括APS码块,所述APS码块的前面或者后面被配置有伪APS码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、所述伪APS码块和Base2码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述Base2码块之后的第一个Base1码块所在的位置而确定;或者,When the OAM code block includes an APS code block, a pseudo APS code block is configured before or after the APS code block, a plurality of the time slot adjustment indication information are respectively carried in a Base1 code block, the pseudo APS code block and a Base2 code block in the OAM code block, and the time slot adjustment time 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, 当所述OAM码块中包括L码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、Base2码块和所述L码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述L码块之后的第一个Base1码块所在的位置而确定;或者,When the OAM code block includes an L code block, the multiple time slot adjustment indication information are respectively carried in a Base1 code block, a Base2 code block and the L code block in the OAM code block, and the time slot adjustment time 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, 当所述OAM码块中不包括L码块,所述OAM码块中的L码块的位置被配置有伪L码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、Base2码块和所述伪L码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述伪L码块之后的第一个Base1码块所在的位置而确定;或者,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, a plurality of the time slot adjustment indication information are respectively carried in a Base1 code block, a Base2 code block and the pseudo L code block in the OAM code block, and the time slot adjustment time is determined according to the position of the first Base1 code block after the pseudo L code block carrying the time slot adjustment indication information; or, 当所述OAM码块中包括L码块,所述L码块的前面或者后面被配置有伪L码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、Base2码块和所述伪L码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述伪L码块之后的第一个Base1码块所在的位置而确定。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 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 time is determined according to the position of the first Base1 code block after the pseudo L code block carrying the time slot adjustment indication information. 根据权利要求15所述的时隙调整方法,其中,当所述OAM码块中包括APS码块,所述APS码块包括第一APS码块和第二APS码块,所述时隙调整指示信息承载于所述第二APS码块。The time slot adjustment method according to claim 15, wherein, when the OAM code block includes an APS code block, the APS code block includes a first APS code block and a second APS code block, and the time slot adjustment indication information is carried in the second APS code block. 根据权利要求4或9所述的时隙调整方法,其中,所述时隙调整指示码块中包括校验比特信息,所述校验比特信息用于对所述时隙调整指示信息的正确性进行校验。According to the time slot adjustment method according to claim 4 or 9, wherein the time slot adjustment indication code block includes check bit information, and the check bit information is used to check the correctness of the time slot adjustment indication information. 一种时隙调整方法,包括:A time slot adjustment method, comprising: 在与上游节点和下游节点协商确定了时隙调整策略之后,当接收到所述上游节点发送的多个时隙调整指示信息,根据多个所述时隙调整指示信息确定时隙调整时刻,并在所述时隙调整时刻采用所述时隙调整策略完成时隙调整;After determining the time slot adjustment strategy through negotiation with the upstream node and the downstream node, when receiving multiple time slot adjustment indication information sent by the upstream node, determining the time slot adjustment moment according to the multiple time slot adjustment indication information, and completing the time slot adjustment by adopting the time slot adjustment strategy at the time slot adjustment moment; 向所述下游节点发送多个所述时隙调整指示信息,使得所述下游节点根据多个所述时隙调整指示信息确定所述时隙调整时刻,以及在所述时隙调整时刻采用所述时隙调整策略完成时隙调整。Sending a plurality 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 plurality of the time slot adjustment indication information, and adopts the time slot adjustment strategy to complete the time slot adjustment at the time slot adjustment moment. 根据权利要求18所述的时隙调整方法,还包括:The time slot adjustment method according to claim 18, further comprising: 接收所述上游节点发送的时隙切换时刻信息,其中,所述时隙切换时刻信息用于指示所述时隙调整时刻;receiving time slot switching time information sent by the upstream node, wherein the time slot switching time information is used to indicate the time slot adjustment time; 向所述下游节点发送所述时隙切换时刻信息。The time slot switching time information is sent to the downstream node. 根据权利要求19所述的时隙调整方法,其中,所述时隙切换时刻信息承载于业务流中的时隙切换时刻码块,所述时隙调整时刻包括以下情况之一:The time slot adjustment method according to claim 19, wherein the time slot switching time information is carried in a time slot switching time code block in a service flow, and the time slot adjustment time includes one of the following situations: 所述时隙调整时刻为所述时隙切换时刻码块所处的时隙的下一个时隙;The time slot adjustment moment is a time slot next to the time slot where the code block at the time slot switching 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 code block at the time slot switching moment is located; 所述时隙调整时刻为所述时隙切换时刻码块所处的复帧的下一个复帧中第一个承载帧的起始位置或下一个复帧中第一个承载帧的第一个时隙。The time slot adjustment moment is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot switching moment code block is located or the first time slot of the first bearer frame in the next multiframe. 根据权利要求19所述的时隙调整方法,其中,所述时隙调整指示信息用于指示所述时隙调整策略生效,多个所述时隙调整指示信息承载于业务流中的多个时隙调整指示码块。According to the time slot adjustment method according to claim 19, wherein the time slot adjustment indication information is used to indicate that the time slot adjustment strategy is effective, and multiple time slot adjustment indication information are carried in multiple time slot adjustment indication code blocks in the service flow. 根据权利要求21所述的时隙调整方法,其中:The time slot adjustment method according to claim 21, wherein: 所述时隙切换时刻信息承载于所述业务流中的时隙切换时刻码块;相邻两个所述时隙调整指示码块之间以及所述时隙切换时刻码块与最后一个被发送的所述时隙调整指示码块之间,具有数量相等或者不相等的第一码块;或者,The time slot switching time information is carried in the time slot switching time code block in the service flow; there are equal or unequal first code blocks between two adjacent time slot adjustment indication code blocks and between the time slot switching time code block and the last time slot adjustment indication code block sent; or, 所述时隙切换时刻信息承载于所述业务流中的时隙切换时刻码块;相邻两个所述时隙调整指示码块之间具有第一数量的第一码块;所述时隙切换时刻码块与最后一个被发送的所述时隙调整指示码块之间具有第二数量的所述第一码块,所述第二数量不等于所述第一数量。The time slot switching time information is carried in the time slot switching time code block in the business 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 first code blocks between the time slot switching time code block and the last time slot adjustment indication code block sent, and the second number is not equal to the first number. 根据权利要求22所述的时隙调整方法,其特征在于,当相邻两个所述时隙调整指示码块之间具有第一数量的第一码块,所述时隙切换时刻码块根据所述第一数量和任意一个所述时隙调整指示码块所在的位置而确定。The time slot adjustment method according to claim 22 is characterized in that when there is a first number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot switching time code block is determined according to the first number and the position of any one of the time slot adjustment indication code blocks. 根据权利要求23所述的时隙调整方法,其中,所述时隙切换时刻码块在所述业务流中对应有期望位置,所述期望位置根据所述第一数量和任意一个所述时隙调整指示码块所在的位置而确定,当所述期望位置所对应的码块是数据报文之中的码块,所述时隙切换时刻码块为所述数据报文中的结束码块之后的第一个码块。According to the time slot adjustment method according to claim 23, wherein the time slot switching time code block corresponds to an expected position in the business 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 message, the time slot switching time code block is the first code block after the end code block in the data message. 根据权利要求22至24任意一项所述的时隙调整方法,其中,所述时隙调整指示码块和所述时隙切换时刻码块具有相同的码块类型,所述时隙调整指示码块和所述时隙切换时刻码块均包括时隙调整功能字段,所述时隙调整指示码块中的所述时隙调整功能字段用于承载所述时隙调整指示信息,所述时隙切换时刻码块中的所述时隙调整功能字段用于承载所述时隙切换时刻信息;The time slot adjustment method according to any one of claims 22 to 24, wherein the time slot adjustment indication code block and the time slot switching time code block have the same code block type, and both the time slot adjustment indication code block and the time slot switching time code block include a time slot adjustment function field, the time slot adjustment function field in the time slot adjustment 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 time code block is used to carry the time slot switching time information; 所述时隙调整指示码块和所述时隙切换时刻码块均还包括同步头比特、控制字和类型序列值,所述同步头比特、所述控制字和所述类型序列值的组合作为用于指示所述时隙调整指示码块或者所述时隙切换时刻码块的标志值。The time slot adjustment indication code block and the time slot switching moment code block both 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. 根据权利要求18所述的时隙调整方法,其中,多个所述时隙调整指示信息承载于业务流中的多个时隙调整指示码块,所述时隙调整时刻根据任意一个所述时隙调整指示码块所在的位置而确定。According to the time slot adjustment method according to claim 18, wherein the multiple time slot adjustment indication information is carried in multiple time slot adjustment indication code blocks in the business flow, and the time slot adjustment time is determined according to the position of any one of the time slot adjustment indication code blocks. 根据权利要求26所述的时隙调整方法,其中,相邻两个所述时隙调整指示码块之间具有第三数量的第一码块,所述时隙调整时刻根据时隙调整参考时刻而确定,所述时隙调整参考时刻根据所述第三数量和任意一个所述时隙调整指示码块所在的位置而确定。According to the time slot adjustment method according to claim 26, there is a third number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot adjustment time is determined according to the time slot adjustment reference time, and the time slot adjustment reference time is determined according to the third number and the position of any one of the time slot adjustment indication code blocks. 根据权利要求27所述的时隙调整方法,其中,所述时隙调整时刻包括以下情况之一:The time slot adjustment method according to claim 27, wherein the time slot adjustment moment includes one of the following situations: 所述时隙调整时刻为所述时隙调整参考时刻所处的时隙的下一个时隙;The time slot adjustment time is a time slot next to the time slot where the time slot adjustment reference time is located; 所述时隙调整时刻为所述时隙调整参考时刻所处的承载帧的下一个承载帧的起始位置或第一个时隙;The time slot adjustment time is the starting position or the first time slot of the next bearer frame of the bearer frame where the time slot adjustment reference time is located; 所述时隙调整时刻为所述时隙调整参考时刻所处的复帧的下一个复帧中第一个承载帧的起始位置或下一个复帧中第一个承载帧的第一个时隙。The time slot adjustment time is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot adjustment reference time is located or the first time slot of the first bearer frame in the next multiframe. 根据权利要求27所述的时隙调整方法,其中,所述时隙调整参考时刻所在的位置与最后一个被发送的所述时隙调整指示码块之间具有第四数量的所述第一码块,所述第四数量小于或者等于所述第三数量。The time slot adjustment method according to claim 27, wherein there are a fourth number of the first code blocks between the position of the time slot adjustment reference time and the last time slot adjustment indication code block sent, and the fourth number is less than or equal to the third number. 根据权利要求26至29任意一项所述的时隙调整方法,其中,所述时隙调整指示码块包括同步头比特、控制字、类型序列值和时隙调整功能字段,所述时隙调整功能字段用于承载所述时隙调整指示信息,所述同步头比特、所述控制字和所述类型序列值的组合作为用于指示所述时隙调整指示码块的标志值。According to the time slot adjustment method according to any one of claims 26 to 29, 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 is used as a flag value for indicating the time slot adjustment indication code block. 根据权利要求18所述的时隙调整方法,其中,多个所述时隙调整指示信息承载于业务流中的OAM码块。The time slot adjustment method according to claim 18, wherein the multiple time slot adjustment indication information is carried in an OAM code block in the service flow. 根据权利要求31所述的时隙调整方法,其中:The time slot adjustment method according to claim 31, wherein: 当所述OAM码块中包括APS码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、所述APS码块和Base2码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述Base2码块之后的第一个Base1码块所在的位置而确定;或者,When the OAM code block includes an APS code block, the multiple 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 time 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, 当所述OAM码块中不包括APS码块,所述OAM码块中的Base1码块和Base2码块之间被配置有伪APS码块,多个所述时隙调整指示信息分别承载于所述Base1码块、所述伪APS码块和所述Base2码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述Base2码块之后的第一个Base1码块所在的位置而确定;或者,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, a plurality 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 time 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, 当所述OAM码块中包括APS码块,所述APS码块的前面或者后面被配置有伪APS码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、所述伪APS码块和Base2码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述Base2码块之后的第一个Base1码块所在的位置而确定;或者,When the OAM code block includes an APS code block, a pseudo APS code block is configured before or after the APS code block, a plurality of the time slot adjustment indication information are respectively carried in a Base1 code block, the pseudo APS code block and a Base2 code block in the OAM code block, and the time slot adjustment time 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, 当所述OAM码块中包括L码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、Base2码块和所述L码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述L码块之后的第一个Base1码块所在的位置而确定;或者,When the OAM code block includes an L code block, the multiple time slot adjustment indication information are respectively carried in a Base1 code block, a Base2 code block and the L code block in the OAM code block, and the time slot adjustment time 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, 当所述OAM码块中不包括L码块,所述OAM码块中的L码块的位置被配置有伪L码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、Base2码块和所述伪L码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述伪L码块之后的第一个Base1码块所在的位置而确定;或者,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, a plurality of the time slot adjustment indication information are respectively carried in a Base1 code block, a Base2 code block and the pseudo L code block in the OAM code block, and the time slot adjustment time is determined according to the position of the first Base1 code block after the pseudo L code block carrying the time slot adjustment indication information; or, 当所述OAM码块中包括L码块,所述L码块的前面或者后面被配置有伪L码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、Base2码块和所述伪L码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述伪L码块之后的第一个Base1码块所在的位置而确定。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 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 time is determined according to the position of the first Base1 code block after the pseudo L code block carrying the time slot adjustment indication information. 根据权利要求32所述的时隙调整方法,其中,当所述OAM码块中包括APS码块,所述APS码块包括第一APS码块和第二APS码块,所述时隙调整指示信息承载于所述第二APS码块。The time slot adjustment method according to claim 32, wherein, when the OAM code block includes an APS code block, the APS code block includes a first APS code block and a second APS code block, and the time slot adjustment indication information is carried in the second APS code block. 根据权利要求21或26所述的时隙调整方法,其中,所述时隙调整指示码块中包括校验比特信息,所述校验比特信息用于对所述时隙调整指示信息的正确性进行校验。According to the time slot adjustment method according to claim 21 or 26, 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所述的时隙调整方法,还包括:The time slot adjustment method according to claim 18, further comprising: 判断各个所述时隙调整指示信息的有效性;Determining the validity of each of the time slot adjustment indication information; 当有效的所述时隙调整指示信息的数量大于无效的所述时隙调整指示信息的数量,确定所述时隙调整策略生效。When the number of valid time slot adjustment indication information is greater than the number of invalid time slot adjustment indication information, it is determined that the time slot adjustment strategy is effective. 一种时隙调整方法,包括:A time slot adjustment method, comprising: 在与上游节点协商确定了时隙调整策略之后,当接收到所述上游节点发送的多个时隙调整指示信息,根据多个所述时隙调整指示信息确定时隙调整时刻;After determining the time slot adjustment strategy through negotiation with the upstream node, upon receiving multiple time slot adjustment indication information sent by the upstream node, determining the time slot adjustment moment according to the multiple time slot adjustment indication information; 在所述时隙调整时刻采用所述时隙调整策略完成时隙调整。The time slot adjustment strategy is adopted at the time of the time slot adjustment to complete the time slot adjustment. 根据权利要求36所述的时隙调整方法,还包括:The time slot adjustment method according to claim 36, further comprising: 接收所述上游节点发送的时隙切换时刻信息,其中,所述时隙切换时刻信息用于指示所述时隙调整时刻。The time slot switching time information sent by the upstream node is received, wherein the time slot switching time information is used to indicate the time slot adjustment time. 根据权利要求37所述的时隙调整方法,其中,所述时隙切换时刻信息承载于业务流中的时隙切换时刻码块,所述时隙调整时刻包括以下情况之一:The time slot adjustment method according to claim 37, wherein the time slot switching time information is carried in the time slot switching time code block in the service flow, and the time slot adjustment time includes one of the following situations: 所述时隙调整时刻为所述时隙切换时刻码块所处的时隙的下一个时隙;The time slot adjustment moment is a time slot next to the time slot where the code block at the time slot switching 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 code block at the time slot switching moment is located; 所述时隙调整时刻为所述时隙切换时刻码块所处的复帧的下一个复帧中第一个承载帧的起始位置或下一个复帧中第一个承载帧的第一个时隙。The time slot adjustment moment is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot switching moment code block is located or the first time slot of the first bearer frame in the next multiframe. 根据权利要求37所述的时隙调整方法,其中,所述时隙调整指示信息用于指示所述时隙调整策略生效,多个所述时隙调整指示信息承载于业务流中的多个时隙调整指示码块。According to the time slot adjustment method according to claim 37, wherein the time slot adjustment indication information is used to indicate that the time slot adjustment strategy is effective, and multiple time slot adjustment indication information are carried in multiple time slot adjustment indication code blocks in the service flow. 根据权利要求39所述的时隙调整方法,其中:The time slot adjustment method according to claim 39, wherein: 所述时隙切换时刻信息承载于所述业务流中的时隙切换时刻码块;相邻两个所述时隙调整指示码块之间以及所述时隙切换时刻码块与最后一个被发送的所述时隙调整指示码块之间,具有数量相等或者不相等的第一码块;或者,The time slot switching time information is carried in the time slot switching time code block in the service flow; there are equal or unequal first code blocks between two adjacent time slot adjustment indication code blocks and between the time slot switching time code block and the last time slot adjustment indication code block sent; or, 所述时隙切换时刻信息承载于所述业务流中的时隙切换时刻码块;相邻两个所述时隙调整指示码块之间具有第一数量的第一码块;所述时隙切换时刻码块与最后一个被发送的所述时隙调整指示码块之间具有第二数量的所述第一码块,所述第二数量不等于所述第一数量。The time slot switching time information is carried in the time slot switching time code block in the business 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 first code blocks between the time slot switching time code block and the last time slot adjustment indication code block sent, and the second number is not equal to the first number. 根据权利要求40所述的时隙调整方法,其中,当相邻两个所述时隙调整指示码块之间具有第一数量的第一码块,所述时隙切换时刻码块根据所述第一数量和任意一个所述时隙调整指示码块所在的位置而确定。According to the time slot adjustment method according to claim 40, when there are a first number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot switching time code block is determined according to the first number and the position of any one of the time slot adjustment indication code blocks. 根据权利要求41所述的时隙调整方法,其中,所述时隙切换时刻码块在所述业务流中对应有期望位置,所述期望位置根据所述第一数量和任意一个所述时隙调整指示码块所在的位置而确定,当所述期望位置所对应的码块是数据报文之中的码块,所述时隙切换时刻码块为所述数据报文中的结束码块之后的第一个码块。According to the time slot adjustment method according to claim 41, wherein the time slot switching time code block corresponds to an expected position in the business flow, and the expected position is determined based on 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 message, the time slot switching time code block is the first code block after the end code block in the data message. 根据权利要求40至42任意一项所述的时隙调整方法,其中,所述时隙调整指示码块和所述时隙切换时刻码块具有相同的码块类型,所述时隙调整指示码块和所述时隙切换时刻码块均包括时隙调整功能字段,所述时隙调整指示码块中的所述时隙调整功能字段用于承载所述时隙调整指示信息,所述时隙切换时刻码块中的所述时隙调整功能字段用于承载所述时隙切换时刻信息;The time slot adjustment method according to any one of claims 40 to 42, wherein the time slot adjustment indication code block and the time slot switching time code block have the same code block type, and both the time slot adjustment indication code block and the time slot switching time code block include a time slot adjustment function field, the time slot adjustment function field in the time slot adjustment 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 time code block is used to carry the time slot switching time information; 所述时隙调整指示码块和所述时隙切换时刻码块均还包括同步头比特、控制字和类型序列值,所述同步头比特、所述控制字和所述类型序列值的组合作为用于指示所述时隙调整指示码块或者所述时隙切换时刻码块的标志值。The time slot adjustment indication code block and the time slot switching moment code block both 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. 根据权利要求36所述的时隙调整方法,其中,多个所述时隙调整指示信息承载于业务流中的多个时隙调整指示码块,所述时隙调整时刻根据任意一个所述时隙调整指示码块所在的位置而确定。According to the time slot adjustment method according to claim 36, wherein the multiple time slot adjustment indication information is carried in multiple time slot adjustment indication code blocks in the business flow, and the time slot adjustment time is determined according to the position of any one of the time slot adjustment indication code blocks. 根据权利要求44所述的时隙调整方法,其中,相邻两个所述时隙调整指示码块之间具有第三数量的第一码块,所述时隙调整时刻根据时隙调整参考时刻而确定,所述时隙调整参考时刻根据所述第三数量和任意一个所述时隙调整指示码块所在的位置而确定。According to the time slot adjustment method according to claim 44, there is a third number of first code blocks between two adjacent time slot adjustment indication code blocks, the time slot adjustment time is determined according to the time slot adjustment reference time, and the time slot adjustment reference time is determined according to the third number and the position of any one of the time slot adjustment indication code blocks. 根据权利要求45所述的时隙调整方法,其中,所述时隙调整时刻包括以下情况之一:The time slot adjustment method according to claim 45, wherein the time slot adjustment moment includes one of the following situations: 所述时隙调整时刻为所述时隙调整参考时刻所处的时隙的下一个时隙;The time slot adjustment time is a time slot next to the time slot where the time slot adjustment reference time is located; 所述时隙调整时刻为所述时隙调整参考时刻所处的承载帧的下一个承载帧的起始位置或第一个时隙;The time slot adjustment time is the starting position or the first time slot of the next bearer frame of the bearer frame where the time slot adjustment reference time is located; 所述时隙调整时刻为所述时隙调整参考时刻所处的复帧的下一个复帧中第一个承载帧的起始位置或下一个复帧中第一个承载帧的第一个时隙。The time slot adjustment time is the starting position of the first bearer frame in the next multiframe of the multiframe where the time slot adjustment reference time is located or the first time slot of the first bearer frame in the next multiframe. 根据权利要求45所述的时隙调整方法,其中,所述时隙调整参考时刻所在的位置与最后一个被发送的所述时隙调整指示码块之间具有第四数量的所述第一码块,所述第四数量小于或者等于所述第三数量。The time slot adjustment method according to claim 45, wherein there are a fourth number of the first code blocks between the position of the time slot adjustment reference time and the last time slot adjustment indication code block sent, and the fourth number is less than or equal to the third number. 根据权利要求44至47任意一项所述的时隙调整方法,其中,所述时隙调整指示码块包括同步头比特、控制字、类型序列值和时隙调整功能字段,所述时隙调整功能字段用于承载所述时隙调整指示信息,所述同步头比特、所述控制字和所述类型序列值的组合作为用于指示所述时隙调整指示码块的标志值。According to any one of claims 44 to 47, the time slot adjustment method, wherein the time slot adjustment indication code block includes a synchronization header bit, a control word, a type sequence value and a time slot adjustment function field, the time slot adjustment function field is used to carry the time slot adjustment indication information, and the combination of the synchronization header bit, the control word and the type sequence value is used as a flag value for indicating the time slot adjustment indication code block. 根据权利要求36所述的时隙调整方法,其中,多个所述时隙调整指示信息承载于业务流中的OAM码块。The time slot adjustment method according to claim 36, wherein the multiple time slot adjustment indication information is carried in an OAM code block in a service flow. 根据权利要求49所述的时隙调整方法,其中:The time slot adjustment method according to claim 49, wherein: 当所述OAM码块中包括APS码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、所述APS码块和Base2码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述Base2码块之后的第一个Base1码块所在的位置而确定;或者,When the OAM code block includes an APS code block, the multiple 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 time 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, 当所述OAM码块中不包括APS码块,所述OAM码块中的Base1码块和Base2码块之间被配置有伪APS码块,多个所述时隙调整指示信息分别承载于所述Base1码块、所述伪APS码块和所述Base2码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述Base2码块之后的第一个Base1码块所在的位置而确定;或者,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, a plurality 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 time 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, 当所述OAM码块中包括APS码块,所述APS码块的前面或者后面被配置有伪APS码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、所述伪APS码块和Base2码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述Base2码块之后的第一个Base1码块所在的位置而确定;或者,When the OAM code block includes an APS code block, a pseudo APS code block is configured before or after the APS code block, a plurality of the time slot adjustment indication information are respectively carried in a Base1 code block, the pseudo APS code block and a Base2 code block in the OAM code block, and the time slot adjustment time 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, 当所述OAM码块中包括L码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、Base2码块和所述L码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述L码块之后的第一个Base1码块所在的位置而确定;或者,When the OAM code block includes an L code block, the multiple time slot adjustment indication information are respectively carried in a Base1 code block, a Base2 code block and the L code block in the OAM code block, and the time slot adjustment time 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, 当所述OAM码块中不包括L码块,所述OAM码块中的L码块的位置被配置有伪L码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、Base2码块和所述伪L码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述伪L码块之后的第一个Base1码块所在的位置而确定;或者,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, a plurality of the time slot adjustment indication information are respectively carried in a Base1 code block, a Base2 code block and the pseudo L code block in the OAM code block, and the time slot adjustment time is determined according to the position of the first Base1 code block after the pseudo L code block carrying the time slot adjustment indication information; or, 当所述OAM码块中包括L码块,所述L码块的前面或者后面被配置有伪L码块,多个所述时隙调整指示信息分别承载于所述OAM码块中的Base1码块、Base2码块和所述伪L码块,所述时隙调整时刻根据携带有所述时隙调整指示信息的所述伪L码块之后的第一个Base1码块所在的位置而确定。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 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 time is determined according to the position of the first Base1 code block after the pseudo L code block carrying the time slot adjustment indication information. 根据权利要求50所述的时隙调整方法,其中,当所述OAM码块中包括APS码块,所述APS码块包括第一APS码块和第二APS码块,所述时隙调整指示信息承载于所述第二APS码块。According to the time slot adjustment method according to claim 50, 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. 根据权利要求39或44所述的时隙调整方法,其中,所述时隙调整指示码块中包括校验比特信息,所述校验比特信息用于对所述时隙调整指示信息的正确性进行校验。According to the time slot adjustment method according to claim 39 or 44, 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. 根据权利要求36所述的时隙调整方法,还包括:The time slot adjustment method according to claim 36, further comprising: 判断各个所述时隙调整指示信息的有效性;Determining the validity of each of the time slot adjustment indication information; 当有效的所述时隙调整指示信息的数量大于无效的所述时隙调整指示信息的数量,确定所述时隙调整策略生效。When the number of valid time slot adjustment indication information is greater than the number of invalid time slot adjustment indication information, it is determined that the time slot adjustment strategy is effective.
PCT/CN2024/144308 2024-01-02 2024-12-31 Time slot adjustment method Pending WO2025146038A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202410011738.1 2024-01-02
CN202410011738.1A CN120264432A (en) 2024-01-02 2024-01-02 A time slot adjustment method

Publications (1)

Publication Number Publication Date
WO2025146038A1 true WO2025146038A1 (en) 2025-07-10

Family

ID=96189706

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/144308 Pending WO2025146038A1 (en) 2024-01-02 2024-12-31 Time slot adjustment method

Country Status (2)

Country Link
CN (1) CN120264432A (en)
WO (1) WO2025146038A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022017509A1 (en) * 2020-07-23 2022-01-27 中兴通讯股份有限公司 Bandwidth adjustment method, service transmission method, network device and readable storage medium
CN114363184A (en) * 2018-05-31 2022-04-15 华为技术有限公司 Method and device for adjusting bandwidth of transmission channel in flexible Ethernet
WO2023284563A1 (en) * 2021-07-16 2023-01-19 中兴通讯股份有限公司 Slot configuration method, slot configuration apparatus, and computer-readable storage medium
US20230035379A1 (en) * 2020-04-03 2023-02-02 Huawei Technologies Co., Ltd. Service flow adjustment method and communication apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363184A (en) * 2018-05-31 2022-04-15 华为技术有限公司 Method and device for adjusting bandwidth of transmission channel in flexible Ethernet
US20230035379A1 (en) * 2020-04-03 2023-02-02 Huawei Technologies Co., Ltd. Service flow adjustment method and communication apparatus
WO2022017509A1 (en) * 2020-07-23 2022-01-27 中兴通讯股份有限公司 Bandwidth adjustment method, service transmission method, network device and readable storage medium
WO2023284563A1 (en) * 2021-07-16 2023-01-19 中兴通讯股份有限公司 Slot configuration method, slot configuration apparatus, and computer-readable storage medium

Also Published As

Publication number Publication date
CN120264432A (en) 2025-07-04

Similar Documents

Publication Publication Date Title
CN113784437B (en) Method and device for realizing FlexE bearing small particle service
CN112804078B (en) Bandwidth adjustment method, service transmission method, network device and readable storage medium
US12047165B2 (en) Slot negotiation method and device
EP3806381B1 (en) Adjustment method for phy in flexe group, related equipment and storage medium
US12341653B2 (en) Service flow adjustment method and communication apparatus
WO2018095303A1 (en) Transmission method and apparatus for operation, management and maintenance of oam data
JPH06169325A (en) Frame relay system for transmitting both data and voice frames and processing method thereof
US11838181B2 (en) Flexible ethernet group management method, device, and computer-readable storage medium
US20130279904A1 (en) Method and System for Automatically Discovering ODUflex Bandwidth Lossless Adjustment Capability
WO2023284563A1 (en) Slot configuration method, slot configuration apparatus, and computer-readable storage medium
WO2021115452A1 (en) Flexible ethernet overhead multiframe receiving method, apparatus, device, and medium
EP4175210A1 (en) Rate adaptation method and apparatus
JP5352502B2 (en) Packet communication system and packet communication apparatus control method
CN114173383A (en) Channel bandwidth adjusting method, device and node
CN110267310B (en) Link capacity adjusting method, device, system, controller and network node
JP2001160843A (en) Access network remote control system
WO2025146038A1 (en) Time slot adjustment method
WO2025055797A1 (en) Data retransmission method, apparatus, and system
EP3823212A1 (en) Link capacity adjustment method and device
WO2024067483A1 (en) Time reference position transmission method, packet position determination method, and communication device
CN111447078A (en) Redundancy method for Ethernet hot standby hot switching based on multicast protocol
EP2798790B1 (en) Compression method for tdm frames in a packet network
WO2025020600A1 (en) Method for transmitting time slot information, electronic device, and storage medium
EP4561165A1 (en) Slot adjustment method, communication device and storage medium
CN120614219A (en) Multicast group management method and device, storage medium and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24915252

Country of ref document: EP

Kind code of ref document: A1