Method and device for transmitting and receiving data, transmitting device, receiving device, and medium
AssigneeZte Corporation
InventorsWeiliang Zhang, Liquan Yuan
Life of this patent
Estimating the term…
Abstract
Provided are a data sending method and apparatus, a data receiving method and apparatus, a sending device, a receiving device and a medium. In the data sending method, to-be-transmitted data is generated into a data frame according to a bandwidth on each channel; the data frame is divided into at least two data units; and the at least two data units are sent one by one through at least two channels according to a predetermined principle.
Claims20
A data sending method, performed by a sending device in a passive optical network (PON), comprising:
- generating to-be-transmitted data into a data frame according to a bandwidth on each channel;
- dividing the data frame into at least two data units;
- and
- sending the at least two data units one by one through at least two channels according to a bandwidth on each of the at least two channels and a predetermined principle, wherein the predetermined principle is used to indicate a channel of the at least two channels through which each of the at least two data units is sent in sequence;
- wherein sending the at least two data units one by one through the at least two channels according to the predetermined principle comprises:
- sending each data unit of the at least two data units through a channel having an earliest sending time of the at least two channels;
- and
- in a case where at least two channels having the earliest sending time exist, selecting one channel from the at least two channels having the earliest sending time according to a minimum channel serial number or a maximum channel serial number, and sending the each data unit through the one channel;
- wherein the PON comprises an optical line terminal (OLT) and at least one optical network unit (ONU);
- and
- wherein in a case of an upstream direction,
- the at least one ONU is the sending device, and the OLT is a receiving device;
- the data frame comprises:
- an X gigabits transmission convergence (XGTC) data frame, or a dynamic bandwidth report upstream (DBRu) and a gigabit encapsulation method (GEM) frame sequence, or an X gigabits encapsulation method (XGEM) frame sequence;
- in response to the data frame being the XGTC data frame, the bandwidth is allocated by the OLT to the at least one ONU on each of the at least two channels, and only one XGTC frame header and one XGTC frame tail are sent within the bandwidth;
- in response to the data frame being the DBRu and the GEM frame sequence, an XGTC frame header and an XGTC frame tail are sent on each of the at least two channels, wherein the XGTC frame header is sent before a data unit is sent, and the XGTC frame tail is sent after the sending of the data unit is completed;
- and
- in response to the data frame being the XGEM frame sequence, the bandwidth is allocated by the OLT to the at least one ONU on each of the at least two channels, and only one XGTC frame header and one XGTC frame tail are sent within the bandwidth.
A data receiving method, performed by a receiving device in a passive optical network (PON), comprising:
- receiving data units one by one through at least two channels according to a bandwidth on each of the at least two channels and a predetermined principle, wherein the data units are divided from a first data frame, wherein the predetermined principle is used to indicate a channel of the at least two channels through which each of the data units is received in sequence;
- and
- forming the data units into a second data frame according to a receiving order;
- wherein receiving the data units one by one through the at least two channels according to the predetermined principle comprises:
- during each time of receiving a data unit, receiving a data unit on a channel having an earliest sending time of the at least two channels;
- and
- in a case where at least two channels having the earliest sending time exist, determining one channel from the at least two channels having the earliest sending time according to a minimum channel serial number or a maximum channel serial number, and receiving a data unit through the one channel;
- wherein the PON comprises an optical line terminal (OLT) and at least one optical network unit (ONU);
- and
- wherein in a case of an upstream direction,
- the at least one ONU is the sending device, and the OLT is the receiving device;
- the first data frame comprises:
- an X gigabits transmission convergence (XGTC) data frame, or a dynamic bandwidth report upstream (DBRu) and a gigabit encapsulation method (GEM) frame sequence, or an X gigabits encapsulation method (XGEM) frame sequence;
- in response to the first data frame being the XGTC data frame, the bandwidth is allocated by the OLT to the at least one ONU on each of the at least two channels, and only one XGTC frame header and one XGTC frame tail are sent within the bandwidth;
- in response to the first data frame being the DBRu and the GEM frame sequence, an XGTC frame header and an XGTC frame tail are sent on each of the at least two channels, wherein the XGTC frame header is sent before a data unit is sent, and the XGTC frame tail is sent after the sending of the data unit is completed;
- and
- in response to the first data frame being the XGEM frame sequence, the bandwidth is allocated by the OLT to the at least one ONU on each of the at least two channels, and only one XGTC frame header and one XGTC frame tail are sent within the bandwidth.
A sending device, comprising:
- at least one processor;
- and
- a storage apparatus configured to store one or more programs;
- wherein the at least one program, when executed by the at least one processor, cause the at least one processor to execute operations, wherein the operations comprises:
- generating to-be-transmitted data into a data frame according to a bandwidth on each channel;
- dividing the data frame into at least two data units;
- and
- sending the at least two data units one by one through at least two channels according to a bandwidth on each of the at least two channels and a predetermined principle, wherein the predetermined principle is used to indicate a channel of the at least two channels through which each of the at least two data units is sent in sequence;
- wherein sending the at least two data units one by one through the at least two channels according to the predetermined principle comprises:
- sending each data unit of the at least two data units through a channel having an earliest sending time of the at least two channels;
- and
- in a case where at least two channels having the earliest sending time exist, selecting one channel from the at least two channels having the earliest sending time according to a minimum channel serial number or a maximum channel serial number, and sending the each data unit through the one channel;
- wherein the sending device is in a passive optical network (PON), the PON comprises an optical line terminal (OLT) and at least one optical network unit (ONU);
- and
- wherein in a case of an upstream direction,
- the at least one ONU is the sending device, and the OLT is a receiving device;
- the data frame comprises:
- an X gigabits transmission convergence (XGTC) data frame, or a dynamic bandwidth report upstream (DBRu) and a gigabit encapsulation method (GEM) frame sequence, or an X gigabits encapsulation method (XGEM) frame sequence;
- in response to the data frame being the XGTC data frame, the bandwidth is allocated by the OLT to the at least one ONU on each of the at least two channels, and only one XGTC frame header and one XGTC frame tail are sent within the bandwidth;
- in response to the data frame being the DBRu and the GEM frame sequence, an XGTC frame header and an XGTC frame tail are sent on each of the at least two channels, wherein the XGTC frame header is sent before a data unit is sent, and the XGTC frame tail is sent after the sending of the data unit is completed;
- and
- in response to the data frame being the XGEM frame sequence, the bandwidth is allocated by the OLT to the at least one ONU on each of the at least two channels, and only one XGTC frame header and one XGTC frame tail are sent within the bandwidth.
Dependencies are inferred from the claim text.