Client service transmission method and apparatus
AssigneeHuawei Technologies Co., Ltd.
InventorYujie Chen
Life of this patent
Estimating the term…
Abstract
This application discloses a client service transmission method and apparatus. The method may include: receiving a client service, where the client service includes a plurality of data blocks, the client service is corresponding to a counter, and the counter is used to control an output rate of the client service; and sending the plurality of data blocks in a plurality of sending periods, where when a count value of the counter reaches a preset threshold in each sending period, at least one data block of the plurality of data blocks is sent. This technology may be applied to a scenario in which a transmission node transmits a client service.
Claims17
A method, comprising:
- obtaining a plurality of optical transport network (OTN) data blocks, wherein the plurality of OTN data blocks are used to carry a plurality of client services, wherein all OTN data blocks of the plurality of OTN data blocks have a same fixed length, and each OTN data block of the plurality of OTN data blocks comprises a label, a payload area and a cyclic redundancy check (CRC) area;
- for each OTN data block of the plurality of OTN data blocks, performing, based on the respective label comprised in the respective OTN data block, label exchange on the respective OTN data block, to obtain an exchanged OTN data block;
- for each exchanged OTN data block, caching the respective exchanged OTN data block, wherein the caching of each respective exchanged OTN data block obtains a plurality of cache queues, and wherein OTN data blocks that belong to a same cache queue in the plurality of cache queues are used to carry a same client service;
- separately performing rate supervision on each of the plurality of cache queues;
- performing OTN data block-level policy scheduling on first OTN data blocks in the plurality of cache queues;
- and
- sending the first OTN data blocks;
- wherein separately performing rate supervision on each of the plurality of cache queues, and sending the first OTN data blocks, comprises:
- setting a counter for a first queue in the plurality of cache queues, wherein the counter is used to control an output rate of a client service corresponding to the first queue;
- and
- sending the first OTN data blocks in the first queue in a plurality of sending periods, wherein when a count value of the counter reaches a preset threshold in each sending period, at least one first OTN data block of the first OTN data blocks in the first queue is sent;
- and
- wherein before the count value of the counter reaches the preset threshold in each sending period, the method further comprises:
- increasing the count value of the counter by C in each counting period of the counter, wherein C is less than or equal to the preset threshold, wherein C is a ratio of a bandwidth of the client service corresponding to the first queue to a unit bandwidth, the preset threshold is a ratio of an output line interface bandwidth to an adjusted value of the unit bandwidth, and the adjusted value of the unit bandwidth is greater than or equal to the unit bandwidth.
An apparatus, comprising:
- a non-transitory memory, configured to store computer-executable program code;
- and
- a processor, coupled to the non-transitory memory;
- wherein the program code comprises an instruction, and when executed by the processor, the instruction causes the apparatus to:
- obtain a plurality of OTN data blocks, wherein the plurality of OTN data blocks are used to carry a plurality of client services, wherein all OTN data blocks of the plurality of OTN data blocks have a same fixed length, and each OTN block of the plurality of OTN data blocks comprises a label, a payload area and a CRC area;
- for each OTN data block of the plurality of OTN data blocks, perform, based on the respective label comprised in the respective OTN data block, label exchange on the respective OTN data block, to obtain an exchanged OTN data block;
- for each exchanged OTN data block, cache the respective exchanged OTN data block, wherein the caching of each respective exchanged OTN data block obtains a plurality of cache queues, and wherein OTN data blocks that belong to a same cache queue in the plurality of cache queues are used to carry a same client service;
- separately perform rate supervision on each of the plurality of cache queues;
- perform OTN data block-level policy scheduling on first OTN data blocks in the plurality of cache queues;
- and
- send the first OTN data blocks;
- p2 wherein separately performing rate supervision on each of the plurality of cache queues, and sending the first OTN data blocks, comprises:
- setting a counter for a first queue in the plurality of cache queues, wherein the counter is used to control an output rate of a client service corresponding to the first queue;
- and
- sending the first OTN data blocks in the first queue in a plurality of sending periods, wherein when a count value of the counter reaches a preset threshold in each sending period, at least one first OTN data block of the first OTN data blocks is sent;
- wherein the instruction, when executed by the processor, further causes the apparatus to:
- before the count value of the counter reaches the preset threshold in each sending period, increase the count value of the counter by C in each counting period of the counter, wherein C is less than or equal to the preset threshold, wherein C is a ratio of a bandwidth of the client service corresponding to the first queue to a unit bandwidth, the preset threshold is a ratio of an output line interface bandwidth to an adjusted value of the unit bandwidth, and the adjusted value of the unit bandwidth is greater than or equal to the unit bandwidth.
An optical transport network (OTN) system, comprising:
- a first device;
- a second device;
- and
- a third device;
- wherein the first device is configured to send a plurality of OTN data blocks to the second device;
- wherein the second device is configured to:
- obtain the plurality of OTN data blocks, wherein the plurality of OTN data blocks are used to carry a plurality of client services, wherein all OTN data blocks of the plurality of OTN data blocks have a same fixed length, and each OTN data block of the plurality of OTN data blocks comprises a label, a payload area and a CRC area;
- for each of the plurality of OTN data blocks, perform, based on the respective label comprised in the respective OTN data block, label exchange on the respective OTN data block, to obtain an exchanged OTN data block;
- for each exchanged OTN data block, cache the respective exchanged OTN data block, wherein the caching of each respective exchanged OTN data block obtains a plurality of cache queues, and wherein OTN data blocks that belong to a same cache queue in the plurality of cache queues are used to carry a same client service;
- separately perform rate supervision on each of the plurality of cache queues;
- perform OTN data block-level policy scheduling on first OTN data blocks in the plurality of cache queues;
- and
- send the first OTN data blocks to the third device;
- wherein separately performing rate supervision on each of the plurality of cache queues, and sending the first OTN data blocks, comprises:
- setting a counter for a first queue in the plurality of cache queues, wherein the counter is used to control an output rate of a client service corresponding to the first queue;
- and
- sending the first OTN data blocks in the first queue in a plurality of sending periods, wherein when a count value of the counter reaches a preset threshold in each sending period, at least one first OTN data block of the first OTN data blocks is sent;
- wherein before the count value of the counter reaches the preset threshold in each sending period, the second device is further configured to:
- increase the count value of the counter by C in each counting period of the counter, wherein C is less than or equal to the preset threshold, wherein C is a ratio of a bandwidth of the client service corresponding to the first queue to a unit bandwidth, the preset threshold is a ratio of an output line interface bandwidth to an adjusted value of the unit bandwidth, and the adjusted value of the unit bandwidth is greater than or equal to the unit bandwidth.
Dependencies are inferred from the claim text.