System and method for hardware based protocol conversion between audio-visual stream and ip network
OwnerTeng-Yi Jeninventor
Life of this patent
Estimating the term…
Abstract
A system for transferring audio-video data via network includes an audio-video data source, circuits for encapsulation and de-capsulation of the audio-video data, a plurality of network adapters, and a network. The system offloads encapsulation and de-capsulation tasks from a general-purpose processor to its own processors to reduce system load and hardware requirements, and is capable of functioning with a variety of networking standards.
Claims17
A hardware based AV stream encapsulation circuit (AVSEC) for encapsulating a queued segment of AV stream data into a network packet, the encapsulating circuit comprising:
- a control circuit;
- a packet header memory coupled to the control circuit for storing a plurality of packet header data bytes to be transmitted by the control circuit as a network packet header;
- a packet header length counter coupled to the control circuit for counting the packet header data bytes transmitted by the control circuit and informing the control circuit when a last data byte of the network packet header has been transmitted;
- an AV stream FIFO memory coupled to the control circuit for concatenation and queuing of a segment of the AV stream data;
- and
- a packet payload length counter coupled to the control circuit for counting transmitted data bytes of the queued segment of AV stream data as a payload of the network packet and informing the control circuit when a last data byte of the queued segment of AV stream data has been transmitted;
- wherein when the control circuit starts to concatenate the network packet header and the payload of the network packet when a first data byte of the segment of AV stream data is stored in the AV stream FIFO memory, transmits the queued segment of AV stream data as a consequence of being informed that the last data byte of the network packet header has been transmitted, and finishes the encapsulation process when informed that the last data byte of the queued segment of AV stream data has been transmitted.
A hardware based AV stream de-capsulation circuit (AVSDC) for receiving a network packet and de-capsulating a segment of AV stream data from the network packet, the de-capsulation circuit comprising:
- a control circuit;
- a packet end detector coupled to the control circuit for detecting an end of the network packet and informing the control circuit that a last data byte of the network packet is received, the packet end detector parsing a packet header to gain the packet length of the network packet and counting received data bytes of the network packet for informing the control circuit of the last data byte of the network packet;
- a packet header removal counter coupled to the control circuit for storing a length of the packet header and informing the control circuit when a last data byte of the packet header is removed;
- an AV stream FIFO memory coupled to the control circuit for queuing the segment of AV stream data de-capsulated from a payload of the network packet;
- and
- an AV stream shaper coupled to the AV stream FIFO memory for receiving the queued segment of AV stream data and for outputting a timing rebuilt AV stream, wherein the AV stream shaper receives clustered AV stream packets from the AV stream FIFO and reconstructs the AV stream with timing rebuilt having constant flow rate and timing gaps determined by parameters during initialization;
- wherein the control circuit starts to separate the network packet header and the payload of the network packet when the first data byte of the network packet is received, delivers the de-capsulated segment of AV stream data to the AV stream FIFO memory after the last data byte of the network packet header has been removed, and finishes the de-capsulation process when the last data byte of the network packet is received.
A method for an AV stream encapsulation circuit (AVSEC) to encapsulate a segment of AV stream data, the method comprising the following steps:
- (1) generating a network protocol data packet header;
- (2) storing the network protocol data packet header in a packet header memory block;
- (3) configuring a packet header length counter according to a length of the network protocol data packet header;
- (4) configuring a packet payload length counter according to the length of a stored segment of AV stream data;
- (5) loading and storing the segment of AV stream data into an AV stream FIFO memory according to a continue counting state of the packet payload length counter;
- (6) concatenating the network protocol data packet header and the stored segment of AV stream data by sequentially outputting the network protocol data packet header according the length indicated by the packet header length counter and the stored segment of AV stream data according to the length indicated by the packet payload length counter;
- (7) enabling loading of a next sequential segment of AV stream data according to a counting end state of the packet payload length counter;
- and
- (8) repeating step (5) to step (7) whenever a configuration environment of the AVSEC does not change and AV stream encapsulation continues.
A method for an AV stream de-capsulation circuit (AVSDC) de-capsulating a segment of AV stream data, the method comprising the following steps:
- (1) configuring an AV stream shaper to define output AV stream format, output stream rate, AV stream packet length, and constant gap time between two AV stream packets;
- (2) configuring a packet header removal counter according to a length of a network protocol data packet header;
- (3) inputting a network protocol data packet to the de-capsulation circuit;
- (4) configuring a packet end detector according to a length of a network packet payload;
- (5) removing the network protocol data packet header according to the packet header removal counter;
- (6) loading and storing a segment of AV stream data comprised by the network packet payload into an AV stream FIFO memory according to a continue receiving state of a packet end detector;
- (7) the AV stream shaper reading AV data from the AV stream FIFO memory and outputting an AV stream according to the step (1) configured AV stream format;
- (8) enabling loading of a next sequential network protocol data packet according to a packet end state of the packet end detector;
- and
- (9) repeating step (3) to step (8) whenever a configuration environment of the AVSDC does not change and AV stream de-capsulation continues.
Dependencies are inferred from the claim text.