IP Library Granted Patent US 11,038,664
Granted Patent B2
US 11,038,664 · App. 16/922,568 · Granted Jun 15, 2021

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 11,038,664
App. No.
16/922,568
Granted
Jun 15, 2021
Kind
B2
Abstract

Embodiments of the present invention disclose 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, 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 a value of the quantity mark k is equal to a quantity of first data units in the original data stream, and k is greater than or equal to zero (o);

increasing or decreasing, by the transmit end device, a quantity of idle units in the first data stream; and

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

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

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

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 the value of the quantity mark k is equal to the quantity of first data units in the first segment of data stream, and the first location is a location of a data unit that is usable to carry the quantity mark k.

3. The method according to claim 2 , wherein the first data units in the first segment of data stream comprise all data units in the first segment of data stream.

4. The method according to claim 2 , wherein the first data units in the first segment of data stream comprise an idle unit in the first segment of data stream.

5. The method according to claim 2 , wherein obtaining the 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 obtaining the first segment of data stream from the original data stream comprises:

setting a threshold of the quantity mark k;

when a length of the first segment of data stream is greater than or equal to the threshold, identifying a first idle unit in the first segment of data stream; 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. A method, comprising:

receiving, by a receive end device, a first data stream, wherein the first data stream comprises a quantity mark k, a value of K is equal to a quantity of first data units in an original data stream, and k is greater than or equal to zero (o);

extracting, by the receive end device, the quantity mark k from the first data stream;

determining, by the receive end device, a quantity of first data units in the first data stream; and

recovering, by the receive end device according to the quantity mark k, an original data stream from the first data stream.

9. The method according to claim 8 , wherein extracting the 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, wherein the first location is a location of a data unit that is usable to carry the quantity mark k; and

extracting the quantity mark k from the first location.

10. The method according to claim 9 , wherein the first data units in the first data stream comprise all data units in the first segment of data stream.

11. The method according to claim 9 , wherein the first data units comprise an idle unit in the first segment of data stream 0 .

12. The method according to claim 9 , wherein 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, wherein after the adjusting m is equal to k.

13. The method according to claim 12 , wherein adjusting the quantity m of first data units in the first segment of data stream according to the difference between m and k comprises:

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

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

14. The method according to claim 8 , further comprising:

recovering a clock frequency of the original data stream.

15. A network system, comprising:

a first apparatus; and

a second apparatus;

wherein the first apparatus comprises:

a first processor; and

a first non-transitory computer-readable storage medium storing a first program to be executed by the first processor, the first 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 a value of the quantity mark k is equal to a quantity of first data units in the original data stream, and k is greater than or equal to zero (0);

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

send the first data stream.

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

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

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 the value of the quantity mark k is equal to the quantity of first data units in the first segment of data stream, and the first location is a location of a data unit that is usable to carry the quantity mark k.

17. The system according to claim 16 , 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.

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

set a threshold of the quantity mark k;

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

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

19. The system according to claim 15 , wherein the second apparatus comprises:

a second processor; and

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

receive the first data stream;

extract the quantity mark k from the first data stream;

determine the quantity of first data units in the first data stream; and

recover the original data stream from the first data stream.

20. The system according to claim 19 , 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 is usable to carry the quantity mark k.

21. The system according to claim 20 , 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, wherein after the adjusting m is equal to k.

Priority Claims (1)
CN 201610723799.6 · Aug 25, 2016 · national
Continuity (3)
Continuation 16282690 · Feb 22, 2019
Continuation PCTCN2017098490 · Aug 22, 2017
Related Publication 20200336283A1 · Oct 22, 2020