CN113824525A - Resource allocation method and device and readable storage medium - Google Patents

Resource allocation method and device and readable storage medium Download PDF

Info

Publication number
CN113824525A
CN113824525A CN202010568952.9A CN202010568952A CN113824525A CN 113824525 A CN113824525 A CN 113824525A CN 202010568952 A CN202010568952 A CN 202010568952A CN 113824525 A CN113824525 A CN 113824525A
Authority
CN
China
Prior art keywords
time domain
service
domain resources
domain resource
configuration table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010568952.9A
Other languages
Chinese (zh)
Inventor
杨春生
朱志刚
钟其文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010568952.9A priority Critical patent/CN113824525A/en
Publication of CN113824525A publication Critical patent/CN113824525A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/16Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A resource allocation method, a device and a readable storage medium are used for allocating time domain resources for services. In the embodiment of the application, the first device determines that the number of time domain resources occupied by the first service needs to be adjusted. When the number of the time domain resources occupied by the first service needs to be increased, the first device allocates the time domain resources in the time domain resources currently in the idle state to the first service. When the number of the time domain resources occupied by the first service needs to be reduced, the first device releases the time domain resources in the time domain resources currently occupied by the first service. Therefore, when the time domain resource occupied by the first service is adjusted, the change of the corresponding relation between other services and the time domain resource caused by the change of the time domain resource occupied by the first service can be avoided, and the jitter caused by the change of the time domain resource corresponding to other services can be reduced.

Description

Resource allocation method and device and readable storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a resource allocation method, an apparatus, and a readable storage medium.
Background
Standards related to the 802.3 standard ethernet (StdE) defined by the 802.3 working group under the Institute of Electrical and Electronics Engineers (IEEE) are widely cited in the industry. Standard ethernet is very popular with manufacturers because of its simplicity of principle, ease of implementation, and low cost. However, as the technology develops, the bandwidth granularity becomes larger and larger, and the deviation of the port of the standard ethernet network from the actual application requirement also becomes larger and larger. One situation that is likely to occur is: the bandwidth required by the mainstream application does not belong to any existing ethernet standard rate, such as: the resource waste exists if the service of 50Gb/s is carried by a 100GE port, and the service of 200Gb/s can not be carried by corresponding Ethernet standard granules at present.
To address this challenge, flexible ethernet (FlexE) technology is released by the Optical Internet Forum (OIF), which is a general technology supporting multiple ethernet MAC layer rates. A plurality of 100GE (Physical, PHYs) ports are bound, and each 100GE port is divided into 20 time slots by taking 5G as a grain in the time domain.
The FlexE divides time slot resources in a Time Division Multiplexing (TDM) mode, so that the hard isolation of transmission pipeline bandwidth is realized, one service data stream can be allocated to one or more time slot resources, and the matching of various rate services is realized. There is a need for a resource allocation scheme for allocating corresponding time domain resources for a service.
Disclosure of Invention
The embodiment of the application provides a resource allocation method, a resource allocation device and a storage medium, which are used for allocating time domain resources for services.
In a first aspect, an embodiment of the present application provides a resource allocation method, where a first device determines that an amount of a time domain resource occupied by a first service needs to be adjusted. When the number of the time domain resources occupied by the first service needs to be increased, the first device allocates the time domain resources in the time domain resources currently in the idle state to the first service. Therefore, when the allocated time domain resource needs to be added to the first service, since the idle time domain resource is allocated to the first service, the secondary time domain resource adjustment does not affect the relationship between other services and the time domain resource, that is, the corresponding relationship between other services and the time domain resource is not changed, so that the effect of protecting other services from the influence of the bandwidth adjustment of the first service can be achieved.
On the other hand, when the number of the time domain resources occupied by the first service needs to be reduced, the first device releases the time domain resources in the time domain resources currently occupied by the first service. Thus, when the time domain resource allocated to the first service needs to be reduced, the time domain resource already allocated to the first service is released partially or completely, so that the secondary time domain resource adjustment does not affect the relationship between other services and the time domain resource, that is, the corresponding relationship between other services and the time domain resource is not changed, and the effect of protecting other services from the influence of the bandwidth adjustment of the first service can be achieved.
In a possible embodiment, since the first device side maintains the first time domain resource allocation table, the first time domain resource allocation table is used for storing the correspondence between the time domain resources and the services. Based on this, when the number of the time domain resources occupied by the first service needs to be increased, the first device allocates the time domain resources in the time domain resources currently in the idle state to the first service, including: when the number of the time domain resources occupied by the first service to be added is P1, where P1 is a positive integer, the first device determines the time domain resources currently in an idle state according to the first time domain resource configuration table. The first device determines P1 first time domain resources from the time domain resources currently in the idle state according to a preset algorithm. The first device adds the corresponding relationship between the P1 first time domain resources and the first service in the first time domain resource allocation table to obtain a second time domain resource allocation table. Therefore, the effect of adjusting the corresponding relation between the time domain resources and the service can be achieved by adjusting the time domain resource configuration table, and the time domain resources in the idle state can be determined from the first time domain resource configuration table more conveniently and rapidly.
In a possible embodiment, when the amount of time domain resources occupied by the first service needs to be reduced, the first apparatus releases time domain resources of the time domain resources currently occupied by the first service, including: when the number of the time domain resources occupied by the first service to be reduced is P2, where P2 is a positive integer, the first device determines the time domain resources currently occupied by the first service according to the first time domain resource allocation table. And the first device determines P2 second time domain resources from the time domain resources currently occupied by the first service according to a preset algorithm. The first device deletes the corresponding relationship between the P2 second time domain resources and the first service in the first time domain resource allocation table to obtain a second time domain resource allocation table. Therefore, the effect of adjusting the corresponding relation between the time domain resources and the services can be achieved by adjusting the time domain resource configuration table, and the time domain resources which are currently allocated for the first service can be determined from the first time domain resource configuration table more conveniently.
To provide flexibility of the scheme, in a possible embodiment, when the amount of time domain resources occupied by the first service to be reduced is P2, where P2 is a positive integer, the first device determines, according to the first time domain resource configuration table, the amount of time domain resources currently occupied by the first service, K1, and K1 is a positive integer no less than P2. And the first device determines (K1-P2) third time domain resources from the time domain resources currently occupied by the first service according to a preset algorithm. The first device deletes the correspondence between the K1 time domain resources currently occupied by the first service and the first service in the first time domain resource allocation table, and adds the correspondence between the (K1-P2) third time domain resources and the first service to obtain a second time domain resource allocation table.
In one possible embodiment, the determining, by the first device, an amount of time domain resources occupied by the first service to be adjusted includes: the first device determines the number of time domain resources K1 occupied by the first service according to the first time domain resource allocation table. The first device determines the amount of time domain resources K2 that need to be occupied after the first traffic adaptation. When the K1 is smaller than the K2, the first device determines that the amount of time domain resources occupied by the first service needs to be increased. When the K1 is greater than the K2, the first device determines that the amount of time domain resources occupied by the first service needs to be reduced. Therefore, whether the time domain resources need to be newly added or reduced for the first service can be determined by comparing the number of the time domain resources occupied before and after the first service.
In a possible embodiment, after the first apparatus determines that the amount of the time domain resource occupied by the first service needs to be adjusted, the method further includes: the first device sends M first requests to a second device, wherein M is a positive integer; the M first requests carry: and indicating information for indicating the number of time domain resources that each service of the K services needs to occupy after being adjusted, where K is a positive integer, and the first service is one service of the K services. Thus, the second device may determine, through the M first requests, the number of time domain resources that each service of the K services needs to occupy after being adjusted, so that the second device performs corresponding adjustment, thereby achieving the effect of synchronizing the time domain resource configuration conditions of the first device side and the second device side.
In a possible embodiment, each of the M first requests further carries: and indication information for indicating whether the current first request is the last request in the M first requests. In this way, when the time domain resource is adjusted for the bulk service, whether the sending of the batch of first requests is completed can be indicated by the indication information.
In a possible embodiment, the M first requests further carry: and indication information for indicating that the time domain resource is increased or decreased for each of the K services. The indication information may be referred to as operation information. Taking the operation information of the first service as an example, in one possible embodiment, the operation information may include three types: newly adding a first service; adjusting the bandwidth of the first service; the first service is deleted. When the operation information is the newly added first service, it indicates that the first service is a newly added service, and currently, a time domain resource has not been allocated to the first service, or a time domain resource has not been allocated to the first service according to a first time domain resource allocation table at the first device side. When the operation information is to adjust the bandwidth of the first service, two situations may be included, namely, increasing the time domain resource for the first service and decreasing the time domain resource allocated to the first service. When the operation information is to delete the first service, it means that all time domain resources currently allocated to the first service need to be released. By the embodiment, the effect of synchronizing the time domain resource allocation information of the first device and the second device by means of transmitting the operation information and the service parameters can be achieved. The service parameter may refer to: the method is used for indicating the number of time domain resources occupied by each adjusted service in the K services. Compared with the implementation mode that the first device transmits the whole time domain resource configuration table to the second device to achieve the synchronization effect, the implementation mode has the advantages that the first device only transmits the operation information and the service parameters to the second device, the data transmission amount is small, and therefore the network load can be reduced.
In a possible embodiment, M is 1, and after the first device sends M first requests to the second device, the method further includes: the first device receives a first response from the second device, where the first response carries indication information indicating an amount of time domain resources that each of the K services needs to occupy after being adjusted, and the first response is sent by the second device after receiving the M first requests. The first device sends a first message to the second device, where the first message carries indication information for indicating the number of time domain resources that each service of the K services needs to occupy after adjustment. The first message is used for indicating that: and the first device transmits the service according to the second time domain resource configuration table from the preset data unit in the transmitted data stream. In this way, the first device can determine, from the information carried in the first reply, whether the second device correctly received the parameters in the first request. On the other hand, the two parties can also be notified by the first message to start from the preset unit and jointly transmit the service by using the updated time domain resource configuration table.
In a possible embodiment, M is greater than 1, and after the first device sends M first requests to the second device, the method further includes: the first device receives a first response from the second device, wherein the first response comprises first indication information which is used for indicating the check value corresponding to the M first requests; the first reply is sent by the second device after receiving the first request. The first device generates a check value according to the M first requests. When the check value generated by the first device is matched with the check value carried in the first response, the first device sends a first message to the second device, wherein the first message comprises the first indication information; the first message is used for indicating that: and the first device transmits the service according to the second time domain resource configuration table from the preset data unit in the transmitted data stream. And the first device transmits the service according to the second time domain resource configuration table from a preset data unit in the transmitted data stream. In the embodiment of the corresponding relationship between the batch processing service and the time domain resource, the information carried in the first request may be more, so that the verification of both parties is realized by sending the verification value, the data volume required to be transmitted by both parties can be reduced, and the network load is reduced.
In a possible embodiment, after the first apparatus starts from a preset data unit in a transmitted data stream and transmits a service according to the second time domain resource configuration table, the method further includes: the first device sending a second message to the second device; the second message carries fourth indication information. The fourth indication information is used for indicating an action log for configuring the first time domain resource configuration table; the fourth indication information is used for enabling the second device to compare the action log of the third time domain resource allocation table of the second device with the action log configured for the first time domain resource allocation table according to the fourth indication information, so as to determine whether the action log configured for the third time domain resource allocation table by the second device is consistent with the action log configured for the first time domain resource allocation table by the first device. In this way, whether the time domain resource allocation tables of the two parties are synchronized can be checked through the action log of the time domain resource allocation table.
In a possible embodiment, after the first apparatus starts from a preset data unit in a transmitted data stream and transmits a service according to the second time domain resource configuration table, the method further includes: the first device sending a second message to the second device; the second message carries fifth indication information. The fifth indication information is used for indicating a check value corresponding to the second time domain resource configuration table; the fifth indication information is used for enabling the second device to compare the check value of a fourth time domain resource allocation table of the second device according to the fifth indication information so as to determine whether the fourth time domain resource allocation table obtained by the second device allocating the third time domain resource allocation table is consistent with the second time domain resource allocation table; and the third time domain resource configuration table is used for storing the corresponding relation between the service and the time domain resource. Therefore, whether the time domain resource configuration tables of the two parties are synchronous or not can be checked through the check value.
In a second aspect, an embodiment of the present application provides a resource allocation method, in which a second device determines that the amount of a time domain resource occupied by a first service needs to be adjusted. When the number of the time domain resources occupied by the first service needs to be increased, the second device allocates the time domain resources in the idle state to the first service. Therefore, when the allocated time domain resource needs to be added to the first service, since the idle time domain resource is allocated to the first service, the secondary time domain resource adjustment does not affect the relationship between other services and the time domain resource, that is, the corresponding relationship between other services and the time domain resource is not changed, so that the effect of protecting other services from the influence of the bandwidth adjustment of the first service can be achieved.
On the other hand, when the number of the time domain resources occupied by the first service needs to be reduced, the second device releases the time domain resources in the time domain resources currently occupied by the first service. Thus, when the time domain resource allocated to the first service needs to be reduced, the time domain resource already allocated to the first service is released partially or completely, so that the secondary time domain resource adjustment does not affect the relationship between other services and the time domain resource, that is, the corresponding relationship between other services and the time domain resource is not changed, and the effect of protecting other services from the influence of the bandwidth adjustment of the first service can be achieved.
In a possible embodiment, since the first device side maintains the first time domain resource allocation table, the first time domain resource allocation table is used for storing the correspondence between the time domain resources and the services. Based on this, when the number of the time domain resources occupied by the first service needs to be increased, the second device allocates the time domain resources in the time domain resources currently in the idle state to the first service, including: when the number of the time domain resources occupied by the first service to be added is P1, the P1 is a positive integer, the second device determines the time domain resources currently in an idle state according to the third time domain resource configuration table; the third time domain resource configuration table is used for storing the corresponding relation between the time domain resources and the services. And the second device determines P1 first time domain resources from the time domain resources in the idle state according to a preset algorithm. The second device adds the corresponding relationship between the P1 first time domain resources and the first service in the third time domain resource allocation table to obtain a fourth time domain resource allocation table. Therefore, the effect of adjusting the corresponding relation between the time domain resources and the service can be achieved by adjusting the time domain resource configuration table, and the time domain resources in the idle state can be determined from the first time domain resource configuration table more conveniently and rapidly.
In a possible embodiment, when the amount of time domain resources occupied by the first service needs to be reduced, the second apparatus releases time domain resources in the time domain resources currently occupied by the first service, including: when the number of the time domain resources occupied by the first service to be reduced is P2, where P2 is a positive integer, the second device determines the time domain resources currently occupied by the first service according to the third time domain resource configuration table. And the second device determines P2 second time domain resources from the time domain resources currently occupied by the first service according to a preset algorithm. The second device deletes the correspondence between the P2 second time domain resources and the first service in the third time domain resource configuration table to obtain a fourth time domain resource configuration table. Therefore, the effect of adjusting the corresponding relation between the time domain resources and the services can be achieved by adjusting the time domain resource configuration table, and the time domain resources which are currently allocated for the first service can be determined from the first time domain resource configuration table more conveniently.
In order to provide flexibility of the scheme, in a possible implementation manner, when the amount of time domain resources occupied by the first service needs to be reduced, the second device releases time domain resources in the time domain resources currently occupied by the first service, including: when the number of time domain resources occupied by the first service to be reduced is P2, where P2 is a positive integer, the second device determines, according to a third time domain resource configuration table, the number K3 of time domain resources currently occupied by the first service, and K3 is a positive integer no less than P2. And the second device determines (K3-P2) third time domain resources from the time domain resources currently occupied by the first service according to a preset algorithm. The second device deletes the correspondence between the K3 time domain resources currently occupied by the first service and the first service in the third time domain resource configuration table, and adds the correspondence between the (K3-P2) third time domain resources and the first service to obtain a fourth time domain resource configuration table.
In a possible embodiment, the determining, by the second device, the amount of time domain resources occupied by the first service to be adjusted includes: and the second device determines the number of the time domain resources K3 occupied by the first service according to a third time domain resource configuration table. The second device determines the amount of time domain resources K2 that need to be occupied after the first service adjustment. When the K3 is smaller than the K2, the second device determines that the amount of time domain resources occupied by the first service needs to be increased. When the K3 is greater than the K2, the second device determines that the amount of time domain resources occupied by the first service needs to be reduced. Therefore, whether the time domain resources need to be newly added or reduced for the first service can be determined by comparing the number of the time domain resources occupied before and after the first service.
In a possible embodiment, the determining, by the second device, the amount of time domain resources occupied by the first service to be adjusted includes: the second device receives M first requests sent by the first device, wherein M is a positive integer; the M first requests carry: the indication information is used for indicating the number of time domain resources which need to be occupied after each service in K services is adjusted, and K is a positive integer; the first service is one of the K services. And the second device determines the number of time domain resources occupied by each service in the K services to be adjusted according to the M first requests. Thus, the second device may determine, through the M first requests, the number of time domain resources that each service of the K services needs to occupy after being adjusted, so that the second device performs corresponding adjustment, thereby achieving the effect of synchronizing the time domain resource configuration conditions of the first device side and the second device side.
In a possible embodiment, each of the M first requests further carries: and indication information for indicating whether the current first request is the last request in the M first requests. In this way, when the time domain resource is adjusted for the bulk service, whether the sending of the batch of first requests is completed can be indicated by the indication information.
In a possible embodiment, the M first requests further carry: and indication information for indicating that the time domain resource is increased or decreased for each of the K services. The indication information may be referred to as operation information. Taking the operation information of the first service as an example, in one possible embodiment, the operation information may include three types: newly adding a first service; adjusting the bandwidth of the first service; the first service is deleted. When the operation information is the newly added first service, it indicates that the first service is a newly added service, and currently, a time domain resource has not been allocated to the first service, or a time domain resource has not been allocated to the first service according to a first time domain resource allocation table at the first device side. When the operation information is to adjust the bandwidth of the first service, two situations may be included, namely, increasing the time domain resource for the first service and decreasing the time domain resource allocated to the first service. When the operation information is to delete the first service, it means that all time domain resources currently allocated to the first service need to be released. By the embodiment, the effect of synchronizing the time domain resource allocation information of the first device and the second device by means of transmitting the operation information and the service parameters can be achieved. The service parameter may refer to: the method is used for indicating the number of time domain resources occupied by each adjusted service in the K services. Compared with the implementation mode that the first device transmits the whole time domain resource configuration table to the second device to achieve the synchronization effect, the implementation mode has the advantages that the first device only transmits the operation information and the service parameters to the second device, the data transmission amount is small, and therefore the network load can be reduced.
In a possible embodiment, M is 1, and after the second device receives M first requests sent by the first device, the method further includes: and the second device sends a first response to the first device, wherein the first response carries indication information used for indicating the number of the time domain resources which are required to be occupied by each service in the K services after adjustment. The second device receives a first message sent by the first device, where the first message carries indication information for indicating the number of time domain resources that each service of the K services needs to occupy after adjustment. The first message is used for indicating that: and the first device transmits the service according to the second time domain resource configuration table from the preset data unit in the transmitted data stream. In this way, the first device can determine, from the information carried in the first reply, whether the second device correctly received the parameters in the first request. On the other hand, the two parties can also be notified by the first message to start from the preset unit and jointly transmit the service by using the updated time domain resource configuration table.
In a possible embodiment, M is greater than 1, and after the second device receives M first requests sent by the first device, the method further includes: the second device sends a first response to the first device, wherein the first response comprises first indication information, and the first indication information is used for indicating check values corresponding to the M first requests. The second device receives a first message sent by the first device, wherein the first message comprises the first indication information, and the first message is sent under the condition that the check value generated by the first device according to the M first requests is matched with the check value carried in the first response; the first message is used for indicating that: and the first device transmits the service according to the second time domain resource configuration table from the preset data unit in the transmitted data stream. And the second device transmits the service according to the fourth time domain resource allocation table from the preset data unit in the transmitted data stream. In the embodiment of the corresponding relationship between the batch processing service and the time domain resource, the information carried in the first request may be more, so that the verification of both parties is realized by sending the verification value, the data volume required to be transmitted by both parties can be reduced, and the network load is reduced.
In a possible embodiment, after the second apparatus starts from a preset data unit in the transmitted data stream and transmits the service according to the fourth time domain resource allocation table, the method further includes: the second device receives a second message sent by the first device, where the second message carries fourth indication information, and the fourth indication information is used to indicate an action log for configuring the first time domain resource configuration table. The second device determines an action log for configuring the third time domain resource configuration table. And when the action log configured on the first time domain resource configuration table is matched with the action log configured on the third time domain resource configuration table, determining that the fourth time domain resource configuration table is the same as the second time domain resource configuration table. In this way, whether the time domain resource allocation tables of the two parties are synchronized can be checked through the action log of the time domain resource allocation table.
In a possible embodiment, after the second apparatus starts from a preset data unit in the transmitted data stream and transmits the service according to the fourth time domain resource allocation table, the method further includes: and the second device receives a second message sent by the first device, wherein the second message carries fifth indication information, and the fifth indication information is used for indicating a check value corresponding to the second time domain resource configuration table. The second device determines a check value of the fourth time domain resource allocation table. And when the check value corresponding to the second time domain resource configuration table is the same as the check value of the fourth time domain resource configuration table, determining that the fourth time domain resource configuration table is the same as the second time domain resource configuration table. Therefore, whether the time domain resource configuration tables of the two parties are synchronous or not can be checked through the check value.
The present application also provides a communication apparatus corresponding to any one of the first to second aspects. The communication device may be the first device or the second device described above. The communication device may be any transmitting device or receiving device that performs data transmission in a wireless manner. Such as a communication chip, or a network device (e.g., a base station, etc.). During communication, the device on the transmitting side and the device on the receiving side are opposite. In some communication processes, the communication device may be used as the network device or a communication chip for the network device.
In a third aspect, a communication device is provided, which includes a transceiver unit and a processing unit, so as to execute any implementation manner of any communication method in the first aspect to the second aspect. The transceiving unit is used to perform functions related to transmission and reception. Optionally, the transceiver unit includes a receiving unit and a transmitting unit. In one design, the communication device is a communication chip, and the transceiver unit may be an input-output circuit or a port of the communication chip.
In another design, the transceiver unit may be a transmitter and a receiver, or the transceiver unit may be a transmitter and a receiver.
Optionally, the communication device further includes various modules operable to perform any one of the embodiments of the communication methods of the first aspect to the second aspect.
In a fourth aspect, a communication device is provided, where the communication device is the first device or the second device. Including a processor and memory. Optionally, the communication device further comprises a transceiver, wherein the memory is used for storing a computer program or instructions, and the processor is used for calling and running the computer program or instructions from the memory, and when the processor executes the computer program or instructions in the memory, the communication device is enabled to execute any embodiment of the communication method of the first aspect to the second aspect.
Optionally, the number of the processors is one or more, and the number of the memories is one or more.
Alternatively, the memory may be integrated with the processor, or may be provided separately from the processor.
Optionally, the transceiver may include a transmitter (transmitter) and a receiver (receiver).
In a fifth aspect, a communications apparatus is provided that includes a processor. The processor is coupled to the memory and is operable to perform the method of any one of the first to second aspects and any one of the possible implementations of the first to second aspects. Optionally, the communication device further comprises a memory. Optionally, the communication device further comprises a communication interface, the processor being coupled to the communication interface.
In one implementation, the communication device is a network device. When the communication device is a network device, the communication interface may be a transceiver, or an input/output interface. Alternatively, the transceiver may be a transmit-receive circuit. Alternatively, the input/output interface may be an input/output circuit.
In yet another implementation, the communication device is a chip or a system of chips. When the communication device is a chip or a system of chips, the communication interface may be an input/output interface, an interface circuit, an output circuit, an input circuit, a pin or related circuit, etc. on the chip or the system of chips. The processor may also be embodied as a processing circuit or a logic circuit.
In a sixth aspect, a system is provided, which comprises the above first device or second device.
In a seventh aspect, a computer program product is provided, the computer program product comprising: a computer program (also referred to as code, or instructions), which when executed, causes a computer to perform the method of any of the possible implementations of the first aspect described above, or causes a computer to perform the method of any of the implementations of the first to second aspects described above.
In an eighth aspect, a computer-readable storage medium is provided, which stores a computer program (which may also be referred to as code or instructions) that, when executed on a computer, causes the computer to perform the method of any of the possible implementations of the first aspect described above, or causes the computer to perform the method of any of the implementations of the first aspect to the second aspect described above.
In a ninth aspect, there is provided a processing apparatus comprising: input circuit, output circuit and processing circuit. The processing circuit is configured to receive a signal via the input circuit and transmit a signal via the output circuit, such that the method of any one of the first aspect to the second aspect, and any one of the possible implementations of the first aspect to the second aspect, is implemented.
In a specific implementation process, the processing device may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be a transistor, a gate circuit, a flip-flop, various logic circuits, and the like. The input signal received by the input circuit may be received and input by, for example and without limitation, a receiver, the signal output by the output circuit may be output to and transmitted by a transmitter, for example and without limitation, and the input circuit and the output circuit may be the same circuit that functions as the input circuit and the output circuit, respectively, at different times. The embodiment of the present application does not limit the specific implementation manner of the processor and various circuits.
Drawings
Fig. 1A is a schematic diagram of a communication system architecture according to an embodiment of the present application;
fig. 1B is a schematic diagram of another communication system architecture according to an embodiment of the present application;
fig. 2A is a schematic diagram of allocating time domain resources for a service S1 according to an embodiment of the present application;
fig. 2B is a schematic diagram of allocating time domain resources for a service S1 and a service S2 when a service S2 is added on the basis of fig. 2A;
fig. 3A is a resource allocation method according to an embodiment of the present application;
fig. 3B is a resource allocation method according to an embodiment of the present application;
fig. 3C is a schematic diagram of adding a time domain resource to a first service according to an embodiment of the present application;
fig. 3D is a schematic diagram illustrating that the number of time domain resources occupied by the service S1 is increased from 10 to 14 according to the embodiment of the present application;
fig. 4A is a schematic structural diagram of a time domain resource occupied by a release service S2 according to an embodiment of the present application;
fig. 4B is a schematic diagram that reduces the number of time domain resources occupied by the service S1 from 10 to 4 according to the embodiment of the present application;
fig. 5A is a schematic diagram of a system architecture according to an embodiment of the present application;
fig. 5B is a schematic diagram of a resource allocation method according to an embodiment of the present application;
the structure of the code block of the 64B/66B coding format defined in the standard of FIG. 6A is schematically shown;
fig. 6B is a structural form of an idle code block according to an embodiment of the present application;
fig. 6C is a schematic structural diagram of a code block for carrying a first request, a first response, or a first message according to an embodiment of the present application;
FIG. 6D is a block diagram of a time division multiplexing frame structure that can be constructed based on 64B/66B code blocks for the flexible Ethernet provided by an embodiment of the present application;
fig. 6E is a schematic diagram of a code block structure for transmitting a first request, a first response, and a first message according to an embodiment of the present application;
fig. 6F is a schematic diagram of an action log for configuring a time domain resource configuration table according to an embodiment of the present application;
fig. 6G is a schematic structural diagram of a code block according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another communication device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of another communication device according to an embodiment of the present application.
Detailed Description
It should be understood that the technical solution of the embodiment of the present application may be applied to a device supporting ethernet, flexible ethernet, Optical Transport Network (OTN), and the like, where the device may be a network device or a chip disposed inside the network device. The device may be a network device that supports high-speed ethernet interfaces (e.g., 200G, 400G). Such devices include, but are not limited to: a core router, an edge router, an OT-capable transmission device, an Internet Protocol-based Radio Access Network (IPRAN) box or frame transmission device, and a Packet Transport Network (PTN) box or frame transmission device.
Fig. 1A illustrates an architecture diagram of a communication system, as shown in fig. 1A, the communication system includes a first device and a second device, and services, such as service 1, service 2, and service … and service m1 shown in fig. 1A, may be transmitted between the first device and the second device. As shown in fig. 1A, the first device may transmit the data stream to an interface 2 of the second device through an interface 1, where any one of the interface 1 and the interface 2 may be a FlexE interface, an OTN interface, an ethernet interface, or the like, or a pipe divided by these types of interfaces.
The first apparatus mentioned in the embodiments of the present application may also be referred to as a first device, a transmitting end, a transmitting side, and the like, and the second apparatus may also be referred to as a second device, a receiving end, a receiving side, and the like.
The following description will be given by taking the FlexE technology as an example of a communication system, and it is obvious to those skilled in the art that the solution provided in the embodiments of the present application is not limited to the FlexE technology. The FlexE divides time slots in a Time Division Multiplexing (TDM) mode to realize hard isolation of transmission pipeline bandwidth, and one service data stream can be allocated to one to multiple time slots to realize matching of services with various rates. A FlexE Group (also known as FlexE Group in english) may contain one or more physical link interfaces (PHY in english).
A flexible ethernet protocol Client (FlexE Client) transmits a Client data stream in a specified time slot (one time slot or multiple time slots) on a FlexE Group, one FlexE Group can carry multiple FlexE clients, one FlexE Client can transmit one to multiple user service data streams (also called Media Access Control (MAC) clients), and a flexible ethernet protocol layer (english may be called FlexE Shim) provides data adaptation and conversion from the FlexE Client to the MAC Client.
Based on the FlexE technology, fig. 1B exemplarily shows another communication system architecture diagram, as shown in fig. 1B, a data stream of a service may be mapped to a flexible ethernet protocol Client (FlexE Client), and the FlexE Client represents a Client data stream transmitted by specifying a time domain resource (one time domain resource or multiple time domain resources) on a FlexE Group.
The time domain resource in the embodiment of the present application may refer to a period of time, and may also be referred to as a time unit, a time period, a time slot, a sub-time domain resource, and the like.
As shown in fig. 1B, data streams of one or more services transmitted between the first device and the second device correspond to Client 1(Client 1), Client 2(Client 2), …, Client m2(Client m 2). The method comprises the steps that a Client and time domain resources are in corresponding relation, the time domain resources are distributed for each service according to the corresponding relation between the Client and the time domain resources, the first device conducts TDM multiplexing on each service according to the time domain resources corresponding to each service, the data stream after the TDM multiplexing is sent to the second device, and the second device conducts TDM demultiplexing on the received data stream according to the corresponding relation between the time domain resources and each service so as to recover each service.
As shown in fig. 1B, a time domain resource configuration table is maintained on the first device and the second device, and the time domain resource configuration table includes a corresponding relationship between each service and the time domain resource. The time domain resource configuration table may also be referred to as a slot allocation table (english may also be referred to as FlexE calendar). Optionally, the FlexE Group may be made to correspond to a time domain resource configuration table (english may also be referred to as FlexE calendar); a timeslot mapping table corresponding to a single physical link included in one FlexE Group may be referred to as a sub-time domain resource configuration table (english may be referred to as sub-calendar). The FlexE calendar may consist of one or more sub-calendars. Each sub-calendar may indicate how a slot (which may be written as a slot in english) on the single physical link is allocated to a corresponding FlexE client), that is, each sub-calendar may indicate a correspondence relationship between time domain resources (such as a slot) on the single physical link and FlexE clients. Table 1 schematically shows a structural form of a time domain resource configuration table, taking FlexE as an example.
Table 1 time domain resource allocation table in FlexE communication system
Figure BDA0002548637070000091
Figure BDA0002548637070000101
As shown in table 1, in the Optical Interconnection Forum (OIF) standard, the FlexE implements allocation of time domain resources through a FlexE time domain resource configuration table (FlexE callback), and the FlexE time domain resource configuration table is divided into a time domain resource configuration table a (FlexE callback a) and a time domain resource configuration table b (FlexE callback b). The time domain resource configuration table a (flexe callback a) and the time domain resource configuration table b (flexe callback b) are backup for each other. Each time domain resource configuration table in the time domain resource configuration table a (flexe callback a) and the time domain resource configuration table b (flexe callback b) is composed of 20 table entries, one table entry corresponds to one time domain resource, and each table entry indicates a service to which the corresponding time domain resource belongs (the service to which the time domain resource belongs may be indicated by a service identifier or a Client identifier). One time domain resource table entry corresponds to one service, and one service may correspond to one or more time domain resource table entries.
In order to successfully complete the multiplexing and demultiplexing processes of the service, a sending end (e.g., a first device) and a receiving end (e.g., a second device) of the FlexE need to maintain the same time domain resource configuration table, so as to ensure that the receiving end (e.g., the second device) can correctly analyze the multiplexed data stream sent by the sending end. According to the FlexE standard, a sending end (e.g., a first device) may send a time domain resource configuration table to a receiving end (e.g., a second device) through a FlexE overhead code block, so as to synchronize time domain resource configuration tables maintained at both ends.
Since the bandwidth allocated by FlexE must be 5Gbps as a basic unit, FlexE has a problem of bearing efficiency for services other than 5Gbps particles, including services smaller than 5 Gbps. To solve this problem, FlexE needs to divide slots with smaller granularity, and more slots under the same bandwidth. Based on the related contents in table 1, it can be seen that the FlexE synchronizes the time domain resource configuration tables of the sending end (e.g., the first device) and the receiving end (e.g., the second device) by transferring the time domain resource configuration tables, so that the FlexE has a longer response when the number of services or the number of time domain resources occupied by the services is adjusted. In the standard, FlexE transmits a time domain resource configuration table through FlexE overhead multiframes, one FlexE overhead multiframe is composed of 32 FlexE overhead frames, and the period of one FlexE overhead frame is 104.77us, so that the period of one FlexE overhead multiframe is 104.77us × 32 — 3.35 ms. When the number of time domain resources occupied by a service changes, the Flexe can respond only by needing at least one time domain resource of a Flexe overhead multiframe. In addition, in the case of dividing a smaller timeslot granularity, under the same bandwidth, the FlexE may be divided into more timeslots, for example, 10M is used as the timeslot granularity, and 100G FlexE may be divided into 10000 timeslots, and if the sending end (for example, the first device) and the receiving end (for example, the second device) are still synchronized by sending the time domain resource allocation table, the implementation cost is large. That is, in the existing FlexE technology, when time domain resource adjustment of a service is implemented, the response time is long, and at least 3.35ms is required. And the time domain resource configuration tables of the sending end (e.g., the first device) and the receiving end (e.g., the second device) are synchronized by transferring the time domain resource configuration tables, so that the implementation cost increases with the increase of the number of time domain resources, and when the number of time domain resources increases to a certain degree, the cost is too large and may not be realizable.
The embodiment of the present application provides a scheme for shortening the synchronization duration of a time domain resource configuration table, which will be described in detail in the following content, and will not be described here.
In a specific application scenario, the service transmitted between the first device and the second device may be dynamically adjusted, for example, the service may be added, deleted, the bandwidth of the service may be increased, and the bandwidth of the service may be decreased. Fig. 2A illustrates a schematic diagram of allocating time domain resources for a service S1, and fig. 2B illustrates a schematic diagram of allocating time domain resources for a service S1 and a service S2 when a service S2 is added on the basis of fig. 2A.
In the embodiment of the present application, there are various algorithms for determining a target time domain resource from a range of time domain resources, and the embodiment of the present application is referred to as a preset algorithm, where the preset algorithm may include a Sigma algorithm, a Delta algorithm, and the like, and the preset algorithm may also be a resource allocation method based on a binary system. The embodiment of the present application provides an implementation manner of a preset algorithm, where a time domain resource may be determined according to formula (1):
j ═ (i × C0) mod N … … equation (1)
In the formula (1), i is sequentially valued from 1 until the total amount of time domain resources is reached; c0 represents the total amount of time domain resources occupied by the service, and N represents the total amount of time domain resources. In the process of sequentially taking values of i, when the value of j is smaller than C0, the ith time domain resource is taken as the time domain resource occupied by the service; and when the value of J is not less than C0, the ith time domain resource is not taken as the time domain resource occupied by the service.
Where N may be understood as the total number of time domain resources within the total range for selecting the target time domain resource. For example, there are 20 slots altogether, 10 time domain resources need to be selected for one service on the 20 slots, the selected 10 time domain resources may be referred to as target time domain resources of the service, N is 20(20 time domain resources may also be referred to as 20 slots), the total number C0 of the time domain resources occupied by the service S1 is 10, and i is sequentially valued from 1 until 20:
when i is equal to 1, j is equal to (1 × 10) mod 20 is equal to 10, and j is not less than 10, then the 1 st time domain resource cannot be allocated to service S1;
when i is 2, then j is (2 × 10) mod 20 is 0, and when j is less than 10, then the 2 nd time domain resource is allocated to service S1;
when i is 3, j is (3 × 10) mod 20 is 10, and j is not less than 10, then the 3 rd time domain resource cannot be allocated to the service S1;
when i is 4, j is (4 × 10) mod 20 is 0, and j is smaller than 10, the 4 th time domain resource is allocated to the service S1.
Similarly, it is finally determined that the time domain resource occupied by the service S1 is: a 2 nd time domain resource, a 4 th time domain resource, a 6 th time domain resource, an 8 th time domain resource, a 10 th time domain resource, a 12 th time domain resource, a 14 th time domain resource, a 16 th time domain resource, an 18 th time domain resource, and a 20 th time domain resource.
Referring to fig. 2A, when only the service S1 is transmitted between the first device and the second device, and the service S1 occupies 10 time domain resources (20 time domain resources in total), the time domain resources occupied by the service S1 are uniformly distributed over the 20 time domain resources. As shown in fig. 2A, 10 time domain resources of the 20 time domain resources, except the time domain resource occupied in the service S1, are unoccupied. The unoccupied time domain resources in the embodiment of the present application may be referred to as idle time slots, or idle time domain resources.
When a service S2 needs to be added, that is, a service S1 and a service S2 need to be transmitted between the first device and the second device, as shown in fig. 2B, the system may uniformly reallocate time domain resources to the service S1 and the service S2 again according to the amount of time domain resources occupied by the service S1 and the amount of time domain resources occupied by the service S2.
A method for allocating time domain resources to multiple services is described below, where time domain resources are allocated for a service S1 and a service S2, where the service S1 occupies 10 time domain resources, the service S2 occupies 4 time domain resources, if 20 time domain resources are total, the number of idle time domain resources is 6, and the idle time domain resources are understood as the time domain resources occupied by the service S3, it can be understood that the number of time domain resources occupied by the service S3 is 6, what is different is that services are transmitted on the time domain resources corresponding to the service S1 and the service S2, and the time domain resources occupied by the service S3 are idle time domain resources, and a data stream corresponding to the service S3 does not need to be transmitted. As shown in fig. 2B:
the time domain resource occupied by the service S1 is determined by applying the above formula (1): a 2 nd time domain resource, a 4 th time domain resource, a 6 th time domain resource, an 8 th time domain resource, a 10 th time domain resource, a 12 th time domain resource, a 14 th time domain resource, a 16 th time domain resource, an 18 th time domain resource, and a 20 th time domain resource.
Determining the time domain resource occupied by the service S2 by applying the above formula (1), where the above formula (1) is: according to the above example, the time domain resource occupied by the service S2 can be calculated as: the 5 th time domain resource, the 10 th time domain resource, the 15 th time domain resource, and the 20 th time domain resource.
Determining the time domain resource occupied by the service S3 by applying the above formula (1), where the above formula (1) is: according to the above example, the time domain resource occupied by the service S2 can be calculated as: the 4 th time domain resource, the 7 th time domain resource, the 10 th time domain resource, the 14 th time domain resource, the 17 th time domain resource, and the 20 th time domain resource.
In fig. 2B, time domain resources occupied by the service S1, the service S2, and the service S3 are arranged into three rows, and then, for each time domain resource, the three rows are polled, and the identities of the polled services sequentially correspond to 20 time domain resources, as shown in fig. 2B, the identities of the service S1, the service S2, and the service S3 obtained by polling are sorted as shown in example a in fig. 2B, and sequentially: "service S1, service S1, service S3, service S2, service S1, service S3, service S1, service S1, service S2, service S3, service S1, service S1, service S3, service S2, service S1, service S3, service S1, service S1, service S2, and service S3". Further removing the identifier of the service S3, as shown in example B in fig. 2B, a schematic diagram of the time domain resources allocated by the system for the service S1 and the service S2 is obtained.
As can be seen from fig. 2A and fig. 2B, in the above solution, when a service S2 is newly added between a first device and a second device, a time domain resource needs to be newly allocated to the service S1, that is, the time domain resource occupied by the service S1 may change, and thus, the service S1 may be jittered. In this scheme, in order to achieve the effect of "uniformly allocating services to each time domain resource", when adjusting the time domain resource for each service, the corresponding relationship between other services and the time domain resource may also be changed, thereby causing jitter of other services. That is, when the number of services changes (for example, one service is added or deleted) or the number of resources required for a certain service changes, the resources allocated to each service between the first device and the second device are adjusted accordingly, so that the services occupying unchanged number of resources are jittered. It can be seen that this scheme is more inclined to the former between "uniform allocation of services to each time domain resource" and "avoiding causing jitter of other services", and although this scheme can re-uniformly allocate all services, the consequences of this are also serious: other services that do not experience time domain resource adjustment are jittered.
The embodiment of the application provides a scheme for allocating time domain resources to services, and the scheme can avoid adjusting the time domain resources for services without time domain resource adjustment, so that the jitter condition of the services with unchanged time domain resource occupation quantity can be reduced. Moreover, in the scheme provided in the embodiment of the present application, the services may also be relatively uniformly distributed on each time domain resource, so that a balance between "services are uniformly distributed on each time domain resource" and "jitter caused by other services" may be achieved. As will be described in detail below.
Based on the above, fig. 3A exemplarily illustrates that the present application provides a resource configuration method, which may be performed by a first apparatus, for example, the first apparatus in fig. 1A or fig. 1B described above. As shown in fig. 3A, the method includes:
step 301, the first device determines whether to adjust the amount of time domain resources occupied by the first service; if so, go to step 302, and if not, go to step 305.
Step 302, the first device determines whether the number of time domain resources occupied by the first service needs to be increased or decreased, if the number of time domain resources occupied by the first service needs to be increased, step 303 is executed, and if the number of time domain resources occupied by the first service needs to be decreased, step 304 is executed;
in step 303, the first device allocates a time domain resource of the time domain resources currently in the idle state to the first service.
Step 304, the first device releases the time domain resource in the time domain resource currently occupied by the first service.
And step 305, ending.
The first service may be a newly added service or a service to which a time domain resource has been allocated.
In this embodiment of the present application, adjusting the time domain resource corresponding to the first service may include three types:
first, a first service is newly added, in which case, a time domain resource needs to be allocated to the first service;
second, the first service is deleted, in which case, the time domain resources allocated to the first service need to be released. Optionally, the released time domain resource may be an idle time domain resource, that is, no longer carrying data of the service, or may be reallocated to another service for carrying data of another service.
And thirdly, adjusting the bandwidth of the first service, and under the condition, determining that some time domain resources need to be added for the first service when the bandwidth of the first service needs to be increased. When the bandwidth of the first service needs to be reduced, it is determined that the time domain resources allocated to the first service need to be reduced, and in this case, some of the time domain resources allocated to the first service may be released.
And maintaining a time domain resource configuration table at the first device side, wherein the time domain resource configuration table comprises a table for indicating whether a time domain resource is allocated to a service or indicating a corresponding relation between the time domain resource and the service. That is, the time domain resource configuration table is used to store the allocation condition of the time domain resource, for example, when one time domain resource is allocated to one service, the time domain resource configuration table includes the corresponding relationship between the time domain resource and the service. When a time domain resource is not allocated to a service, the corresponding relationship between the time domain resource and the service cannot be found in the time domain resource configuration table. In a possible embodiment, when it is determined that there is no corresponding relationship between a time domain resource and a service in the time domain resource configuration table, it may be determined that the time domain resource is not occupied by the service. Alternatively, in another possible embodiment, in the time domain resource configuration table, an identifier may be added to the unoccupied time domain resource to indicate that the time domain resource is unoccupied.
For easy differentiation, in the embodiment of the present application, the time domain resource allocation table before the first device side is referred to as a first time domain resource allocation table, and the time domain resource allocation table after the first device side is referred to as a second time domain resource allocation table. The first device may adjust a correspondence between the time domain resources in the first time domain resource configuration table and the service, thereby obtaining a second time domain resource configuration table.
For the adjustment of the first time domain resource configuration table, the following conditions need to be satisfied: the first time domain resource configuration table comprises a corresponding relation between the second service and the time domain resource; the second time domain resource configuration table comprises a corresponding relation between the first service and the time domain resource and a corresponding relation between the second service and the time domain resource; and the time domain resources corresponding to the second service in the first time domain resource configuration table are the same as the time domain resources corresponding to the second time domain resource configuration table.
It can be seen from the above contents that, in the embodiment of the present application, when the time domain resource occupied by the first service needs to be adjusted, the time domain resource corresponding to the second service is not changed, so that a change of the time domain resource corresponding to the second service in a process of allocating the time domain resource to the first service can be avoided, and thus jitter caused by a change of the time domain resource corresponding to the second service can be avoided.
Correspondingly, fig. 3B exemplarily shows that the present application provides a resource configuration method, which may be performed by a second apparatus, for example, the second apparatus in fig. 1A or fig. 1B described above. As shown in fig. 3B, the method includes:
step 311, the second device determines whether to adjust the amount of the time domain resource occupied by the first service; if yes, go to step 312, otherwise go to step 315.
Step 312, the second device determines whether the number of time domain resources occupied by the first service needs to be increased or decreased, if the number needs to be increased, step 313 is executed, and if the number needs to be decreased, step 314 is executed;
in step 313, the second device allocates a time domain resource of the time domain resources currently in the idle state to the first service.
In step 314, the second apparatus releases the time domain resource in the time domain resource currently occupied by the first service.
And step 315, ending.
And maintaining a time domain resource configuration table at the second device side, wherein the time domain resource configuration table comprises a table for indicating whether a time domain resource is allocated to the service or indicating a corresponding relation between the time domain resource and the service. That is, the time domain resource configuration table is used to store the allocation condition of the time domain resource, for example, when one time domain resource is allocated to one service, the time domain resource configuration table includes the corresponding relationship between the time domain resource and the service. When a time domain resource is not allocated to a service, the corresponding relationship between the time domain resource and the service cannot be found in the time domain resource configuration table. In a possible embodiment, when it is determined that there is no corresponding relationship between a time domain resource and a service in the time domain resource configuration table, it may be determined that the time domain resource is not occupied by the service. Alternatively, in another possible embodiment, in the time domain resource configuration table, an identifier may be added to the unoccupied time domain resource to indicate that the time domain resource is unoccupied.
For easy distinction, in the embodiment of the present application, the time domain resource allocation table before the second device side is referred to as a third time domain resource allocation table, and the time domain resource allocation table after the second device side is referred to as a fourth time domain resource allocation table. The second device may adjust a correspondence between the time domain resources and the services in the third time domain resource configuration table, thereby obtaining a fourth time domain resource configuration table.
The third time domain resource configuration table comprises a corresponding relation between the second service and the time domain resource; the fourth time domain resource configuration table comprises a corresponding relation between the first service and the time domain resource and a corresponding relation between the second service and the time domain resource; and the time domain resource corresponding to the second service in the third time domain resource configuration table is the same as the time domain resource corresponding to the second service in the fourth time domain resource configuration table.
The numerical values defined in the examples of the present application are K1, K2 and K3, respectively. The values of K1 and K3 may also be described as the number of time domain resources occupied by the first service before being adjusted, where the value of K1 is determined by the first device according to the first resource allocation table, and the value of K3 is determined by the second device according to the third resource allocation table. K1 and K3 are equal in principle, and if they are not equal, the service transmission may be in error, and the process may be ended directly, or an error may be reported, so that the maintenance personnel may perform maintenance. In the embodiments of the present application, K3 is equal to K1. The value of K2 may also be described as the amount of time domain resources occupied after the first service is adjusted. K2 may also be referred to as the amount of the target time domain resource for the first service. Wherein K1 is zero or a positive integer, K2 is zero or a positive integer, and K3 is zero or a positive integer. In the embodiment of the present application, the value of P1 is also used to indicate that the number of time domain resources occupied by the first service needs to be increased, where P1 is a positive integer, the value of P1 should be equal to (K2-K1) on the first device side, and should be equal to (K3-K1) on the second device side, in which case K1 is smaller than K2 and K1 is also smaller than K3. The value of P2 indicates that the number of time domain resources occupied by the first service to be reduced is P2, P2 is a positive integer, the value of P2 should be equal to (K1-K2) on the first device side and equal to (K1-K3) on the second device side, in this case, K1 is a positive integer not less than P2, and K1 is greater than K2 and K1 is also greater than K3. In the case where K3 equals K1, it can be written directly as: p1 ═ K2-K1 ═ K3-K1, P2 ═ K1-K2 ═ K3-K2.
In the step 302, in a possible embodiment, the first device determines the amount of time domain resources K1 occupied by the first service according to the first time domain resource configuration table. The first device determines the amount of time domain resources K2 that need to be occupied after the first traffic adaptation. When the K1 is smaller than the K2, the first device determines that the amount of time domain resources occupied by the first service needs to be increased. When the K1 is greater than the K2, the first device determines that the amount of time domain resources occupied by the first service needs to be reduced.
In the step 303, when the time domain resource occupied by the first service needs to be added, the required quantity is P1, where P1 is a positive integer, and the first device determines the time domain resource currently in an idle state according to the first time domain resource allocation table; the first time domain resource configuration table is used for storing the corresponding relation between the time domain resources and the services. The first device determines P1 first time domain resources from the time domain resources currently in the idle state according to a preset algorithm. The first device adds the corresponding relationship between the P1 first time domain resources and the first service in the first time domain resource allocation table to obtain a second time domain resource allocation table. Therefore, when the allocated time domain resource needs to be added to the first service, since the idle time domain resource is allocated to the first service, the secondary time domain resource adjustment does not affect the relationship between other services and the time domain resource, that is, the corresponding relationship between other services and the time domain resource is not changed, so that the effect of protecting other services from the influence of the bandwidth adjustment of the first service can be achieved.
That is, the time domain resource corresponding to the first service in the second time domain resource configuration table is: (K2-K1) time domain resources of the free time domain resources in the first time domain resource configuration table. When K1 is zero, it indicates that the first service is a new service, and when K1 is not zero, it indicates that the adjustment is to increase the bandwidth of the first service. That is, in the embodiment of the present application, when (K2-K1) time domain resources need to be added for the first service, the (K2-K1) time domain resources are selected from the idle time domain resources, so that jitter of other services to which the time domain resources are allocated can be avoided. There are various schemes for selecting (K2-K1) time domain resources from the idle time domain resources to allocate to the first service, and the schemes may be selected randomly, or may be selected according to a Sigma or Delta algorithm or a binary system.
Correspondingly, in step 312, in a possible embodiment, the second apparatus determines the number K3 of time domain resources occupied by the first service according to a third time domain resource configuration table. The second device determines the amount of time domain resources K2 that need to be occupied after the first service adjustment. When the K3 is smaller than the K2, the second device determines that the amount of time domain resources occupied by the first service needs to be increased. When the K3 is greater than the K2, the second device determines that the amount of time domain resources occupied by the first service needs to be reduced.
In step 313, when the time domain resource occupied by the first service needs to be added, the required quantity is P1, where P1 is a positive integer, and the second device determines the time domain resource currently in the idle state according to the third time domain resource configuration table; the third time domain resource configuration table is used for storing the corresponding relation between the time domain resources and the services. And the second device determines P1 third time domain resources from the time domain resources in the idle state according to a preset algorithm. The second device adds the corresponding relationship between the P1 third time domain resources and the first service in the third time domain resource allocation table to obtain a fourth time domain resource allocation table.
That is to say, when the number K3 of the time domain resources corresponding to the first service in the third time domain resource configuration table is smaller than the number K2 of the target time domain resources of the first service, the time domain resources corresponding to the first service in the fourth time domain resource configuration table are: (K2-K3) time domain resources of the free time domain resources in the third time domain resource configuration table.
Fig. 3C exemplarily shows a schematic diagram of adding a time domain resource to a first service, as shown in fig. 3C, a service S1 occupies 10 time domain resources, which are respectively "2 nd time domain resource, 4 th time domain resource, 6 th time domain resource, 8 th time domain resource, 10 th time domain resource, 12 th time domain resource, 14 th time domain resource, 16 th time domain resource, 18 th time domain resource, and 20 th time domain resource", and the remaining 10 time domain resources are idle time domain resources.
It is necessary to allocate 4 time domain resources for the service S2. In this case, resources may be allocated to the newly added service S2 on the spare resources so as not to affect other services. Firstly, idle resources are obtained from a resource configuration table, the number of the idle resources is 10, and 4 time domain resources are allocated to the service S2 on the 10 idle resources according to the above formula (1). That is, in this case, the range of available time domain resources that can be used to select time domain resources for the first service is no longer all time domain resources, but is currently free time domain resources. In the above formula (1), N is 10, C0 is 4, then i is sequentially taken from 1 to 10, and the above formula (1) corresponds to: j is (i × 4) mod10, and when the value of j is smaller than 10, the values of i are respectively: "3, 5, 8, and 10", correspondingly, the time domain resource occupied by the service S2 is one of the 10 idle time domain resources: "third free time domain resource", "fifth free time domain resource", "eighth free time domain resource", and "tenth free time domain resource", as shown in example a in fig. 3C, example a in fig. 3C shows an allocation situation of the service S2 on 10 free time domain resources, and then, according to the corresponding relationship between the example a service S2 and the free time domain resources of fig. 3C, the identifiers of 4 services S2 are correspondingly filled on 20 time domain resources, and then, the time domain resources allocated by the service S1 and the service S2 are shown in example B in fig. 3C.
As can be seen from fig. 3C, the original service S1 is more uniformly distributed in each time domain resource, and it can also be understood that the original idle time domain resource and the service S1 are more uniformly distributed. When a new service S2 is needed, the service S2 may be more uniformly distributed on the current idle time domain resource according to the above mentioned algorithm. Compared with the scheme provided by the foregoing fig. 2B, it is possible to avoid adjusting the correspondence between the service S1 and the time domain resource, so as to reduce the jitter of the service S1, and on the other hand, since the idle time domain resources are more uniformly distributed in each time domain resource, and further the service S2 is more uniformly distributed in each idle time domain resource, the distribution of the final service S1 and the service S2 is also more uniform.
Fig. 3C illustrates an example of adding a new service S2, if the bandwidth of one service is increased, as shown in fig. 3D, fig. 3D illustrates an example of increasing the number of time domain resources occupied by the service S1 from 10 to 14, and as shown in fig. 3D, if the number of time domain resources occupied by the service S1 is increased from 10 to 14. The specific scheme is similar to the scheme of determining 4 time domain resources for the service S2 in fig. 3C, that is: firstly, idle resources are obtained from a resource configuration table, the number of the idle resources is 10, and 4 time domain resources are allocated to the service S1 on the 10 idle resources according to the above formula (1). Correspondingly, the 4 newly added time domain resources occupied by the service S1 are among the 10 idle time domain resources: "third idle time domain resource", "fifth idle time domain resource", "eighth idle time domain resource", and "tenth idle time domain resource", as shown in example a in fig. 3D. After that, according to the corresponding relationship between the example a service S1 and the idle time domain resource in fig. 3D, the identifiers of the 4 services S1 are correspondingly filled into the 20 time domain resources, and then the time domain resource allocated by the service S1 is as shown in example B in fig. 3D.
In step 304, in a possible implementation manner, when the amount of the time domain resource occupied by the first service to be reduced is P2, where P2 is a positive integer, the first device determines the time domain resource currently occupied by the first service according to the first time domain resource allocation table. And the first device determines P2 second time domain resources from the time domain resources currently occupied by the first service according to a preset algorithm. The first device deletes the corresponding relationship between the P2 second time domain resources and the first service in the first time domain resource allocation table to obtain a second time domain resource allocation table. Thus, when the time domain resource allocated to the first service needs to be reduced, the time domain resource already allocated to the first service is released partially or completely, so that the secondary time domain resource adjustment does not affect the relationship between other services and the time domain resource, that is, the corresponding relationship between other services and the time domain resource is not changed, and the effect of protecting other services from the influence of the bandwidth adjustment of the first service can be achieved.
Alternatively, in another possible embodiment, when the amount of the time domain resource occupied by the first service to be reduced is P2, where P2 is a positive integer, the first device determines, according to the first time domain resource configuration table, the amount of the time domain resource currently occupied by the first service, K1, and K1 is a positive integer no less than P2. And the first device determines (K1-P2) third time domain resources from the time domain resources currently occupied by the first service according to a preset algorithm. The first device deletes the correspondence between the K1 time domain resources currently occupied by the first service and the first service in the first time domain resource allocation table, and adds the correspondence between the (K1-P2) third time domain resources and the first service to obtain a second time domain resource allocation table.
That is, when K1 is greater than K2, the time domain resource corresponding to the first service in the second time domain resource configuration table is: and K2 time domain resources in the K1 time domain resources corresponding to the first service in the first time domain resource configuration table. If K2 is 0, it indicates that all time domain resources occupied by the first service need to be released, and if K2 is not zero, it indicates that the bandwidth occupied by the first service needs to be reduced.
Correspondingly, in step 314, in a possible implementation manner, when the amount of the time domain resource occupied by the first service to be reduced is P2, where P2 is a positive integer, the second device determines the time domain resource currently occupied by the first service according to the third time domain resource configuration table. And the second device determines P2 second time domain resources from the time domain resources currently occupied by the first service according to a preset algorithm. The second device deletes the correspondence between the P2 second time domain resources and the first service in the third time domain resource configuration table to obtain a fourth time domain resource configuration table.
Or, in another possible implementation, when the amount of the time domain resource occupied by the first service to be reduced is P2, where P2 is a positive integer, the second device determines, according to a third time domain resource configuration table, the amount of the time domain resource currently occupied by the first service, K3, and K3 is a positive integer not less than P2. And the second device determines (K3-P2) third time domain resources from the time domain resources currently occupied by the first service according to a preset algorithm. The second device deletes the correspondence between the K3 time domain resources currently occupied by the first service and the first service in the third time domain resource configuration table, and adds the correspondence between the (K3-P2) third time domain resources and the first service to obtain a fourth time domain resource configuration table.
That is to say, when the number K3 of the time domain resources corresponding to the first service in the third time domain resource configuration table is greater than the number K2 of the target time domain resources of the first service, the time domain resources corresponding to the first service in the fourth time domain resource configuration table are: and K2 time domain resources in the K3 time domain resources corresponding to the first service in the third time domain resource configuration table.
Fig. 4A exemplarily shows a schematic structure diagram of releasing the time domain resource occupied by the service S2, as shown in fig. 4A, when the time domain resource occupied by the service S2 needs to be released, the time domain resource occupied by the service S2 may be selected according to the time domain resource configuration table before updating, and then the time domain resource occupied by the service S2 is released. Specifically, it is only necessary to traverse the current time domain resource configuration table and set the time domain resource identified as the service S2 as an idle time domain resource. In this process, it can be seen that the time domain resource occupied by the service S1 is not modified, so that the jitter of the service S1 can be avoided.
Fig. 4B exemplarily shows a schematic diagram that the number of time domain resources occupied by the service S1 is reduced from 10 to 4, as shown in fig. 4B, the service S1 occupies 10 time domain resources, which are respectively "2 nd time domain resource, 4 th time domain resource, 6 th time domain resource, 8 th time domain resource, 10 th time domain resource, 12 th time domain resource, 14 th time domain resource, 16 th time domain resource, 18 th time domain resource, and 20 th time domain resource", and the remaining 10 time domain resources are idle time domain resources.
It is necessary to allocate 4 time domain resources for the service S1. In this case, in order not to affect other services, the time domain resources allocated to the service S1 may be selected according to the time domain resource allocation table before updating, the number of the time domain resources allocated to the service S1 is 10, and 4 time domain resources are determined from the 10 time domain resources allocated to the service S1 according to the above formula (1). That is, in this case, the range of available time domain resources that can be used to select 4 time domain resources for the first service is no longer all time domain resources, but 10 time domain resources already occupied by the current service S1. In the above formula (1), N is 10, C0 is 4, then i is sequentially taken from 1 to 10, and the above formula (1) corresponds to: when j is (i × 4) mod10 and j is smaller than 10, the values of i are: "3, 5, 8, and 10", correspondingly, the time domain resource occupied by the service S2 is one of the 10 idle time domain resources: "the third time domain resource among the time domain resources allocated for service S1", "the fifth time domain resource among the time domain resources allocated for service S1", "the eighth time domain resource among the time domain resources allocated for service S1", and "the tenth time domain resource among the time domain resources allocated for service S1", as shown in example a in fig. 4B, followed by whether the other 6 time domain resources among the 10 time domain resources allocated for service S1, as shown in example B in fig. 4B.
In another possible implementation manner, in fig. 4B, 6 time domain resources are determined from the 10 time domain resources allocated for service S1 according to the above formula (1), the 6 time domain resources are released, and 4 time domain resources allocated for service S1 remain.
In another possible implementation, in fig. 4B, 10 time domain resources occupied by the service S1 may be released first, then all idle time domain resources are determined, and 4 time domain resources are allocated to the service S1 from the idle time domain resources. The scheme may be understood as deleting the service S1, and then allocating 4 time domain resources to the service S1 as a new service. The deleting mode and the adding mode can be referred to the above contents, and are not described herein again.
As can be seen from fig. 4B, the original service S1 is more uniformly distributed in each time domain resource, and it can also be understood that the original idle time domain resource and the service S1 are more uniformly distributed. When it is desired to reduce the time domain resources occupied by the service S2, the service S1 may be redistributed over 4 service time domain resources according to the above mentioned algorithm. Compared with the scheme provided by the foregoing fig. 2B, it is possible to avoid adjusting the correspondence between other services except the service S1 and the time domain resources, so as to reduce jitter of the other services, and on the other hand, since the time domain resources originally occupied by the service S1 are more uniformly distributed in each time domain resource, and further the 4 time domain resources occupied by the service S1 are uniformly distributed on the time domain resources occupied by the 10 services S1 according to the above algorithm, the distribution of the 4 time domain resources occupied by the service S1 is also more uniform finally.
Based on the above, fig. 5A exemplarily shows a system architecture diagram, as shown in fig. 5A, the system architecture diagram includes a first device and a second device, where the first device and the second device first determine the number of target time domain resources of a first service, then the first device and the second device update respective maintained time domain resource configuration tables (the first device updates the first time domain resource configuration table, and the second device updates the second time domain configuration table), and then the first device performs TDM multiplexing on each service according to the updated time domain resource configuration table, and sends the multiplexed data stream to the second device. And the second device carries out TDM demultiplexing on the received data stream according to the updated time domain resource configuration table so as to recover the data of each service.
Based on the system architecture shown in fig. 5A, fig. 5B exemplarily shows a schematic diagram of a resource configuration method, and the method shown in fig. 5B is used to introduce a synchronization method of a resource configuration table. As shown in fig. 5B, the method includes:
step 501, when determining that a time domain resource corresponding to a first service needs to be adjusted, a first device sends M first requests to a second device, where M is a positive integer.
The M first requests carry: and indicating information for indicating the number of time domain resources that each service of the K services needs to occupy after being adjusted, where K is a positive integer, and the first service is one service of the K services. For convenience of description in this embodiment of the present application, the "indication information used for indicating the number of time domain resources that each service of the K services needs to occupy after being adjusted" carried in the M first requests is referred to as third indication information. The third indication information is "indication information used for indicating the number of time domain resources that each service of the K services needs to occupy after being adjusted", which is carried by all the first requests in the M first requests.
Correspondingly, the second device receives the M first requests sent by the first device.
For a first service of the K services indicated by the M first requests: the M first requests carry indication information capable of indicating the following contents:
an identification of the first service, and a number of target time domain resources of the first service.
In another possible embodiment, the M first requests further carry indication information for indicating operation information of the first service. Wherein the operation information comprises one of the following:
newly adding a first service;
adjusting the bandwidth of the first service;
the first service is deleted.
When the operation information is the newly added first service, it indicates that the first service is a newly added service, and currently, a time domain resource has not been allocated to the first service, or a time domain resource has not been allocated to the first service according to a first time domain resource allocation table at the first device side. When the operation information is to adjust the bandwidth of the first service, two situations may be included, namely, increasing the time domain resource for the first service and decreasing the time domain resource allocated to the first service. When the operation information is to delete the first service, it means that all time domain resources currently allocated to the first service need to be released.
In this embodiment, the calculated increment of the time domain resource corresponding to the first service may be sent to the second device, so that the second device may determine whether to add the time domain resource to the first service or to reduce the time domain resource to the first service without querying the amount of the time domain resource currently occupied by the first service according to the time domain resource configuration table maintained by the second device.
Step 502, the second device determines, according to the M first requests, the number of time domain resources occupied by each of the K services to be adjusted.
Step 503, the second device sends a first response to the first device.
Correspondingly, the first device receives a first response from the second device.
The first device sends a first message to the second device, step 504.
Correspondingly, the second device receives the first message sent by the first device. The first message is used to indicate: and the first device transmits the first service through the time domain resource corresponding to the first service according to the second time domain resource configuration table by taking the preset data unit as the start.
In a possible embodiment, when M is 1, the first acknowledgement may carry indication information indicating an amount of time domain resources that each of the K services needs to occupy after being adjusted. The first message may carry indication information for indicating the number of time domain resources that each of the K services needs to occupy after being adjusted. The information carried in the first response may be used to enable the first device to verify the first device, and after the verification is successful, the first message may be sent to the second device, and the message carried in the first message may be used to enable the second device to verify the message, and when the verification is successful, it is determined that the preset data unit is the start, and according to the fourth time domain resource configuration table, the first service is transmitted through the time domain resource corresponding to the first service.
The first request of step 501 and the first response of step 503 correspond to a handshake mechanism, and the first request may be used to indicate that the first device initiates a time domain resource adjustment request of the first service to the second device. The first response is used to indicate to the second device that preparations have been made to adjust the time domain resources of the first service in response to the request. The first message in step 504 is used to indicate that the first device and the second device are to start the updated time domain resource configuration table at a preset data unit (e.g. a code block starting from the next FlexE multiframe).
In the embodiment of the application, the second device determines, according to the M first requests, a time domain resource corresponding to the first service to be adjusted. After the first device and the second device respectively determine that the time domain resources corresponding to the first service need to be adjusted, third indication information is synchronized between the first device and the second device. In this way, the first device and the second device may both update the time domain resource allocation tables maintained by the first device and the second device by using the same resource allocation method according to the third indication information. It can be seen that, in the scheme shown in fig. 5B, in order to synchronize the time domain resource configuration table, only the third indication information needs to be synchronized, so that the data amount required to be synchronized can be reduced, and the processing flow is accelerated.
In one possible embodiment, in fig. 5A, only the first device may transmit the third indication information to the second device, for example, only the third indication information may be transmitted in step 501, and step 503 and step 504 may not be performed. For another example, only the first message may be sent in step 504, or step 501 and step 503 may not be executed.
After the first device and the second device synchronize the third indication information, the time domain resource configuration tables maintained by the first device and the second device may be updated respectively, and the updated time domain resource configuration tables are enabled to transmit services starting from the preset data unit. Specifically, the first device transmits the first service through the time domain resource corresponding to the first service according to the second time domain resource configuration table starting at the preset data unit. And the second device transmits the first service through the time domain resource corresponding to the first service by taking a preset data unit as a start according to the fourth time domain resource configuration table.
The first device sends a data stream to the second device, where the predetermined data unit in the data stream may be a data unit carrying a specific indication information. In the embodiments of the present application, a data unit refers to one bit or a plurality of consecutive bits, and information carried on a data unit may refer to information carried on bits included in the data unit. For example, one data unit may be one code block. As another example, a data unit may also be a Flit, where the Flit may be translated into flits in some scenarios. It should be noted that, for more clearly describing the scheme of the embodiment of the present application, some parts in the embodiment of the present application are described by taking one data unit as one code block as an example, and these embodiments are also applicable to a scenario in which one data unit is one Flit.
The data unit in the embodiment of the present application may include two types, which are a data unit of a data type and a data unit of a control type. The bits in the data units of the data type may be used to carry the actual data payload and the bits in the data units of the control type may be used to carry the control information.
Under the control type of data unit, various types of data units can be divided, for example: a head data unit, a tail data unit, a free data unit, an operation maintenance management data unit, an error data unit, a low power consumption data unit, and the like.
When the data unit is a code block, for example, one data unit may be one code block. A code block in this embodiment refers to one bit or a plurality of consecutive bits, and information carried on one code block may refer to information carried on bits included in the code block. The data unit of the data type in the embodiment of the present application may be a data code block, and the data code block may also be written as a D code block. The control-type data unit may be a control code block, which may be written as a C code block.
Wherein the header data unit of the control type data unit may be a header code block. The tail data unit may be a tail code block. The idle data unit may be an idle code block. The operation maintenance management data unit may be an operation maintenance management code block. The error data unit may be an error code block. The low power data unit may be a low power code block.
Fig. 6A illustrates a structural diagram of a code block of a 64B/66B coding format defined in the Standard, as shown in fig. 6A, as defined by the IEEE Std 802.3-2018, IEEE Standard for ethernet session SIX Standard. As shown in fig. 6A, the synchronization header region of the code block includes the 0 th bit and the 1 st bit of the code block, and there are two cases, 01 and 10, respectively, of the synchronization header region of the code block. A code block with a sync header of 01 is called a data code block, and the data code block can be written as a D code block; the sync header is 10 called a control code block. The field D0 of the control code block occupies 8 bits and may be referred to as a type field of the control code block (the type field may be written as a type field).
The control code block may include: a head code block (in this embodiment, the head code block may be written as an S code block), a tail code block (in this embodiment, the tail code block may be written as a T code block), an Ordered set code block (in this embodiment, the Ordered set code block may also be written as an O code block), an IDLE code block (in this embodiment, the IDLE code block may also be written as an IDLE code block, or written as an I/code block), an error code block (in the error code block may also be written as an error code block), a low-power-consumption code block, and the like. The header code block in the embodiment of the present application may be a code block with a synchronization header of 10 types and 0x78 in fig. 6A. The tail code block in the embodiment of the present application may be written as a T code block, including code blocks with a sync header of 10 and type fields of 0x87, 0x99, 0xAA, 0xB4, 0xCC, 0xD2, 0xE1, and 0xFF in fig. 6A. In the embodiment of the present application, the O code block is a code block with a synchronization header of 10 type and 0x4B in fig. 6A. In the embodiment of the present application, control code blocks other than the S code block and the T code block among the control code blocks may be written as C code blocks.
Fig. 6B exemplarily shows a structural form of an idle code block. As shown in fig. 6B, the sync header regions of the idle code blocks are all 10, and the contents of the other regions are as shown, and are all padded to 0x 00. The code block structure shown in fig. 6A is taken as an example of the code block involved in the embodiment of the present application for illustration, but the embodiment of the present application is also applicable to the code block structure defined by other standards, such as 8B/10B, 256B/257B, and the like.
Fig. 6C is a schematic diagram illustrating a structure of a code block for carrying the first request, the first response, or the first message, and as shown in example a of fig. 6C, the code block is a 64B/66B control code block selected for this embodiment, and a type of the control code block is selected to be 0x4B +0xB, so that the multiplexing end and the demultiplexing end can identify the type of the control code block.
In one possible embodiment, the adjustment of the time domain resource of the first service includes three actions, i.e. an addition, a deletion, and a bandwidth adjustment, so that the actions use 2 bits (bits) for carrying indication information for indicating the adjustment of the time domain resource of the first service, for example, the two bits can be carried by the OP area in the code block structure shown in fig. 6C. For example, it can be defined that: when the 2 bit is '00', the newly added time domain resource of the first service is represented; when the 2 bits are "01", it represents that the time domain resource is deleted for the first service; when the 2-bit is "10", the bandwidth is adjusted for the first service.
The service identifier indicated by the third indication information may be carried in a Si region in the code block structure shown in fig. 6C, where the Si region may include 16 bits. The information indicative of the number of time domain resources required for the service may also be carried in a Ci region in the code block structure shown in fig. 6C, which may include 16 bits. The reliability of transmission of information such as service identification, indication information of the number of the time domain resources of the first service, and adjustment actions of the time domain resources of the first service is ensured, and a Check code can be added to the code block, for example, Cyclic Redundancy Check (CRC) -8 can be carried on the code block, so that the second device checks the integrity of the code block according to the CRC-8.
Further, to distinguish the first request, the first response, and the first message, a flag bit may be added to the code block shown in fig. 6C, and when the code block is the first request, bit values carried by the SR region, the SA region, and the SC region are, in order: 100 as shown in example B of fig. 6C. When the code block is the first response, the bit values carried by the Service Request (SR) region, the Service Acknowledgement (SA) region, and the Service Commit (SC) region are sequentially: 010, as shown in example C of fig. 6C. When the code block is the first message, bit values carried by the SR region, the SA region, and the SC region are sequentially: 001 as shown in example D of fig. 6C.
The first request and the first response may also be understood as a handshake mechanism, so that the first device and the second device may update the time domain resource configuration table synchronously, and start the updated time domain resource configuration table synchronously.
As shown in fig. 6D, flexible ethernet may be based on a time division multiplexing frame structure constructed from 64B/66B code blocks. FlexE the data on each PHY is aligned by periodically inserting code blocks of FlexE Overhead (OH), such as 1 66B overhead code block FlexE OH every 1023 × 20 payload data code blocks of 66B. As shown in fig. 6D, the 66B code blocks of 8 rows (each row including 1 OH code block +1023x 20 Data (Data)) constitute a protocol frame under the flexible ethernet protocol, as shown in fig. 6D. The 32 protocol frames under the flexible Ethernet protocol form a multiframe under the flexible Ethernet protocol. In one possible implementation, in the first OH code block of a protocol frame under the flexible ethernet protocol, the 0x4B field of 0-7 bits and the 0x5 field of 32-35 bits together form the frame header indicator field of the overhead code block of the FlexE frame. Two management channels may be defined in the FlexE OH that may be used to run management, OAM communication links for two ethernet protocols of 1.2Mb/s and 1.8Mb/s based on 64B/66B code block sequence coding. Further, in the embodiment of the application, 64B/66B coding can be adopted in the scene of 100GE physical layer.
The first device mentioned above transmits the first service through the time domain resource corresponding to the first service according to the second time domain resource configuration table, starting at the preset data unit. And the second device transmits the first service through the time domain resource corresponding to the first service according to the fourth time domain resource configuration table by taking the preset data unit as the start. In one possible embodiment, the preset data unit may refer to: the first request corresponds to a first code block of a multiframe under a next adjacent flexible ethernet protocol of a multiframe under a current flexible ethernet protocol.
In a possible embodiment, in step 501, when M is an integer greater than 1, the first request further includes second indication information, where the second indication information is used to indicate whether the first request is the mth one of the M first requests. The first response comprises first indication information, and the first indication information is used for indicating a check value corresponding to the first indication information in the M requests; the first acknowledgement is sent by the second device after receiving the M first requests. In such an embodiment, the first message includes the first indication information.
In a specific application, there may occur a plurality of services that need to be adjusted, for example, when a pipeline is initialized, a plurality of service requests allocate time domain resources, or a network intermediate node has a plurality of services offline (i.e., a plurality of service requests delete time domain resources), or even a plurality of services have different bandwidth adjustment requests in an adjustment period. Therefore, in the embodiment of the application, a batch processing process is provided for a plurality of business adjustment clearly.
In a batch application scenario, fig. 6E illustrates a schematic diagram of a code block structure for transmitting a first request, a first response and a first message, where the code block shown in example a of fig. 6E is used for carrying the first request, and the code block structure increases an LSR area in which second indication information is carried compared with the code block structure of example a of fig. 6C. The LSR region of the codeblock carries a value of "0" when the first request carried by the codeblock is not the mth first request, and a value of "1" when the first request carried by the codeblock is the mth first request.
A structural diagram of a code block, which may be used to carry the first response and the first message, is illustrated in example B of fig. 6E. Since the content of the first indication information included in the M first requests is large, the first response and the first message may not carry the first indication information, but carry the first indication information, where the first indication information is a CRC-32 check value obtained by calculating all the first indication information (which may also include and be used to indicate a specific action when adjusting the service) included in the M first requests by using a CRC check algorithm. The second device calculates a CRC-32 check value according to the contents of the received M first requests, and feeds back the CRC-32 check value to the first device through the first response. And the first device calculates a CRC-32 check value according to the content in the M first requests stored by the first device, compares the CRC-32 check value with the CRC-32 check value fed back by the second device, and confirms whether the two check values are consistent, if so, sends the first message, and if not, does not send the first message. Optionally, the first message may carry a CRC-32 check value, which is used to enable the second apparatus to determine, according to the check value, that the service indicated in the previous M first requests needs to be prepared for adjustment. Through the embodiment, when more services are needed to adjust the time domain resources, the second request and the first message can only carry check values, so that the data transmission quantity can be reduced, and the service processing speed is increased.
In a possible embodiment, the first device sends a second message to the second device, and correspondingly, the second device receives the second message sent by the first device.
In a possible embodiment, the second message carries fourth indication information, where the fourth indication information is used to indicate an action log for configuring the first time domain resource configuration table. The second device determines an action log for configuring a third time domain resource configuration table; the second device verifies the fourth time domain resource configuration table and the second time domain resource configuration table according to the action log configured for the first time domain resource configuration table and the action log configured for the third time domain resource configuration table; and under the condition that the verification is passed, determining that the fourth time domain resource configuration table is the same as the second time domain resource configuration table.
For the first device and the second device, if an error occurs in the time domain resource configuration table, multiplexing or demultiplexing of multiple services may be failed, so that the embodiment of the present application provides that the time domain resource configuration table is checked through an action log, and optionally, the time domain resource configuration tables maintained by the first device and the second device may be periodically checked, so as to improve reliability of data transmission. The action log records an initial time domain resource configuration table and then modifies actions and parameters of the time domain resource configuration table, the actions can be divided into adding, deleting and adjusting, and the parameters can comprise service identification and target time domain resource quantity of the service. Fig. 6F exemplarily shows a schematic diagram of an action log for configuring a time domain resource configuration table, as shown in fig. 6F, at time t0, an initial state of the time domain resource configuration table is null, at time t1, a service S1 is newly added, and the number of time domain resources required by the service S1 is 10; at the time t2, a new service S2 is added, and the number of time domain resources required by the service S2 is 6; at the time t3, the service is adjusted to be S1, and the number of time domain resources required by the adjusted service S1 is 6; at time t4, deleting service S2; at the time t5, a new service S3 is added, and the number of time domain resources required by the service S3 is 7; … … are provided. And the first device and the second device generate a time domain resource configuration table according to the action sequence in the action logs respectively.
In another possible implementation manner, the second message carries fifth indication information, where the fifth indication information is used to indicate a check value corresponding to the second time domain resource configuration table. The second device determines a check value of a fourth time domain resource allocation table; the second device checks the fourth time domain resource allocation table and the second time domain resource allocation table according to the check value corresponding to the second time domain resource allocation table and the check value of the fourth time domain resource allocation table; and under the condition that the verification is passed, determining that the fourth time domain resource configuration table is the same as the second time domain resource configuration table.
Fig. 6G illustrates a structural diagram of a code block, such as the code block of example a of fig. 6G, which may be used to carry fifth indication information. Example B in fig. 6G illustrates an example in which the check value is CRC-32, and example C and example D in fig. 6G illustrate an example in which the check value is Digest Algorithm (MD 5). As shown in fig. 6G, "11" is carried after the code block 0x4B to indicate that the code block carries the fifth indication information.
The terms "system" and "network" in the embodiments of the present application may be used interchangeably. "at least one" means one or more, "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
And, unless specifically stated otherwise, the embodiments of the present application refer to the ordinal numbers "first", "second", "third", "fourth", etc., for distinguishing between a plurality of objects, and do not limit the sequence, timing, priority, or importance of the plurality of objects. For example, the first time domain resource allocation table, the second time domain resource allocation table, the third time domain resource allocation table, and the fourth time domain resource allocation table are only used to distinguish different time domain resource allocation tables, and do not indicate the difference in priority or importance of the two time domain resource allocation tables.
It should be noted that the names of the above messages are only used as examples, and any message may change its name as the communication technology evolves, but it falls within the scope of the present application as long as its meaning is the same as that of the above message of the present application, regardless of the change in the name.
The above-mentioned scheme provided by the present application is mainly introduced from the perspective of interaction between network elements. It is to be understood that the above-described implementation of each network element includes, in order to implement the above-described functions, a corresponding hardware structure and/or software module for performing each function. Those of skill in the art will readily appreciate that the present invention can be implemented in hardware or a combination of hardware and computer software, with the exemplary elements and algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
According to the foregoing method, fig. 7 is a schematic structural diagram of a communication apparatus provided in this embodiment of the present application, and as shown in fig. 7, the communication apparatus may be a network device, or may be a chip or a circuit, such as a chip or a circuit that may be disposed in a network device.
Further, the communication device 1301 may further include a bus system, wherein the processor 1302, the memory 1304, and the transceiver 1303 may be connected via the bus system.
It should be understood that the processor 1302 may be a chip. For example, the processor 1302 may be a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), a system on chip (SoC), a Central Processing Unit (CPU), a Network Processor (NP), a digital signal processing circuit (DSP), a Microcontroller (MCU), a Programmable Logic Device (PLD), or other integrated chips.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 1302. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor, or in a combination of the hardware and software modules in the processor 1302. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 1304, and the processor 1302 reads the information in the memory 1304 and performs the steps of the above method in combination with hardware thereof.
It should be noted that the processor 1302 in the embodiment of the present application may be an integrated circuit chip having signal processing capability. In implementation, the steps of the above method embodiments may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The processor described above may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
It will be appreciated that the memory 1304 in the subject embodiment can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), double data rate SDRAM, enhanced SDRAM, SLDRAM, Synchronous Link DRAM (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In a case where the communication device 1301 corresponds to the first device in the above method, the communication device may include a processor 1302, a transceiver 1303, and a memory 1304. The memory 1304 is configured to store instructions, and the processor 1302 is configured to execute the instructions stored by the memory 1304 to implement any one or more of the related aspects of the first apparatus in the corresponding method shown in fig. 3A to 6G.
When the communication device 1301 is the first device, in a possible embodiment, the processor 1302 is configured to determine that the amount of the time domain resource occupied by the first service needs to be adjusted; when the number of the time domain resources occupied by the first service needs to be increased, the first device allocates the time domain resources in the idle state to the first service; when the number of the time domain resources occupied by the first service needs to be reduced, the first device releases the time domain resources in the time domain resources currently occupied by the first service.
When the communication device 1301 is the first device, in a possible implementation, the processor 1302 is specifically configured to: when the number of the time domain resources occupied by the first service to be added is P1, the P1 is a positive integer, determining the time domain resources in an idle state at present according to the first time domain resource configuration table; the first time domain resource configuration table is used for storing the corresponding relation between the time domain resources and the services; determining P1 first time domain resources from the current time domain resources in the idle state according to a preset algorithm; adding the corresponding relation between the P1 first time domain resources and the first service in the first time domain resource allocation table to obtain a second time domain resource allocation table.
When the communication device 1301 is the first device, in a possible implementation, the processor 1302 is specifically configured to: when the number of the time domain resources occupied by the first service to be reduced is P2, and the P2 is a positive integer, determining the time domain resources currently occupied by the first service according to a first time domain resource configuration table; determining P2 second time domain resources from the time domain resources currently occupied by the first service according to a preset algorithm; and deleting the corresponding relation between the P2 second time domain resources and the first service in the first time domain resource configuration table to obtain a second time domain resource configuration table.
When the communication device 1301 is the first device, in a possible implementation, the processor 1302 is specifically configured to: determining the number K1 of time domain resources occupied by the first service according to a first time domain resource configuration table; determining the number K2 of time domain resources required to be occupied after the first service adjustment; when the K1 is smaller than the K2, determining that the number of time domain resources occupied by the first service needs to be increased; when the K1 is greater than the K2, it is determined that the amount of time domain resources occupied by the first service needs to be reduced.
When the communication device 1301 is the first device, in a possible embodiment, the communication device further includes a transceiver 1303 configured to: sending M first requests to a second device, wherein M is a positive integer; the M first requests carry: and indicating information for indicating the number of time domain resources that each service of the K services needs to occupy after being adjusted, where K is a positive integer, and the first service is one service of the K services.
When communication device 1301 is the first device described above, in one possible embodiment, M is greater than 1; the transceiver 1303 is further configured to: receiving a first response from the second device, wherein the first response comprises first indication information, and the first indication information is used for indicating check values corresponding to the M first requests; the first reply is sent by the second device after receiving the first request; generating check values according to the M first requests; when the check value generated by the first device is matched with the check value carried in the first response, sending a first message to the second device, wherein the first message comprises the first indication information; the first message is used for indicating that: the first device transmits services according to a second time domain resource configuration table from a preset data unit in the transmitted data stream; and transmitting the service according to the second time domain resource configuration table from a preset data unit in the transmitted data stream.
When the communication device 1301 is the first device, in a possible embodiment, the transceiver 1303 is further configured to: sending a second message to the second apparatus; the second message carries fourth indication information or fifth indication information; the fourth indication information is used for indicating an action log for configuring the first time domain resource configuration table; the fourth indication information is used for enabling the second device to compare the action log of the third time domain resource allocation table of the second device with the action log configured for the first time domain resource allocation table according to the fourth indication information, so as to determine whether the action log configured for the third time domain resource allocation table by the second device is consistent with the action log configured for the first time domain resource allocation table by the first device. The fifth indication information is used for indicating a check value corresponding to the second time domain resource configuration table; the fifth indication information is used for enabling the second device to compare the check value of a fourth time domain resource allocation table of the second device according to the fifth indication information so as to determine whether the fourth time domain resource allocation table obtained by the second device allocating the third time domain resource allocation table is consistent with the second time domain resource allocation table; and the third time domain resource configuration table is used for storing the corresponding relation between the service and the time domain resource.
In a case where the communication device 1301 corresponds to the second device in the above method, the communication device may include a processor 1302, a transceiver 1303, and a memory 1304. The memory 1304 is configured to store instructions, and the processor 1302 is configured to execute the instructions stored by the memory 1304 to implement any one or more of the methods described above with reference to fig. 3A-6G.
When the communication device 1301 is the second device, in a possible embodiment, the processor 1302 is configured to determine that the amount of the time domain resource occupied by the first service needs to be adjusted; when the number of time domain resources occupied by the first service needs to be increased, allocating the time domain resources in the idle state to the first service; and when the number of the time domain resources occupied by the first service needs to be reduced, releasing the time domain resources in the time domain resources currently occupied by the first service.
When the communication device 1301 is the second device, in a possible implementation, the processor 1302 is specifically configured to: when the number of the time domain resources occupied by the first service to be added is P1, the P1 is a positive integer, and the time domain resources in the idle state at present are determined according to the third time domain resource configuration table; the third time domain resource configuration table is used for storing the corresponding relation between the time domain resources and the services; determining P1 first time domain resources from the current time domain resources in the idle state according to a preset algorithm; adding the corresponding relation between the P1 first time domain resources and the first service in the third time domain resource allocation table to obtain a fourth time domain resource allocation table.
When the communication device 1301 is the second device, in a possible implementation, the processor 1302 is specifically configured to: when the number of the time domain resources occupied by the first service to be reduced is P2, and the P2 is a positive integer, determining the time domain resources currently occupied by the first service according to a third time domain resource configuration table; determining P2 second time domain resources from the time domain resources currently occupied by the first service according to a preset algorithm; and deleting the corresponding relation between the P2 second time domain resources and the first service in the third time domain resource configuration table to obtain a fourth time domain resource configuration table.
When the communication device 1301 is the second device, in a possible implementation, the processor 1302 is specifically configured to: determining the number K3 of the time domain resources occupied by the first service according to a third time domain resource configuration table; determining the number K2 of time domain resources required to be occupied after the first service adjustment; when the K3 is smaller than the K2, determining that the number of time domain resources occupied by the first service needs to be increased; when the K3 is greater than the K2, it is determined that the amount of time domain resources occupied by the first service needs to be reduced.
When the communication device 1301 is the second device, in a possible embodiment, the communication device further includes a transceiver 1303 configured to: receiving M first requests sent by a first device, wherein M is a positive integer; the M first requests carry: the indication information is used for indicating the number of time domain resources which need to be occupied after each service in K services is adjusted, and K is a positive integer; the first service is one of the K services. The processor 1302 is specifically configured to: and determining the number of time domain resources occupied by each service in the K services to be adjusted according to the M first requests.
When the communication device 1301 is the second device, in one possible embodiment, M is greater than 1, the transceiver 1303 is further configured to: sending a first response to the first device, wherein the first response comprises first indication information, and the first indication information is used for indicating check values corresponding to the M first requests; receiving a first message sent by the first device, where the first message includes the first indication information, and the first message is sent when a check value generated by the first device according to the M first requests matches a check value carried in the first response; the first message is used for indicating that: the first device transmits services according to a second time domain resource configuration table from a preset data unit in the transmitted data stream; and transmitting the service according to the fourth time domain resource allocation table from the preset data unit in the transmitted data stream.
For the concepts, explanations, details and other steps related to the technical solutions provided in the embodiments of the present application related to the communication device, please refer to the descriptions of the foregoing methods or other embodiments, which are not repeated herein.
Fig. 8 is a schematic structural diagram of a communication apparatus provided in an embodiment of the present application according to the foregoing method, and as shown in fig. 8, the communication apparatus 1401 may include a communication interface 1403, a processor 1402, and a memory 1404. The communication interface 1403 for inputting and/or outputting information; the processor 1402 is configured to execute a computer program or an instruction to enable the communication apparatus 1401 to implement the method on the first apparatus side in the related schemes of fig. 3A to 6G described above, or to enable the communication apparatus 1401 to implement the method on the second apparatus side in the related schemes of fig. 3A to 6G described above. In this embodiment of the application, the communication interface 1403 may implement the scheme implemented by the transceiver 1303 in fig. 7, the processor 1402 may implement the scheme implemented by the processor 1302 in fig. 7, and the memory 1404 may implement the scheme implemented by the memory 1304 in fig. 7, which is not described herein again.
Based on the above embodiments and the same concept, fig. 9 is a schematic diagram of a communication apparatus provided in the embodiments of the present application, and as shown in fig. 9, the communication apparatus 1501 may be a network device, or may be a chip or a circuit, for example, a chip or a circuit that may be disposed in a network device.
The communication device may correspond to the network device in the above method. The communication apparatus may implement the steps performed by the network device in any one or any number of corresponding methods shown in fig. 3A-6G above. The communication device may include a processing unit 1502 and a transceiving unit 1503.
In the case where the communication apparatus 1501 corresponds to the first apparatus in the above-described method, the communication apparatus may include a processing unit 1502 and a transceiving unit 1503. When the communication device 1501 is the first device, in a possible embodiment, the processing unit 1502 is configured to determine that the amount of the time domain resource occupied by the first service needs to be adjusted; when the number of the time domain resources occupied by the first service needs to be increased, the first device allocates the time domain resources in the idle state to the first service; when the number of the time domain resources occupied by the first service needs to be reduced, the first device releases the time domain resources in the time domain resources currently occupied by the first service.
In the case where the communication apparatus 1501 corresponds to the second apparatus in the above-described method, the communication apparatus may include a processing unit 1502 and a transceiving unit 1503. When the communication device 1501 is the second device, in a possible embodiment, the processing unit 1502 is configured to determine that the amount of the time domain resource occupied by the first service needs to be adjusted; when the number of time domain resources occupied by the first service needs to be increased, allocating the time domain resources in the idle state to the first service; and when the number of the time domain resources occupied by the first service needs to be reduced, releasing the time domain resources in the time domain resources currently occupied by the first service.
For the concepts, explanations, details and other steps related to the technical solutions provided in the embodiments of the present application related to the communication device, please refer to the descriptions of the foregoing methods or other embodiments, which are not repeated herein.
It is to be understood that the functions of the units in the communication apparatus 1501 can refer to the implementation of the corresponding method embodiments, and are not described herein again.
It should be understood that the above division of the units of the communication device is only a division of logical functions, and the actual implementation may be wholly or partially integrated into one physical entity or may be physically separated. In this embodiment of the application, the transceiver unit 1503 may be implemented by the transceiver 1303 in fig. 7, and the processing unit 1502 may be implemented by the processor 1302 in fig. 7.
According to the method provided by the embodiment of the present application, the present application further provides a computer program product, which includes: computer program code or instructions which, when run on a computer, cause the computer to perform the method of any one of the embodiments shown in figures 3A to 6G.
According to the method provided by the embodiment of the present application, the present application further provides a computer-readable storage medium storing program code, which when run on a computer, causes the computer to execute the method of any one of the embodiments shown in fig. 3A to 6G.
According to the method provided by the embodiment of the present application, the present application further provides a system, which includes the foregoing one or more network devices and one or more network devices.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may 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. The processes or functions described in accordance with the embodiments of the present application occur in whole or in part when the computer instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a Digital Video Disk (DVD)), or a semiconductor medium (e.g., a Solid State Disk (SSD)), among others.
It is noted that a portion of this patent application contains material which is subject to copyright protection. The copyright owner reserves the copyright rights whatsoever, except for making copies of the patent files or recorded patent document contents of the patent office.
The first device in the above-mentioned device embodiments corresponds to the second device and the first device or the second device in the method embodiments, and the corresponding steps are executed by a corresponding module or unit, for example, the communication unit (transceiver) executes the steps of receiving or transmitting in the method embodiments, and other steps besides transmitting and receiving may be executed by a processing unit (processor). The functions of the specific elements may be referred to in the respective method embodiments. The number of the processors may be one or more.
As used in this specification, the terms "component," "module," "system," and the like are intended to refer to a computer-related entity, either hardware, firmware, a combination of hardware and software, or software in execution. For example, a component may be, but is not limited to being, a process running on a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a computing device and the computing device can be a component. One or more components can reside within a process and/or thread of execution and a component may be localized on one computer and/or distributed between two or more computers. In addition, these components can execute from various computer readable media having various data structures stored thereon. The components may communicate by way of local and/or remote processes such as in accordance with a signal having one or more data packets (e.g., data from two components interacting with another component in a local system, distributed system, and/or across a network such as the internet with other systems by way of the signal).
Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps (step) described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the unit is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
This functionality, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and all the changes or substitutions should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (29)

1. A method for resource allocation, the method comprising:
the method comprises the steps that a first device determines that the number of time domain resources occupied by a first service needs to be adjusted;
when the number of the time domain resources occupied by the first service needs to be increased, the first device allocates the time domain resources in the idle state to the first service;
and when the number of the time domain resources occupied by the first service needs to be reduced, the first device releases the time domain resources in the time domain resources currently occupied by the first service.
2. The method as claimed in claim 1, wherein when the amount of the time domain resources occupied by the first service needs to be increased, the first device allocates the time domain resources in the time domain resources currently in an idle state to the first service, including:
when the number of time domain resources occupied by the first service to be added is P1, the P1 is a positive integer, and the first device determines the time domain resources currently in an idle state according to the first time domain resource configuration table; the first time domain resource configuration table is used for storing the corresponding relation between the time domain resources and the services;
the first device determines P1 first time domain resources from the current time domain resources in the idle state according to a preset algorithm;
and the first device adds the corresponding relation between the P1 first time domain resources and the first service in the first time domain resource configuration table to obtain a second time domain resource configuration table.
3. The method as claimed in claim 1 or 2, wherein, when the amount of the time domain resources occupied by the first service needs to be reduced, the first device releases the time domain resources in the time domain resources currently occupied by the first service, including:
when the number of time domain resources occupied by the first service to be reduced is P2, where P2 is a positive integer, the first device determines the time domain resources currently occupied by the first service according to a first time domain resource configuration table;
the first device determines P2 second time domain resources from the time domain resources currently occupied by the first service according to a preset algorithm;
and the first device deletes the corresponding relation between the P2 second time domain resources and the first service in the first time domain resource configuration table to obtain a second time domain resource configuration table.
4. A method according to any of claims 1-3, wherein the determining by the first device that the amount of time domain resources occupied by the first service needs to be adjusted comprises:
the first device determines the number K1 of time domain resources occupied by the first service according to a first time domain resource configuration table;
the first device determines the number K2 of time domain resources required to be occupied after the first service is adjusted;
when the K1 is smaller than the K2, the first device determines that the amount of time domain resources occupied by the first service needs to be increased;
when the K1 is greater than the K2, the first device determines that the amount of time domain resources occupied by the first service needs to be reduced.
5. The method as claimed in any one of claims 1 to 4, wherein after the first device determines that the amount of time domain resources occupied by the first service needs to be adjusted, the method further comprises:
the first device sends M first requests to a second device, wherein M is a positive integer;
carrying in the M first requests: and indicating information for indicating the number of time domain resources that each service of the K services needs to occupy after being adjusted, where K is a positive integer, and the first service is one service of the K services.
6. The method of claim 5, wherein M is greater than 1, and wherein after the first apparatus sends M first requests to the second apparatus, further comprising:
the first device receives a first response from the second device, wherein the first response comprises first indication information, and the first indication information is used for indicating check values corresponding to the M first requests; the first reply is sent by the second apparatus after receiving the first request;
the first device generates check values according to the M first requests;
when the check value generated by the first device is matched with the check value carried in the first response, the first device sends a first message to the second device, wherein the first message comprises the first indication information; the first message is used for indicating that: the first device transmits services according to a second time domain resource configuration table from a preset data unit in the transmitted data stream;
and the first device transmits the service according to the second time domain resource configuration table from a preset data unit in the transmitted data stream.
7. The method of claim 6, wherein after the first device transmits the service according to the second time domain resource configuration table starting from a preset data unit in the transmitted data stream, further comprising:
the first device sending a second message to the second device; the second message carries fourth indication information or fifth indication information;
the fourth indication information is used for indicating an action log for configuring the first time domain resource configuration table; the fourth indication information is used for enabling the second device to compare an action log of a third time domain resource configuration table of the second device with an action log configured for the first time domain resource configuration table according to the fourth indication information, so as to determine whether the action log configured for the third time domain resource configuration table by the second device is consistent with the action log configured for the first time domain resource configuration table by the first device;
the fifth indication information is used for indicating a check value corresponding to the second time domain resource configuration table; the fifth indication information is used for enabling the second device to compare a check value of a fourth time domain resource configuration table of the second device according to the fifth indication information so as to determine whether the fourth time domain resource configuration table obtained by configuring the third time domain resource configuration table by the second device is consistent with the second time domain resource configuration table; and the third time domain resource configuration table is used for storing the corresponding relation between the service and the time domain resource.
8. A method for resource allocation, the method comprising:
the second device determines that the number of time domain resources occupied by the first service needs to be adjusted;
when the number of the time domain resources occupied by the first service needs to be increased, the second device allocates the time domain resources in the idle state to the first service;
and when the number of the time domain resources occupied by the first service needs to be reduced, the second device releases the time domain resources in the time domain resources currently occupied by the first service.
9. The method as claimed in claim 8, wherein when the amount of the time domain resources occupied by the first service needs to be increased, the second device allocates the time domain resources in the time domain resources currently in an idle state to the first service, including:
when the number of the time domain resources occupied by the first service to be added is P1, the P1 is a positive integer, the second device determines the time domain resources currently in an idle state according to the third time domain resource configuration table; the third time domain resource configuration table is used for storing the corresponding relation between the time domain resources and the services;
the second device determines P1 first time domain resources from the current time domain resources in the idle state according to a preset algorithm;
and the second device adds the corresponding relation between the P1 first time domain resources and the first service in the third time domain resource configuration table to obtain a fourth time domain resource configuration table.
10. The method as claimed in claim 8 or 9, wherein when the amount of the time domain resources occupied by the first service needs to be reduced, the second apparatus releases the time domain resources in the time domain resources currently occupied by the first service, including:
when the number of the time domain resources occupied by the first service to be reduced is P2, the P2 is a positive integer, the second device determines the time domain resources currently occupied by the first service according to a third time domain resource configuration table;
the second device determines P2 second time domain resources from the time domain resources currently occupied by the first service according to a preset algorithm;
and the second device deletes the corresponding relation between the P2 second time domain resources and the first service in the third time domain resource configuration table to obtain a fourth time domain resource configuration table.
11. The method of any of claims 8-10, wherein the second device determining that the amount of time domain resources occupied by the first service needs to be adjusted comprises:
the second device determines the number K3 of the time domain resources occupied by the first service according to a third time domain resource configuration table;
the second device determines the number K2 of time domain resources required to be occupied after the first service is adjusted;
when the K3 is smaller than the K2, the second device determines that the amount of time domain resources occupied by the first service needs to be increased;
when the K3 is greater than the K2, the second device determines that the amount of time domain resources occupied by the first service needs to be reduced.
12. The method of any of claims 8-11, wherein the second device determining that the amount of time domain resources occupied by the first service needs to be adjusted comprises:
the second device receives M first requests sent by the first device, wherein M is a positive integer; carrying in the M first requests: the indication information is used for indicating the number of time domain resources which need to be occupied after each service in K services is adjusted, and K is a positive integer; the first service is one of the K services;
and the second device determines the number of time domain resources occupied by each service in the K services to be adjusted according to the M first requests.
13. The method of claim 12, wherein M is greater than 1, and wherein after the second device receives M first requests sent by the first device, further comprising:
the second device sends a first response to the first device, wherein the first response comprises first indication information, and the first indication information is used for indicating check values corresponding to the M first requests;
the second device receives a first message sent by the first device, wherein the first message comprises the first indication information, and the first message is sent when a check value generated by the first device according to the M first requests is matched with a check value carried in the first response; the first message is used for indicating that: the first device transmits services according to a second time domain resource configuration table from a preset data unit in the transmitted data stream;
and the second device transmits the service according to the fourth time domain resource allocation table from the preset data unit in the transmitted data stream.
14. A communications apparatus comprising one or more processors; a memory; and one or more computer programs;
wherein the one or more computer programs are stored in the memory, which when invoked for execution by the one or more processors, cause the communication device to perform the steps of:
determining the number of time domain resources occupied by the first service to be adjusted;
when the number of the time domain resources occupied by the first service needs to be increased, the first device allocates the time domain resources in the idle state to the first service; and when the number of the time domain resources occupied by the first service needs to be reduced, the first device releases the time domain resources in the time domain resources currently occupied by the first service.
15. The apparatus as recited in claim 14, wherein said processor is specifically configured to:
when the number of time domain resources occupied by the first service to be added is P1, the P1 is a positive integer, determining the time domain resources currently in an idle state according to the first time domain resource configuration table; the first time domain resource configuration table is used for storing the corresponding relation between the time domain resources and the services;
determining P1 first time domain resources from the current time domain resources in the idle state according to a preset algorithm;
and adding the corresponding relation between the P1 first time domain resources and the first service in the first time domain resource configuration table to obtain a second time domain resource configuration table.
16. The apparatus of claim 14 or 15, wherein the processor is specifically configured to:
when the number of time domain resources occupied by the first service to be reduced is P2, and the P2 is a positive integer, determining the time domain resources currently occupied by the first service according to a first time domain resource configuration table;
determining P2 second time domain resources from the time domain resources currently occupied by the first service according to a preset algorithm;
and deleting the corresponding relation between the P2 second time domain resources and the first service in the first time domain resource configuration table to obtain a second time domain resource configuration table.
17. The apparatus of any one of claims 14-16, wherein the processor is specifically configured to:
determining the number K1 of time domain resources occupied by the first service according to a first time domain resource configuration table;
determining the number K2 of time domain resources required to be occupied after the first service adjustment;
when the K1 is smaller than the K2, determining the number of time domain resources occupied by the first service to be increased;
and when the K1 is larger than the K2, determining that the number of time domain resources occupied by the first service needs to be reduced.
18. The apparatus of any one of claims 14-17, further comprising a transceiver to:
sending M first requests to a second device, wherein M is a positive integer;
carrying in the M first requests: and indicating information for indicating the number of time domain resources that each service of the K services needs to occupy after being adjusted, where K is a positive integer, and the first service is one service of the K services.
19. The apparatus of claim 18, wherein M is greater than 1; the transceiver is further configured to: receiving a first response from the second device, wherein the first response comprises first indication information, and the first indication information is used for indicating check values corresponding to the M first requests; the first reply is sent by the second apparatus after receiving the first request;
generating check values according to the M first requests;
when the check value generated by the first device is matched with the check value carried in the first response, sending a first message to the second device, wherein the first message comprises the first indication information; the first message is used for indicating that: the first device transmits services according to a second time domain resource configuration table from a preset data unit in the transmitted data stream;
and transmitting the service according to the second time domain resource configuration table from a preset data unit in the transmitted data stream.
20. The apparatus of claim 19, wherein the transceiver is further configured to:
sending a second message to the second apparatus; the second message carries fourth indication information or fifth indication information;
the fourth indication information is used for indicating an action log for configuring the first time domain resource configuration table; the fourth indication information is used for enabling the second device to compare an action log of a third time domain resource configuration table of the second device with an action log configured for the first time domain resource configuration table according to the fourth indication information, so as to determine whether the action log configured for the third time domain resource configuration table by the second device is consistent with the action log configured for the first time domain resource configuration table by the first device;
the fifth indication information is used for indicating a check value corresponding to the second time domain resource configuration table; the fifth indication information is used for enabling the second device to compare a check value of a fourth time domain resource configuration table of the second device according to the fifth indication information so as to determine whether the fourth time domain resource configuration table obtained by configuring the third time domain resource configuration table by the second device is consistent with the second time domain resource configuration table; and the third time domain resource configuration table is used for storing the corresponding relation between the service and the time domain resource.
21. A communications apparatus comprising one or more processors; a memory; and one or more computer programs;
wherein the one or more computer programs are stored in the memory, which when invoked for execution by the one or more processors, cause the communication device to perform the steps of:
determining the number of time domain resources occupied by the first service to be adjusted;
when the number of time domain resources occupied by the first service needs to be increased, allocating the time domain resources in the idle state to the first service;
and when the number of the time domain resources occupied by the first service needs to be reduced, releasing the time domain resources in the time domain resources currently occupied by the first service.
22. The apparatus as recited in claim 21, wherein said processor is specifically configured to:
when the number of the time domain resources occupied by the first service to be added is P1, the P1 is a positive integer, and the time domain resources in the idle state at present are determined according to the third time domain resource configuration table; the third time domain resource configuration table is used for storing the corresponding relation between the time domain resources and the services;
determining P1 first time domain resources from the current time domain resources in the idle state according to a preset algorithm;
and adding the corresponding relation between the P1 first time domain resources and the first service in the third time domain resource configuration table to obtain a fourth time domain resource configuration table.
23. The apparatus of claim 21 or 22, wherein the processor is specifically configured to:
when the number of the time domain resources occupied by the first service to be reduced is P2, the P2 is a positive integer, determining the time domain resources currently occupied by the first service according to a third time domain resource configuration table;
determining P2 second time domain resources from the time domain resources currently occupied by the first service according to a preset algorithm;
and deleting the corresponding relation between the P2 second time domain resources and the first service in the third time domain resource configuration table to obtain a fourth time domain resource configuration table.
24. The apparatus of any one of claims 21-23, wherein the processor is specifically configured to:
determining the number K3 of the time domain resources occupied by the first service according to a third time domain resource configuration table;
determining the number K2 of time domain resources required to be occupied after the first service adjustment;
when the K3 is smaller than the K2, determining the number of time domain resources occupied by the first service to be increased;
and when the K3 is larger than the K2, determining that the number of time domain resources occupied by the first service needs to be reduced.
25. The apparatus of any one of claims 21-24, further comprising a transceiver to:
receiving M first requests sent by a first device, wherein M is a positive integer; carrying in the M first requests: the indication information is used for indicating the number of time domain resources which need to be occupied after each service in K services is adjusted, and K is a positive integer; the first service is one of the K services;
the processor is specifically configured to:
and determining the number of time domain resources occupied by each service in the K services to be adjusted according to the M first requests.
26. The apparatus of claim 25, wherein M is greater than 1, the transceiver further configured to:
sending a first response to the first device, wherein the first response comprises first indication information, and the first indication information is used for indicating check values corresponding to the M first requests;
receiving a first message sent by the first device, where the first message includes the first indication information, and the first message is sent when a check value generated by the first device according to the M first requests matches a check value carried in the first response; the first message is used for indicating that: the first device transmits services according to a second time domain resource configuration table from a preset data unit in the transmitted data stream;
and transmitting the service according to the fourth time domain resource allocation table from the preset data unit in the transmitted data stream.
27. A communication apparatus, the apparatus comprising a processor and a memory,
the memory for storing a computer program;
the processor configured to execute a computer program in a memory such that the method of any of claims 1-13 is performed.
28. A communication apparatus, the apparatus comprising a processor and a communication interface,
the communication interface is used for inputting and/or outputting information;
the processor configured to execute a computer program such that the method of any of claims 1-13 is performed.
29. A computer-readable storage medium, characterized in that it stores a computer-executable program which, when invoked by a computer, causes the computer to perform the method according to any one of claims 1 to 13.
CN202010568952.9A 2020-06-19 2020-06-19 Resource allocation method and device and readable storage medium Pending CN113824525A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010568952.9A CN113824525A (en) 2020-06-19 2020-06-19 Resource allocation method and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010568952.9A CN113824525A (en) 2020-06-19 2020-06-19 Resource allocation method and device and readable storage medium

Publications (1)

Publication Number Publication Date
CN113824525A true CN113824525A (en) 2021-12-21

Family

ID=78924642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010568952.9A Pending CN113824525A (en) 2020-06-19 2020-06-19 Resource allocation method and device and readable storage medium

Country Status (1)

Country Link
CN (1) CN113824525A (en)

Similar Documents

Publication Publication Date Title
EP3787208B1 (en) Data transmission method and a communication system
EP4266632A1 (en) Data transmission method and apparatus
US11412074B2 (en) Method and device for transparently transmitting service frequency
US11082367B2 (en) FlexE frame format using 256b/257b block encoding
US11838181B2 (en) Flexible ethernet group management method, device, and computer-readable storage medium
US20230388984A1 (en) Communication Method and Device, and Chip System
WO2022166852A1 (en) Ethernet frame framing method and device
CN108521343A (en) A kind of processing method and processing device of OAM message
CN109951750B (en) Data processing method and system based on FlexE layer cross architecture
WO2022042743A1 (en) Data transmission method and apparatus, electronic device and computer-readable medium
US20200288468A1 (en) Data transmission method and device
CN113330696A (en) CPRI data block transmission method and device
WO2021057678A1 (en) Method and device for service processing, and storage medium
WO2022183875A1 (en) Method for determining transmission time slot and related apparatus
CN113824525A (en) Resource allocation method and device and readable storage medium
WO2023109424A1 (en) Data transmission method and related device
WO2020029892A1 (en) Method for receiving code block stream, method for sending code block stream and communication apparatus
CN114095950A (en) Resource allocation method and communication device
WO2022037090A1 (en) Interface, data processing method and apparatus, and network device
CN114157517A (en) Interface, data processing method, device and network equipment
WO2022170812A1 (en) Communication method, device, and chip system
WO2024046465A1 (en) Data transmission method and apparatus
WO2023083175A1 (en) Packet transmission method and communication apparatus
WO2023124551A1 (en) Packet signal sending method and apparatus, and storage medium and electronic apparatus
WO2022083473A1 (en) Data transmission method and apparatus related thereto

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination