Time slot negotiation method, device and equipment and computer readable storage medium

By negotiating and adjusting the time slots of multiple services in communication technology, the problem of low slot negotiation efficiency in transmission channels is solved, efficient parallel adjustment is achieved, and transmission efficiency and security are improved.

CN119172802APending Publication Date: 2024-12-20HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310730123.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-19
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In the field of communication technology, it is difficult for the prior art to efficiently negotiate and adjust the time slots of multiple services in the transmission channel, resulting in inefficient transmission and increased risk of service failure.

Method used

Through a time slot negotiation method, the time slot negotiation results of N services are obtained and the time slot declaration is sent to the device, so that the time slot negotiation results of N services are effective at the same time, thereby adjusting the time slot occupied by the service data in parallel, and negotiating Short time and high efficiency.

Benefits of technology

It realizes efficient negotiation and adjustment of time slots of multiple services, improves the utilization rate of transmission channels, reduces the risk of service failure, simplifies the time slot negotiation process, and reduces the implementation cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119172802A_ABST
    Figure CN119172802A_ABST
Patent Text Reader

Abstract

The invention discloses a time slot negotiation method, device and equipment and a computer readable storage medium, and belongs to the technical field of communication. The method comprises: obtaining time slot negotiation results of N services, the time slot negotiation results being obtained by negotiating with a first device, the time slot negotiation result of any service indicating a time slot occupied for transmitting data of any service, N being an integer greater than or equal to 2; and sending a time slot effective notice to the first equipment, wherein the time slot effective notice indicates that the time slot negotiation results of the plurality of services are effective. After the time slots occupied by the data of the N services are negotiated, a time slot effective notice is sent, so that the time slot negotiation results of the N services are effective at the same time, the time slots occupied by the data of the N services are adjusted in parallel, the negotiation time is short, and the efficiency is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a time slot negotiation method, device, equipment and computer-readable storage medium. Background Art

[0002] In the field of communication technology, in the process of transmitting service data using a transmission channel between devices, multiple time slots can be further divided in the transmission channel, and data of different services can be transmitted through the time slots to improve the utilization rate of the transmission channel. Taking the transmission channel of Ethernet as an example, the information transmitted by the transmission channel of Ethernet can be a fine-grained basic unit (fg-BU). Among them, fg-BU is used to carry service data, and an fg-BU includes multiple time slots. Different time slots can encapsulate data of different services. The transmission of data of multiple services is achieved by transmitting fg-BU in the transmission channel. Therefore, a time slot negotiation method is needed to determine the time slot occupied by the data of the service through negotiation. Summary of the invention

[0003] The present application provides a time slot negotiation method, apparatus, device and computer-readable storage medium to determine the time slot occupied by service data through negotiation. The technical solution is as follows:

[0004] In a first aspect, a time slot negotiation method is provided, the method comprising: obtaining time slot negotiation results of N services, the time slot negotiation results are obtained through negotiation with a first device, the time slot negotiation result of any service indicates the time slot occupied by transmitting data of any service, wherein N is an integer greater than or equal to 2; sending a time slot effective notification to the first device, the time slot effective notification indicating that the time slot negotiation results of multiple services are effective. After negotiating the time slots occupied by the data of the N services, a time slot effective notification is sent, so that the time slot negotiation results of the N services are effective at the same time, thereby adjusting the time slots occupied by the data of the N services in parallel, with short negotiation time and high efficiency.

[0005] In a possible implementation, obtaining the time slot negotiation results of N services includes: negotiating with the first device to obtain the time slot negotiation results of each service according to the negotiation order of each service in the N services. The time slot negotiation results of the N services are obtained in sequence according to the negotiation order of the N services, and the process of obtaining the time slot negotiation results is highly organized.

[0006] In a possible implementation, obtaining the time slot negotiation results of N services includes: sending N time slot request sets to the first device, the N time slot request sets correspond to the N services one by one, a time slot request set includes at least one time slot negotiation request, and a time slot request set is used to negotiate with the first device the time slot occupied by the data of a service; receiving a time slot response set corresponding to the N services returned by the first device according to the N time slot request sets, a time slot response set includes at least one time slot negotiation response; determining the time slot negotiation results of the N services according to the time slot response sets corresponding to the N services. By sending and receiving the time slot request set and the time slot response set, the negotiation of the service time slot can be completed, and then the time slot negotiation result can be obtained, and the method for obtaining the time slot negotiation result is simple.

[0007] In a possible implementation, before obtaining the time slot negotiation results of the N services, the method further includes: sending a time slot negotiation notification to the first device, where the time slot negotiation notification indicates starting to negotiate the time slots occupied by the data of the N services. By sending the time slot negotiation notification, the first device knows that the time slot negotiation method for the N services different from the single service needs to be executed, unifies the execution method of the first device and the second device at the local end, and ensures that the first device and the second device execute the same set of time slot negotiation methods, so that the time slot negotiation is smoothly executed and the success rate is improved.

[0008] In a possible implementation, the time slot negotiation notification is carried in at least one of a flag field, a reserve (RES) field or a negotiation field in an overhead frame. The field type carried by the time slot negotiation notification is not limited, and the versatility is high.

[0009] In a possible implementation, the RES field is assigned a first value, and the first value is used to determine the number of services or time slots that need to be negotiated, where the number of time slots is the total number of time slots that need to be adjusted or the number of time slots that need to be adjusted for services corresponding to the overhead frame. The RES field can be used to identify the number of services or time slots that need to be negotiated, and then the number indicates that the time slots for N services are being negotiated, and the carrying method of the time slot negotiation notification is highly flexible.

[0010] In a possible implementation, the time slot validity notification is carried in at least one of a flag field, a reserved RES field, or a negotiation field in an overhead frame. The carrying method of the time slot validity notification is not limited, and the flexibility is high.

[0011] In a possible implementation, the time slot negotiation result of any service among the N services indicates that the time slot occupied by the data of any service is increased, or the time slot occupied by the data of any service is reduced, or the time slot occupied by the data of any service is replaced. The time slot negotiation can be used to negotiate to increase the time slot, reduce the time slot, or replace the time slot, and has a wide range of application scenarios and high versatility.

[0012] In one possible implementation, the time slot negotiation result of any one of the N services indicates the time slot occupied by the data of any one of the N services. Before obtaining the time slot negotiation results of the N services, it also includes: receiving a time slot increase adjustment notification corresponding to any one of the services sent by the first device, and the time slot increase adjustment notification indicates that negotiation with the first device to increase the time slot occupied by the data of any one of the services is allowed. By receiving the time slot increase adjustment notification sent by the first device to determine the time slot occupied by the data of any one of the services that can be increased, the start negotiation time for increasing the time slot is more accurate and has high precision. Since the time slot increase adjustment notification is sent by the first device located downstream based on the downstream time slot negotiation situation, triggering the negotiation to increase the time slot based on the time slot increase adjustment notification can reduce the impact of the increase in time slots on the transmission of service data, thereby avoiding service failures.

[0013] In a second aspect, a time slot negotiation method is provided, the method comprising: obtaining time slot negotiation results of N services, the time slot negotiation results are obtained through negotiation with a second device, the time slot negotiation result of any service indicates the time slot occupied by transmitting data of any service, and N is an integer greater than or equal to 2; receiving a time slot effective notification sent by the second device, the time slot effective notification indicating that the time slot negotiation results of the N services are effective. After negotiating the time slots occupied by the data of the N services, a time slot effective notification is received, so that the time slot negotiation results of the N services are effective at the same time, thereby adjusting the time slots occupied by the data of the N services in parallel, with short negotiation time and high efficiency.

[0014] In a possible implementation, obtaining the time slot negotiation results of N services includes: obtaining the time slot negotiation results of each service obtained by negotiation with the second device respectively according to the negotiation order of each service in the N services.

[0015] In a possible implementation, obtaining the time slot negotiation results of N services includes: receiving N time slot request sets sent by a second device, the N time slot request sets corresponding to the N services one by one, a time slot request set including at least one time slot negotiation request, and a time slot request set used to negotiate the time slots occupied by the data of a service; adjusting the time slot table of each service in the N services according to the received N time slot request sets, determining the time slot negotiation results of the N services according to the adjustment result of the time slot table, the time slot table of a service indicates the time slots occupied by the data of a service. By adjusting the time slot table, the time slots occupied by the data of each service can be adjusted, and the time slot adjustment method is simple and easy to implement.

[0016] In a possible implementation, adjusting the time slot table of each of the N services according to the received N time slot request sets includes: determining the time slot adjustment strategy of each service according to the N time slot request sets; and adjusting the time slot table of each service according to the time slot adjustment strategy of each service. The time slot adjustment strategy of each service is determined from the time slot request set, and then the time slot table can be adjusted according to each time slot adjustment strategy. The operation involved in the adjustment process of the time slot table is simple and the execution efficiency is high.

[0017] In a possible implementation, after adjusting the time slot table of each of the N services, the method further includes: sending a time slot response set corresponding to the N services to the second device according to the adjustment result of the time slot table of each service, and the time slot response set corresponding to the N services indicates whether the negotiation is successful. In addition to determining the time slot negotiation result according to the adjustment result of the time slot table, the first device also returns the time slot response set to the second device, so that the second device determines the time slot negotiation result according to the time slot response set, and the operation of obtaining the time slot negotiation result is simple.

[0018] In a possible implementation, before obtaining the time slot negotiation results of the N services, the method further includes: receiving a time slot negotiation notification sent by the second device, where the time slot negotiation notification indicates starting to negotiate the time slots occupied by data of the N services.

[0019] In a possible implementation manner, the time slot negotiation notification is carried in at least one of a flag field, a reserved RES field, or a negotiation field in an overhead frame.

[0020] In a possible implementation, the RES field is assigned a first value, which is used to determine the number of services or time slots that need to be negotiated, where the number of time slots is the total number of time slots that need to be adjusted or the number of time slots that need to be adjusted for the services corresponding to the overhead frame.

[0021] In a possible implementation manner, the time slot validity notification is carried in at least one of a flag field, a reserved RES field, or a negotiation field in an overhead frame.

[0022] In a possible implementation, the time slot negotiation result of any service among the N services indicates that the time slot occupied by the data of any service is increased, or the time slot occupied by the data of any service is reduced, or the time slot occupied by the data of any service is replaced.

[0023] In one possible implementation, the time slot negotiation result of any one of the N services indicates the time slot occupied by the data of any one of the N services. Before obtaining the time slot negotiation results of the N services, it also includes: sending a time slot increase adjustment notification corresponding to any service to the second device, and the time slot increase adjustment notification indicates that the second device is allowed to negotiate to increase the time slot occupied by the data of any service.

[0024] According to a third aspect, a time slot negotiation device is provided, which is applied to a second device, and includes: an acquisition module, used to obtain time slot negotiation results of N services, the time slot negotiation results are obtained by negotiation with a first device, the time slot negotiation result of any service indicates the time slot occupied by transmitting data of any service, and N is an integer greater than or equal to 2; a sending module, used to send a time slot effectiveness notification to the first device, the time slot effectiveness notification indicates that the time slot negotiation results of multiple services are effective.

[0025] In a possible implementation, the acquisition module is configured to negotiate with the first device respectively according to the negotiation order of each service in the N services to obtain the time slot negotiation result of each service.

[0026] In one possible implementation, an acquisition module is used to send N time slot request sets to a first device, the N time slot request sets corresponding one-to-one to N services, a time slot request set including at least one time slot negotiation request, and a time slot request set used to negotiate with the first device about the time slot occupied by data of a service; receive a time slot response set corresponding to the N services returned by the first device based on the N time slot request sets, a time slot response set including at least one time slot negotiation response; and determine the time slot negotiation results of the N services based on the time slot response sets corresponding to the N services.

[0027] In a possible implementation, the sending module is further configured to send a time slot negotiation notification to the first device, where the time slot negotiation notification indicates starting to negotiate the time slots occupied by data of N services.

[0028] In a possible implementation manner, the time slot negotiation notification is carried in at least one of a flag field, a reserved RES field, or a negotiation field in an overhead frame.

[0029] In a possible implementation, the RES field is assigned a first value, which is used to determine the number of services or time slots that need to be negotiated, where the number of time slots is the total number of time slots that need to be adjusted or the number of time slots that need to be adjusted for the services corresponding to the overhead frame.

[0030] In a possible implementation manner, the time slot validity notification is carried in at least one of a flag field, a reserved RES field, or a negotiation field in an overhead frame.

[0031] In a possible implementation, the time slot negotiation result of any service among the N services indicates that the time slot occupied by the data of any service is increased, or the time slot occupied by the data of any service is reduced, or the time slot occupied by the data of any service is replaced.

[0032] In one possible implementation, the time slot negotiation result of any service among N services indicates the time slot occupied by the data of any service. The device also includes: a receiving module, which is used to receive a time slot increase adjustment notification corresponding to any service sent by the first device, and the time slot increase adjustment notification indicates that negotiation with the first device is allowed to increase the time slot occupied by the data of any service.

[0033] In a fourth aspect, a time slot negotiation device is provided, which is applied to a first device, and the device includes: an acquisition module, used to obtain time slot negotiation results of N services, the time slot negotiation results are obtained by negotiation with a second device, the time slot negotiation result of any service indicates the time slot occupied by transmitting data of any service, and N is an integer greater than or equal to 2; a receiving module, used to receive a time slot effectiveness notification sent by the second device, the time slot effectiveness notification indicates that the time slot negotiation results of N services are effective.

[0034] In a possible implementation, the acquisition module is used to respectively acquire the time slot negotiation result of each service obtained through negotiation with the second device according to the negotiation order of each service among the N services.

[0035] In one possible implementation, an acquisition module is used to receive N time slot request sets sent by a second device, the N time slot request sets correspond one-to-one to N services, a time slot request set includes at least one time slot negotiation request, and a time slot request set is used to negotiate the time slots occupied by the data of a service; according to the received N time slot request sets, the time slot table of each service in the N services is adjusted, and the time slot negotiation results of the N services are determined according to the adjustment results of the time slot table, and the time slot table of a service indicates the time slots occupied by the data of a service.

[0036] In a possible implementation, the acquisition module is used to determine the time slot adjustment strategy of each service according to the N time slot request sets; and adjust the time slot table of each service according to the time slot adjustment strategy of each service.

[0037] In a possible implementation, the apparatus further includes: a first sending module, configured to send a time slot response set corresponding to N services to the second device according to the adjustment result of the time slot table of each service, wherein the time slot response set corresponding to the N services indicates whether the negotiation is successful.

[0038] In a possible implementation, the receiving module is further configured to receive a time slot negotiation notification sent by the second device, where the time slot negotiation notification indicates starting to negotiate the time slots occupied by data of N services.

[0039] In a possible implementation manner, the time slot negotiation notification is carried in at least one of a flag field, a reserved RES field, or a negotiation field in an overhead frame.

[0040] In a possible implementation, the RES field is assigned a first value, which is used to determine the number of services or time slots that need to be negotiated, where the number of time slots is the total number of time slots that need to be adjusted or the number of time slots that need to be adjusted for the services corresponding to the overhead frame.

[0041] In a possible implementation manner, the time slot validity notification is carried in at least one of a flag field, a reserved RES field, or a negotiation field in an overhead frame.

[0042] In a possible implementation, the time slot negotiation result of any service among the N services indicates that the time slot occupied by the data of any service is increased, or the time slot occupied by the data of any service is reduced, or the time slot occupied by the data of any service is replaced.

[0043] In one possible implementation, the time slot negotiation result of any service among N services indicates the time slot occupied by the data of any service. The device also includes: a second sending module, used to send a time slot increase adjustment notification corresponding to any service to the second device, and the time slot increase adjustment notification indicates that the second device is allowed to negotiate to increase the time slot occupied by the data of any service.

[0044] In a fifth aspect, a time slot negotiation device is provided, which includes a processor, and the processor is used to load and execute at least one instruction to enable the time slot negotiation device to implement the first aspect or any possible time slot negotiation method of the first aspect, or to implement the second aspect or any possible time slot negotiation method of the second aspect.

[0045] In a possible implementation, the time slot negotiation device further includes a memory, which is coupled to the processor, and stores at least one instruction.

[0046] In the sixth aspect, a computer-readable storage medium is provided, in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the first aspect or any possible time slot negotiation method of the first aspect, or to implement the second aspect or any possible time slot negotiation method of the second aspect.

[0047] In the seventh aspect, a computer program (product) is provided, which includes a computer program / instructions, and the computer program / instructions are executed by a processor to enable a computer to implement the first aspect or any possible time slot negotiation method of the first aspect, or to implement the second aspect or any possible time slot negotiation method of the second aspect.

[0048] In an eighth aspect, a communication device is provided, the device comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the processor executes the method in the first aspect or any possible implementation of the first aspect, or executes the method in the second aspect or any possible implementation of the second aspect.

[0049] Optionally, there are one or more processors and one or more memories.

[0050] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0051] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips. This application does not limit the type of memory and the setting method of the memory and the processor.

[0052] In a ninth aspect, a chip is provided, which includes a processor for calling and executing program instructions or codes stored in the memory, so that a communication device equipped with the chip executes the methods in the above aspects.

[0053] In the tenth aspect, another chip is provided, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected through an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the methods in the above aspects.

[0054] It should be understood that the beneficial effects achieved by the technical solutions of the second to tenth aspects of the present application and the corresponding possible implementation methods can be referred to the above-mentioned technical effects of the first aspect and its corresponding possible implementation methods, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1 A schematic diagram of a fg-BU package provided in an embodiment of the present application;

[0056] Figure 2 A schematic diagram of an implementation environment provided for an embodiment of the present application;

[0057] Figure 3A flowchart of a time slot negotiation method provided in an embodiment of the present application;

[0058] Figure 4 A schematic diagram of a time slot negotiation process provided in an embodiment of the present application;

[0059] Figure 5 A schematic diagram of the structure of a fg-BU provided in an embodiment of the present application;

[0060] Figure 6 A schematic diagram of the structure of an overhead frame provided in an embodiment of the present application;

[0061] Figure 7 A schematic diagram of another time slot negotiation process provided in an embodiment of the present application;

[0062] Figure 8 A schematic diagram of another time slot negotiation process provided in an embodiment of the present application;

[0063] Fig. 9 A schematic diagram of a time slot replacement process provided in an embodiment of the present application;

[0064] Fig.10 A schematic diagram of another time slot negotiation process provided in an embodiment of the present application;

[0065] Fig.11 A schematic diagram of the structure of a time slot negotiation device provided in an embodiment of the present application;

[0066] Fig.12 A schematic diagram of the structure of another time slot negotiation device provided in an embodiment of the present application;

[0067] Fig.13 A schematic diagram of the structure of a network device provided in an embodiment of the present application;

[0068] Fig.14 A schematic diagram of the structure of another network device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0069] The terms used in the implementation method of this application are only used to explain the specific embodiments of this application, and are not intended to limit this application. In order to make the purpose, technical solution and advantages of this application clearer, the implementation method of this application will be further described in detail below with reference to the accompanying drawings.

[0070] In the process of transmitting service data by time division multiplexing (TDM), multiple time slots can be divided in the transmission channel between transmission devices, and the time slots can be used to transmit data of different services in the same transmission channel, thereby improving the utilization rate of the transmission channel. Taking the transmission channel of Ethernet as an example, the transmission channel can be sliced ​​into Ethernet to obtain a metro transport network (MTN) channel. An MTN channel can transmit multiple fg-BUs, and an fg-BU includes multiple time slots. Different time slots can encapsulate data of different services.

[0071] Figure 1 A schematic diagram of a fg-BU package provided in an embodiment of the present application, see Figure 1 A sub-slot is a time slot used to encapsulate service data in the embodiment of the present application. A sub-slot can carry 8 code blocks. The size of the code block is 66 bits (bit, b) or 65 bits after compression. Figure 1 Taking the code block of 65b as an example, 24 sub-slots are then added to the payload frame, and the overhead (OH) frame and the payload frame are filled in the D code block and the payload of the T7 code block of the fg-BU, to obtain the fg-BU including 24 sub-slots. Figure 1 This is intended to illustrate the structural relationship between time slots and fg-BUs, rather than to define the encapsulation process of fg-BUs. fg-BUs can be Figure 1 The package shown is obtained, and can also be obtained by other means.

[0072] Regardless of the method for obtaining fg-BU, the transmission device can encapsulate the data of the service in the sub-slot included in the fg-BU, and transmit the fg-BU to realize the transmission of the data of the service. Among them, the transmission device can transmit fg-BU alone, or it can form a multiframe with multiple fg-BUs, for example, 20 fg-BUs form a multiframe, and transmit the multiframe. The embodiment of the present application does not limit the channel bandwidth corresponding to the sub-slot. Taking the MTN channel with a transmission channel of 5 gigabits per second (Gbps) as an example, the bandwidth value of each sub-slot that can be used to carry the data of the service is 10 megabits per second (Mbps). The MTN channel can also be other values. For example, if the bandwidth size is 10Gbps, a larger number of sub-slots can be transmitted in an MTN channel, and the bandwidth of each sub-slot used to carry the data of the service is 10Mbps. In addition, the bandwidth of each sub-slot used to carry the data of the service can also be other values. Based on the situation where the data of the service needs to be carried through the time slot, the embodiment of the present application provides a time slot negotiation method for negotiating the time slots occupied by the data of N services.

[0073] Please refer to Figure 2 , which shows a schematic diagram of the implementation environment of the time slot negotiation method provided in an embodiment of the present application, and the implementation environment includes a first device 01 and a second device 02. A transmission channel is connected between the first device 01 and the second device 02, and the established connection can be established through a wired or wireless network. Among them, the first device 01 and the second device 02 are used to negotiate and obtain the time slot negotiation results of N services, and then the second device 02 sends a time slot effectiveness notification to the first device 01 to notify that the time slot negotiation results of the N services are effective.

[0074] Optionally, the first device 01 and the second device 02 are intended to distinguish between two transmission devices in the negotiation interaction, rather than to limit the operations performed by the transmission devices. In some cases, the first device 01 can also act as the second device 02 and perform operations involved by the second device 02. For example, Figure 1 There is also a transmission device connected downstream of the first device 01 in the method. After completing the time slot negotiation with the second device 02, the first device 01 will also negotiate the time slot with the transmission device located downstream. In this case, the first device 01 acts as the second device 02 and performs the operations involved by the second device 02 in the time slot negotiation method.

[0075] Exemplarily, the first device 01 and the second device 02 may be any network device with a data transmission function, such as a switch, a router, a gateway (GW), and a packet transport network (PTN) device, etc. In some cases, the functions of the first device 01 and the second device 02 are integrated on a chip configured in the network device.

[0076] The flowchart of the time slot negotiation method provided in the embodiment of the present application is as follows Figure 3 As shown, it includes S301-S303.

[0077] S301, the second device negotiates with the first device to obtain time slot negotiation results of N services, where the time slot negotiation result of any service indicates the time slot occupied by transmitting data of any service, and N is an integer greater than or equal to 2.

[0078] In one possible case, the second device obtains time slot adjustment instructions for N services, determines the time slots occupied by the data of the N services that need to be adjusted based on the time slot adjustment instructions, and starts negotiation with the first device. The process of obtaining the time slot negotiation instructions is, for example, that the second device receives the time slot adjustment instructions for the N services issued by the network management center. The network management center can send the time slot adjustment instructions for each of the N services separately, or it can encapsulate the time slot adjustment instructions for the N services together and send them to the second device. In addition, the device that issues the time slot adjustment instructions can be the network management center, or it can be other devices that manage data transmission, such as control devices.

[0079] After the second device obtains the time slot adjustment instructions for N services, it determines that it is necessary to start negotiating the time slots occupied by the data of the N services. In the case where the time slots occupied by the data of the N services that need to be adjusted are located in a transmission channel, the second device determines that it is necessary to perform N service negotiations. Since a single service negotiation or N service negotiations can be performed between the second device and the first device, and there is a difference between the negotiation process of the single service negotiation and the negotiation of N services. Therefore, the second device needs to send a time slot negotiation notification to the first device, and the time slot negotiation notification indicates the start of negotiation of the time slots occupied by the data of the N services. After the first device receives the time slot negotiation notification sent by the second device, it parses the received time slot negotiation notification and determines that the negotiation is a negotiation of N services that is different from a single service.

[0080] The embodiment of the present application does not limit the process of the second device sending the time slot negotiation notification to the first device. The sending of the time slot negotiation notification and the negotiation can be performed in series, that is, the second device first sends the time slot negotiation notification to the first device, and then negotiates with the first device. Figure 4 As shown, Figure 4In the example, the transmission process of the change request (CR) and the change answer (CA) indicates the negotiation process between the second device and the first device, see Figure 4 Before negotiating with the first device, the second device will send an independent time slot negotiation notification to the first device. The independent time slot negotiation notification can be carried in the overhead frame. For the carrying method of the overhead frame, see the following embodiment.

[0081] Optionally, sending the time slot negotiation notification and the negotiation can also be performed in parallel, that is, the second device completes the sending of the time slot negotiation notification during the negotiation with the first device, for example, carrying the time slot negotiation notification in the overhead frame transmitted during the time slot negotiation. In one possible implementation, the time slot negotiation notification can be carried in at least one of the flag field, the reserved (RES) field and the negotiation field in the overhead frame. In the case where multiple overhead frames need to be transmitted for time slot negotiation, the overhead frame carrying the time slot negotiation can be one of them, or part of the overhead frames, or all of the overhead frames.

[0082] The overhead frame is a field included in the fg-BU, and the second device and the first device can achieve negotiation by transmitting the overhead frame. Figure 5 A schematic diagram of the structure of a fg-BU provided in the embodiment of the present application is shown in FIG. Figure 5 , fg-BU includes overhead (OH) frame and payload frame. Figure 5 The structure of the overhead frame in Figure 6 , Figure 5 The overhead frame in the MAC address includes a flag field and three RES fields, the three RES fields are the RES field before the multi-frame indication (MFI) field, the RES field after the flag field, and the RES field before the cyclic redundancy check (CRC). Optionally, the overhead frame also includes a negotiation field, such as Figure 6 For the meaning of each negotiation field, please refer to the relevant description in the following embodiments, which will not be repeated here.

[0083] The second device may select at least one of the flag field, the RES field, and the negotiation field in the overhead frame to carry the timeslot negotiation notification in the overhead frame. Figure 6 In the first overhead frame shown in (1) of FIG. 1 , the second device assigns the flag field a value of 0b01 to indicate that N service negotiations are to be performed. Figure 6In the second overhead frame shown in (2), the second device assigns the flag field to 0b10 to indicate N service negotiations. In one possible case, one fine-grained client corresponds to one service, and the N service negotiations may refer to multi-fine grained client (multi-fg client) negotiations. Optionally, when the flag field is assigned to 0b01 or 0b10, in addition to being used to indicate N service negotiations, it can also be used to indicate that the 33-bit position after CA includes a fine-grained client identity document (fg client id) field, a fine-grained slot (fg slot) field, and a RES field.

[0084] In some cases, you can also Figure 6 In the third overhead frame shown in (3) of FIG. 1 , the second device assigns a value of 1 to the RES field, indicating that N services are being negotiated, and assigns a value of 0 to the RES field, indicating that a single service is being negotiated. Correspondingly, the second device may also choose to assign a value of 0 to the RES field, indicating that N services are being negotiated, and assign a value of 1 to the RES field, indicating that a single service is being negotiated. The assigned RES field may be the RES field before the CRC field, or may be the RES field before the CRC field. Figure 6 For example, when the RES field is assigned a value indicating N service negotiations, the flag field may be assigned a value as follows: Figure 6 The third overhead frame shown in (3) is assigned a value of 00, indicating that the 33-bit position after CA includes the fg client id field, the fgslot field, and the RES field, or the flag field is assigned a value of another value. In addition, the second device can also assign a value to the S bit, the C bit, the CR bit, and the CA bit in combination to indicate N service negotiations. Alternatively, different fields can be combined and assigned values ​​to different fields to obtain a time slot negotiation notification indicating N service negotiations.

[0085] Optionally, the time slot negotiation notification can be as shown in the above example, used to indicate that N services need to be negotiated, or it can indicate the number in the negotiation process to indicate that the services for time slot negotiation are N services different from a single service, and the number is, for example, the number of services or the number of time slots. For example, the second device assigns the RES field to a first value, and the first value is used to determine the number of services or the number of time slots that need to be negotiated. Among them, the RES field assigned by the second device can be the RES field before the CRC field, or it can be a RES field at other locations. The number of time slots is the total number of time slots that need to be adjusted or the number of time slots that need to be adjusted for the service corresponding to the overhead frame. The total number of time slots is the sum of the number of time slots that need to be adjusted for each service in the N services.

[0086] Taking the first value as a positive integer M as an example, the RES field before the CRC field is assigned a value of M, indicating that the number of services participating in this negotiation is 2 M For example, if M is equal to 9, the RES field indicates that the number of services is 512. Alternatively, the RES field is set to the binary form of N to indicate the number of services that need to be negotiated, where N is a positive integer greater than or equal to 2. When the size of the RES field is 9 bits, the value range of the number that can be represented is 0 to 511.

[0087] In addition, the RES field assigned by the second device may be one RES field or multiple RES fields. Figure 6 The RES field after the flag field is set to 0, indicating that the number of time slots indicated by the RES field before the CRC field is the total number of time slots. Figure 6 The RES field after the flag field is assigned a value of 1, indicating that the number of time slots indicated by the RES field before the CRC field is the number of time slots that need to be adjusted for the service corresponding to the overhead frame. The service corresponding to the overhead frame refers to the time slot occupied by the data of the service adjusted by the overhead frame. In some cases, the service corresponding to the overhead frame can be identified by the fg client id.

[0088] The time slot negotiation notification may choose to indicate that only N service negotiations are required, or may choose to indicate only the number of time slots being negotiated, or may further indicate the number of time slots being negotiated on the basis of indicating N service negotiations. For example, the flag field is assigned a value of 0b10 to indicate that N service negotiations are being performed, and then the RES field before the CRC field is assigned a value as shown in the above embodiment to indicate the total number of time slots that need to be negotiated.

[0089] Since the overhead frame is the data that needs to be transmitted during the negotiation process, the time slot negotiation notification is carried in the overhead frame transmitted during the time slot negotiation process, so that the first device is synchronously notified to perform N service negotiations during the negotiation process. Next, the process of the second device and the first device negotiating to obtain the time slot negotiation results of N services is described, and the role of the overhead frame in the negotiation process is described.

[0090] Exemplarily, the second device and the first device negotiate to obtain the time slot negotiation results of N services, including: the second device sends N time slot request sets to the first device, the N time slot request sets correspond one-to-one to the N services, one time slot request set includes at least one time slot negotiation request, and one time slot request set is used to negotiate with the first device about the time slot occupied by the data of a service; the first device receives the N time slot request sets sent by the second device, adjusts the time slot table of each of the N services according to the received N time slot request sets, determines the time slot negotiation results of the N services according to the adjustment results of the time slot tables of each service, and sends the time slot response set corresponding to the N services to the second device according to the adjustment results of the time slot tables of each service, the time slot response set corresponding to the N services indicates whether the negotiation is successful; the second device receives the time slot response set corresponding to the N services returned by the first device according to the N time slot request sets, and determines the time slot negotiation results of the N services according to the time slot response set corresponding to the N services.

[0091] For the N time slot request sets and the time slot response sets corresponding to the N services involved in the negotiation process, the second device and the first device may transmit the N time slot request sets and the time slot response sets corresponding to the N services through including but not limited to the following two negotiation methods.

[0092] Negotiation mode 1: The second device negotiates with the first device respectively according to the negotiation order of each service in the N services to obtain the time slot negotiation result of each service.

[0093] Optionally, the negotiation order of each service may be a priority order of each service, and the priority order may be determined according to the service level agreement (SLA) of the service. For example, the transmission delay indicated by the SLA of a gaming service is lower than the transmission delay indicated by the SLA of a video service, and the second device determines that the priority of the gaming service is higher than the priority of the video service. The negotiation order of the services may also be the order in which the time slot adjustment instructions of the services are obtained. For example, after receiving the time slot adjustment instruction of service A, the second device receives the time slot adjustment instruction of service B, thereby determining that the negotiation order of service A precedes the negotiation order of service B. The negotiation order of each service may also be a random order.

[0094] Regardless of the circumstances under which the negotiation order of each service is obtained, the second device will negotiate each service in series according to the negotiation order. Since the negotiation process of different numbers of services is similar, the following embodiment of the present application takes N equal to 2 as an example to illustrate the process of negotiating the time slots occupied by the data of N services. Taking the two services that need to be negotiated as service A and service B, and the negotiation order of service A precedes the negotiation order of service B as an example, the first device and the second device negotiate service A and service B in series, which means that the first device and the second device first negotiate the time slot occupied by the data of service A, and when the negotiation of service A is completed, negotiate the time slot occupied by the data of service B.

[0095] Optionally, the process of negotiating any service between the second device and the first device includes: the second device sends a time slot request set corresponding to any service to the first device; the first device adjusts the time slot table of any service according to the received time slot request set corresponding to any service, and returns a time slot response set corresponding to any service to the second device according to the adjustment result of the time slot table; the second device determines the time slot negotiation result of any service according to the time slot response set corresponding to any service.

[0096] Exemplarily, any service may request to adjust one time slot or multiple time slots. In the case of requesting to adjust multiple time slots, one time slot negotiation request may be used to negotiate with the first device to adjust one time slot, that is, the time slot request set of any service includes multiple time slot negotiation requests, and the time slot negotiation requests correspond to the time slots to be adjusted one by one. One time slot negotiation request may also be used to negotiate with the first device to adjust multiple time slots, that is, the time slot request set of any service includes one time slot negotiation request.

[0097] Regardless of the time slot negotiation request included in the time slot request set, the encapsulation method of the time slot negotiation request is similar. Optionally, the time slot negotiation request is carried in the negotiation field of the overhead frame. Figure 6 Taking the structure of the overhead frame shown as an example, the time slot negotiation request is carried in the CR bit. The second device can assign the CR bit in the overhead frame to a second value to obtain the time slot negotiation request. The second value indicates that the bit is effective. The second value is, for example, 1, or other values. By assigning the CR bit in the negotiation field to the second value and other negotiation fields to the third value, the time slot negotiation request is carried in the overhead frame, where the other negotiation fields refer to the fields in the negotiation field other than CR, for example Figure 6 In the S field, C field and CA field, the third value indicates that the bit is not valid, and the third value is 0, for example.

[0098] In addition, the time slot negotiation request corresponding to any service may also include the time slot that needs to be adjusted and the action to be taken on the time slot. Figure 6The fg slot field in is used to identify the time slot that needs to be adjusted. The fg client id can further identify the action on the time slot when indicating the service corresponding to the time slot negotiation request. The following example illustrates the way in which the fg client id identifies the action. When the bit used to identify the action in the fg client id is assigned a value of 0, the action indicated is release. When the bit used to identify the action in the fg client id is assigned a value of 1, the action indicated is occupation.

[0099] In one possible case, the time slot negotiation request corresponding to any service may include the time slot that needs to be adjusted. For example, the fg slot field is used to identify the time slot that needs to be adjusted, and the fg client id field is only used to identify the service corresponding to the time slot negotiation request. Among them, the service corresponding to the time slot negotiation request refers to the time slot requested for negotiation by the time slot negotiation request, which is the time slot occupied by the data of the service. For example, time slot negotiation request A is used to negotiate with the first device to add time slot A for service A to transmit the data of service A, then the service corresponding to time slot negotiation request A is service A. Alternatively, time slot negotiation request B is used to negotiate with the first device to release time slot B occupied by the data of service A, then the service corresponding to time slot negotiation request B is service A. By assigning the fields in the overhead frame, the acquisition of the time slot negotiation request can be achieved without adjusting the structure of the overhead frame. After assigning the overhead frame, the second device can send the assigned overhead frame to the first device to send a time slot request set including the time slot negotiation request.

[0100] After the first device receives the time slot request set corresponding to any service, it can determine the time slot negotiation result of any service according to the time slot request set. The processing process includes: determining the time slot adjustment strategy of any service according to the time slot request set corresponding to any service; adjusting the time slot table of any service according to the time slot adjustment strategy of any service; and sending the time slot response set corresponding to any service to the second device according to the adjustment result of the time slot table of any service.

[0101] The first device parses the time slot negotiation request included in the time slot request set corresponding to any service, and obtains the time slot adjustment strategy of any service. Taking any service as service A as an example, the first device determines that the time slot requested for adjustment is time slot A according to the fg slot field in the overhead frame. Since the fg client id includes multiple bits, at least one bit of the multiple bits can be used to identify the service, and thus the first device can determine that the service corresponding to the overhead frame is service A according to the value of the bit used by the fg client id to identify the service. There is also at least one bit in the multiple bits used to identify the action. For example, when the bit used by the fg client id to identify the action is assigned to 0, the first device can determine that the requested action is release according to the value of the bit used to identify the action being 0, and the first device thus determines that the time slot adjustment strategy of service A is to release time slot A. Afterwards, the first device obtains the time slot table of service A, which stores the time slots occupied by the data of service A. The first device deletes the information of time slot A from the time slot table of service A based on the adjustment strategy, and completes the adjustment of the time slot table of service A.

[0102] In one possible case, when the time slot negotiation request does not indicate an action to be performed on the time slot, the first device can determine the time slot adjustment strategy in combination with the time slot table of any service. Continuing to take the example of determining that the time slot requested for adjustment is time slot A according to the fg slot field, since the time slots occupied by the data indicating service A in the time slot table are time slot A, time slot B, time slot C and time slot D, including the time slot A requested for adjustment, the first device thus determines that the action to be performed on the occupied time slot A is release, and the time slot adjustment strategy of service A is release time slot A. Taking the example of determining that the time slot to be adjusted is time slot E according to the fg slot field, since the time slots occupied by the data indicating service A in the time slot table do not include the time slot E requested for adjustment, the first device thus determines that the time slot adjustment strategy of service A is to occupy time slot E. The first device adds the information of time slot E in the time slot table based on the adjustment strategy, and completes the adjustment of the time slot table of service A.

[0103] After the first device finishes adjusting the time slot table of any service, it determines the time slot negotiation result according to the adjustment result of the time slot table. Taking the time slots of service A requested for adjustment as occupied time slot E and released time slot A as an example, the first device determines the time slot adjustment result of service A as reducing occupied time slot A and increasing occupied time slot E according to the adjustment result of the time slot table.

[0104] In addition, the first device will also send a time slot response set corresponding to any service to the second device according to the adjustment result of the time slot table of any service, and the time slot response set includes at least one time slot negotiation response. Similar to the case of the time slot negotiation request included in the time slot request set, in the case where any service needs to adjust multiple time slots, the time slot response set may include a time slot negotiation response, and the adjustment status of multiple time slots of the service is notified through the time slot negotiation response. The time slot response set may also include multiple time slot negotiation responses, that is, the time slot negotiation responses and the time slots that need to be adjusted correspond one to one.

[0105] Optionally, the time slot negotiation response can be carried in the overhead frame in a manner similar to that of the time slot negotiation request, except that the negotiation field assigned to the time slot negotiation response is the CA bit. The first device can assign values ​​to the received overhead frame, assign the CA bit to the second value, and assign the CR bit to the third value, so as to carry the time slot negotiation response in the overhead frame. Furthermore, in the case where the time slot negotiation notification is carried in the overhead frame, the first device can choose to retain the carried time slot negotiation notification, or can choose to reset the field carrying the time slot negotiation notification to the initial value. In addition, the first device can also choose to assign the CA bit in the new overhead frame to obtain the time slot negotiation response.

[0106] Regardless of the method used to assign the time slot negotiation response, whether the negotiation is successful can be indicated by sending the time slot negotiation response. For example, by assigning a value to any RES field in the overhead frame carrying the time slot negotiation response, the RES field can be assigned to indicate whether the negotiation is successful or failed. In the case where the first device successfully adjusts the time slot table of any service, the time slot negotiation response indicates a successful negotiation. In the case where the first device fails to successfully adjust the time slot table of any service, the time slot negotiation response indicates a failed negotiation. For example, the second device requests to add time slot F to service A, and the first device queries the time slot table to determine that time slot F is occupied by the data of service B. Based on this, the first device fails to add the information of time slot F to the time slot table of service A, fails to successfully adjust the time slot table of service A, and the time slot negotiation response corresponding to time slot F indicates a failed negotiation.

[0107] Optionally, the first device may also choose to return a time slot negotiation response if the negotiation is successful, and not return a time slot negotiation response if the negotiation fails. The first device temporarily stores the time slot adjustment strategy, and after the first time length, re-adjusts the time slot table of any service according to the time slot adjustment strategy, determines the time slot negotiation result according to the adjustment result of the time slot table, and returns a time slot response set. Among them, the first time length can be a fixed time length set according to experience, or it can be the time length of the time slot request set corresponding to N services received. Since the state of the time slot corresponding to the time slot adjustment strategy may change within the first time length, the time slot adjustment strategy that failed to adjust before may be able to adjust successfully. Continuing with the request to add time slot F as an example, since the time slot adjustment strategy of service B includes releasing time slot F, after the first time length, the first device determines that the state of time slot F changes from occupied to unoccupied, and the first device adds the information of time slot F in the time slot table of service A to adjust time slot F, and returns the time slot negotiation response corresponding to time slot F to the second device.

[0108] Alternatively, in the event of a negotiation failure, the first device first returns a time slot negotiation response indicating the negotiation failure to the second device, and temporarily stores the time slot adjustment strategy for the negotiation failure. During other time slot negotiations, the first device renegotiates according to the time slot adjustment strategy. If the negotiation is successful, the first device returns a time slot negotiation response indicating a successful negotiation, and the second device thereby updates the time slot negotiation result for the time slot.

[0109] Regardless of the method by which the first device returns the time slot negotiation response corresponding to any service to the second device, the second device will determine the time slot negotiation result for any service based on the received time slot negotiation response corresponding to any service after receiving the time slot negotiation response corresponding to any service. Taking the time slots adjusted by the data request of service A as an example, the second device only receives the time slot negotiation response for releasing time slot A, but does not receive the time slot negotiation response for occupying time slot F. According to the received time slot negotiation response, it is determined that the negotiation for occupying time slot F fails, and the negotiation for releasing time slot A succeeds. The second device determines that the time slot negotiation result of service A reduces the occupied time slot A.

[0110] After the negotiation of service A is finished, the second device starts to negotiate the time slot occupied by the data of service B. The embodiment of the present application does not limit the way in which the second device determines the end of the time slot negotiation of service A. The second device can determine the end of the time slot negotiation of service A after obtaining the time slot response set corresponding to service A. The second device can also determine the end of the time slot negotiation of service A after the time length from sending the time slot request set of service A reaches the second time length. Among them, the second time length is an arbitrary time value set based on experience, for example, the second time length is set to one second based on experience. In this case, even if the time slot response set corresponding to service A is not received, the second device will determine that the negotiation of service A is over. By setting the second time length, even if the first device fails to adjust the time slot table of service A and does not return the time slot response set corresponding to service A, for example, the first device chooses to execute the operation of not sending the time slot response set to the second device in the above embodiment for the case of unsuccessful adjustment of the time slot table, the second device will not delay the start of the negotiation of service B because of waiting for the time slot response set corresponding to service A. The negotiation process of service B is similar to the negotiation process of service A, and the relevant description can be referred to, and it will not be repeated here.

[0111] Negotiation mode 2: the second device directly sends a set of time slot requests corresponding to each service to the first device.

[0112] Optionally, the second device may also directly send a set of time slot requests corresponding to each service to the first device, and the first device determines the time slot negotiation results of the N services based on the received N time slot request sets, and returns a set of time slot responses corresponding to the N services. Exemplarily, the first device determines the time slot adjustment strategy for each service based on the N time slot request sets; adjusts the time slot table for each service based on the time slot adjustment strategy for each service. After adjusting the time slot table for each service, the first device sends a set of time slot responses corresponding to the N services to the second device based on the adjustment result of the time slot table for each service. The time slot tables for each service may be different time slot tables, or they may be combined in one table.

[0113] Among them, the process in which the second device sends N time slot request sets and the first device returns a time slot response set is similar to the process in which the second device sends a time slot request set for any service and the first device returns a time slot response set corresponding to any service in negotiation mode 1. The difference is that the second device does not need to wait for the negotiation of the previous service to end, that is, it may send a time slot request set corresponding to the next service to the first device. In addition, the first device can choose to return a time slot response set corresponding to any service after adjusting the time slot table of any service, that is, the first device returns N time slot response sets, and the time slot response set and the service are in a one-to-one correspondence. The first device can also choose to send a time slot response set to the second device after adjusting the time slot table of N services, that is, N services correspond to one time slot response set, and the time slot response set includes at least one time slot negotiation response, which is used to indicate whether the N services are negotiated successfully, for example, sending a time slot negotiation response to indicate the service that has been negotiated successfully, or sending two time slot negotiation responses, one for identifying the time slot that has been negotiated successfully and the other for identifying the time slot that has failed to negotiate, or sending N time slot negotiation responses, and one time slot negotiation response is used to identify the negotiation result of a service.

[0114] The first device and the second device can choose to use any one of negotiation mode 1 or negotiation mode 2 to complete the negotiation of the time slots occupied by the data of N services, and the embodiment of the present application does not limit this. In addition, the embodiment of the present application does not limit the negotiation type, and the time slot negotiation result of any service among the N services indicates that the data of any service increases the time slot occupied, or the data of any service reduces the time slot occupied, or the data of any service replaces the time slot occupied.

[0115] Optionally, when the time slot negotiation result of any service among N services indicates that the time slot occupied by the data of any service is increased, the first device will send a time slot increase adjustment notification corresponding to any service to the second device, and the time slot increase adjustment notification indicates that the second device is allowed to negotiate to increase the time slot occupied by the data of any service. Based on the reception of the time slot increase adjustment notification, the second device sends a time slot request set to the first device.

[0116] Figure 7 A schematic diagram of a time slot negotiation process provided in an embodiment of the present application, Figure 7 FIG. 2 shows a process in which the second device and the first device adopt negotiation mode 1, and the negotiated N services are service A and service B, and the second device and the first device negotiate in series to increase the time slots occupied by the data of service A and service B. FIG. Figure 7 In the figure, transmission device 1 is the second device, transmission device 2 is the first device, and the data transmission direction of service A and service B is from transmission device 1 to transmission device i+1, where i is a positive integer greater than 3.

[0117] Since the time slots occupied by the data of services A and B in the transmission channel are increased, the amount of data of services A and B transmitted per unit time in the transmission channel will increase. Therefore, the time slot negotiation direction is opposite to the data transmission direction, starting from the downstream channel to the upstream channel. First increase the time slots of services A and B in the downstream channel. Even if the upstream channel has not increased the time slots, the amount of data that can be transmitted by the upstream channel per unit time is less than the amount of data that can be transmitted by the downstream channel per unit time. There will be no situation where the amount of data exceeds the channel transmission capacity, and the service performance will not be affected by the time slot adjustment.

[0118] Since the first device is located downstream of the second device, after the first device successfully negotiates with the downstream transmission device 3 to increase the time slots occupied by the data of services A and B, it sends the time slot increase adjustment notification corresponding to services A and B to the first device, and the second device receives the time slot increase adjustment notification corresponding to services A and B sent by the first device, thereby determining that it can start to increase the time slots occupied by the data of services A and B. Optionally, the first device and the second device can choose to transmit the time slot increase adjustment notification when it is necessary to increase the time slot to trigger the time slot negotiation. The first device and the second device can also selectively trigger the time slot negotiation by transmitting the time slot increase adjustment notification according to the topological structure of the corresponding transmission channel. The corresponding transmission channel refers to the channel used by the first device and the second device to transmit the data of the service. For example, there are no other devices on the transmission channel corresponding to the first device and the second device, and the second device can directly negotiate with the first device to increase the time slot occupied by the data of the service without waiting for the time slot increase adjustment notification sent by the first device.

[0119] In addition, the time slot increase adjustment notification may also be carried in the overhead frame, and the first device assigns the S bit in the overhead frame to the second value, so as to carry the time slot increase adjustment notification in the overhead frame. The first device may also assign the fg client id field in the overhead frame to indicate the service corresponding to the time slot increase adjustment notification. The time slot increase adjustment notifications corresponding to different services may be one or more. For example Figure 7 In the example, the time slot increase adjustment notification corresponding to service A and service B is the same, the first device sends a time slot increase adjustment notification to the second device, and the second device determines that it can start to increase the time slots occupied by the data of service A and service B by parsing the fgclient id field in the overhead frame. In the case where the time slot negotiation notification needs to be transmitted separately before the time slot negotiation, the second device sends the time slot negotiation notification to the first device after receiving the time slot increase adjustment notification.

[0120] In the case where the time slot negotiation result indicates that the time slot occupied by the data of any service is changed, any service corresponds to two time slot request sets, namely, a request release set for requesting to release the time slot, and a request occupation set for requesting to occupy the time slot. Correspondingly, any service also corresponds to two response release sets, namely, a response release set for responding to release the time slot, and a response occupation set for responding to occupy the time slot. Optionally, the request release set corresponding to any service is sent in an order prior to the request occupation set.

[0121] Taking the request to change time slot A of service A to time slot F and the request to change time slot F of service B to time slot A as an example, the second device and the first device can choose according to Figure 8 The three transmission sequences shown negotiate service A and service B. Figure 8 In the figure, CR1 indicates the request release set corresponding to service A, CR2 indicates the request occupation set corresponding to service A, CR3 indicates the request release set corresponding to service B, CR4 indicates the request occupation set corresponding to service B, CA1 indicates the response release set corresponding to service A, CA2 indicates the response occupation set corresponding to service A, CA3 indicates the response release set corresponding to service B, and CA4 indicates the response occupation set corresponding to service B. Figure 8 The first transmission order from left to right is a process of serial negotiation according to the negotiation order of each service. The second device starts to send the next time slot request set only after receiving the time slot response set returned by the first device.

[0122] Figure 8 The second transmission order is to directly send a time slot request set of multiple services, and the first device adjusts the time slot table of each service according to the received multiple time slot request sets, and returns a time slot response set corresponding to each service. Figure 8 The third transmission order is to first negotiate the time slot release, and after the negotiation of the release of each service time slot is completed, start negotiating the time slot occupancy.

[0123] By changing the time slots occupied by data of multiple services through parallel negotiation, there is no need to use idle time slots for relocation, and time slot exchange between different services can also be achieved. Fig. 9 As shown, although the time slot F requested to be occupied by service A is occupied by the data of service B, during the negotiation of service A, the second device and the first device simultaneously negotiated service B, and service B requested to release time slot F and requested to occupy time slot A released by service A. Based on this, the first device determines that the data of service A can occupy time slot F, and the data of service B can occupy time slot A, thereby realizing the time slot exchange of service A and service B. Fig. 9In the figure, the blank circle and the shaded circle are used to distinguish the time slots occupied by service A and service B. In addition, the direction of negotiating the time slot change is consistent with the direction of data transmission, that is, the negotiation is from the upstream channel to the downstream channel.

[0124] For negotiating to reduce the time slot occupied by service data, the negotiation process is as follows: Fig.10 As shown in the figure, since reducing the time slot occupied by any service will not increase the amount of data of any service transmitted by the transmission channel per unit time, the direction of negotiation reduction is consistent with the direction of data transmission, that is, negotiation from the upstream channel to the downstream channel. By negotiating from the upstream channel, the amount of data transmitted by the upstream channel per unit time is controlled to be smaller than the amount of data transmitted by the downstream channel per unit time, thus avoiding data transmission exceeding the channel load capacity, thereby reducing the probability of packet loss.

[0125] Optionally, the negotiation type of each of the N services may be the same, for example, both service A and service B are used to request to increase the time slot occupied by data. The negotiation type of each service may also be different, for example, service A requests to increase the time slot occupied by data, and service B requests to change the time slot occupied by data.

[0126] In one possible case, during the negotiation with the first device, the second device will also count the number of time slot negotiation results obtained. When the number of counted time slot negotiation results is the same as the number of services, it is determined that the time slot negotiation results of N services have been obtained, thereby determining that the negotiation of N services is completed.

[0127] S302: The second device sends a time slot validation notification to the first device, where the time slot validation notification indicates that the time slot negotiation results of N services are effective.

[0128] After determining that the time slot negotiation of the N services is completed, the second device sends a time slot validity notification to the first device. In one possible case, the time slot validity notification is carried in at least one of the flag field, RES field, or negotiation field in the overhead frame. The second device obtains the time slot validity notification by assigning the C bit in the overhead frame, and sends the time slot validity notification to the first device. For example Figure 4 , Figure 7 , Figure 8 and Fig.10 As shown, C in the figure represents a time slot validity notification. The second device sends a time slot validity notification to the first device, indicating that the time slot negotiation results of N services are valid.

[0129] Optionally, the second device may also carry indication information of N services in the time slot effective notification, thereby identifying the effective time slot negotiation result as N service negotiations. That is, the flag field in the time slot effective notification may be 0b10 or 0b01, or the RES field before the CRC field may be 1 or M. In some cases, the time slot effective notification may also include a service identifier of each service, and the service identifier may be fg client id. For a detailed description, please refer to the description of the time slot negotiation notification in S301, which will not be repeated here.

[0130] S303: The first device receives a time slot validation notification sent by the second device, where the time slot validation notification indicates that the time slot negotiation results of N services are effective.

[0131] The first device parses the received time slot effective notification, thereby determining that the time slot negotiation results of N services are effective. Since the first device received the time slot negotiation notification indicating the negotiation of N services sent by the second device before starting the negotiation, the first device can determine that the negotiation is effective through a time slot effective notification. Therefore, after receiving the time slot effective notification, the first device determines that the time slot effective notification indicates that the time slot negotiation results of N services are effective. For example, the first device reads the fg client id field in the overhead frame carrying the time slot effective notification to determine the N services that are effective.

[0132] The first device determines that the time slot negotiation results of N services are effective, and the data of N services can be transmitted subsequently according to the time slot negotiation results. For example, the second device sends an fg-BU to the first device, and the second device determines, based on the adjusted time slot table, that time slot A in the received fg-BU carries data for service B, and time slots B, C, and D carry data for service A. The second device thus obtains data for service B and service A, and transmits data for service A and service B.

[0133] In summary, in the time slot negotiation method provided by the embodiment of the present application, after the first device negotiates the time slots occupied by the data of N services, it sends a time slot effectiveness notification, so that the time slot negotiation results of the N services are effective at the same time, thereby adjusting the time slots occupied by the data of the N services in parallel, and the negotiation time is short and the efficiency is high. In addition, since the time slot negotiation of the N services is performed simultaneously, different services do not need to borrow idle time slots for maneuvering, and time slots can be exchanged. The time slot exchange process is simple. Even if there are no idle time slots in the transmission channel, time slot exchanges between different services can be achieved, and the applicability is stronger. By extending the meaning of the original fields in the overhead frame, N service negotiations can be achieved without changing the structure of the overhead frame. The implementation method is simple and the implementation cost is low.

[0134] The above introduces the time slot negotiation method of the embodiment of the present application. Corresponding to the above method, the embodiment of the present application also provides a time slot negotiation device. Fig.11 Schematic diagram of the structure of a time slot negotiation device provided in an embodiment of the present application. Fig.11 As shown in the following multiple modules, the Fig.11 The time slot negotiation device shown can perform the above Figure 3 All or part of the operations involved in the second device shown. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown, and the embodiments of the present application are not limited to this. Fig.11 As shown, the device is applied to a second device, and the device includes:

[0135] An acquisition module 1101 is used to obtain time slot negotiation results of N services, where the time slot negotiation results are obtained through negotiation with the first device. The time slot negotiation result of any service indicates the time slot occupied by transmitting data of any service, where N is an integer greater than or equal to 2. A sending module 1102 is used to send a time slot effectiveness notification to the first device, where the time slot effectiveness notification indicates that the time slot negotiation results of multiple services are effective.

[0136] In a possible implementation, the acquisition module 1101 is configured to negotiate with the first device respectively according to the negotiation order of each service in the N services to obtain a time slot negotiation result for each service.

[0137] In one possible implementation, the acquisition module 1101 is used to send N time slot request sets to the first device, the N time slot request sets corresponding one-to-one to N services, one time slot request set including at least one time slot negotiation request, and one time slot request set is used to negotiate with the first device about the time slot occupied by the data of a service; receive the time slot response sets corresponding to the N services returned by the first device based on the N time slot request sets, one time slot response set including at least one time slot negotiation response; determine the time slot negotiation results of the N services based on the time slot response sets corresponding to the N services.

[0138] In a possible implementation, the sending module 1102 is further configured to send a time slot negotiation notification to the first device, where the time slot negotiation notification indicates starting to negotiate the time slots occupied by data of N services.

[0139] In a possible implementation manner, the time slot negotiation notification is carried in at least one of a flag field, a reserved RES field, or a negotiation field in an overhead frame.

[0140] In a possible implementation, the RES field is assigned a first value, which is used to determine the number of services or time slots that need to be negotiated, where the number of time slots is the total number of time slots that need to be adjusted or the number of time slots that need to be adjusted for the services corresponding to the overhead frame.

[0141] In a possible implementation manner, the time slot validity notification is carried in at least one of a flag field, a reserved RES field, or a negotiation field in an overhead frame.

[0142] In a possible implementation, the time slot negotiation result of any service among the N services indicates that the time slot occupied by the data of any service is increased, or the time slot occupied by the data of any service is reduced, or the time slot occupied by the data of any service is replaced.

[0143] In one possible implementation, the time slot negotiation result of any service among N services indicates the time slot occupied by the data of any service. The device also includes: a receiving module, which is used to receive a time slot increase adjustment notification corresponding to any service sent by the first device, and the time slot increase adjustment notification indicates that negotiation with the first device is allowed to increase the time slot occupied by the data of any service.

[0144] After negotiating the time slots occupied by the data of N services, the above device sends a time slot validity notification, so that the time slot negotiation results of the N services are simultaneously effective, thereby adjusting the time slots occupied by the data of the N services in parallel, with short negotiation time and high efficiency.

[0145] Fig.12 Schematic diagram of another time slot negotiation device provided in an embodiment of the present application. Fig.12 As shown in the following multiple modules, the Fig.12 The time slot negotiation device shown can perform the above Figure 3 All or part of the operations involved in the first device shown. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown, and the embodiments of the present application are not limited to this. Fig.12 As shown, the device is applied to a first device, and the device includes:

[0146] The acquisition module 1201 is used to obtain the time slot negotiation results of N services, where the time slot negotiation results are obtained through negotiation with the second device. The time slot negotiation result of any service indicates the time slot occupied by transmitting the data of any service, where N is an integer greater than or equal to 2. The receiving module 1202 is used to receive the time slot effectiveness notification sent by the second device, where the time slot effectiveness notification indicates that the time slot negotiation results of N services are effective.

[0147] In a possible implementation, the acquisition module 1201 is configured to respectively acquire the time slot negotiation result of each service obtained by negotiation with the second device according to the negotiation order of each service among the N services.

[0148] In one possible implementation, the acquisition module 1201 is used to receive N time slot request sets sent by the second device, the N time slot request sets correspond one-to-one to N services, a time slot request set includes at least one time slot negotiation request, and a time slot request set is used to negotiate the time slot occupied by the data of a service; according to the received N time slot request sets, the time slot table of each service in the N services is adjusted, and the time slot negotiation result of the N services is determined according to the adjustment result of the time slot table, and the time slot table of a service indicates the time slot occupied by the data of a service.

[0149] In a possible implementation, the acquisition module 1201 is configured to determine a time slot adjustment strategy for each service according to N time slot request sets; and adjust a time slot table for each service according to the time slot adjustment strategy for each service.

[0150] In a possible implementation, the apparatus further includes: a first sending module, configured to send a time slot response set corresponding to N services to the second device according to the adjustment result of the time slot table of each service, wherein the time slot response set corresponding to the N services indicates whether the negotiation is successful.

[0151] In a possible implementation, the receiving module 1202 is further configured to receive a time slot negotiation notification sent by the second device, where the time slot negotiation notification indicates starting to negotiate the time slots occupied by data of N services.

[0152] In a possible implementation manner, the time slot negotiation notification is carried in at least one of a flag field, a reserved RES field, or a negotiation field in an overhead frame.

[0153] In a possible implementation, the RES field is assigned a first value, which is used to determine the number of services or time slots that need to be negotiated, where the number of time slots is the total number of time slots that need to be adjusted or the number of time slots that need to be adjusted for the services corresponding to the overhead frame.

[0154] In a possible implementation manner, the time slot validity notification is carried in at least one of a flag field, a reserved RES field, or a negotiation field in an overhead frame.

[0155] In a possible implementation, the time slot negotiation result of any service among the N services indicates that the time slot occupied by the data of any service is increased, or the time slot occupied by the data of any service is reduced, or the time slot occupied by the data of any service is replaced.

[0156] In one possible implementation, the time slot negotiation result of any service among N services indicates the time slot occupied by the data of any service. The device also includes: a second sending module, used to send a time slot increase adjustment notification corresponding to any service to the second device, and the time slot increase adjustment notification indicates that the second device is allowed to negotiate to increase the time slot occupied by the data of any service.

[0157] After negotiating the time slots occupied by the data of N services, the above device receives a time slot validity notification, so that the time slot negotiation results of the N services are simultaneously effective, thereby adjusting the time slots occupied by the data of the N services in parallel, with short negotiation time and high efficiency.

[0158] It should be understood that the above Fig.11 and Fig.12 When the device provided realizes its functions, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0159] See also Fig.13 , Fig.13 A schematic diagram of the structure of a network device 1300 provided by an exemplary embodiment of the present application is shown. Fig.13 The network device 1300 shown is used to perform the above Figure 3 The operations involved in the time slot negotiation method shown. The network device 1300 is, for example, a switch, a router, etc. The network device 1300 can be implemented by a general bus architecture.

[0160] like Fig.13 As shown, the network device 1300 includes at least one processor 1301 , a memory 1303 , and at least one communication interface 1304 .

[0161] Processor 1301 is, for example, a general-purpose central processing unit (CPU), a digital signal processor (DSP), a network processor (NP), a graphics processing unit (GPU), a neural-network processing units (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits for implementing the solution of the present application. For example, processor 1301 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. It can implement or execute various logic blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of the present application. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0162] Optionally, the network device 1300 further includes a bus. The bus is used to transmit information between the components of the network device 1300. The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.13 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0163] The memory 1303 is, for example, a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1303 is, for example, independent and connected to the processor 1301 through a bus. The memory 1303 can also be integrated with the processor 1301.

[0164] The communication interface 1304 uses any transceiver-like device for communicating with other devices or communication networks, and the communication network can be Ethernet, a radio access network (RAN) or a wireless local area network (WLAN), etc. The communication interface 1304 may include a wired communication interface and may also include a wireless communication interface. Specifically, the communication interface 1304 may be an Ethernet interface, a fast Ethernet (FE) interface, a gigabit Ethernet (GE) interface, an asynchronous transfer mode (ATM) interface, a wireless local area network (WLAN) interface, a cellular network communication interface or a combination thereof. The Ethernet interface may be an optical interface, an electrical interface or a combination thereof. In an embodiment of the present application, the communication interface 1304 may be used for the network device 1300 to communicate with other devices.

[0165] In a specific implementation, as an embodiment, the processor 1301 may include one or more CPUs, such as Fig.13 0 and CPU1 shown in FIG. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0166] In a specific implementation, as an embodiment, the network device 1300 may include multiple processors, such as Fig.13 1301 and 1305 are shown in FIG. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0167] In a specific implementation, as an embodiment, the network device 1300 may also include an output device and an input device. The output device communicates with the processor 1301 and can display information in a variety of ways. For example, the output device may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device communicates with the processor 1301 and can receive user input in a variety of ways. For example, the input device may be a mouse, a keyboard, a touch screen device, or a sensor device.

[0168] In some embodiments, the memory 1303 is used to store the program code 1310 for executing the solution of the present application, and the processor 1301 can execute the program code 1310 stored in the memory 1303. That is, the network device 1300 can implement the time slot negotiation method provided by the method embodiment through the processor 1301 and the program code 1310 in the memory 1303. The program code 1310 may include one or more software modules. Optionally, the processor 1301 itself can also store the program code or instruction for executing the solution of the present application.

[0169] In a specific embodiment, the network device 1300 in the embodiment of the present application may correspond to the first device or the second device in the above-mentioned each method embodiment.

[0170] in, Figure 3Each step of the time slot negotiation method shown is completed by an integrated logic circuit of hardware or software instructions in the processor of the network device 1300. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0171] Fig.14 It is a structural diagram of another network device provided in an embodiment of the present application. The network device is, for example, a server. The server may have relatively large differences due to different configurations or performances. It may include one or more processors 1401 and one or more memories 1402, wherein the one or more memories 1402 store at least one computer program, and the at least one computer program is loaded and executed by the one or more processors 1401, so that the server implements the time slot negotiation method provided in the above-mentioned various method embodiments. The processor 1401 is, for example, a central processing unit (CPU). Of course, the network device may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The network device may also include other components for implementing device functions, which will not be repeated here.

[0172] The embodiment of the present application also provides a communication device, which includes: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the processor executes the time slot negotiation method.

[0173] It should be understood that the processor may be a CPU, or other general-purpose processors, DSPs, ASICs, FPGAs or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting an advanced RISC machines (ARM) architecture.

[0174] Further, in an optional embodiment, the memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. The memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0175] The memory may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory. Among them, the nonvolatile memory may be a ROM, a programmable read-only memory (programmable ROM, PROM), an erasable programmable read-only memory (erasable PROM, EPROM), an EEPROM or a flash memory. The volatile memory may be a RAM, which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (static RAM, SRAM), dynamic random access memory (dynamic random access memory, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (synchlink DRAM, SLDRAM) and direct memory bus random access memory (direct rambus RAM, DR RAM).

[0176] An embodiment of the present application also provides a time slot negotiation device, which includes a processor, and the processor is used to load and execute at least one instruction so that the time slot negotiation device implements any of the time slot negotiation methods described above.

[0177] In a possible implementation, the time slot negotiation device further includes a memory, which is coupled to the processor, and stores at least one instruction.

[0178] An embodiment of the present application further provides a computer-readable storage medium, in which at least one instruction is stored. The instruction is loaded and executed by a processor so that a computer implements any of the time slot negotiation methods described above.

[0179] The embodiments of the present application also provide a computer program (product), which, when executed by a computer, can enable a processor or a computer to execute the corresponding steps and / or processes in the above method embodiments.

[0180] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in a memory from the memory, so that a communication device equipped with the chip executes any of the time slot negotiation methods described above.

[0181] An embodiment of the present application also provides another chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute any of the time slot negotiation methods described above.

[0182] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in this application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk), etc.

[0183] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. For example, the time slot negotiation results involved in this application are all obtained with full authorization.

[0184] Those of ordinary skill in the art will appreciate that, in conjunction with the various method steps and modules described in the embodiments disclosed herein, they can be implemented in software, hardware, firmware, or any combination thereof. In order to clearly illustrate the interchangeability of hardware and software, the steps and components of each embodiment have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0185] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0186] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. As an example, the method of the embodiment of the present application can be described in the context of a machine executable instruction, and the machine executable instruction is such as included in the program module executed in the device on the real or virtual processor of the target. Generally speaking, a program module includes a routine, a program, a library, an object, a class, a component, a data structure, etc., which performs a specific task or realizes a specific abstract data structure. In various embodiments, the function of the program module can be merged or divided between the described program modules. The machine executable instruction for the program module can be executed in a local or distributed device. In a distributed device, the program module can be located in both a local and a remote storage medium.

[0187] The computer program code for implementing the method of the embodiment of the present application can be written in one or more programming languages. These computer program codes can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable time slot negotiation device, so that when the program code is executed by the computer or other programmable time slot negotiation device, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the computer, partially on the computer, as an independent software package, partially on the computer and partially on a remote computer, or entirely on a remote computer or server.

[0188] In the context of the embodiments of the present application, computer program codes or related data may be carried by any appropriate carrier to enable a device, apparatus or processor to perform the various processes and operations described above. Examples of carriers include signals, computer readable media, and the like.

[0189] Examples of signals may include electrical, optical, radio, acoustic or other forms of propagated signals, such as carrier waves, infrared signals, etc.

[0190] A machine-readable medium may be any tangible medium that contains or stores a program for or related to an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. More detailed examples of machine-readable storage media include an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0191] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0192] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, or it can be an electrical, mechanical or other form of connection.

[0193] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0194] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0195] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0196] In the present application, the terms "first", "second", etc. are used to distinguish between identical or similar items having substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there a limitation on quantity and execution order. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of the various described examples, a first image may be referred to as a second image, and similarly, a second image may be referred to as a first image. Both the first image and the second image may be images, and in some cases, may be separate and different images.

[0197] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0198] The term "at least one" in this application means one or more, and the term "multiple" in this application means two or more, for example, multiple second messages means two or more second messages. The terms "system" and "network" are often used interchangeably herein.

[0199] It should be understood that the terms used in the description of the various examples herein are only for describing specific examples and are not intended to be limiting. As used in the description of the various examples and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0200] It should also be understood that the term "and / or" used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The term "and / or" is a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.

[0201] It should also be understood that the term “comprise” (also known as “includes,” “including,” “comprises” and / or “comprising”) when used in this specification specifies the presence of stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0202] It should also be understood that the terms "if" and "if" may be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting." Similarly, the phrases "if it is determined that ..." or "if [a stated condition or event] is detected" may be interpreted to mean "upon determining that ..." or "in response to determining that ..." or "upon detecting [a stated condition or event]" or "in response to detecting [a stated condition or event]," depending on the context.

[0203] It should be understood that determining B based on A does not mean determining B only based on A. B can also be determined based on A and / or other information.

[0204] It should also be understood that the references to "one embodiment", "an embodiment", or "a possible implementation" throughout the specification mean that specific features, structures, or characteristics related to the embodiment or implementation are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment", or "a possible implementation" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

Claims

1. A time slot negotiation method, characterized in that: The method comprises: Obtaining time slot negotiation results of N services, where the time slot negotiation results are obtained through negotiation with the first device, the time slot negotiation result of any service indicates a time slot occupied by transmitting data of the any service, and N is an integer greater than or equal to 2; A time slot validation notification is sent to the first device, where the time slot validation notification indicates that the time slot negotiation results of the multiple services are effective.

2. The method according to claim 1, characterized in that The obtaining of the time slot negotiation results of the N services includes: According to the negotiation order of each service in the N services, the first device is negotiated respectively to obtain the time slot negotiation result of each service.

3. The method according to claim 1 or 2, characterized in that: The obtaining of the time slot negotiation results of the N services includes: Sending N time slot request sets to the first device, where the N time slot request sets correspond one-to-one to the N services, one time slot request set includes at least one time slot negotiation request, and the one time slot request set is used to negotiate with the first device a time slot occupied by data of a service; receiving a time slot response set corresponding to the N services returned by the first device according to the N time slot request sets, where one time slot response set includes at least one time slot negotiation response; The time slot negotiation results of the N services are determined according to the time slot response sets corresponding to the N services.

4. The method according to any one of claims 1 to 3, characterized in that: Before obtaining the time slot negotiation results of the N services, the method further includes: A time slot negotiation notification is sent to the first device, where the time slot negotiation notification indicates starting to negotiate time slots occupied by data of the N services.

5. The method according to claim 4, characterized in that The time slot negotiation notification is carried in at least one of a flag field, a reserved RES field or a negotiation field in an overhead frame.

6. The method according to claim 5, characterized in that The RES field is assigned a first value, which is used to determine the number of services or time slots that need to be negotiated. The number of time slots is the total number of time slots that need to be adjusted or the number of time slots that need to be adjusted for the service corresponding to the overhead frame.

7. The method according to any one of claims 1 to 6, characterized in that: The time slot validity notification is carried in at least one of a flag field, a reserved RES field or a negotiation field in an overhead frame.

8. The method according to any one of claims 1 to 7, characterized in that: The time slot negotiation result of any service among the N services indicates that the time slot occupied by the data of the any service is increased, or the time slot occupied by the data of the any service is reduced, or the time slot occupied by the data of the any service is replaced.

9. A time slot negotiation method, characterized in that: The method comprises: Obtaining time slot negotiation results of N services, where the time slot negotiation results are obtained through negotiation with the second device, the time slot negotiation result of any service indicates a time slot occupied by transmitting data of the any service, and N is an integer greater than or equal to 2; A time slot validation notification sent by the second device is received, where the time slot validation notification indicates that the time slot negotiation results of the N services are effective.

10. The method according to claim 9, characterized in that The obtaining of the time slot negotiation results of the N services includes: The time slot negotiation results of each service in the N services are respectively obtained by negotiating with the second device according to the negotiation order of each service.

11. The method according to claim 9 or 10, characterized in that: The obtaining of the time slot negotiation results of the N services includes: Receiving N time slot request sets sent by the second device, the N time slot request sets corresponding one-to-one to the N services, one time slot request set including at least one time slot negotiation request, and the one time slot request set being used to negotiate a time slot occupied by data of one service; According to the received N time slot request sets, the time slot table of each of the N services is adjusted, and the time slot negotiation result of the N services is determined according to the adjustment result of the time slot table. The time slot table of a service indicates the time slot occupied by the data of the service.

12. The method according to claim 11, characterized in that The adjusting the time slot table of each service in the N services according to the received N time slot request sets includes: Determining a time slot adjustment strategy for each of the services according to the N time slot request sets; The time slot table of each service is adjusted according to the time slot adjustment strategy of each service.

13. The method according to claim 11 or 12, characterized in that: After adjusting the time slot table of each service in the N services, the method further includes: A time slot response set corresponding to the N services is sent to the second device according to the adjustment result of the time slot table of each service, and the time slot response set corresponding to the N services indicates whether the negotiation is successful.

14. The method according to any one of claims 9 to 13, characterized in that: Before obtaining the time slot negotiation results of the N services, the method further includes: A time slot negotiation notification sent by the second device is received, where the time slot negotiation notification indicates starting to negotiate time slots occupied by data of the N services.

15. The method according to claim 14, characterized in that The time slot negotiation notification is carried in at least one of a flag field, a reserved RES field or a negotiation field in an overhead frame.

16. The method according to claim 15, characterized in that The RES field is assigned a first value, which is used to determine the number of services or time slots that need to be negotiated. The number of time slots is the total number of time slots that need to be adjusted or the number of time slots that need to be adjusted for the service corresponding to the overhead frame.

17. The method according to any one of claims 9 to 16, characterized in that: The time slot validity notification is carried in at least one of a flag field, a reserved RES field or a negotiation field in an overhead frame.

18. The method according to any one of claims 9 to 17, characterized in that: The time slot negotiation result of any service among the N services indicates that the time slot occupied by the data of the any service is increased, or the time slot occupied by the data of the any service is reduced, or the time slot occupied by the data of the any service is replaced.

19. A time slot negotiation device, characterized in that: The device comprises: An acquisition module, configured to acquire time slot negotiation results of N services, wherein the time slot negotiation results are obtained through negotiation with the first device, the time slot negotiation result of any service indicates a time slot occupied by transmitting data of the any service, and N is an integer greater than or equal to 2; The sending module is used to send a time slot validity notification to the first device, where the time slot validity notification indicates that the time slot negotiation results of the multiple services are effective.

20. The device according to claim 19, characterized in that The acquisition module is used to negotiate with the first device respectively according to the negotiation order of each service in the N services to obtain the time slot negotiation result of each service.

21. The device according to claim 19 or 20, characterized in that The acquisition module is used to send N time slot request sets to the first device, the N time slot request sets corresponding to the N services one-to-one, one time slot request set including at least one time slot negotiation request, and the one time slot request set is used to negotiate with the first device the time slot occupied by the data of a service; receive the time slot response set corresponding to the N services returned by the first device according to the N time slot request sets, one time slot response set including at least one time slot negotiation response; determine the time slot negotiation result of the N services according to the time slot response set corresponding to the N services.

22. The device according to any one of claims 19 to 21, characterized in that: The sending module is further used to send a time slot negotiation notification to the first device, where the time slot negotiation notification indicates starting to negotiate the time slots occupied by the data of the N services.

23. The device according to claim 22, characterized in that The time slot negotiation notification is carried in at least one of a flag field, a reserved RES field or a negotiation field in an overhead frame.

24. The device according to claim 23, characterized in that The RES field is assigned a first value, which is used to determine the number of services or time slots that need to be negotiated. The number of time slots is the total number of time slots that need to be adjusted or the number of time slots that need to be adjusted for the service corresponding to the overhead frame.

25. The device according to any one of claims 19 to 24, characterized in that: The time slot validity notification is carried in at least one of a flag field, a reserved RES field or a negotiation field in an overhead frame.

26. The device according to any one of claims 19 to 25, characterized in that: The time slot negotiation result of any service among the N services indicates that the time slot occupied by the data of the any service is increased, or the time slot occupied by the data of the any service is reduced, or the time slot occupied by the data of the any service is replaced.

27. A time slot negotiation device, characterized in that: The device comprises: An acquisition module, configured to acquire time slot negotiation results of N services, wherein the time slot negotiation results are obtained through negotiation with the second device, the time slot negotiation result of any service indicates a time slot occupied by transmitting data of the any service, and N is an integer greater than or equal to 2; The receiving module is used to receive a time slot validity notification sent by the second device, where the time slot validity notification indicates that the time slot negotiation results of the N services are effective.

28. The device according to claim 27, characterized in that The acquisition module is used to respectively acquire the time slot negotiation results of each service negotiated with the second device according to the negotiation order of each service in the N services.

29. The device according to claim 27 or 28, characterized in that The acquisition module is used to receive N time slot request sets sent by the second device, the N time slot request sets corresponding one-to-one to the N services, one time slot request set including at least one time slot negotiation request, and the one time slot request set is used to negotiate the time slot occupied by the data of one service; according to the received N time slot request sets, adjust the time slot table of each service in the N services, determine the time slot negotiation result of the N services according to the adjustment result of the time slot table, and the time slot table of one service indicates the time slot occupied by the data of the one service.

30. The device according to claim 29, characterized in that The acquisition module is used to determine the time slot adjustment strategy of each service according to the N time slot request sets; and adjust the time slot table of each service according to the time slot adjustment strategy of each service.

31. The device according to claim 29 or 30, characterized in that The apparatus further includes: a first sending module, configured to send a time slot response set corresponding to the N services to the second device according to the adjustment result of the time slot table of each service, wherein the time slot response set corresponding to the N services indicates whether the negotiation is successful.

32. The device according to any one of claims 27 to 31, characterized in that: The receiving module is further used to receive a time slot negotiation notification sent by the second device, where the time slot negotiation notification indicates starting to negotiate the time slots occupied by the data of the N services.

33. The device according to claim 32, characterized in that The time slot negotiation notification is carried in at least one of a flag field, a reserved RES field or a negotiation field in an overhead frame.

34. The device according to claim 33, characterized in that The RES field is assigned a first value, which is used to determine the number of services or time slots that need to be negotiated. The number of time slots is the total number of time slots that need to be adjusted or the number of time slots that need to be adjusted for the service corresponding to the overhead frame.

35. The device according to any one of claims 27 to 34, characterized in that: The time slot validity notification is carried in at least one of a flag field, a reserved RES field or a negotiation field in an overhead frame.

36. The device according to any one of claims 27 to 35, characterized in that: The time slot negotiation result of any service among the N services indicates that the time slot occupied by the data of the any service is increased, or the time slot occupied by the data of the any service is reduced, or the time slot occupied by the data of the any service is replaced.

37. A time slot negotiation device, characterized in that: The device includes a processor, and the processor is used to load and execute at least one instruction so that the time slot negotiation device implements the time slot negotiation method described in any one of claims 1-8, or implements the time slot negotiation method described in any one of claims 9-18.

38. The device according to claim 37, characterized in that The device further includes a memory, which is coupled to the processor and stores at least one instruction.

39. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one instruction, which is loaded and executed by the processor to implement the time slot negotiation method as described in any one of claims 1-8, or to implement the time slot negotiation method as described in any one of claims 9-18.