WO2013086671A1 - Rtp media data processing method and device - Google Patents

Rtp media data processing method and device Download PDF

Info

Publication number
WO2013086671A1
WO2013086671A1 PCT/CN2011/083824 CN2011083824W WO2013086671A1 WO 2013086671 A1 WO2013086671 A1 WO 2013086671A1 CN 2011083824 W CN2011083824 W CN 2011083824W WO 2013086671 A1 WO2013086671 A1 WO 2013086671A1
Authority
WO
WIPO (PCT)
Prior art keywords
basic
packet
rtp payload
rtp
packets
Prior art date
Application number
PCT/CN2011/083824
Other languages
French (fr)
Chinese (zh)
Inventor
王鑫军
张红昌
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201180003484.XA priority Critical patent/CN103503402A/en
Priority to PCT/CN2011/083824 priority patent/WO2013086671A1/en
Publication of WO2013086671A1 publication Critical patent/WO2013086671A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/102Gateways
    • H04L65/1033Signalling gateways
    • H04L65/1036Signalling gateways at the edge
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/65Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]

Definitions

  • the present invention relates to a data processing technology, and in particular, to a real-time transport protocol (RTT) media data processing method and device.
  • RTT real-time transport protocol
  • RTP Real-time Transport Protocol
  • IP bearer network the format of the RTP packet is: IP header + User Datagram Protocol (UDP) header + RTP header + RTP payload (that is, RTP media data after encoding processing).
  • UDP User Datagram Protocol
  • RTP payload that is, RTP media data after encoding processing
  • the gateway device may decode a packet-length RTP payload of the IP bearer network where the sender device is located by adding a Trans-coder (TC). Processing, and then encoding into another packet-length RTP payload of the IP bearer network where the receiving device is located.
  • TC Trans-coder
  • the embodiment of the invention provides a method and a device for processing RTP media data, which are used to save system resources and reduce system cost.
  • the gateway device receives the first IP data packet that is sent by the sending end device and includes the first RTP payload; the gateway device according to the first RTP payload corresponding to the basic packet packing time of the codec protocol and the first RTP net Generating the first RTP payload into at least one basic packet, the size of each of the basic packets being encoded by the gateway device according to the basic packet packing duration and the encoding of each of the basic packets Rate determination
  • the gateway device assembles the split at least one basic packet into a second RTP payload according to the basic packet packing duration and a packing duration of the RTP payload receivable by the receiving device, and includes the first The second IP data packet of the second RTP payload is sent to the receiving end device.
  • Another aspect provides a processing device for RTP media data, including:
  • a receiving unit configured to receive a first IP data packet that is sent by the sending end device and includes a first RTP payload
  • a splitting unit configured to split the first RTP payload into at least one basic according to a basic packet packing duration of the codec protocol corresponding to the first RTP payload and a packing duration of the first RTP payload a packet, the size of each of the basic packets is determined by the gateway device according to the basic packet packing duration and a coding rate of each of the basic packets;
  • the assembling unit is configured to assemble the at least one basic package into which the split unit is split into the second RTP payload according to the basic packet packing duration and the packing duration of the RTP payload receivable by the receiving device. And transmitting a second IP data packet including the second RTP payload to the receiving end device.
  • the gateway device determines the size of each of the basic packets by using a basic packet packing duration according to a codec protocol and an encoding rate of each basic packet in the first RTP payload, so that the gateway device can be configured according to the foregoing basic Decoding the packet length of the packet and the packetization duration of the first RTP payload, splitting the first RTP payload into the at least one basic packet, and according to the foregoing packet packing duration and the packing duration of the RTP payload receivable by the receiving device And assembling the split at least one basic packet into a second RTP payload, and sending the second IP data packet including the foregoing second RTP payload to the receiving end device, because the gateway device does not need to increase the TC, thereby saving
  • the system resources reduce the system cost, and solve the problem of waste of system resources and increase of system cost caused by the addition of the TC by the gateway device in the prior art.
  • FIG. 1 is a schematic flowchart of a method for processing RTP media data according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a device for processing RTP media data according to another embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a method for processing RTP media data according to an embodiment of the present invention. As shown in FIG. 1, the method for processing RTP media data in this embodiment may include:
  • the gateway device receives a first IP data packet that is sent by the sending end device and includes a first RTP payload.
  • the foregoing gateway device splits the first RTP payload into at least one basic packet according to a basic packet packing duration of the codec protocol corresponding to the first RTP payload and a packing duration of the first RTP payload.
  • the size of the foregoing basic packet is determined by the foregoing gateway device according to the foregoing basic packet packing duration and the encoding rate of each of the basic packets;
  • the foregoing codec protocol may include, but is not limited to, G.71 1 protocol, G.723 protocol, G.726 protocol, G.729 protocol, G.722 protocol, Adaptive Multi-Rate (AMR). Codec protocol or Enhanced Variable Rate Coder (EVRC) protocol.
  • G.71 1 protocol G.723 protocol
  • G.726 protocol G.726 protocol
  • G.729 protocol G.722 protocol
  • AMR Adaptive Multi-Rate
  • EVRC Enhanced Variable Rate Coder
  • the gateway device may further determine the size of each of the basic packets according to the basic packet packing duration and the encoding rate of each of the basic packets.
  • the first IP data packet in the embodiment may further include header data, such as a User Plane Protocol (UP) header or an RFC3267 header.
  • header data such as a User Plane Protocol (UP) header or an RFC3267 header.
  • UP User Plane Protocol
  • RFC3267 RFC3267 header.
  • the foregoing header data is used to indicate an encoding rate of each of the basic packets.
  • the gateway device may further determine, according to the foregoing header data, a coding rate of each of the basic packets.
  • the foregoing gateway device assembles the split at least one basic packet into a second RTP payload according to the foregoing basic packet packing duration and a packing duration of the RTP payload receivable by the receiving device, and includes the foregoing second RTP.
  • the second IP packet of the payload is sent to the above receiving device.
  • the execution subject gateway device of the foregoing 101 to 103 may be a device such as a media gateway (MGW) or a home gateway.
  • MGW media gateway
  • the gateway device determines the size of each of the basic packets according to the basic packet packing duration of the codec protocol and the encoding rate of each basic packet in the first RTP payload, so that the gateway device can be configured according to the basic packet.
  • the packetization duration and the packetization duration of the first RTP payload are split into the at least one basic packet, and according to the basic packet packing duration and the packetization duration of the RTP payload receivable by the receiving device, Assembling the split at least one basic packet into a second RTP payload, and transmitting the second IP data packet including the foregoing second RTP payload to the receiving end device, since the gateway device does not need to increase the TC, thereby saving
  • the system resources reduce the system cost, and solve the problem of waste of system resources and increase of system cost caused by the addition of the TC by the gateway device in the prior art.
  • the RTP payload of a packetization duration of the IP bearer network where the sender is located is decoded, and then encoded into another RTP payload of the packet length of the IP bearer network where the receiver is located.
  • the voice quality causes a certain damage.
  • the encoding or decoding MOS value is reduced by about 0.2 to 0.3. Therefore, the technical solution provided by this embodiment can effectively improve the voice quality.
  • the packet length of the first RTP payload sent by the sender device is 20 milliseconds (ms), and the receiving device receives
  • the second RTP payload has a packing time of 40ms.
  • the gateway device splits the first RTP payload into two basic packets according to the basic packet packing time of the G.729 protocol of 10 ms and the first RTP payload of 20 ms, and the size of each basic packet is 10byte. Then, the gateway device may split the split four basic packets (ie, the two first RTP payloads according to the basic packet packing duration of 10 ms and the packetization duration of the second RTP payload received by the receiving device by 40 ms. The four basic packages are assembled into a second RTP payload (each basic packet is 10 bytes in size), and a second IP packet containing the second RTP payload described above is transmitted to the receiving device.
  • the receiving end device parses and obtains a detailed description of the RTP media data included in the second IP data packet, and can refer to the RTP packet of the receiving end device with the IP header and the UDP header in the prior art.
  • Related content of the processing for example: First, the IP header is removed from the IP layer and sent to the UDP layer, then the UDP header is removed at the UDP layer, and finally the RTP packet (the RTP header and the RTP payload) is parsed to obtain the RTP media data. Let me repeat.
  • the packet length of the first RTP payload sent by the sender device is 40 ms, and the receiving device receives
  • the second RTP payload has a packaging time of 60 ms.
  • the gateway device may according to the basic packet packing time of the AMR protocol of 20 ms and the encoding rate of the corresponding basic packet indicated by the RFC 3267 header data, for example: the encoding rate of the first basic packet is 12.2 kbps, and the encoding rate of the second basic packet is 10.2.
  • the encoding rate of the third basic packet is 10.2 kbps
  • the encoding rate of the fourth basic packet is 10.2 kbps
  • the gateway device splits the first RTP payload into two basic packets according to the basic packet packing time of the AMR protocol of 20 ms and the first RTP payload, and the basic packet size is 30.5 bytes.
  • the size of the packet is 25.5 bytes.
  • the gateway device may split the split three basic packets (ie, the two first RTP payloads according to the basic packet packing time of 20 ms and the second RTP payload received by the receiving device for 60 ms. Three of the four basic packages are assembled into a second RTP payload (the size of the first basic packet is 30.5 bytes, the size of the second basic packet is 25.5 bytes, and the size of the third basic packet is 25.5 bytes. And transmitting a second IP data packet including the foregoing second RTP payload to the receiving end device.
  • the receiving end device parses and obtains a detailed description of the RTP media data included in the second IP data packet, and can refer to the receiving end device pair with the IP header in the prior art.
  • the related content of the RTP packet processed by the UDP header for example: First, the IP header is removed from the IP layer and sent to the UDP layer, then the UDP header is removed at the UDP layer, and finally the RTP packet (RTP header, RFC3267 header, and RTP payload) is parsed. , get RTP media data, no longer repeat them here.
  • the processing device for RTP media data in this embodiment may include a receiving unit 21, a splitting unit 22, and an assembling unit. twenty three.
  • the receiving unit 21 is configured to receive a first IP data packet that is sent by the sending end device and includes a first RTP payload.
  • the splitting unit 22 is configured to use a basic packet packing duration of the codec protocol corresponding to the first RTP payload.
  • the packetization duration of the first RTP payload is split into the at least one basic packet, and the size of each of the basic packets is determined by the gateway device according to the basic packet packing duration and the encoding of each of the basic packets.
  • the assembling unit 23 is configured to assemble the at least one basic packet into which the splitting unit is split into the second RTP payload according to the foregoing packet packing duration and the packing duration of the second RTP payload received by the receiving device. And transmitting a second IP data packet including the foregoing second RTP payload to the receiving end device.
  • the function of the gateway device in the embodiment corresponding to the foregoing FIG. 1 can be implemented by the RTP media data processing device provided in this embodiment.
  • the splitting unit 22 in this embodiment may be further configured to determine the size of each of the basic packets according to the basic packet packing duration and the encoding rate of each of the basic packets.
  • the first IP data packet in the embodiment may further include header data, for example, a UP header or an RFC3267 header, where the header data is used to indicate a coding rate of each of the basic packets; accordingly,
  • the sub-unit 22 may be further configured to determine a coding rate of each of the basic packets according to the foregoing header data.
  • the processing device of the RTP media data is processed by the splitting unit according to the codec protocol.
  • the basic packet packing duration and the encoding rate of each basic packet in the first RTP payload received by the receiving unit determining the size of each of the basic packets, so that the splitting unit can be based on the basic packet packing duration and the first RTP.
  • the first RTP payload is split into the at least one basic packet, and the assembly unit splits the packet length according to the basic packet packing duration and the second RTP payload received by the receiving device.
  • the RTP payload of a packetization duration of the IP bearer network where the sender is located is decoded, and then encoded into another RTP payload of the packet length of the IP bearer network where the receiver is located.
  • the voice quality causes a certain damage.
  • the encoding or decoding MOS value is reduced by about 0.2 to 0.3. Therefore, the technical solution provided by this embodiment can effectively improve the voice quality.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one single unit. Yuanzhong.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the above software functional units are stored in a storage medium and include a number of instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform some of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. Medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides an RTP media data processing method and device. A gateway device determines the size of each basic packet through a packaging duration of the basic packet according to a coding/decoding protocol and a coding rate of each basic base in a first RTP payload, so that the gateway device can divide the first RTP payload into at least one basic packet according to the packaging duration of the basic packet and a packaging duration of the first RTP payload, assemble the at least one basic packet obtained through division into a second RTP payload according to the packaging duration of the basic packet and a packaging duration of an RTP payload capable of being received by a receiver device, and send a second IP data packet comprising the second RTP payload to the receiver device. Because the gateway device does not need to add a TC, system resources are saved, and system cost is reduced, thereby solving the problems in the prior art of wasted system resources and increased system cost caused by the fact that the TC is added in the gateway device.

Description

RTP媒体数据的处理方法及设备 技术领域 本发明实施例涉及数据处理技术, 尤其涉及一种实时传输协议 ( Real-time Transport Protocol, 简称 RTP )媒体数据的处理方法及设备。 背景技术  The present invention relates to a data processing technology, and in particular, to a real-time transport protocol (RTT) media data processing method and device. Background technique
随着通信技术的不断发展, 出现了许多基于实时传输协议(Real-time Transport Protocol, 简称 RTP ) 的应用程序, 例如: 声音点播、 影视点播、 视频会议、 因特网电话、在线游戏等,用来传输媒体数据。在 IP承载网络中, RTP 数据包封装之后的格式为: IP 头 +用户数据报协议(User Datagram Protocol, 简称 UDP ) 头 +RTP头 +RTP净荷 (即进行编码处理之后的 RTP 媒体数据 )。 现有技术中, 两个 I P承载网之间可以通过网关设备传输封装了 RTP数据包的 IP数据包。 由于两个 IP 载网的打包时长可能不一致, 所以 网关设备可以通过增加编解码变换器(Trans-coder, 简称 TC ) , 对发送端 设备所在 IP承载网的一种打包时长的 RTP净荷进行解码处理, 然后再编码 成接收端设备所在 IP承载网的另一种打包时长的 RTP净荷。  With the continuous development of communication technologies, many applications based on Real-time Transport Protocol (RTP), such as: sound on demand, video on demand, video conferencing, Internet telephony, online games, etc., are used for transmission. Media data. In the IP bearer network, the format of the RTP packet is: IP header + User Datagram Protocol (UDP) header + RTP header + RTP payload (that is, RTP media data after encoding processing). In the prior art, an IP packet encapsulating an RTP data packet may be transmitted between two IP carrier networks through a gateway device. Since the packetization duration of the two IP bearers may be inconsistent, the gateway device may decode a packet-length RTP payload of the IP bearer network where the sender device is located by adding a Trans-coder (TC). Processing, and then encoding into another packet-length RTP payload of the IP bearer network where the receiving device is located.
然而, 由于网关设备增加了 TC,导致了系统资源的浪费和系统成本的增 加。 发明内容  However, due to the addition of TC to the gateway device, system resources are wasted and system costs are increased. Summary of the invention
本发明实施例提供一种 RTP媒体数据的处理方法及设备,用以实现节省 系统资源, 降低系统成本。  The embodiment of the invention provides a method and a device for processing RTP media data, which are used to save system resources and reduce system cost.
一方面提供了一种 RTP媒体数据的处理方法, 包括:  In one aspect, a method for processing RTP media data is provided, including:
网关设备接收发送端设备发送的包含第一 RTP净荷的第一 IP数据包; 所述网关设备根据所述第一 RTP 净荷对应的编解码协议的基本包打包 时长和所述第一 RTP净荷的打包时长, 将所述第一 RTP净荷拆分成至少一 个基本包, 每个所述基本包的大小由所述网关设备根据所述基本包打包时长 和每个所述基本包的编码速率确定; 所述网关设备根据所述基本包打包时长和接收端设备可接收的 RTP 净 荷的打包时长, 将拆分成的所述至少一个基本包拼装成第二 RTP净荷, 并将 包含所述第二 RTP净荷的第二 IP数据包发送给所述接收端设备。 The gateway device receives the first IP data packet that is sent by the sending end device and includes the first RTP payload; the gateway device according to the first RTP payload corresponding to the basic packet packing time of the codec protocol and the first RTP net Generating the first RTP payload into at least one basic packet, the size of each of the basic packets being encoded by the gateway device according to the basic packet packing duration and the encoding of each of the basic packets Rate determination The gateway device assembles the split at least one basic packet into a second RTP payload according to the basic packet packing duration and a packing duration of the RTP payload receivable by the receiving device, and includes the first The second IP data packet of the second RTP payload is sent to the receiving end device.
另一方面提供了一种 RTP媒体数据的处理设备, 包括:  Another aspect provides a processing device for RTP media data, including:
接收单元, 用于接收发送端设备发送的包含第一 RTP净荷的第一 IP数 据包;  a receiving unit, configured to receive a first IP data packet that is sent by the sending end device and includes a first RTP payload;
拆分单元,用于根据所述第一 RTP净荷对应的编解码协议的基本包打包 时长和所述第一 RTP净荷的打包时长, 将所述第一 RTP净荷拆分成至少一 个基本包, 每个所述基本包的大小由所述网关设备根据所述基本包打包时长 和每个所述基本包的编码速率确定;  a splitting unit, configured to split the first RTP payload into at least one basic according to a basic packet packing duration of the codec protocol corresponding to the first RTP payload and a packing duration of the first RTP payload a packet, the size of each of the basic packets is determined by the gateway device according to the basic packet packing duration and a coding rate of each of the basic packets;
拼装单元,用于根据所述基本包打包时长和接收端设备可接收的 RTP净 荷的打包时长, 将所述拆分单元拆分成的所述至少一个基本包拼装成第二 RTP净荷, 并将包含所述第二 RTP净荷的第二 I P数据包发送给所述接收端 设备。  The assembling unit is configured to assemble the at least one basic package into which the split unit is split into the second RTP payload according to the basic packet packing duration and the packing duration of the RTP payload receivable by the receiving device. And transmitting a second IP data packet including the second RTP payload to the receiving end device.
由上述技术方案可知, 网关设备通过根据编解码协议的基本包打包时长 和第一 RTP净荷中的每个基本包的编码速率, 确定每个上述基本包的大小, 使得网关设备能够根据上述基本包打包时长和上述第一 RTP 净荷的打包时 长, 将上述第一 RTP净荷拆分成上述至少一个基本包, 并根据上述基本包打 包时长和接收端设备可接收的 RTP净荷的打包时长,将拆分成的上述至少一 个基本包拼装成第二 RTP净荷,并将包含上述第二 RTP净荷的第二 IP数据 包发送给上述接收端设备,由于网关设备无需增加 TC,从而节省了系统资源, 降低了系统成本, 解决了现有技术中由于网关设备增加了 TC而导致的系统 资源的浪费和系统成本的增加的问题。  According to the foregoing technical solution, the gateway device determines the size of each of the basic packets by using a basic packet packing duration according to a codec protocol and an encoding rate of each basic packet in the first RTP payload, so that the gateway device can be configured according to the foregoing basic Decoding the packet length of the packet and the packetization duration of the first RTP payload, splitting the first RTP payload into the at least one basic packet, and according to the foregoing packet packing duration and the packing duration of the RTP payload receivable by the receiving device And assembling the split at least one basic packet into a second RTP payload, and sending the second IP data packet including the foregoing second RTP payload to the receiving end device, because the gateway device does not need to increase the TC, thereby saving The system resources reduce the system cost, and solve the problem of waste of system resources and increase of system cost caused by the addition of the TC by the gateway device in the prior art.
此外, 由于现有技术中对发送端所在 IP承载网的一种打包时长的 RTP 净荷进行解码处理,然后再编码成接收端所在 IP承载网的另一种打包时长的 RTP净荷, 会对语音质量造成一定的损伤, 一般情况下, 进行一次编码或解 码 MOS值大约会降低 0.2~0.3, 因此, 本实施例提供的技术方案, 还可以有 效提高语音质量。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 In addition, in the prior art, the RTP payload of a packetization duration of the IP bearer network where the sender is located is decoded, and then encoded into another RTP payload of the packet length of the IP bearer network where the receiver is located, The voice quality causes a certain damage. Generally, the encoding or decoding MOS value is reduced by about 0.2 to 0.3. Therefore, the technical solution provided by this embodiment can effectively improve the voice quality. DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图 1为本发明一实施例提供的 RTP媒体数据的处理方法的流程示意图; 图 2为本发明另一实施例提供的 RTP媒体数据的处理设备的结构示意 图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。  1 is a schematic flowchart of a method for processing RTP media data according to an embodiment of the present invention; and FIG. 2 is a schematic structural diagram of a device for processing RTP media data according to another embodiment of the present invention. The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. The embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1为本发明一实施例提供的 RTP媒体数据的处理方法的流程示意图, 如图 1所示, 本实施例的 RTP媒体数据的处理方法可以包括:  FIG. 1 is a schematic flowchart of a method for processing RTP media data according to an embodiment of the present invention. As shown in FIG. 1, the method for processing RTP media data in this embodiment may include:
101、网关设备接收发送端设备发送的包含第一 RTP净荷的第一 IP数据 包;  101. The gateway device receives a first IP data packet that is sent by the sending end device and includes a first RTP payload.
102、 上述网关设备根据上述第一 RTP净荷对应的编解码协议的基本包 打包时长和上述第一 RTP净荷的打包时长, 将上述第一 RTP净荷拆分成至 少一个基本包, 每个上述基本包的大小由上述网关设备根据上述基本包打包 时长和每个上述基本包的编码速率确定;  102. The foregoing gateway device splits the first RTP payload into at least one basic packet according to a basic packet packing duration of the codec protocol corresponding to the first RTP payload and a packing duration of the first RTP payload. The size of the foregoing basic packet is determined by the foregoing gateway device according to the foregoing basic packet packing duration and the encoding rate of each of the basic packets;
其中,上述编解码协议可以包括但不限于 G.71 1协议、 G.723协议、 G.726 协议、 G.729协议、 G.722协议、 自适应多速率( Adaptive Multi-Rate, 简称 AMR )编解码协议或增强型变速率编解码( Enhanced Variable Rate Coder, 简称 EVRC )协议。  The foregoing codec protocol may include, but is not limited to, G.71 1 protocol, G.723 protocol, G.726 protocol, G.729 protocol, G.722 protocol, Adaptive Multi-Rate (AMR). Codec protocol or Enhanced Variable Rate Coder (EVRC) protocol.
进一步地, 上述网关设备还可以进一步根据上述基本包打包时长和每个 上述基本包的编码速率, 确定每个上述基本包的大小。  Further, the gateway device may further determine the size of each of the basic packets according to the basic packet packing duration and the encoding rate of each of the basic packets.
其中, 本实施例中的上述第一 IP数据包中还可以进一步包含头部数据, 例如: 用户面协议(User Plane Protocol, 简称 UP ) 头或 RFC3267头等, 上述头部数据用于指示每个上述基本包的编码速率; 相应地, 网关设备还可 以进一步根据上述头部数据, 确定每个上述基本包的编码速率。 The first IP data packet in the embodiment may further include header data, such as a User Plane Protocol (UP) header or an RFC3267 header. The foregoing header data is used to indicate an encoding rate of each of the basic packets. Accordingly, the gateway device may further determine, according to the foregoing header data, a coding rate of each of the basic packets.
103、 上述网关设备根据上述基本包打包时长和接收端设备可接收的 RTP净荷的打包时长, 将拆分成的上述至少一个基本包拼装成第二 RTP净 荷, 并将包含上述第二 RTP净荷的第二 IP数据包发送给上述接收端设备。  103. The foregoing gateway device assembles the split at least one basic packet into a second RTP payload according to the foregoing basic packet packing duration and a packing duration of the RTP payload receivable by the receiving device, and includes the foregoing second RTP. The second IP packet of the payload is sent to the above receiving device.
上述 101~103的执行主体网关设备可以为媒体网关 ( Media Gateway, 简称 MGW )或家庭网关等设备。  The execution subject gateway device of the foregoing 101 to 103 may be a device such as a media gateway (MGW) or a home gateway.
本实施例中, 网关设备通过根据编解码协议的基本包打包时长和第一 RTP净荷中的每个基本包的编码速率, 确定每个上述基本包的大小, 使得网 关设备能够根据上述基本包打包时长和上述第一 RTP净荷的打包时长,将上 述第一 RTP净荷拆分成上述至少一个基本包,并根据上述基本包打包时长和 接收端设备可接收的 RTP净荷的打包时长,将拆分成的上述至少一个基本包 拼装成第二 RTP净荷,并将包含上述第二 RTP净荷的第二 IP数据包发送给 上述接收端设备, 由于网关设备无需增加 TC, 从而节省了系统资源, 降低了 系统成本, 解决了现有技术中由于网关设备增加了 TC而导致的系统资源的 浪费和系统成本的增加的问题。  In this embodiment, the gateway device determines the size of each of the basic packets according to the basic packet packing duration of the codec protocol and the encoding rate of each basic packet in the first RTP payload, so that the gateway device can be configured according to the basic packet. The packetization duration and the packetization duration of the first RTP payload are split into the at least one basic packet, and according to the basic packet packing duration and the packetization duration of the RTP payload receivable by the receiving device, Assembling the split at least one basic packet into a second RTP payload, and transmitting the second IP data packet including the foregoing second RTP payload to the receiving end device, since the gateway device does not need to increase the TC, thereby saving The system resources reduce the system cost, and solve the problem of waste of system resources and increase of system cost caused by the addition of the TC by the gateway device in the prior art.
此外, 由于现有技术中对发送端所在 IP承载网的一种打包时长的 RTP 净荷进行解码处理,然后再编码成接收端所在 IP承载网的另一种打包时长的 RTP净荷, 会对语音质量造成一定的损伤, 一般情况下, 进行一次编码或解 码 MOS值大约会降低 0.2~0.3, 因此, 本实施例提供的技术方案, 还可以有 效提高语音质量。  In addition, in the prior art, the RTP payload of a packetization duration of the IP bearer network where the sender is located is decoded, and then encoded into another RTP payload of the packet length of the IP bearer network where the receiver is located, The voice quality causes a certain damage. Generally, the encoding or decoding MOS value is reduced by about 0.2 to 0.3. Therefore, the technical solution provided by this embodiment can effectively improve the voice quality.
为使得本发明实施例提供的方法更加清楚, 下面将以 G.729协议和适用 于 2G网络的 AMR协议作为举例。  In order to make the method provided by the embodiment of the present invention clearer, the G.729 protocol and the AMR protocol applicable to the 2G network will be exemplified below.
例如: 对于采用单速率进行 RTP净荷的传输的编解码方式来说, 例如: G.729协议,发送端设备发送的第一 RTP净荷的打包时长为 20毫秒( ms ) , 接收端设备接收的第二 RTP 净荷的打包时长为 40ms。 网关设备可以根据 G.729协议的基本包打包时长 10ms和每个基本包的编码速率 8k比特每秒 ( bps ) , 确定每个基本包的大小 (8000 χ 0.01 )/8=10字节 ( byte ) , 以使得 网关设备根据 G.729协议的基本包打包时长 10ms和第一 RTP净荷的打包时 长 20ms, 将一个第一 RTP 净荷拆分成两个基本包, 每个基本包的大小为 10byte。 然后, 网关设备则可以根据上述基本包打包时长 10ms和接收端设 备接收的第二 RTP净荷的打包时长 40ms, 将拆分成的四个基本包(即两个 第一 RTP净荷拆分成的四个基本包)拼装成第二 RTP净荷(每个基本包的 大小为 10byte ) , 并将包含上述第二 RTP净荷的第二 IP数据包发送给上述 接收端设备。 For example, for a codec mode that uses a single rate for RTP payload transmission, for example: G.729 protocol, the packet length of the first RTP payload sent by the sender device is 20 milliseconds (ms), and the receiving device receives The second RTP payload has a packing time of 40ms. The gateway device can determine the size of each basic packet (8000 χ 0.01 ) / 8 = 10 bytes according to the basic packet packing time of the G.729 protocol of 10 ms and the encoding rate of each basic packet of 8 kbits per second ( bps ). So that the gateway device splits the first RTP payload into two basic packets according to the basic packet packing time of the G.729 protocol of 10 ms and the first RTP payload of 20 ms, and the size of each basic packet is 10byte. Then, the gateway device may split the split four basic packets (ie, the two first RTP payloads according to the basic packet packing duration of 10 ms and the packetization duration of the second RTP payload received by the receiving device by 40 ms. The four basic packages are assembled into a second RTP payload (each basic packet is 10 bytes in size), and a second IP packet containing the second RTP payload described above is transmitted to the receiving device.
可以理解的是: 本实施例中, 接收端设备解析获得第二 IP数据包中所包 含的 RTP媒体数据的详细描述, 可以参见现有技术中接收端设备对带 IP头 和 UDP头的 RTP包所进行处理的相关内容, 例如: 首先在 IP层去掉 IP头 送往 UDP层, 然后在 UDP层去掉 UDP头, 最后解析 RTP包( RTP头和 RTP净荷) , 获得 RTP媒体数据, 此处不再赘述。  It can be understood that, in this embodiment, the receiving end device parses and obtains a detailed description of the RTP media data included in the second IP data packet, and can refer to the RTP packet of the receiving end device with the IP header and the UDP header in the prior art. Related content of the processing, for example: First, the IP header is removed from the IP layer and sent to the UDP layer, then the UDP header is removed at the UDP layer, and finally the RTP packet (the RTP header and the RTP payload) is parsed to obtain the RTP media data. Let me repeat.
再例如:对于采用多速率进行 RTP净荷的传输的编解码方式来说,例如: 适用于 2G网络的 AMR协议, 发送端设备发送的第一 RTP净荷的打包时长 为 40ms, 接收端设备接收的第二 RTP净荷的打包时长为 60ms。 网关设备 可以根据 AMR协议的基本包打包时长 20ms和 RFC3267头部数据所指示的 相应的基本包的编码速率, 例如: 第一个基本包的编码速率 12.2kbps, 第二 个基本包的编码速率 10.2kbps, 第三个基本包的编码速率 10.2kbps, 第四个 基本包的编码速率 10.2kbps , 确定第一个基本包的大小为(12200 X 0.02)/8=30.5byte, 第二个基本包的大小为(10200 χ 0.02)/8=25.5byte, 第三 个基本包的大小为(10200 0.02)/8=25.5byte , 第四个基本包的大小为 (10200 0.02)/8=25.5byte, 以使得网关设备根据 AMR协议的基本包打包时 长 20ms和第一 RTP净荷的打包时长 40ms,将一个第一 RTP净荷拆分成两 个基本包,一个基本包的大小为 30.5byte, 另一个基本包的大小为 25.5byte。 然后, 网关设备则可以根据上述基本包打包时长 20ms和接收端设备接收的 第二 RTP净荷的打包时长 60ms, 将拆分成的三个基本包(即两个第一 RTP 净荷拆分成的四个基本包中的三个)拼装成第二 RTP净荷(第一个基本包的 大小为 30.5byte, 第二个基本包的大小为 25.5byte, 第三个基本包的大小为 25.5byte ) , 并将包含上述第二 RTP净荷的第二 IP数据包发送给上述接收 端设备。  For example, for the codec mode of the RTP payload transmission using multiple rates, for example, the AMR protocol applicable to the 2G network, the packet length of the first RTP payload sent by the sender device is 40 ms, and the receiving device receives The second RTP payload has a packaging time of 60 ms. The gateway device may according to the basic packet packing time of the AMR protocol of 20 ms and the encoding rate of the corresponding basic packet indicated by the RFC 3267 header data, for example: the encoding rate of the first basic packet is 12.2 kbps, and the encoding rate of the second basic packet is 10.2. Kbps, the encoding rate of the third basic packet is 10.2 kbps, and the encoding rate of the fourth basic packet is 10.2 kbps, and the size of the first basic packet is determined to be (12200 X 0.02) / 8 = 30.5 bytes, the second basic packet The size is (10200 χ 0.02) / 8 = 25.5 bytes, the size of the third basic packet is (10200 0.02) / 8 = 25.5byte, and the size of the fourth basic packet is (10200 0.02) / 8 = 25.5byte, The gateway device splits the first RTP payload into two basic packets according to the basic packet packing time of the AMR protocol of 20 ms and the first RTP payload, and the basic packet size is 30.5 bytes. The size of the packet is 25.5 bytes. Then, the gateway device may split the split three basic packets (ie, the two first RTP payloads according to the basic packet packing time of 20 ms and the second RTP payload received by the receiving device for 60 ms. Three of the four basic packages are assembled into a second RTP payload (the size of the first basic packet is 30.5 bytes, the size of the second basic packet is 25.5 bytes, and the size of the third basic packet is 25.5 bytes. And transmitting a second IP data packet including the foregoing second RTP payload to the receiving end device.
可以理解的是: 本实施例中, 接收端设备解析获得第二 IP数据包中所包 含的 RTP媒体数据的详细描述, 可以参见现有技术中接收端设备对带 IP头 和 UDP头的 RTP包所进行处理的相关内容, 例如: 首先在 IP层去掉 IP头 送往 UDP层, 然后在 UDP层去掉 UDP头, 最后解析 RTP包( RTP头、 RFC3267头和 RTP净荷 ) , 获得 RTP媒体数据, 此处不再赘述。 It can be understood that, in this embodiment, the receiving end device parses and obtains a detailed description of the RTP media data included in the second IP data packet, and can refer to the receiving end device pair with the IP header in the prior art. And the related content of the RTP packet processed by the UDP header, for example: First, the IP header is removed from the IP layer and sent to the UDP layer, then the UDP header is removed at the UDP layer, and finally the RTP packet (RTP header, RFC3267 header, and RTP payload) is parsed. , get RTP media data, no longer repeat them here.
需要说明的是: 对于前述的各方法实施例, 为了简单描述, 故将其都表 述为一系列的动作组合, 但是本领域技术人员应该知悉, 本发明并不受所描 述的动作顺序的限制, 因为依据本发明, 某些步骤可以采用其他顺序或者同 时进行。 其次, 本领域技术人员也应该知悉, 说明书中所描述的实施例均属 于优选实施例, 所涉及的动作和模块并不一定是本发明所必须的。  It should be noted that, for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有 详述的部分, 可以参见其他实施例的相关描述。  In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
图 2为本发明另一实施例提供的 RTP媒体数据的处理设备的结构示意 图, 如图 2所示, 本实施例的 RTP媒体数据的处理设备可以包括接收单元 21、拆分单元 22和拼装单元 23。 其中,接收单元 21用于接收发送端设备发 送的包含第一 RTP净荷的第一 IP数据包; 拆分单元 22用于根据上述第一 RTP净荷对应的编解码协议的基本包打包时长和上述第一 RTP净荷的打包 时长, 将上述第一 RTP净荷拆分成至少一个基本包, 每个上述基本包的大小 由上述网关设备根据上述基本包打包时长和每个上述基本包的编码速率确 定;拼装单元 23用于根据上述基本包打包时长和接收端设备接收的第二 RTP 净荷的打包时长, 将上述拆分单元拆分成的上述至少一个基本包拼装成第二 RTP净荷, 并将包含上述第二 RTP净荷的第二 I P数据包发送给上述接收端 设备。  2 is a schematic structural diagram of a processing device for RTP media data according to another embodiment of the present invention. As shown in FIG. 2, the processing device for RTP media data in this embodiment may include a receiving unit 21, a splitting unit 22, and an assembling unit. twenty three. The receiving unit 21 is configured to receive a first IP data packet that is sent by the sending end device and includes a first RTP payload. The splitting unit 22 is configured to use a basic packet packing duration of the codec protocol corresponding to the first RTP payload. The packetization duration of the first RTP payload is split into the at least one basic packet, and the size of each of the basic packets is determined by the gateway device according to the basic packet packing duration and the encoding of each of the basic packets. Rate determining; the assembling unit 23 is configured to assemble the at least one basic packet into which the splitting unit is split into the second RTP payload according to the foregoing packet packing duration and the packing duration of the second RTP payload received by the receiving device. And transmitting a second IP data packet including the foregoing second RTP payload to the receiving end device.
上述图 1对应的实施例中网关设备的功能可以由本实施例提供的 RTP媒 体数据的处理设备实现。  The function of the gateway device in the embodiment corresponding to the foregoing FIG. 1 can be implemented by the RTP media data processing device provided in this embodiment.
进一步地,本实施例中的拆分单元 22还可以进一步用于根据上述基本包 打包时长和每个上述基本包的编码速率, 确定每个上述基本包的大小。  Further, the splitting unit 22 in this embodiment may be further configured to determine the size of each of the basic packets according to the basic packet packing duration and the encoding rate of each of the basic packets.
其中, 本实施例中的上述第一 IP数据包中还可以进一步包含头部数据, 例如: UP头或 RFC3267头等, 上述头部数据用于指示每个上述基本包的编 码速率; 相应地, 拆分单元 22还可以进一步用于根据上述头部数据, 确定每 个上述基本包的编码速率。  The first IP data packet in the embodiment may further include header data, for example, a UP header or an RFC3267 header, where the header data is used to indicate a coding rate of each of the basic packets; accordingly, The sub-unit 22 may be further configured to determine a coding rate of each of the basic packets according to the foregoing header data.
本实施例中, RTP媒体数据的处理设备通过拆分单元根据编解码协议的 基本包打包时长和接收单元接收的第一 RTP 净荷中的每个基本包的编码速 率, 确定每个上述基本包的大小, 使得拆分单元能够根据上述基本包打包时 长和上述第一 RTP净荷的打包时长, 将上述第一 RTP净荷拆分成上述至少 一个基本包, 并由拼装单元根据上述基本包打包时长和接收端设备接收的第 二 RTP净荷的打包时长, 将拆分成的上述至少一个基本包拼装成第二 RTP 净荷,并将包含上述第二 RTP净荷的第二 IP数据包发送给上述接收端设备, 由于网关设备无需增加 TC, 从而节省了系统资源, 降低了系统成本, 解决了 现有技术中由于网关设备增加了 TC而导致的系统资源的浪费和系统成本的 增加的问题。 In this embodiment, the processing device of the RTP media data is processed by the splitting unit according to the codec protocol. The basic packet packing duration and the encoding rate of each basic packet in the first RTP payload received by the receiving unit, determining the size of each of the basic packets, so that the splitting unit can be based on the basic packet packing duration and the first RTP. The first RTP payload is split into the at least one basic packet, and the assembly unit splits the packet length according to the basic packet packing duration and the second RTP payload received by the receiving device. The at least one basic packet is assembled into a second RTP payload, and the second IP data packet including the second RTP payload is sent to the receiving end device, because the gateway device does not need to increase the TC, thereby saving system resources and reducing The system cost solves the problem of waste of system resources and increase of system cost caused by the addition of the TC by the gateway device in the prior art.
此外, 由于现有技术中对发送端所在 IP承载网的一种打包时长的 RTP 净荷进行解码处理,然后再编码成接收端所在 IP承载网的另一种打包时长的 RTP净荷, 会对语音质量造成一定的损伤, 一般情况下, 进行一次编码或解 码 MOS值大约会降低 0.2~0.3, 因此, 本实施例提供的技术方案, 还可以有 效提高语音质量。  In addition, in the prior art, the RTP payload of a packetization duration of the IP bearer network where the sender is located is decoded, and then encoded into another RTP payload of the packet length of the IP bearer network where the receiver is located, The voice quality causes a certain damage. Generally, the encoding or decoding MOS value is reduced by about 0.2 to 0.3. Therefore, the technical solution provided by this embodiment can effectively improve the voice quality.
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描 述的系统, 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再赘述。  A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合 或通信连接, 可以是电性, 机械或其它的形式。  In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。  The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
另外 ,在本发明各个实施例中的各功能单元可以集成在一个处理单元中 , 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单 元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用硬件加软件 功能单元的形式实现。 In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one single unit. Yuanzhong. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元, 可以存储在一个计算机 可读取存储介质中。 上述软件功能单元存储在一个存储介质中, 包括若干指 令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等) 执行本发明各个实施例所述方法的部分步骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器(Read-Only Memory, 简称 ROM ) 、 随机存取存储 器( Random Access Memory, 简称 RAM )、 磁碟或者光盘等各种可以存储 程序代码的介质。  The above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium. The above software functional units are stored in a storage medium and include a number of instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform some of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. Medium.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。  It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权 利 要求 书 Claim
1、 一种 RTP媒体数据的处理方法, 其特征在于, 包括:  A method for processing RTP media data, comprising:
网关设备接收发送端设备发送的包含第一 RTP净荷的第一 IP数据包; 所述网关设备根据所述第一 RTP 净荷对应的编解码协议的基本包打包 时长和所述第一 RTP净荷的打包时长, 将所述第一 RTP净荷拆分成至少一 个基本包, 每个所述基本包的大小由所述网关设备根据所述基本包打包时长 和每个所述基本包的编码速率确定;  The gateway device receives the first IP data packet that is sent by the sending end device and includes the first RTP payload; the gateway device according to the first RTP payload corresponding to the basic packet packing time of the codec protocol and the first RTP net Generating the first RTP payload into at least one basic packet, the size of each of the basic packets being encoded by the gateway device according to the basic packet packing duration and the encoding of each of the basic packets Rate determination
所述网关设备根据所述基本包打包时长和接收端设备可接收的 RTP 净 荷的打包时长, 将拆分成的所述至少一个基本包拼装成第二 RTP净荷, 并将 包含所述第二 RTP净荷的第二 IP数据包发送给所述接收端设备。  The gateway device assembles the split at least one basic packet into a second RTP payload according to the basic packet packing duration and a packing duration of the RTP payload receivable by the receiving device, and includes the first The second IP data packet of the second RTP payload is sent to the receiving end device.
2、 根据权利要求 1所述的方法, 其特征在于, 还包括:  2. The method according to claim 1, further comprising:
所述网关设备根据所述基本包打包时长和每个所述基本包的编码速率, 确定每个所述基本包的大小。  The gateway device determines a size of each of the basic packets according to the basic packet packing duration and an encoding rate of each of the basic packets.
3、 根据权利要求 2所述的方法, 其特征在于, 所述第一 IP数据包中还 包含头部数据, 所述头部数据用于指示每个所述基本包的编码速率, 所述网 关设备根据所述基本包打包时长和每个所述基本包的编码速率, 确定每个所 述基本包的大小之前, 还包括:  The method according to claim 2, wherein the first IP data packet further includes header data, and the header data is used to indicate a coding rate of each of the basic packets, the gateway Before determining the size of each of the basic packets according to the basic packet packing duration and the encoding rate of each of the basic packets, the device further includes:
所述网关设备根据所述头部数据, 确定每个所述基本包的编码速率。 The gateway device determines a coding rate of each of the basic packets according to the header data.
4、 一种 RTP媒体数据的处理设备, 其特征在于, 包括: 4. A processing device for RTP media data, comprising:
接收单元, 用于接收发送端设备发送的包含第一 RTP净荷的第一 IP数 据包;  a receiving unit, configured to receive a first IP data packet that is sent by the sending end device and includes a first RTP payload;
拆分单元,用于根据所述第一 RTP净荷对应的编解码协议的基本包打包 时长和所述第一 RTP净荷的打包时长, 将所述第一 RTP净荷拆分成至少一 个基本包, 每个所述基本包的大小由所述网关设备根据所述基本包打包时长 和每个所述基本包的编码速率确定;  a splitting unit, configured to split the first RTP payload into at least one basic according to a basic packet packing duration of the codec protocol corresponding to the first RTP payload and a packing duration of the first RTP payload a packet, the size of each of the basic packets is determined by the gateway device according to the basic packet packing duration and a coding rate of each of the basic packets;
拼装单元,用于根据所述基本包打包时长和接收端设备可接收的 RTP净 荷的打包时长, 将所述拆分单元拆分成的所述至少一个基本包拼装成第二 RTP净荷, 并将包含所述第二 RTP净荷的第二 IP数据包发送给所述接收端 设备。  The assembling unit is configured to assemble the at least one basic package into which the split unit is split into the second RTP payload according to the basic packet packing duration and the packing duration of the RTP payload receivable by the receiving device. And transmitting a second IP data packet including the second RTP payload to the receiving end device.
5、 根据权利要求 4所述的设备, 其特征在于, 所述拆分单元还用于 根据所述基本包打包时长和每个所述基本包的编码速率, 确定每个所述 基本包的大小。 5. The device according to claim 4, wherein the splitting unit is further used for The size of each of the basic packets is determined according to the basic packet packing duration and the encoding rate of each of the basic packets.
6、 根据权利要求 5所述的设备, 其特征在于, 所述第一 IP数据包中还 包含头部数据, 所述头部数据用于指示每个所述基本包的编码速率, 所述拆 分单元还用于  The device according to claim 5, wherein the first IP data packet further includes header data, and the header data is used to indicate a coding rate of each of the basic packets, where the Subunits are also used
根据所述头部数据, 确定每个所述基本包的编码速率。  A coding rate of each of the basic packets is determined based on the header data.
PCT/CN2011/083824 2011-12-12 2011-12-12 Rtp media data processing method and device WO2013086671A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201180003484.XA CN103503402A (en) 2011-12-12 2011-12-12 RTP media data processing method and device
PCT/CN2011/083824 WO2013086671A1 (en) 2011-12-12 2011-12-12 Rtp media data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/083824 WO2013086671A1 (en) 2011-12-12 2011-12-12 Rtp media data processing method and device

Publications (1)

Publication Number Publication Date
WO2013086671A1 true WO2013086671A1 (en) 2013-06-20

Family

ID=48611788

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/083824 WO2013086671A1 (en) 2011-12-12 2011-12-12 Rtp media data processing method and device

Country Status (2)

Country Link
CN (1) CN103503402A (en)
WO (1) WO2013086671A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104589B (en) * 2019-06-18 2022-06-21 成都鼎桥通信技术有限公司 End-to-end encryption method with width integration

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007036960A (en) * 2005-07-29 2007-02-08 Kddi Corp Rtp communication terminal for dynamically switching session, call connecting system, and program
CN1933478A (en) * 2005-09-17 2007-03-21 华为技术有限公司 Media stream packet assembling time length consultation method
CN101540622A (en) * 2008-03-17 2009-09-23 中国移动通信集团公司 Method and device for packed transmission of speech code
US20110149999A1 (en) * 2009-12-17 2011-06-23 Fujitsu Limited Reception apparatus, reception method, and reception program
CN102137093A (en) * 2010-12-10 2011-07-27 华为技术有限公司 Method for processing media stream and media gateway

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3947871B2 (en) * 2002-12-02 2007-07-25 Necインフロンティア株式会社 Audio data transmission / reception system
CN101179736B (en) * 2006-11-08 2010-07-14 中兴通讯股份有限公司 Method for converting transmission stream program to China mobile multimedia broadcasting program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007036960A (en) * 2005-07-29 2007-02-08 Kddi Corp Rtp communication terminal for dynamically switching session, call connecting system, and program
CN1933478A (en) * 2005-09-17 2007-03-21 华为技术有限公司 Media stream packet assembling time length consultation method
CN101540622A (en) * 2008-03-17 2009-09-23 中国移动通信集团公司 Method and device for packed transmission of speech code
US20110149999A1 (en) * 2009-12-17 2011-06-23 Fujitsu Limited Reception apparatus, reception method, and reception program
CN102137093A (en) * 2010-12-10 2011-07-27 华为技术有限公司 Method for processing media stream and media gateway

Also Published As

Publication number Publication date
CN103503402A (en) 2014-01-08

Similar Documents

Publication Publication Date Title
US6421720B2 (en) Codec-independent technique for modulating bandwidth in packet network
CN109923809B (en) Encoding and decoding method using forward error correction, and encoding and decoding system
JP5410601B2 (en) Delay monitoring in packet-switched networks.
US10068581B2 (en) Method and arrangement for providing a backwards compatible payload format
US20100027417A1 (en) Method and apparatus for improving bandwith exploitation in real-time audio/video communications
US20100128715A1 (en) Protocol Conversion System in Media Communication between a Packet-Switching Network and Circuit-Switiching Network
US9392082B2 (en) Communication interface and method for robust header compression of data flows
US9014369B2 (en) Voice-over internet protocol (VoIP) scrambling mechanism
WO2014153944A1 (en) Method and apparatus for transmitting rtp media stream
Larzon et al. Efficient use of wireless bandwidth for multimedia applications
WO2012106894A1 (en) Method and device for transmitting media stream data in cloud computing system
CN102299962A (en) Cloud-based Voice over Internet Protocol (VoIP) system, device and method
CN101114987A (en) Method for implementing transmission of voice forward error correction information in CDMA2000 system
RU2766274C2 (en) Hybrid rtp payload format
Herrero Integrating HEC with circuit breakers and multipath RTP to improve RTC media quality
CN117135148A (en) Audio and video transmission method and system based on WebRTC
WO2021073155A1 (en) Video conference method, apparatus and device, and storage medium
US20060133372A1 (en) Apparatus and method for multiplexing packet in mobile communication network
EP1978765A1 (en) Power management scheme for mobile communication devices
TWI519104B (en) Sound information transmission method and packet communication system
WO2014071766A1 (en) Audio multi-code transmission method and corresponding apparatus
WO2013086671A1 (en) Rtp media data processing method and device
WO2017118273A1 (en) Method and device for transmitting and receiving timestamp information
CN112887497B (en) Communication method, apparatus and computer storage medium
Khalifa et al. Improved voice quality with the combination of transport layer & audio codec for wireless devices

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11877382

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11877382

Country of ref document: EP

Kind code of ref document: A1