IP Library Granted Patent US 10,715,306
Granted Patent B2
US 10,715,306 · App. 16/282,690 · Granted Jul 14, 2020

Method and apparatus for sending service, method and apparatus for receiving service, and network system

Inventors: Qiwen Zhong (Shenzhen, CN); Xiaofei Xu (Beijing, CN); Xiaojun Zhang (Shenzhen, CN)
Assignee: Huawei Technologies Co., Ltd.
H04L7/0008H04J3/0658H04J3/1611H04J3/1652H04J3/1658H04L49/352H04J2203/0085
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,715,306
App. No.
16/282,690
Granted
Jul 14, 2020
Kind
B2
Abstract

A method and an apparatus for sending a service, a method and an apparatus for receiving a service, and a network system. The method for sending a service includes obtaining, by a transmit end device, an original data stream, inserting a quantity mark k into the original data stream, to generate a first data stream, where the quantity mark k is a quantity of first data units in the original data stream, and k is greater than or equal to 0, and sending the first data stream.

Claims (73)

1. A method for sending a service, comprising:

obtaining, by a transmit end device, an original data stream;

inserting, by the transmit end device, a quantity mark k into the original data stream to generate a first data stream, wherein the quantity mark k identifies a quantity of first data units in the original data stream, and k is greater than or equal to zero, wherein each data unit in the original data stream is respectively an idle unit or a non-idle unit, and each idle unit is insertable and deletable between the transmit end device and a receive end device; and

sending, by the transmit end device, the first data stream.

2. The method according to claim 1 , wherein the inserting a quantity mark k into the original data stream comprises:

obtaining a first segment of data stream from the original data stream, and determining a quantity of first data units in the first segment of data stream; and

inserting the quantity mark k at a first location in the first segment of data stream, wherein a value of the quantity mark k is equal to the quantity of first data units in the first segment of data stream, and wherein the first location is a location of a data unit that can be used to carry the quantity mark k.

3. The method according to claim 2 , wherein the first data units comprise all data units in the first segment of data stream, and wherein k is an integer greater than zero.

4. The method according to claim 2 , wherein the first data units are idle units in the first segment of data stream, and wherein k is an integer greater than or equal to zero.

5. The method according to claim 2 , wherein the obtaining a first segment of data stream from the original data stream comprises:

identifying a start unit in the original data stream; and

determining a location of the start unit as the first location.

6. The method according to claim 2 , wherein the obtaining a first segment of data stream from the original data stream comprises:

setting a threshold of the quantity mark k;

identifying a first idle unit in the first segment of data stream in response to a length of the first segment of data stream being greater than or equal to the threshold; and

determining a location of the first idle unit as the first location.

7. The method according to claim 1 , wherein encoding processing has been performed on the first data units, or encoding processing has not been performed on the first data units.

8. The method according to claim 1 , wherein the method further comprises:

increasing and/or decreasing a quantity of idle units in the first data stream after the first data stream is generated.

9. A method for receiving a service, comprising:

receiving, by a receive end device, a first data stream;

extracting a quantity mark k from the first data stream, and determining a quantity of first data units in the first data stream, wherein k is greater than or equal to zero, wherein each data unit in the original data stream is respectively an idle unit or a non-idle unit, and each idle unit is insertable and deletable between a transmit end device and the receive end device; and

recovering an original data stream from the first data stream, wherein a quantity of first data units in the original data stream is equal to k.

10. The method according to claim 9 , wherein the extracting a quantity mark k from the first data stream comprises:

obtaining a first segment of data stream from the first data stream;

determining a first location in the first segment of data stream; and

extracting the quantity mark k from the first location, wherein the first location is a location of a data unit that can be used to carry the quantity mark k.

11. The method according to claim 10 , wherein the first data units comprise all data units in the first segment of data stream, and wherein k is an integer greater than zero.

12. The method according to claim 10 , wherein the first data units are idle units in the first segment of data stream, and k is an integer greater than or equal to zero.

13. The method according to claim 10 , wherein the recovering the original data stream from the first data stream comprises:

determining a quantity m of first data units in the first segment of data stream; and

adjusting the quantity m of first data units in the first segment of data stream according to a difference between m and k, so that m is equal to k.

14. The method according to claim 13 , wherein the adjusting the quantity m of first data units in the first segment of data stream according to a difference between m and k comprises performing at least one of:

deleting (m−k) idle units from the first segment of data stream when m is greater than k; or

inserting (k−m) idle units into the first segment of data stream when m is less than k.

15. The method according to claim 9 , wherein the method further comprises:

recovering a clock frequency of the original data stream.

16. An apparatus for sending a service, comprising:

a processor; and

a non-transitory computer-readable storage medium storing a program to be executed by the processor, the program including instructions to:

obtain an original data stream;

insert a quantity mark k into the original data stream, to generate a first data stream, wherein the quantity mark k identifies a quantity of first data units in the original data stream, and k is greater than or equal to zero, wherein each data unit in the original data stream is respectively an idle unit or a non-idle unit, and each idle unit is insertable and deletable between the apparatus for sending the service and an apparatus for receiving the service; and

send the first data stream.

17. The apparatus according to claim 16 , wherein the instructions to insert the quantity mark k include instructions to:

obtain a first segment of data stream from the original data stream, and determine a quantity of first data units in the first segment of data stream; and

insert the quantity mark k at a first location in the first segment of data stream, wherein a value of the quantity mark k is equal to the quantity of first data units in the first segment of data stream, and wherein the first location is a location of a data unit that can be used to carry the quantity mark k.

18. The apparatus according to claim 17 , wherein the instructions to insert the quantity mark k include instructions to:

identify a start unit in the original data stream; and

determine a location of the start unit as the first location.

19. The apparatus according to claim 17 , wherein the instructions to insert the quantity mark k include instructions to:

set a threshold of the quantity mark k;

identify a first idle unit in the first segment of data stream when a length of the first segment of data stream is greater than or equal to the threshold; and

determine a location of the first idle unit as the first location.

20. The apparatus according to claim 16 , wherein the program further includes instructions to:

increase and/or decrease a quantity of idle units in the first data stream.

21. An apparatus for receiving a service, comprising:

a processor; and

a non-transitory computer-readable storage medium storing a program to be executed by the processor, the program including instructions to:

receive a first data stream;

extract a quantity mark k from the first data stream, and determine a quantity of first data units in the first data stream, wherein k is greater than or equal to zero, wherein each data unit in the original data stream is respectively an idle unit or a non-idle unit, and each idle unit is insertable and deletable between an apparatus for sending the service and the apparatus for receiving the service; and

recover an original data stream from the first data stream, wherein a quantity of first data units in the original data stream is equal to k.

22. The apparatus according to claim 21 , wherein the instructions to extract the quantity mark k from the first data stream include instructions to:

obtain a first segment of data stream from the first data stream;

determine a first location in the first segment of data stream; and

extract the quantity mark k from the first location, wherein the first location is a location of a data unit that can be used to carry the quantity mark k.

23. The apparatus according to claim 22 , wherein the instructions to recover the original data stream from the first data stream include instructions to:

determine a quantity m of first data units in the first segment of data stream; and

adjust the quantity m of first data units in the first segment of data stream according to a difference between m and k, to cause m to be equal to k.

24. The apparatus according to claim 23 , wherein the instructions to adjust the quantity m of first data units in the first segment of data stream according to a difference between m and k include instructions to:

delete (m−k) idle units from the first segment of data stream when m is greater than k; or

insert (k−m) idle units into the first segment of data stream when m is less than k.

25. The apparatus according to claim 21 , wherein program further includes instructions to:

recover a clock frequency of the original data stream.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 26, 2019
From: ZHONG, QIWEN; XU, XIAOFEI; ZHANG, XIAOJUN
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 050162/0090 →
Priority Claims (1)
CN 2016 1 0723799 · Aug 25, 2016 · national
Continuity (2)
Continuation PCTCN2017098490 · Aug 22, 2017
Related Publication 20190190690A1 · Jun 20, 2019