# US 2009/0268714 A1 · Apparatus and method for processing voice over internet protocol packets

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2009/0268714 A1
- Document ID: US20090268714A1
- Status: Published application
- Kind: A1
- Application number: 12/109,365
- Filed: 2008-04-25
- Published: 2009-10-29
- Earliest claimed: 2008-04-25
- Assignees: Chi Mei Communication Systems, Inc.
- Inventors: MIN-CHING HO
- Web page: https://patentgrep.com/patent/US20090268714A1

## CPC

- H04L 1/1841: {Resequencing}
- H04L 65/80: Responding to QoS
- H04M 1/2535: {adapted for voice communication over an Internet Protocol [IP] network (Voice over Internet Protocol (VoIP) network equipment and services H04M7/006; implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP] H04L69/16)}
- H04L 65/1059: End-user terminal functionalities specially adapted for real-time communication
- H04L 65/65: Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04M: TELEPHONIC COMMUNICATION (circuits for controlling other apparatus via a telephone cable and not involving telephone switching apparatus G08)

## Abstract

A method for processing Voice over Internet Protocol (VoIP) packets is provided. The method includes: determining if the arrived VoIP packet arrives out of order according to a sequence number of the arrived VoIP packet and a sequence number of a preceding VoIP packet of the arrived VoIP packet; determining whether the buffer has a packet having a same sequence number as the arrived VoIP packet if the arrived VoIP packet arrives out of order; calculating the difference between the sequence number of the arrived VoIP packet and that of the preceding VoIP packet if the buffer has no such packet having the same sequence number as the arrived VoIP packet; and counting a number of pseudo packets needed to be inserted into the buffer according to the calculated difference and generating and inserting the number of pseudo packets into the buffer.

## Claims

### Claim 1

A method for processing Voice over Internet Protocol (VoIP) packets at an electronic apparatus, the method comprising the steps of:
(a) sending an VoIP packet to a buffer in the electronic apparatus;
(b) determining if the arrived VoIP packet arrives out of order according to a sequence number of the arrived VoIP packet and a sequence number of a preceding VoIP packet;
(c) determining whether the buffer has a packet having a same sequence number as the sequence number of the arrived VoIP packet, if the arrived VoIP packet arrives out of order;
(d) calculating the difference between the sequence number of the arrived VoIP packet and the sequence number of the preceding VoIP packet if the buffer has no such packet having the same sequence number as the arrived VoIP packet;
(e) counting a number of pseudo packets needed to be inserted into the buffer according to the calculated difference and generating the number of pseudo packets; and
(f) inserting the number of pseudo packets and the arrived VoIP packet into the buffer.

### Claim 2 (depends on 1)

The method as claimed in claim 1, further comprising:
determining whether the buffer is empty after step (a); and
inserting the arrived VoIP packet into the buffer if the buffer is empty.

### Claim 3 (depends on 1)

The method as claimed in claim 1, wherein each of the arrived VoIP packets comprises real time protocol information, including timestamp and a sequence number.

### Claim 4 (depends on 3)

The method as claimed in claim 3, further comprising:
determining whether the arrived VoIP packet is late in accordance with the RTP information of the arrived VoIP packet and a dimension of the buffer after step (a).

### Claim 5 (depends on 4)

The method as claimed in claim 4, further comprising:
dropping the arrived VoIP packet if the arrived VoIP packet is late; and
executing step (c) if the arrived VoIP packet is not late.

### Claim 6 (depends on 1)

The method as claimed in claim 1, further comprising:
inserting the arrived VoIP packet into the buffer if the arrived VoIP packet arrives in a proper order after step (b).

### Claim 7 (depends on 1)

The method as claimed in claim 1, further comprising:
determining whether the packet is a VoIP packet, if the buffer has the packet having the same sequence number as the sequence number of the arrived VoIP packet.

### Claim 8 (depends on 7)

The method as claimed in claim 7, further comprising:
dropping the arrived VoIP packet if the packet is a VoIP packet; and
replacing the packet with the arrived VoIP packet if the packet is not a VoIP packet.

### Claim 9 (depends on 1)

The method as claimed in claim 1, further comprising:
outputting packets in the buffer to an audio controlling module, wherein the output packets comprises the pseudo packets and the VoIP packets.

### Claim 10 (depends on 9)

The method as claimed in claim 9, further comprising:
determining whether the output packets are the pseudo packets or the VoIP packets;
generating comfort noise if the output packets are the pseudo packets, and decompressing the output packets into raw data if the output packets are the VoIP packets; and
outputting the comfort noise and the raw data to an audio module for playing.

### Claim 11 (depends on 1)

The method as claimed in claim 1, wherein the preceding packet is the VoIP packet previously inserted into the buffer before the arrived packet.

### Claim 12

An apparatus for processing Voice over Internet Protocol (VoIP) packets at an electronic apparatus, the system comprising a real time transport protocol (RTP) module, a buffer, and an audio controlling module, wherein:
the RTP module is configured for receiving a plurality of arrived VoIP packets, and sending the arrived VoIP packets to the buffer one by one;
the buffer is configured for reordering the arrived VoIP packets by generating pseudo packets while the arrived VoIP arrives out of order, inserting the reordered VoIP packets and the generated pseudo packets into the buffer, and outputting packets in the buffer to the audio controlling module, the output packets comprising the pseudo packets and the VoIP packets; and
the audio controlling module configured for generating comfort noise if the output packets are the pseudo packets, decompressing the output packets into raw data if the output packets are the VoIP packets.

### Claim 13 (depends on 12)

The apparatus as claimed in claim 12, wherein the buffer determines whether the arrived VoIP arrives out of order according to a sequence number of the arrived VoIP packet and a sequence number of a preceding VoIP packet.

### Claim 14 (depends on 13)

The apparatus as claimed in claim 13, wherein the buffer reorders the arrived VoIP packets by generating pseudo packets via executing the functions of:
determining whether the buffer has a packet having a same sequence number as the sequence number of the arrived VoIP packet, if the arrived VoIP packet arrives out of order;
calculating the difference between the sequence number of the arrived VoIP packet and the sequence number of the preceding VoIP packet if the buffer has no such packet having the same sequence number as the arrived VoIP packet;
counting a number of pseudo packets needed to be inserted into the buffer according to the calculated difference and generating the number of pseudo packets; and
inserting the number of pseudo packets and the arrived VoIP packet into the buffer.

### Claim 15 (depends on 14)

The apparatus as claimed in claim 14, wherein the buffer is further configured for:
determining whether the packet is a VoIP packet, if the buffer has the packet having the same sequence number as the sequence number of the arrived VoIP packet;
dropping the arrived VoIP packet if the packet is a VoIP packet; and
replacing the packet with the arrived VoIP packet if the packet is not a VoIP packet.

### Claim 16 (depends on 12)

The apparatus as claimed in claim 12, wherein the buffer is further configured for determining whether the arrived VoIP packet is late in accordance with a RTP information of the arrived VoIP packet and a dimension of the buffer, dropping the arrived VoIP packet if the arrived VoIP packet is late.

### Claim 17 (depends on 12)

The apparatus as claimed in claim 12, wherein the buffer is further configured for inserting the arrived VoIP packet into the buffer if the arrived VoIP packet arrives in a proper order.

### Claim 18 (depends on 17)

The apparatus as claimed in claim 17, further comprising an audio module for playing the comfort noise and the raw data output from the audio control module.
