PACKET OUTPUTTING DEVICE AND PACKET OUTPUTTING METHOD
20190098373 ยท 2019-03-28
Inventors
Cpc classification
H04N21/4381
ELECTRICITY
H04L5/0044
ELECTRICITY
H04N21/23611
ELECTRICITY
H04B7/18523
ELECTRICITY
H04L65/61
ELECTRICITY
H04N21/4344
ELECTRICITY
H04N21/631
ELECTRICITY
International classification
H04L1/00
ELECTRICITY
H04B7/185
ELECTRICITY
Abstract
A packet output device includes: a first extracting unit, extracting a plurality of first packets and a plurality of first null packet values corresponding to a first channel; a first buffer, storing the first packets and the first null packet values; a second extracting unit, extracting a plurality of second packets and a plurality of second null packet values corresponding to a second channel; a second buffer, storing the second packets and the second null packet values; and a packet outputting unit, selecting, according to the first null packet values and the second null packet values, one of the first packets and the second packets as an output packet.
Claims
1. A packet output device, comprising: a first extracting unit, extracting a plurality of first packets and a plurality of first null packet values corresponding to a first channel, wherein the plurality of first packets respectively correspond to the plurality of first null packet values; a first buffer, storing the plurality of first packets and the plurality of first null packet values; a second extracting unit, extracting a plurality of second packets and a plurality of second null packet values corresponding to a second channel, wherein the plurality of second packets respectively correspond to the plurality of second null packet values; a second buffer, storing the plurality of second packets and the plurality of second null packet values; and a packet outputting unit, selecting, according to the plurality of first null packet values and the plurality of second null packet values, one of the plurality of first packets and the plurality of second packets as an output packet.
2. The packet output device according to claim 1, wherein the packet outputting unit comprises: a determining circuit, determining which of a first null packet value corresponding the first channel and a second null packet value corresponding to the second channel is 0 to generate a packet output signal; and an outputting circuit, selecting a first packet as the output packet according to the packet output signal, wherein the first null packet value corresponding to the first packet is 0.
3. The packet output device according to claim 2, wherein the determining circuit further subtracts the second null packet value by 1 to generate an updated null packet value, and the second null packet value corresponding to the second packet is not 0.
4. The packet output device according to claim 3, wherein the determining circuit further determines which of a next null packet and the updated null packet value is 0 to generate the packet output signal, and the next null packet value and the updated null packet value respectively correspond to different channels.
5. The packet output device according to claim 4, wherein the outputting unit further selects, according to the packet output signal, a packet corresponding to the next null packet value as the output packet; and the determining circuit further subtracts the updated null packet value by 1 as the updated null packet value.
6. The packet output device according to claim 4, wherein the outputting circuit further selects, according to the packet output signal, a packet corresponding to the updated null packet value as the output packet; and the determining circuit further subtracts the next null packet by 1 as the updated null packet value.
7. The packet output device according to claim 1, wherein the first buffer further stores the plurality of second packets and the plurality of second null packet values received from the second buffer, and the packet outputting unit receives the second packet and the second null packet value from the first buffer.
8. A packet output method, comprising: extracting a plurality of first packets and a plurality of first null packet values corresponding to a first channel, wherein the plurality of first packets respectively correspond to the plurality of first null packet values; storing the plurality of first packets and the plurality of first null packet values in a first buffer; extracting a plurality of second packets and a plurality of second null packet values corresponding to a second channel, wherein the plurality of second packets respectively correspond to the plurality of second null packet values; storing the plurality of second packets and the plurality of second null packet values in a second buffer; and selecting, according to the plurality of first null packet values and the plurality of second null packet values, one of the plurality of first packets and the plurality of second packets as an output packet.
9. The packet output method according to claim 8, wherein the step of selecting, according to the plurality of first null packet values and the plurality of second null packet values, one of the plurality of first packets and the plurality of second packets as the output packet comprises: determining which of a first null packet value corresponding the first channel and a second null packet value corresponding to the second channel is 0; and selecting a first packet as the output packet, wherein the first null packet value corresponding to the first packet is 0.
10. The packet output method according to claim 9, wherein the step of selecting, according to the plurality of first null packet values and the plurality of second null packet values, one of the plurality of first packets and the plurality of second packets as the output packet further comprises: subtracting the second null packet value by 1 to generate an updated null packet value, wherein the second null packet value corresponding to the second packet is not 0.
11. The packet output method according to claim 10, wherein the step of selecting, according to the plurality of first null packet values and the plurality of second null packet values, one of the plurality of first packets and the plurality of second packets as the output packet further comprises: determining which of a next null packet and the updated null packet value is 0, wherein the next null packet value and the updated null packet value respectively correspond to different channels.
12. The packet output method according to claim 11, wherein the step of selecting, according to the plurality of first null packet values and the plurality of second null packet values, one of the plurality of first packets and the plurality of second packets as the output packet further comprises: selecting a packet corresponding to the next null packet value as the output packet when the next null packet value is 0; and subtracting the updated null packet value by 1 as the updated null packet value.
13. The packet output method according to claim 11, wherein the step of selecting, according to the plurality of first null packet values and the plurality of second null packet values, one of the plurality of first packets and the plurality of second packets as the output packet further comprises: selecting a packet corresponding to the updated null packet value as the output packet when the updated null packet value is 0; and subtracting the next null packet value by 1 as the updated null packet value.
14. The packet output method according to claim 11, further comprising: storing the plurality of second packets and the plurality of second null packet values received from the second buffer in the first buffer; and receiving the second packet and the second null packet value from the first buffer.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
DETAILED DESCRIPTION OF THE INVENTION
[0017]
[0018] Referring to
[0019] Similarly, the extracting unit 21b extracts, from the baseband frame stream BFS_1 received from the channel ch1, a plurality of packets PKT_1 and a plurality of null packet values DNP_1 corresponding to the channel ch1 (step 306), wherein the null packet values DNP_1 respectively correspond to the packets PKT_1. Taking the baseband frame stream BFS_1 in
[0020] The packet outputting unit 23 is coupled to the buffers 22a and 22b, and selects, according to the null packet values DNP_0 and DNP_1 stored in the buffers 22a and 22b, one of these packets PKT_0 and PKT_1 as an output packet PKT (step 310). In one embodiment, the packet outputting unit 23 includes a determining circuit 232 and an outputting circuit 234.
[0021] Taking the buffers 22a and 22b in
[0022] The determining circuit 232 then determines which of a next null packet value DNP_N and the updated null packet value DNP_U is 0 (step 508) to generate the packet output signal, wherein the next null packet value DNP_N and the updated null packet value DNP_U respectively correspond to different channels. In continuation of the above example, because the updated null packet value DNP_U is DNP3 which corresponds to the channel ch1, the next null packet value DNP_N is the null packet value DNP1 corresponding to the channel ch0. As DNP3=2 and DNP1=0, the determining circuit 232 accordingly generates the packet output signal ctrl to control the outputting circuit 234 to select the packet P1 corresponding to the null packet value DNP1 equal to 0 as the output packet PKT (step 510). Further, the packet P1 and the null packet value DNP1 are deleted from the buffer 22a, as shown in
[0023] Because the updated null packet value DNP_U is DNP3 which corresponds to the channel ch1, the next null packet value DNP_N is the null packet value DNP2 corresponding to the channel ch0. As DNP3=1 and DNP2=0, the determining circuit 232 accordingly generates the packet output signal ctrl to control the outputting circuit 234 to select the packet P2 corresponding to the null packet value DNP2 equal to 0 as the output packet PKT (step 510). Further, the packet P2 and the null packet value DNP2 are deleted from the buffer 22a, as shown in
[0024] Because the updated null packet value DNP_U is DNP3 which corresponds to the channel ch1, the next null packet value DNP_N is the null packet value DNP5 corresponding to the channel ch0. As DNP3=0 and DNP5=2, the determining circuit 232 accordingly generates the packet output signal ctrl to control the outputting circuit 234 to select the packet P3 corresponding to the null packet value DNP3 equal to 0 as the output packet PKT (step 514). Further, the null packet value DNP5 is deleted from the buffer 22a, and the packet P3 is deleted from the buffer 22b, as shown in
[0025] Next, because the updated null packet value DNP_U is DNP5 which corresponds to the channel ch0, the next null packet value DNP_N is the null packet value DNP4 corresponding to the channel ch1. As DNP4=0 and DNP5=1, the determining circuit 232 accordingly generates the packet output signal ctrl to control the outputting circuit 234 to select the packet P4 corresponding to the null packet value DNP4 equal to 0 as the output packet PKT (step 510). Further, the packet P4 and the null packet value DNP4 are deleted from the buffer 22b, as shown in
[0026] Next, because the updated null packet value DNP_U is DNP5 which corresponds to the channel ch0, the next null packet value DNP_N is the null packet value DNP6 corresponding to the channel ch1. As DNP5=0 and DNP6=1, the determining circuit 232 accordingly generates the packet output signal ctrl to control the outputting circuit 234 to select the packet P5 corresponding to the null packet value DNP5 equal to 0 as the output packet PKT (step 514). Further, the packet P5 is deleted from the buffer 22a, and the null packet value DNP6 is deleted from the buffer 22b, as shown in
[0027]
[0028] While the invention has been described by way of example and in terms of the embodiments, it is to be understood that the invention is not limited thereto. On the contrary, it is intended to cover various modifications and similar arrangements and procedures, and the scope of the appended claims therefore should be accorded the broadest interpretation so as to encompass all such modifications and similar arrangements and procedures.