WO2012094980A1 - Method and system for transmitting streaming media, and media forwarding server - Google Patents

Method and system for transmitting streaming media, and media forwarding server Download PDF

Info

Publication number
WO2012094980A1
WO2012094980A1 PCT/CN2012/070174 CN2012070174W WO2012094980A1 WO 2012094980 A1 WO2012094980 A1 WO 2012094980A1 CN 2012070174 W CN2012070174 W CN 2012070174W WO 2012094980 A1 WO2012094980 A1 WO 2012094980A1
Authority
WO
WIPO (PCT)
Prior art keywords
media
packet size
information
adaptation
size adaptation
Prior art date
Application number
PCT/CN2012/070174
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 中兴通讯股份有限公司
Publication of WO2012094980A1 publication Critical patent/WO2012094980A1/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/60Network streaming of media packets
    • H04L65/75Media network packet handling
    • H04L65/765Media network packet handling intermediate

Definitions

  • the present invention relates to the field of multimedia data transmission technologies, and in particular, to a multimedia data transmission method, system and media forwarding server for packet size adaptation in a multimedia real-time transmission process.
  • the streaming media server packs media content such as audio, video, subtitles or animation into a media stream, and the media stream is continuously transmitted in real time on the network in groups.
  • the client does not have to wait for the media content to be completely downloaded, and only needs to delay a few seconds or ten. Playback can be started in a few seconds, while the media stream is played and played until the media content is played or the client aborts.
  • Application of streaming media transmission technology can significantly shorten media playback latency and reduce client cache requirements.
  • Streaming media is facing new application scenarios across networks or heterogeneous networks.
  • the same media streams need to support services on different networks.
  • the packet adaptation (PacketSize) adaptation is a transmission adaptation measure.
  • the optimal transmission efficiency can be obtained, and the packet loss rate can be controlled to a medium and low level, and the bandwidth utilization rate can be increased without wasting limited bandwidth resources, thereby providing better quality of service.
  • the Internet Protocol (Internet Protocal, IP) uses a method of segmentation and assembly for packet size adaptation, and assigns a unique identifier to each IP data packet, that is, an IP data packet.
  • the header portion also has segmentation and assembly.
  • Related segmentation marks and displacements When an IP packet is segmented, each segment needs to contain the original identifier.
  • segmentation and reassembly are usually provided by the IP source and destination, and the router does not perform IP layer segmentation and reassembly.
  • IPv6 The Internet Protocol Version 6, IPv6, includes a segment offset value, a "more segment” flag, and an identification field through the segmentation extension header. The length of the source node pair exceeds the source and destination. Maximum Transmission Unit (Maximum Transmission Unit, The MTU) packet is segmented. IPv6 only allows the source node to segment the packet, which simplifies the processing of the packet by the intermediate node.
  • MTU Maximum Transmission Unit
  • the packet size has been determined.
  • the router cannot perform packet size adaptation, so the optimal transmission efficiency cannot be achieved.
  • the technical problem to be solved by the present invention is to provide a streaming media transmission method and system to improve network transmission efficiency.
  • the present invention provides a streaming media transmission method, the method comprising: a streaming media server sending a media stream, where the media packet size adaptation information is carried;
  • the media forwarding server forwards the media stream after the packet size adaptation process.
  • the media packet size adaptation information includes adaptation range information, load layout information, and adaptation load information; the adaptation range information includes a maximum transmission unit (MTU) corresponding to an available packet size; the load layout information. The number of load packets corresponding to each packet size is included, and load header and load data positioning information of each load packet; and the adapted load information includes load header data and data length.
  • MTU maximum transmission unit
  • the media packet size adaptation information further includes descrambling information, which is used to provide descrambling required information for the packet size-adapted scrambled data.
  • the media packet size adaptation information is carried by a transport header or data portion.
  • Performing the packet size adaptation process according to the media packet size adaptation information includes: segmenting or reorganizing the media stream to be forwarded according to the media packet size adaptation information and combining the underlying transmission link state, and completing the adaptation process. .
  • the media stream forwarded by the media forwarding server carries the original media packet size adaptation information or the updated media packet size adaptation information; or the media packet size adaptation information is filtered out in the media stream.
  • the present invention also provides a streaming media transmission system, the system comprising a streaming media server and a media forwarding server, wherein:
  • the streaming server is configured to: send a media stream, where the media packet size adaptation information is carried; the media forwarding server includes:
  • a receiving module configured to: receive the media stream
  • an adaptation processing module configured to: perform packet size adaptation processing on the media stream according to media packet size adaptation information in the received media stream;
  • the forwarding module is configured to: forward the packet size to process the processed media stream.
  • the media packet size adaptation information includes adaptation range information, load layout information, and adaptation load information; the adaptation range information includes a maximum transmission unit (MTU) corresponding to an available packet size; the load layout information. The number of load packets corresponding to each packet size is included, and load header and load data positioning information of each load packet; and the adapted load information includes load header data and data length.
  • MTU maximum transmission unit
  • the present invention also provides a media forwarding server, which includes:
  • a receiving module configured to receive a media stream sent by the streaming media server
  • an adaptation processing module configured to perform packet size adaptation processing on the media stream according to the received media packet size adaptation information in the media stream
  • a forwarding module configured to forward the media stream after the packet size adaptation process.
  • the media stream sent by the streaming media server carries the media packet size adaptation information; in the network transmission process of the media stream, the media forwarding server adapts the information and the link status according to the media packet size in the media stream. Provide packet size adaptation for optimal network transmission efficiency.
  • FIG. 1 is a schematic diagram of a streaming media transmission method according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a streaming media transmission system according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a specific example of a communication system
  • FIG. 4 depicts an example of media packet size adaptation information of the present invention being transmitted in a separate stream
  • FIG. 5 depicts an example of media packet size adaptation information for media packets of the present invention to be placed in separate streams for transmission;
  • Figure 6 is a diagram showing an example of media packet size adaptation information of the present invention placed in a media transport header for transmission;
  • Figure 7 illustrates the processing flow of the media forwarding server in the packet size adaptation embodiment
  • Figure 8 depicts a media client endpoint broadcast procedure in a packet size adaptation embodiment.
  • a logical or physical device that provides a media transport layer forwarding function in a media stream transmission process is referred to as a media forwarding server.
  • the real-time segmentation or assembly of the media stream by the media forwarding server is an application layer solution for realizing media packet size adaptation.
  • MPEG Moving Pictures Experts Group
  • TS Transport Stream
  • Real-time transmission protocol
  • Transport protocol supports variable length packets and specifies various load formats.
  • the media forwarding server needs to parse the RTP payload and perform real-time segmentation or assembly according to the payload format.
  • the media forwarding server needs to support various encoding formats with high complexity; on the other hand, real-time segmentation and assembly can affect the efficiency of the media forwarding server.
  • the media forwarding server cannot perform arbitrary on the media stream. Segmentation or assembly, otherwise it may affect the descrambling of the code stream at the terminal.
  • an embodiment of the present invention provides a streaming media transmission method and system, where a streaming media server sends a media stream, which carries media packet size adaptation information; in a network transmission process of the media stream, the media forwarding server is based on the media stream.
  • Media packet size adaptation information and link conditions provide packet size adaptation for optimal network transmission efficiency.
  • the streaming media transmission method of the embodiment of the present invention includes:
  • Step 101 The media server sends a media stream, where the media packet size adaptation information is carried.
  • the media packet size adaptation information in the embodiment of the present invention includes, but is not limited to, adaptation range information, load layout information, and adaptation load information.
  • the media packet size adaptation information further includes adding descrambling information.
  • the media packet is large, and the adaptation information includes but is not limited to the following four types of information:
  • the adaptation range information provides a description of the packet size adaptation range, the total number of choices available for packet size adaptation, and the MTU for each selection.
  • the load layout information is selected according to each packet size, and the number of load packets is provided, as well as the load header and load data location information of each load packet.
  • a media frame When aligned according to the frame, a media frame may be split into multiple packets for transmission.
  • the load layout information indicates how many load packets the media frame is split into, the load header and the corresponding load data start position.
  • the load layout information indicates how many load packets, the load headers, and the corresponding load data start positions that the GOP is split into.
  • the starting position is a byte offset based on the alignment point, and the specific description corresponds to the specific transmission format of the media packet size information, which is not limited herein.
  • the payload header uses the agreed load transfer format, such as the load format defined by the RTP series transmission standard defined by the standard organization IETF, or other restrictions.
  • the descrambling information is transmitted, and the information required for descrambling is provided for the packet data after the packet size is adapted.
  • a streaming media packet carried on the underlying network usually consists of a transmission header, a payload header, and data.
  • the media packet size adaptation information may be placed in a transport header to carry.
  • extensions are made for RTP and MPEG-TS.
  • the existing standard media transport protocols RTP and MPEG-TS represent two different transport ideas, respectively.
  • RTP supports variable length.
  • MPEG-2 TS is defined as a fixed byte of 188 due to the early impact of early transmission network technology. With the development of network technology, it is evolving.
  • TS' a variable length transmission method based on MPEG-2 TS is referred to as TS'.
  • the media group can be carried in the extension field. Size adaptation information, as shown in Figure 5 below.
  • the media packet size adaptation information may also be placed in the data part, for example, for the TS' transmission mode, a PID (Program Identification) is added to the PMT (Program Map Table) to transmit the media packet size.
  • PID Program Identification
  • PMT Program Map Table
  • the information flow is adapted, and the media packet size adaptation information is delivered through a custom format, as shown in FIG. 4 subsequently.
  • the redundant content in the media packet size adaptation information such as the adaptation range, may also be carried in a user-defined descriptor ( Private descriptors) in the PMT that describes the transport size adaptation information stream.
  • Step 102 The media forwarding server receives the media stream according to the media in the received media stream.
  • the packet size adaptation information performs packet size adaptation processing on the media stream;
  • the media forwarding server applies media packet size adaptation information to provide fast packet and assembly adaptation functions.
  • Step 103 The media forwarding server forwards the media stream after the packet size adaptation process.
  • the media layer adaptation is performed by the media forwarding server in the transport network according to the media packet size adaptation information in the media stream.
  • a media forwarding server such as a media forwarding server located at the edge of the network, identifies the adaptation requirements for the packet size. Then, according to the adaptation of the underlying transmission link status, the media stream carries the media packet size adaptation information, and the media stream is segmented or reorganized to complete the adaptation process.
  • the media forwarding server may choose to transparently forward the media packet size adaptation information during the forwarding process, or modify the media packet size adaptation information and then forward the packet, or filter the media packet size adaptation information.
  • the embodiment of the present invention further provides a streaming media transmission system.
  • the system includes a streaming media server and a media forwarding server, where:
  • the streaming media server is configured to send a media stream, where the media packet size adaptation information is carried;
  • the media forwarding server includes:
  • a receiving module configured to receive the media stream
  • the adaptation processing module is configured to perform packet size adaptation processing on the media stream according to media packet size adaptation information in the received media stream;
  • the forwarding module is configured to forward the media stream after the packet size adaptation process.
  • the media packet size adaptation information includes adaptation range information, load layout information, and adaptation load information;
  • the adaptation range information includes a maximum transmission unit (MTU) corresponding to an available packet size.
  • the load layout information includes the number of load packets corresponding to each packet size, and load header and load data positioning information of each load packet;
  • the adapted load information includes load header data and data length.
  • the media packet size adaptation information further includes descrambling information, and is used to provide descrambling required information for the packet size-adapted scrambled data.
  • the media packet size adaptation information may be, but is not limited to, being carried by a transport header or a data part. Belt.
  • Performing the packet size adaptation process according to the media packet size adaptation information includes: segmenting or reorganizing the media stream to be forwarded according to the media packet size adaptation information and combining the underlying transmission link state, and completing the adaptation process. .
  • the media stream forwarded by the media forwarding server carries the original media packet size adaptation information or the updated media packet size adaptation information; or the media packet size adaptation information is filtered out in the media stream.
  • Fig. 3 shows a specific example of a communication system in which the network 1 includes a streaming server 10, a router 11, a router 12a and a media forwarding server 12b, the network 2 includes a router 13, and the network 3 includes a router 14.
  • the communication system is used for network transmission and forwarding of packet data such as audio, video, subtitle, data, and the like.
  • the network layer of the communication system uses the IP protocol, and the data link layer uses Dense Wavelength Division Multiplexing (DWDM) or Asynchronous Transfer Mode (ATM).
  • DWDM Dense Wavelength Division Multiplexing
  • ATM Asynchronous Transfer Mode
  • the forwarding steps of the media stream in the communication system are as follows:
  • Step A In the network 1, the streaming server 10 outputs various media streams in real time.
  • the link of the streaming server 10 is configured to transmit at least 1500 bytes of network packets.
  • Figures 4 and 5 show an example of media packet size adaptation information being transmitted in a separate stream.
  • the example uses a variable length TS' media transport format based on MPEG-2 TS.
  • Figure 4 depicts the media streaming situation
  • TS Program Association Table
  • program_number program number of 0x0001
  • PID program ID of 0x0100.
  • Figure 5 shows an example of the adaptation information format.
  • the specific structure is defined as shown in Table 1:
  • the above structure definition contains the following information:
  • Adaptation range information MTU_num and MTU fields
  • Load layout information Fields in the second For Loop;
  • Adaptation load information header-len and header-data-byte fields point to the payload header; the bytes between payload-start-offset and payload-end-offset are payloads; Scrambling information: is—conditional access field. If the value 1 indicates that the media is scrambled, no segmentation or combination is allowed.
  • Figure 6 shows an example of media packet size adaptation information placed in the media transport header for transmission. The difference from Figure 4 is:
  • TS, ⁇ only one media stream with stream type 0xlB and PID 0x0111, and media packet size adaptation information is placed in the TS' header of the video stream.
  • the media packet size adaptation information is carried at the alignment point where the PID is 0x0111 (not shown in this figure.
  • the method of header extension is standard, and the information field is embodied in Figure 5 and Table 1, no longer here. Brief description). If the alignment point is a frame boundary, the packet size of the TS' packet containing the first bit of each video frame carries the media packet size adaptation information.
  • Figure 5 shows the adaptation information format PacketSizeAdaptation—Private—data is also applicable, and it needs to be optimized in terms of byte length.
  • Step B The media stream flows through the router 11 to the router 12a, and the router 12a receives the media stream and forwards it to the 12b media forwarding server of the same node;
  • Step C The media forwarding server 12b performs packet size adaptation on the media stream according to the MTU or link status of the network 2 and the network 3.
  • the terminals facing network 2 are mobile handheld devices such as 15a and 15b, and the MTU is configured to be 500 bytes.
  • Network 3 is for PCs and TV devices such as 15d and 15e, and the MTU is configured to be 1000 bytes.
  • 15c is a high-definition television device, and the MTU is configured as 1500 bytes. If the media packet size adaptation information provides four MTU options of 250 bytes, 500 bytes, 1000 bytes, and 1500 bytes, the MTU of the 1500-byte original media stream after being adapted by the media forwarding server 12b is 500 words. Section, 1000 bytes. For 15c, the media forwarding server 12b does not need to perform packet size adaptation.
  • Step D the adapted media stream is transmitted to the router 13 of the network 2 and the router 14 of the network 3 through the router 12a;
  • Step E the router 13 transmits the media stream QoS to the network nodes 15a and 15b, and the router 14 transmits the media stream QoS to the network nodes 15d and 15e for media playback.
  • Figure 7 depicts the processing flow of the streaming media forwarding server. The process is as follows:
  • Step 701 The streaming media server 10 sends the foregoing example media stream.
  • Step 702 The media forwarding server 12b receives the media stream, and the media forwarding server 12b identifies the media packet size adaptation information PacketSizeAdaptation_Private_data;
  • Step 703 The media forwarding server 12b performs adaptation according to PacketSizeAdaptation-Private-data. Specifically, the step includes:
  • the link MTU select an appropriate MTU from the adaptation range information (such as the MTU_num and MTU fields in Table 1);
  • 703d Determine an adaptation load according to the determined load layout information: sequentially execute a third For loop in the second For loop that has been located. Read header-len and header-data to get the payload header, read bytepayload_start_offset and payload-end-offset to get the load from the media data;
  • 703e segment or assemble the adapted load according to the load layout information into a complete transport packet and forward it to the underlying network for forwarding;
  • Step 704 the media forwarding server 12b detects whether the program information changes, if there is no change, step 707 is performed, otherwise step 705 is performed;
  • Step 705 Cache the changed program information, and send the updated program information.
  • Step 705 The media forwarding server 12b forwards the adapted media stream, and filters the media packet size adaptation information when the transmission efficiency is forwarded.
  • FIG 8 illustrates the client endpoint broadcast process in the IPTV multicast live broadcast scenario.
  • the process is as follows: Step 801: The client 15a selects an IPTV multicast live broadcast;
  • Step 802 The client 15c joins the multicast group.
  • Step 803 the router 12a notifies the media forwarding server 12b;
  • Step 804 The media forwarding server 12b sends the buffered program information that changes according to the packet size adaptation.
  • Step 805 The client 15c initializes the decoding resource according to the program information.
  • Step 806 the media forwarding server 12b forwards the packet size-adapted code stream to the router 12a;
  • Step 807 The router 12a forwards the media stream to the 15c client.
  • Step 808 The client 15c decodes and presents the received multicast media stream.
  • the streaming media transmission method and system provided by the embodiments of the present invention perform media layer packet size adaptation on the media forwarding device by means of media stream inband information, and are applicable to scenarios in which streaming media is transmitted across networks and heterogeneous networks, and can be effective. Improve transmission efficiency.
  • the media stream transmission method and the media stream sent by the streaming media server in the system carry the media packet size adaptation information; in the network transmission process of the media stream, the media forwarding server provides the media packet size adaptation information and the link status according to the media stream.
  • the packet size is adapted to achieve optimal network transmission efficiency.

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 relates to a method and system for transmitting streaming media, and a media forwarding server. The method includes: a streaming media server sends a media stream carrying media packet size adaption information; a media forwarding server receives the media stream, and performs packet size adaption processing on the media stream according to the media packet size adaption information in the received media stream; and the media forwarding server forwards the packet size adaption processed media stream. The method and the system for transmitting the streaming media in the present invention can improve the transmission efficiency of the network.

Description

流媒体传输方法、 系统与媒体转发服务器  Streaming media transmission method, system and media forwarding server
技术领域 Technical field
本发明涉及多媒体数据传输技术领域, 具体涉及一种在多媒体实时传输 过程进行分组大小适配的多媒体数据传输方法、 系统与媒体转发服务器。  The present invention relates to the field of multimedia data transmission technologies, and in particular, to a multimedia data transmission method, system and media forwarding server for packet size adaptation in a multimedia real-time transmission process.
背景技术 Background technique
随着网络技术的普及和多媒体技术的广泛应用, 对音频、 视频、 字幕或 动画等多媒体内容进行实时传送的流媒体传输技术应运而生。  With the popularization of network technologies and the wide application of multimedia technologies, streaming media transmission technology for real-time transmission of multimedia content such as audio, video, subtitles or animation has emerged.
流媒体服务器把音频、 视频、 字幕或动画等媒体内容打包为媒体流, 媒 体流以分组的形式在网络上进行实时连续传输, 客户端不必等待媒体内容全 部下载完毕, 只需延迟几秒或十几秒就可以开始播放, 媒体流边传输边播放 直到媒体内容播放完毕或客户端中止操作。 应用流媒体传输技术, 可以显著 缩短媒体播放等待时间、 降低客户端緩存要求。  The streaming media server packs media content such as audio, video, subtitles or animation into a media stream, and the media stream is continuously transmitted in real time on the network in groups. The client does not have to wait for the media content to be completely downloaded, and only needs to delay a few seconds or ten. Playback can be started in a few seconds, while the media stream is played and played until the media content is played or the client aborts. Application of streaming media transmission technology can significantly shorten media playback latency and reduce client cache requirements.
流媒体正面临跨网络或异构网络的新应用场景, 相同媒体流要支持在不 同网络提供服务。 为了提升最终用户体验就需要提升媒体流的传输质量, 在 媒体流传输过程中进行传输适配, 分组大小(PacketSize )适配就是一种传输 适配措施。 当分组大小适配底层传输链路状况时可取得最佳传输效率, 把丟 包率控制在中低程度, 同时能提高带宽使用率不浪费有限的带宽资源, 以此 提供更好的服务质量,  Streaming media is facing new application scenarios across networks or heterogeneous networks. The same media streams need to support services on different networks. In order to improve the end user experience, it is necessary to improve the transmission quality of the media stream. In the process of media stream transmission, the packet adaptation (PacketSize) adaptation is a transmission adaptation measure. When the packet size adapts to the underlying transmission link condition, the optimal transmission efficiency can be obtained, and the packet loss rate can be controlled to a medium and low level, and the bandwidth utilization rate can be increased without wasting limited bandwidth resources, thereby providing better quality of service.
目前因特网协议( Internet Protocal, IP )为实现分组大小适配使用分段与 组装的方法, 给每个 IP数据分组也就是 IP数据包分配一个惟一的标志符, 包头部分还有与分段与组装相关的分段标记和位移。 IP数据包在分段时, 每 一段需包含原有的标志符。 但是为了提高效率并减轻路由器的负担, 分段和 重组通常由 IP源端与目的端提供, 路由器不进行 IP层分段和重组。  At present, the Internet Protocol (Internet Protocal, IP) uses a method of segmentation and assembly for packet size adaptation, and assigns a unique identifier to each IP data packet, that is, an IP data packet. The header portion also has segmentation and assembly. Related segmentation marks and displacements. When an IP packet is segmented, each segment needs to contain the original identifier. However, in order to improve efficiency and reduce the burden on the router, segmentation and reassembly are usually provided by the IP source and destination, and the router does not perform IP layer segmentation and reassembly.
因特网协议第六版 ( Internet Protocol Version 6, IPv6 )通过分段扩展包 头包含一个分段偏移值、 一个"更多段 "标志和一个标识字段, 用于源节点对 长度超出源端和目的端间路径最大传输单元 ( Maximum Transmission Unit, MTU )的包进行分段。 IPv6只允许源节点对包进行分段, 简化了中间节点对 包的处理。 The Internet Protocol Version 6, IPv6, includes a segment offset value, a "more segment" flag, and an identification field through the segmentation extension header. The length of the source node pair exceeds the source and destination. Maximum Transmission Unit (Maximum Transmission Unit, The MTU) packet is segmented. IPv6 only allows the source node to segment the packet, which simplifies the processing of the packet by the intermediate node.
综上所述, 媒体流从源端输出时分组大小已经确定, 在跨网络传输或者 在异构网络传输时, 路由器不能进行分组大小适配, 所以无法取得最优传输 效率。  In summary, when the media stream is output from the source, the packet size has been determined. When transmitting across the network or in a heterogeneous network, the router cannot perform packet size adaptation, so the optimal transmission efficiency cannot be achieved.
本专利正是针对上述流媒体传输需求与问题而提出的。 发明内容  This patent is directed to the above-mentioned streaming media transmission requirements and problems. Summary of the invention
本发明要解决的技术问题是提供一种流媒体传输方法和系统, 以提高网 络传输效率。  The technical problem to be solved by the present invention is to provide a streaming media transmission method and system to improve network transmission efficiency.
为解决以上技术问题, 本发明提供了一种流媒体传输方法, 该方法包括: 流媒体服务器发送媒体流, 其中携带媒体分组大小适配信息;  To solve the above technical problem, the present invention provides a streaming media transmission method, the method comprising: a streaming media server sending a media stream, where the media packet size adaptation information is carried;
媒体转发服务器接收所述媒体流, 根据接收的媒体流中的媒体分组大小 适配信息对所述媒体流进行分组大小适配处理;  Receiving, by the media forwarding server, the media stream, and performing packet size adaptation processing on the media stream according to the media packet size adaptation information in the received media stream;
所述媒体转发服务器转发所述分组大小适配处理后的媒体流。  The media forwarding server forwards the media stream after the packet size adaptation process.
上述方法还可具有以下特点:  The above method can also have the following characteristics:
所述媒体分组大小适配信息包括适配范围信息、 负载布局信息及适配负 载信息; 所述适配范围信息包括可供选择的分组大小对应的最大传输单元 ( MTU ) ; 所述负载布局信息包括每种分组大小对应的负载分组个数, 以及 每个负载分组的负载包头和负载数据定位信息; 所述适配负载信息包括负载 包头数据及数据长度。  The media packet size adaptation information includes adaptation range information, load layout information, and adaptation load information; the adaptation range information includes a maximum transmission unit (MTU) corresponding to an available packet size; the load layout information. The number of load packets corresponding to each packet size is included, and load header and load data positioning information of each load packet; and the adapted load information includes load header data and data length.
上述方法还可具有以下特点:  The above method can also have the following characteristics:
所述媒体流是加扰数据时, 所述媒体分组大小适配信息还包括加解扰信 息, 用于为经过分组大小适配后的加扰数据提供解扰所需信息。  When the media stream is scrambled data, the media packet size adaptation information further includes descrambling information, which is used to provide descrambling required information for the packet size-adapted scrambled data.
上述方法还可具有以下特点:  The above method can also have the following characteristics:
所述媒体分组大小适配信息利用传输包头或数据部分携带。  The media packet size adaptation information is carried by a transport header or data portion.
上述方法还可具有以下特点: 根据所述媒体分组大小适配信息进行分组大小适配处理包括: 根据所述 媒体分组大小适配信息同时结合底层传输链路状态, 对要转发的媒体流进行 分段或重组, 完成适配处理。 The above method can also have the following characteristics: Performing the packet size adaptation process according to the media packet size adaptation information includes: segmenting or reorganizing the media stream to be forwarded according to the media packet size adaptation information and combining the underlying transmission link state, and completing the adaptation process. .
上述方法还可具有以下特点:  The above method can also have the following characteristics:
所述媒体转发服务器转发的媒体流中携带原媒体分组大小适配信息或更 新的媒体分组大小适配信息; 或所述媒体流中已过滤掉所述媒体分组大小适 配信息。  The media stream forwarded by the media forwarding server carries the original media packet size adaptation information or the updated media packet size adaptation information; or the media packet size adaptation information is filtered out in the media stream.
为解决以上技术问题, 本发明还提供了一种流媒体传输系统, 该系统包 括流媒体服务器及媒体转发服务器, 其中:  To solve the above technical problem, the present invention also provides a streaming media transmission system, the system comprising a streaming media server and a media forwarding server, wherein:
流媒体服务器设置为: 发送媒体流, 其中携带媒体分组大小适配信息; 媒体转发服务器包括:  The streaming server is configured to: send a media stream, where the media packet size adaptation information is carried; the media forwarding server includes:
接收模块, 其设置为: 接收所述媒体流;  a receiving module, configured to: receive the media stream;
适配处理模块, 其设置为: 根据接收的媒体流中的媒体分组大小适配信 息对所述媒体流进行分组大小适配处理; 以及  And an adaptation processing module, configured to: perform packet size adaptation processing on the media stream according to media packet size adaptation information in the received media stream;
转发模块, 其设置为: 转发分组大小适配处理后的媒体流。  The forwarding module is configured to: forward the packet size to process the processed media stream.
上述方法还可具有以下特点:  The above method can also have the following characteristics:
所述媒体分组大小适配信息包括适配范围信息、 负载布局信息及适配负 载信息; 所述适配范围信息包括可供选择的分组大小对应的最大传输单元 ( MTU ) ; 所述负载布局信息包括每种分组大小对应的负载分组个数, 以及 每个负载分组的负载包头和负载数据定位信息; 所述适配负载信息包括负载 包头数据及数据长度。  The media packet size adaptation information includes adaptation range information, load layout information, and adaptation load information; the adaptation range information includes a maximum transmission unit (MTU) corresponding to an available packet size; the load layout information. The number of load packets corresponding to each packet size is included, and load header and load data positioning information of each load packet; and the adapted load information includes load header data and data length.
本发明还提供一种媒体转发服务器, 其包括:  The present invention also provides a media forwarding server, which includes:
接收模块, 其设置为接收流媒体服务器发送的媒体流;  a receiving module, configured to receive a media stream sent by the streaming media server;
适配处理模块, 其设置为根据接收的所述媒体流中的媒体分组大小适配 信息对所述媒体流进行分组大小适配处理; 以及  And an adaptation processing module, configured to perform packet size adaptation processing on the media stream according to the received media packet size adaptation information in the media stream; and
转发模块, 其设置为转发分组大小适配处理后的媒体流。 本发明流媒体传输方法与系统中流媒体服务器发送的媒体流携带媒体分 组大小适配信息; 在媒体流的网络传输过程中, 媒体转发服务器根据媒体流 中的媒体分组大小适配信息和链路状况提供分组大小适配, 从而取得最佳网 络传输效率。 附图概述 A forwarding module configured to forward the media stream after the packet size adaptation process. In the streaming media transmission method and system of the present invention, the media stream sent by the streaming media server carries the media packet size adaptation information; in the network transmission process of the media stream, the media forwarding server adapts the information and the link status according to the media packet size in the media stream. Provide packet size adaptation for optimal network transmission efficiency. BRIEF abstract
图 1 是本发明实施例的流媒体传输方法的示意图;  1 is a schematic diagram of a streaming media transmission method according to an embodiment of the present invention;
图 2是本发明实施例的流媒体传输系统的示意图;  2 is a schematic diagram of a streaming media transmission system according to an embodiment of the present invention;
图 3是一个通信系统的具体实例示意图;  3 is a schematic diagram of a specific example of a communication system;
图 4描述本发明媒体分组大小适配信息放在单独流中进行传输的示例; 图 5描述本发明媒体分组放在单独流中进行传输的媒体分组大小适配信 息示例;  4 depicts an example of media packet size adaptation information of the present invention being transmitted in a separate stream; FIG. 5 depicts an example of media packet size adaptation information for media packets of the present invention to be placed in separate streams for transmission;
图 6描述本发明媒体分组大小适配信息放在媒体传输包头进行传输的示 例;  Figure 6 is a diagram showing an example of media packet size adaptation information of the present invention placed in a media transport header for transmission;
图 7 描述分组大小适配施例中媒体转发服务器的处理流程;  Figure 7 illustrates the processing flow of the media forwarding server in the packet size adaptation embodiment;
图 8描述分组大小适配实施例中媒体客户端点播流程。  Figure 8 depicts a media client endpoint broadcast procedure in a packet size adaptation embodiment.
本发明的较佳实施方式 Preferred embodiment of the invention
本发明实施方式中, 把媒体流传输过程中提供媒体传输层转发功能的逻 辑或者物理设备称为媒体转发服务器。 通过媒体转发服务器对媒体流进行实 时分段或组装是实现媒体分组大小适配的应用层解决思路。 不过现有的媒体 传输协议中, 运动图像专家组 ( Moving Pictures Experts Group, MPEG )传输 流( Transport Stream, TS )分组长度固定 188字节; 实时传输协议( Real-time In the embodiment of the present invention, a logical or physical device that provides a media transport layer forwarding function in a media stream transmission process is referred to as a media forwarding server. The real-time segmentation or assembly of the media stream by the media forwarding server is an application layer solution for realizing media packet size adaptation. However, in the existing media transmission protocol, the Moving Pictures Experts Group (MPEG) Transport Stream (TS) packet length is fixed at 188 bytes; Real-time transmission protocol (Real-time)
Transport protocol, RTP )支持变长分组并且规定各种负载格式, 媒体转发服 务器需要解析 RTP负载并按照负载格式进行实时分段或者组装。 一方面媒体 转发服务器需要支持各种编码格式复杂度高; 另一方面实时分段和组装会影 响媒体转发服务器的效率。 在媒体流经过加扰的情况下, 媒体转发服务器不能对媒体流进行任意的 分段或组装, 否则可能影响码流在终端的解扰。 Transport protocol, RTP) supports variable length packets and specifies various load formats. The media forwarding server needs to parse the RTP payload and perform real-time segmentation or assembly according to the payload format. On the one hand, the media forwarding server needs to support various encoding formats with high complexity; on the other hand, real-time segmentation and assembly can affect the efficiency of the media forwarding server. In the case where the media stream is scrambled, the media forwarding server cannot perform arbitrary on the media stream. Segmentation or assembly, otherwise it may affect the descrambling of the code stream at the terminal.
鉴于此, 本发明实施方式提供一种流媒体传输方法与系统, 流媒体服务 器发送媒体流, 其中携带媒体分组大小适配信息; 在媒体流的网络传输过程 中, 媒体转发服务器根据媒体流中的媒体分组大小适配信息和链路状况提供 分组大小适配, 从而取得最佳网络传输效率。  In view of this, an embodiment of the present invention provides a streaming media transmission method and system, where a streaming media server sends a media stream, which carries media packet size adaptation information; in a network transmission process of the media stream, the media forwarding server is based on the media stream. Media packet size adaptation information and link conditions provide packet size adaptation for optimal network transmission efficiency.
下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。  Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
如图 1所示, 本发明实施例的流媒体传输方法包括:  As shown in FIG. 1, the streaming media transmission method of the embodiment of the present invention includes:
步骤 101 : 流媒体服务器发送媒体流, 其中携带媒体分组大小适配信息; 本发明实施例所述媒体分组大小适配信息包括但不限于适配范围信息、 负载布局信息及适配负载信息; 所述媒体流是加扰数据时, 所述媒体分组大 小适配信息还包括加解扰信息。  Step 101: The media server sends a media stream, where the media packet size adaptation information is carried. The media packet size adaptation information in the embodiment of the present invention includes, but is not limited to, adaptation range information, load layout information, and adaptation load information. When the media stream is scrambled data, the media packet size adaptation information further includes adding descrambling information.
所述媒体分组大 d、适配信息包括但不限于以下四类信息:  The media packet is large, and the adaptation information includes but is not limited to the following four types of information:
一、 适配范围信息  First, the adaptation range information
适配范围信息提供分组大小适配范围描述, 可供分组大小适配的总选择 数, 每种选择的 MTU。  The adaptation range information provides a description of the packet size adaptation range, the total number of choices available for packet size adaptation, and the MTU for each selection.
二、 负载布局信息  Second, the load layout information
负载布局信息按照每种分组大小选择, 提供负载分组个数, 以及每个负 载分组的负载包头与负载数据定位信息。  The load layout information is selected according to each packet size, and the number of load packets is provided, as well as the load header and load data location information of each load packet.
按照对齐点提供分组大小信息, 支持多种对齐(align )方式, 比如按照 帧对齐, 按照视频 GOP对齐, 或者其他方式。  Provides packet size information according to alignment points, and supports multiple alignment methods, such as frame alignment, video GOP alignment, or other methods.
按照帧对齐时, 一个媒体帧可能被拆分到多个分组进行传输, 负载布局 信息指示媒体帧被拆分为多少个负载分组、 各负载包头及对应的负载数据起 始位置。 按照视频 GOP对齐时, 负载布局信息指示 GOP被拆分为多少个负 载分组、 各负载包头及对应的负载数据起始位置。 起始位置是以对齐点为基 准的字节偏移, 具体描述与媒体分组大小信息具体传输格式相对应, 此处不 限。 三、 适配负载信息 When aligned according to the frame, a media frame may be split into multiple packets for transmission. The load layout information indicates how many load packets the media frame is split into, the load header and the corresponding load data start position. When aligned according to the video GOP, the load layout information indicates how many load packets, the load headers, and the corresponding load data start positions that the GOP is split into. The starting position is a byte offset based on the alignment point, and the specific description corresponds to the specific transmission format of the media packet size information, which is not limited herein. Third, adapt the load information
提供预制的负载包头数据及数据长度。 负载包头釆用约定的负载传输格 式, 比如标准组织 IETF定义的 RTP系列传输标准定义的负载格式, 或其他 不限。  Provide pre-made load header data and data length. The payload header uses the agreed load transfer format, such as the load format defined by the RTP series transmission standard defined by the standard organization IETF, or other restrictions.
四、 加解扰信息  Fourth, add descrambling information
只应用于对媒体负载加解扰的场景。 传递加解扰信息, 为经过分组大小 适配后的分组数据提供解扰所需信息。  Applies only to scenarios where the media load is descrambled. The descrambling information is transmitted, and the information required for descrambling is provided for the packet data after the packet size is adapted.
根据现有流媒体传输协议, 承载于底层网络之上的流媒体分组通常由传 输包头、 负载包头和数据三部分构成。 According to the existing streaming media transmission protocol, a streaming media packet carried on the underlying network usually consists of a transmission header, a payload header, and data.
可以把所述媒体分组大小适配信息放置于传输包头中携带。 例如针对 RTP和 MPEG-TS进行扩展。 现有标准媒体传输协议 RTP和 MPEG-TS分别 代表两种不同的传输思路。 RTP是支持变长的, MPEG-2 TS由于提出较早受 早期传输网技术影响被定义为 188的固定字节, 随着网络技术的发展正在向 变长方向演进。后文为了便于阐述本发明, 把基于 MPEG-2 TS的变长的传输 方式记为 TS'。 通过对 RTP包头 (根据 RTP扩展标准 RTP包头扩展(RTP Header Extension )定义)和 TS'包头 (根据 TS 包头扩展标准传输专用数据 ( transport_private_data ) 定义)进行字段扩展, 在扩展字段中就可以携带媒 体分组大小适配信息, 如后续图 5所示。  The media packet size adaptation information may be placed in a transport header to carry. For example, extensions are made for RTP and MPEG-TS. The existing standard media transport protocols RTP and MPEG-TS represent two different transport ideas, respectively. RTP supports variable length. MPEG-2 TS is defined as a fixed byte of 188 due to the early impact of early transmission network technology. With the development of network technology, it is evolving. Hereinafter, in order to facilitate the description of the present invention, a variable length transmission method based on MPEG-2 TS is referred to as TS'. By extending the field of the RTP header (defined according to the RTP extension standard RTP Header Extension) and the TS' header (defined according to the TS header extension standard transport specific data (transport_private_data)), the media group can be carried in the extension field. Size adaptation information, as shown in Figure 5 below.
还可以把所述媒体分组大小适配信息放置于数据部分携带,例如,对 TS' 传输方式, 在 PMT(Program Map Table, 节目映射表)增加一个 PID ( Program Identification, 节目标识)传输媒体分组大小适配信息流, 通过自定义格式传 递媒体分组大小适配信息, 如后续图 4所示。 还可以把所述媒体分组大小适 配信息中的冗余内容比如适配范围,携带于 PMT中对传输大小适配信息流进 行描述的用户自定义描述符 ( Private descriptors ) 中。  The media packet size adaptation information may also be placed in the data part, for example, for the TS' transmission mode, a PID (Program Identification) is added to the PMT (Program Map Table) to transmit the media packet size. The information flow is adapted, and the media packet size adaptation information is delivered through a custom format, as shown in FIG. 4 subsequently. The redundant content in the media packet size adaptation information, such as the adaptation range, may also be carried in a user-defined descriptor ( Private descriptors) in the PMT that describes the transport size adaptation information stream.
上面列举几种具体的带内携带媒体分组大小适配信息的方式, 也可以釆 用其他方式不作限制。  The above describes several specific ways of carrying the media packet size adaptation information in the inband, and may also use other methods without limitation.
步骤 102: 媒体转发服务器接收所述媒体流, 根据接收的媒体流中的媒 体分组大小适配信息对所述媒体流进行分组大小适配处理; Step 102: The media forwarding server receives the media stream according to the media in the received media stream. The packet size adaptation information performs packet size adaptation processing on the media stream;
该步骤中, 媒体转发服务器应用媒体分组大小适配信息提供快速的分组 和组装适配功能。  In this step, the media forwarding server applies media packet size adaptation information to provide fast packet and assembly adaptation functions.
步骤 103: 所述媒体转发服务器转发所述分组大小适配处理后的媒体流。 由传输网络中的媒体转发服务器根据所述媒体流中的媒体分组大小适配 信息进行媒体层适配。媒体转发服务器比如位于网络边缘的媒体转发服务器, 识别所述分组大小的适配要求。 然后结合适配底层传输链路状况, 根据媒体 流携带媒体分组大小适配信息, 对媒体流进行分段或者重组, 完成适配处理。  Step 103: The media forwarding server forwards the media stream after the packet size adaptation process. The media layer adaptation is performed by the media forwarding server in the transport network according to the media packet size adaptation information in the media stream. A media forwarding server, such as a media forwarding server located at the edge of the network, identifies the adaptation requirements for the packet size. Then, according to the adaptation of the underlying transmission link status, the media stream carries the media packet size adaptation information, and the media stream is segmented or reorganized to complete the adaptation process.
媒体转发服务器在转发过程中可以选择透明转发媒体分组大小适配信 息, 也可以修改媒体分组大小适配信息然后转发, 或者过滤掉媒体分组大小 适配信息。  The media forwarding server may choose to transparently forward the media packet size adaptation information during the forwarding process, or modify the media packet size adaptation information and then forward the packet, or filter the media packet size adaptation information.
对应于以上方法, 本发明实施例还提供了一种流媒体传输系统, 如图 2 所示, 该系统包括流媒体服务器及媒体转发服务器, 其中:  Corresponding to the above method, the embodiment of the present invention further provides a streaming media transmission system. As shown in FIG. 2, the system includes a streaming media server and a media forwarding server, where:
流媒体服务器, 设置为发送媒体流, 其中携带媒体分组大小适配信息; 媒体转发服务器包括:  The streaming media server is configured to send a media stream, where the media packet size adaptation information is carried; the media forwarding server includes:
接收模块, 设置为接收所述媒体流;  a receiving module, configured to receive the media stream;
适配处理模块, 设置为根据接收的媒体流中的媒体分组大小适配信息对 所述媒体流进行分组大小适配处理;  The adaptation processing module is configured to perform packet size adaptation processing on the media stream according to media packet size adaptation information in the received media stream;
转发模块, 设置为转发分组大小适配处理后的媒体流。  The forwarding module is configured to forward the media stream after the packet size adaptation process.
可选的, 所述媒体分组大小适配信息包括适配范围信息、 负载布局信息 及适配负载信息; 所述适配范围信息包括可供选择的分组大小对应的最大传 输单元(MTU ); 所述负载布局信息包括每种分组大小对应的负载分组个数, 以及每个负载分组的负载包头和负载数据定位信息; 所述适配负载信息包括 负载包头数据及数据长度。  Optionally, the media packet size adaptation information includes adaptation range information, load layout information, and adaptation load information; the adaptation range information includes a maximum transmission unit (MTU) corresponding to an available packet size. The load layout information includes the number of load packets corresponding to each packet size, and load header and load data positioning information of each load packet; the adapted load information includes load header data and data length.
可选的, 所述媒体流是加扰数据时, 所述媒体分组大小适配信息还包括 加解扰信息, 用于为经过分组大小适配后的加扰数据提供解扰所需信息。 所述媒体分组大小适配信息可以但不限于利用传输包头或数据部分携 带。 Optionally, when the media stream is scrambled data, the media packet size adaptation information further includes descrambling information, and is used to provide descrambling required information for the packet size-adapted scrambled data. The media packet size adaptation information may be, but is not limited to, being carried by a transport header or a data part. Belt.
根据所述媒体分组大小适配信息进行分组大小适配处理包括: 根据所述 媒体分组大小适配信息同时结合底层传输链路状态, 对要转发的媒体流进行 分段或重组, 完成适配处理。  Performing the packet size adaptation process according to the media packet size adaptation information includes: segmenting or reorganizing the media stream to be forwarded according to the media packet size adaptation information and combining the underlying transmission link state, and completing the adaptation process. .
所述媒体转发服务器转发的媒体流中携带原媒体分组大小适配信息或更 新的媒体分组大小适配信息; 或所述媒体流中已过滤掉所述媒体分组大小适 配信息。  The media stream forwarded by the media forwarding server carries the original media packet size adaptation information or the updated media packet size adaptation information; or the media packet size adaptation information is filtered out in the media stream.
图 3给出了一个通信系统的具体实例, 其中网络 1中包括流媒体服务器 10, 路由器 11 , 路由器 12a和媒体转发服务器 12b, 网络 2中包括路由器 13 , 网络 3中包括路由器 14。 , 该通信系统用于音频、 视频、 字幕、 数据等分组 数据的网络传输转发。 该通信系统网络层使用 IP协议, 数据链路层釆用密集 型光波复用 (Dense Wavelength Division Multiplexing, DWDM ) 或者异步传 输模式(Asynchronous Transfer Mode, ATM )等不限。 Fig. 3 shows a specific example of a communication system in which the network 1 includes a streaming server 10, a router 11, a router 12a and a media forwarding server 12b, the network 2 includes a router 13, and the network 3 includes a router 14. The communication system is used for network transmission and forwarding of packet data such as audio, video, subtitle, data, and the like. The network layer of the communication system uses the IP protocol, and the data link layer uses Dense Wavelength Division Multiplexing (DWDM) or Asynchronous Transfer Mode (ATM).
媒体流在该通信系统的转发步骤如下:  The forwarding steps of the media stream in the communication system are as follows:
步骤 A、 在网络 1中, 流媒体服务器 10实时输出各种媒体流。 流媒体服 务器 10的链路配置为至少可以传送 1500字节长的网络分组。  Step A: In the network 1, the streaming server 10 outputs various media streams in real time. The link of the streaming server 10 is configured to transmit at least 1500 bytes of network packets.
图 4和图 5给出一种媒体分组大小适配信息放在单独流中进行传输的示 例。 示例釆用基于 MPEG-2 TS的变长的 TS'媒体传输格式。  Figures 4 and 5 show an example of media packet size adaptation information being transmitted in a separate stream. The example uses a variable length TS' media transport format based on MPEG-2 TS.
图 4描述媒体流传输情况:  Figure 4 depicts the media streaming situation:
1、 TS,的节目关联表( Program Association Table , PAT ) 包含节目号 ( program— number )为 0x0001、 PID为 0x0100的节目。  1. TS, Program Association Table (PAT) contains programs with program number (program_number) of 0x0001 and PID of 0x0100.
2、TS'中 PID为 0x0100的流传输节目 0x0001的 ΡΜΤ, ΡΜΤ包含两个流: 2. In TS', the stream transmission program with 0x0100 PID is 0x0001, and ΡΜΤ contains two streams:
2-1、 流类型 ( stream— type )为 0xlB、 PID为 0x0111的 H.264标准视频 流; 和: 2-1. The H.264 standard video stream with stream type (stream_type) of 0xlB and PID of 0x0111; and:
2-2、 流类型为 0x80、 PID为 0x0112的用户自定义类型, 此处用于媒体 分组大小适配信息类型。 3、 PID为 0x0111的 TS'包传输视频流; 2-2. User-defined type with stream type 0x80 and PID 0x0112, used here for media packet size adaptation information type. 3. The TS' packet with a PID of 0x0111 transmits a video stream;
4、 PID为 0x0112的 TS'包传输媒体分组大小适配信息流;  4. The TS' packet transmission medium packet size adaptation information stream with a PID of 0x0112;
5、在 PID为 0x0111的对齐点前面插入对应的 PID为 0x0112的媒体分组 大小适配信息。 假如对齐点釆用帧边界, 则在 OxlB类型各视频帧第一个 bit 传输之插入一个或者若干个对应该视频帧的媒体分组大小适配信息。  5. Insert the corresponding media packet size adaptation information with PID 0x0112 in front of the alignment point with PID 0x0111. If the alignment point uses the frame boundary, one or several media packet size adaptation information corresponding to the video frame is inserted in the first bit transmission of each video frame of the OxlB type.
图 5给出适配信息格式示例, 具体结构定义如下表 1所示:  Figure 5 shows an example of the adaptation information format. The specific structure is defined as shown in Table 1:
表 1  Table 1
Figure imgf000011_0001
Figure imgf000011_0001
上述结构定义包含以下信息:  The above structure definition contains the following information:
适配范围信息: MTU— num和 MTU字段;  Adaptation range information: MTU_num and MTU fields;
负载布局信息: 第二个 For循环中的字段;  Load layout information: Fields in the second For Loop;
适配负载信息: header— len 和 header— data— byte 字段指向负载包头; payload— start— offset和 payload— end— offset之间的字节是负载; 加扰信息: is— conditional access字段。 如果取值 1表示媒体经过加扰, 不允许进行任意分段或者组合。 Adaptation load information: header-len and header-data-byte fields point to the payload header; the bytes between payload-start-offset and payload-end-offset are payloads; Scrambling information: is—conditional access field. If the value 1 indicates that the media is scrambled, no segmentation or combination is allowed.
附图 6给出一种媒体分组大小适配信息放在媒体传输包头进行传输的示 例。 与附图 4的区别在于: Figure 6 shows an example of media packet size adaptation information placed in the media transport header for transmission. The difference from Figure 4 is:
1、 TS,的 ΡΜΤ只有流类型为 0xlB、 PID为 0x0111的一个媒体流, 媒体 分组大小适配信息放在视频流的 TS'包头中。  1. TS, ΡΜΤ only one media stream with stream type 0xlB and PID 0x0111, and media packet size adaptation information is placed in the TS' header of the video stream.
2、 在 PID为 0x0111的对齐点携带媒体分组大小适配信息 (这一点图中 没有显示, 在 TS, 包头扩展的方法是标准的, 且信息字段在图 5和表 1有体 现, 这里不再赘述) 。 假如对齐点是帧边界, 在包含每个视频帧第一个 bit 的 TS'包的包头携带媒体分组大小适配信息。 附图 5 给出适配信息格式 PacketSizeAdaptation— Private— data同样适用,应用于此处还需要在字节长度方 面进行优化。  2. The media packet size adaptation information is carried at the alignment point where the PID is 0x0111 (not shown in this figure. In TS, the method of header extension is standard, and the information field is embodied in Figure 5 and Table 1, no longer here. Brief description). If the alignment point is a frame boundary, the packet size of the TS' packet containing the first bit of each video frame carries the media packet size adaptation information. Figure 5 shows the adaptation information format PacketSizeAdaptation—Private—data is also applicable, and it needs to be optimized in terms of byte length.
步骤 B、 媒体流流经路由器 11把媒体流传输给路由器 12a, 路由器 12a 接收到媒体流转发给同节点的 12b媒体转发服务器; Step B: The media stream flows through the router 11 to the router 12a, and the router 12a receives the media stream and forwards it to the 12b media forwarding server of the same node;
步骤 C、媒体转发服务器 12b根据网络 2和网络 3的 MTU或者链路状况 对媒体流进行分组大小适配。 假设网络 2面向的终端为 15a、 15b等移动手持设备, MTU配置为 500 字节; 网络 3面向 15d、 15e等 PC和电视设备, MTU配置为 1000字节; 15c 为高清电视设备, MTU配置为 1500字节。 假如媒体分组大小适配信息提供 250字节、 500字节、 1000字节、 1500字节四种 MTU选择, 那么 1500字节 的原始媒体流经过媒体转发服务器 12b适配后的 MTU分别为 500字节、 1000 字节。 面向 15c, 媒体转发服务器 12b无需进行分组大小适配。  Step C: The media forwarding server 12b performs packet size adaptation on the media stream according to the MTU or link status of the network 2 and the network 3. Assume that the terminals facing network 2 are mobile handheld devices such as 15a and 15b, and the MTU is configured to be 500 bytes. Network 3 is for PCs and TV devices such as 15d and 15e, and the MTU is configured to be 1000 bytes. 15c is a high-definition television device, and the MTU is configured as 1500 bytes. If the media packet size adaptation information provides four MTU options of 250 bytes, 500 bytes, 1000 bytes, and 1500 bytes, the MTU of the 1500-byte original media stream after being adapted by the media forwarding server 12b is 500 words. Section, 1000 bytes. For 15c, the media forwarding server 12b does not need to perform packet size adaptation.
步骤 D、 适配后的媒体流经过路由器 12a分别传输给网络 2的路由器 13 和网络 3的路由器 14;  Step D, the adapted media stream is transmitted to the router 13 of the network 2 and the router 14 of the network 3 through the router 12a;
步骤 E、路由器 13把媒体流 QoS传输给网络节点 15a和 15b, 路由器 14 把媒体流 QoS传输给网络节点 15d和 15e, 进行媒体播放。 图 7描述了流媒体转发服务器的处理流程, 过程如下: Step E, the router 13 transmits the media stream QoS to the network nodes 15a and 15b, and the router 14 transmits the media stream QoS to the network nodes 15d and 15e for media playback. Figure 7 depicts the processing flow of the streaming media forwarding server. The process is as follows:
步骤 701、 流媒体服务器 10发送上述示例媒体流;  Step 701: The streaming media server 10 sends the foregoing example media stream.
步骤 702、 媒体转发服务器 12b接收媒体流, 媒体转发服务器 12b识别 出媒体分组大小适配信息 PacketSizeAdaptation_Private_data;  Step 702: The media forwarding server 12b receives the media stream, and the media forwarding server 12b identifies the media packet size adaptation information PacketSizeAdaptation_Private_data;
步骤 703、媒体转发服务器 12b根据 PacketSizeAdaptation— Private— data进 行适配, 具体地, 该步骤包括:  Step 703: The media forwarding server 12b performs adaptation according to PacketSizeAdaptation-Private-data. Specifically, the step includes:
703a, 过滤媒体流的节目信息并緩存于本地;  703a, filtering program information of the media stream and buffering the local information;
703b,根据链路 MTU,从适配范围信息(如表 1中的 MTU— num和 MTU 字段)选择适合的 MTU;  703b, according to the link MTU, select an appropriate MTU from the adaptation range information (such as the MTU_num and MTU fields in Table 1);
703c, 根据适合的 MTU确定负载布局信息(定位到表 1中的第二个 For 循环) ;  703c, determining load layout information according to a suitable MTU (targeting to the second For loop in Table 1);
703d, 根据确定的负载布局信息确定适配负载: 依次执行已定位的第二 个 For循环中的第三个 For循环。 读取 header— len和 header— data得到负载包 头, 读取 bytepayload— start— offset和 payload— end— offset从媒体数据取得负载; 703d: Determine an adaptation load according to the determined load layout information: sequentially execute a third For loop in the second For loop that has been located. Read header-len and header-data to get the payload header, read bytepayload_start_offset and payload-end-offset to get the load from the media data;
703e: 根据负载布局信息对适配负载进行分段或组装成一个个完整的传 输包交给底层网络转发; 703e: segment or assemble the adapted load according to the load layout information into a complete transport packet and forward it to the underlying network for forwarding;
步骤 704、 媒体转发服务器 12b检测节目信息是否变化, 如未发生变化, 则执行步骤 707 , 否则执行步骤 705;  Step 704, the media forwarding server 12b detects whether the program information changes, if there is no change, step 707 is performed, otherwise step 705 is performed;
步骤 705: 緩存变化的节目信息, 发送更新的节目信息;  Step 705: Cache the changed program information, and send the updated program information.
步骤 705、 媒体转发服务器 12b转发适配后的媒体流, 为了提高传输效 率转发时过滤掉媒体分组大小适配信息。  Step 705: The media forwarding server 12b forwards the adapted media stream, and filters the media packet size adaptation information when the transmission efficiency is forwarded.
附图 8描述 IPTV组播直播业务场景下客户端点播流程。 过程如下: 步骤 801、 客户端 15a选择 IPTV组播直播; Figure 8 illustrates the client endpoint broadcast process in the IPTV multicast live broadcast scenario. The process is as follows: Step 801: The client 15a selects an IPTV multicast live broadcast;
步骤 802、 客户端 15c加入组播组;  Step 802: The client 15c joins the multicast group.
步骤 803、 路由器 12a通知媒体转发服务器 12b; 步骤 804、 媒体转发服务器 12b发送緩存的因分组大小适配发生变化的 节目信息; Step 803, the router 12a notifies the media forwarding server 12b; Step 804: The media forwarding server 12b sends the buffered program information that changes according to the packet size adaptation.
步骤 805、 客户端 15c根据节目信息初始化解码资源;  Step 805: The client 15c initializes the decoding resource according to the program information.
步骤 806、 媒体转发服务器 12b把分组大小适配后的码流转发给路由器 12a;  Step 806, the media forwarding server 12b forwards the packet size-adapted code stream to the router 12a;
步骤 807、 路由器 12a把媒体流转发给 15c客户端;  Step 807: The router 12a forwards the media stream to the 15c client.
步骤 808、 客户端 15c对接收到的组播媒体流进行解码呈现。  Step 808: The client 15c decodes and presents the received multicast media stream.
本发明实施方式提出的流媒体传输方法与系统, 借助媒体流带内信息在 媒体转发设备上进行媒体层分组大小适配, 适用于流媒体跨网络传输和异构 网络传输的场景, 能够有效的提升传输效率。 The streaming media transmission method and system provided by the embodiments of the present invention perform media layer packet size adaptation on the media forwarding device by means of media stream inband information, and are applicable to scenarios in which streaming media is transmitted across networks and heterogeneous networks, and can be effective. Improve transmission efficiency.
这里需要指出的是, 本发明中的具体实施例只是列举了本发明的个别实 例, 使用本发明的设计思想及其任何等效变换实现流媒体传输方法和系统, 均应属于本发明的保护范围。  It should be noted that the specific embodiments in the present invention are merely enumerating individual examples of the present invention, and the streaming media transmission method and system using the design idea of the present invention and any equivalent transformation thereof are all within the scope of protection of the present invention. .
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。  One of ordinary skill in the art will appreciate that all or a portion of the above steps may be accomplished by a program instructing the associated hardware, such as a read-only memory, a magnetic disk, or an optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
工业实用性 Industrial applicability
上述流媒体传输方法与系统中流媒体服务器发送的媒体流携带媒体分组 大小适配信息; 在媒体流的网络传输过程中, 媒体转发服务器根据媒体流中 的媒体分组大小适配信息和链路状况提供分组大小适配, 从而取得最佳网络 传输效率。  The media stream transmission method and the media stream sent by the streaming media server in the system carry the media packet size adaptation information; in the network transmission process of the media stream, the media forwarding server provides the media packet size adaptation information and the link status according to the media stream. The packet size is adapted to achieve optimal network transmission efficiency.

Claims

权 利 要 求 书 Claim
1、 一种流媒体传输方法, 该方法包括: 1. A streaming media transmission method, the method comprising:
流媒体服务器发送媒体流, 其中携带媒体分组大小适配信息;  The streaming media server sends a media stream, where the media packet size adaptation information is carried;
媒体转发服务器接收所述媒体流, 根据接收的媒体流中的媒体分组大小 适配信息对所述媒体流进行分组大小适配处理; 以及  Receiving, by the media forwarding server, the media stream, and performing packet size adaptation processing on the media stream according to media packet size adaptation information in the received media stream;
所述媒体转发服务器转发所述分组大小适配处理后的媒体流。  The media forwarding server forwards the media stream after the packet size adaptation process.
2、 如权利要求 1所述的方法, 其中: 2. The method of claim 1 wherein:
所述媒体分组大小适配信息包括适配范围信息、 负载布局信息及适配负 载信息;  The media packet size adaptation information includes adaptation range information, load layout information, and adaptation load information;
所述适配范围信息包括可供选择的分组大小对应的最大传输单元 The adaptation range information includes a maximum transmission unit corresponding to a selectable packet size
( MTU ) ; ( MTU ) ;
所述负载布局信息包括每种分组大小对应的负载分组个数, 以及每个负 载分组的负载包头和负载数据定位信息;  The load layout information includes a number of load packets corresponding to each packet size, and load header and load data positioning information of each load packet;
所述适配负载信息包括负载包头数据及数据长度。  The adapted load information includes load header data and data length.
3、 如权利要求 1所述的方法, 其中: 所述媒体流是加扰数据时, 所述媒 体分组大小适配信息还包括加解扰信息, 用于为经过分组大小适配后的加扰 数据提供解扰所需信息。 3. The method according to claim 1, wherein: when the media stream is scrambled data, the media packet size adaptation information further includes descrambling information, which is used for scrambling after packet size adaptation. The data provides the information needed to descramble.
4、 如权利要求 1所述的方法, 其中: 所述媒体分组大小适配信息利用传 输包头或数据部分携带。 4. The method of claim 1 wherein: the media packet size adaptation information is carried using a transport header or data portion.
5、 如权利要求 1所述的方法, 其中: 根据所述媒体分组大小适配信息进 行分组大小适配处理的步骤包括: 根据所述媒体分组大小适配信息同时结合 底层传输链路状态, 对要转发的媒体流进行分段或重组, 完成适配处理。 5. The method according to claim 1, wherein: the step of performing packet size adaptation processing according to the media packet size adaptation information comprises: combining the media packet size adaptation information according to the underlying transmission link state, The media stream to be forwarded is segmented or reorganized to complete the adaptation process.
6、 如权利要求 1所述的方法, 其中, 所述媒体转发服务器转发的媒体流 中携带原媒体分组大小适配信息或更新的媒体分组大小适配信息; 或所述媒 体流中已过滤掉所述媒体分组大小适配信息。 The method of claim 1, wherein the media stream forwarded by the media forwarding server carries original media packet size adaptation information or updated media packet size adaptation information; or the media stream is filtered out. The media packet size adaptation information.
7、 一种流媒体传输系统, 该系统包括流媒体服务器及媒体转发服务器, 其中: 7. A streaming media transmission system, the system comprising a streaming media server and a media forwarding server, wherein:
所述流媒体服务器设置为: 发送媒体流, 其中携带媒体分组大小适配信 息;  The streaming media server is configured to: send a media stream, where the media packet size adaptation information is carried;
所述媒体转发服务器包括:  The media forwarding server includes:
接收模块, 其设置为接收所述媒体流;  a receiving module, configured to receive the media stream;
适配处理模块, 其设置为根据接收的媒体流中的媒体分组大小适配信息 对所述媒体流进行分组大小适配处理; 以及  And an adaptation processing module configured to perform packet size adaptation processing on the media stream according to media packet size adaptation information in the received media stream;
转发模块, 其设置为转发分组大小适配处理后的媒体流。  A forwarding module configured to forward the media stream after the packet size adaptation process.
8、 如权利要求 7所述的系统, 其中: 8. The system of claim 7 wherein:
所述媒体分组大小适配信息包括适配范围信息、 负载布局信息及适配负 载信息;  The media packet size adaptation information includes adaptation range information, load layout information, and adaptation load information;
所述适配范围信息包括可供选择的分组大小对应的最大传输单元 ( MTU ) ;  The adaptation range information includes a maximum transmission unit (MTU) corresponding to an available packet size;
所述负载布局信息包括每种分组大小对应的负载分组个数, 以及每个负 载分组的负载包头和负载数据定位信息;  The load layout information includes a number of load packets corresponding to each packet size, and load header and load data positioning information of each load packet;
所述适配负载信息包括负载包头数据及数据长度。  The adapted load information includes load header data and data length.
9、 如权利要求 7所述的系统, 其中: 所述媒体流是加扰数据时, 所述媒 体分组大小适配信息还包括加解扰信息, 用于为经过分组大小适配后的加扰 数据提供解扰所需信息。 9. The system according to claim 7, wherein: when the media stream is scrambled data, the media packet size adaptation information further includes descrambling information, which is used for scrambling after packet size adaptation. The data provides the information needed to descramble.
10、 如权利要求 7所述的系统, 其中: 所述媒体分组大小适配信息利用 传输包头或数据部分携带。 10. The system of claim 7, wherein: the media packet size adaptation information is carried by a transport header or data portion.
11、 如权利要求 7所述的系统, 其中: 11. The system of claim 7 wherein:
所述适配处理模块是设置为: 根据所述媒体分组大小适配信息同时结合 底层传输链路状态, 对要转发的媒体流进行分段或重组, 完成适配处理。 The adaptation processing module is configured to: segment or reassemble the media stream to be forwarded according to the media packet size adaptation information and the underlying transmission link state, and complete the adaptation process.
12、 如权利要求 7所述的系统, 其中, 所述媒体转发服务器转发的媒体 流中携带原媒体分组大小适配信息或更新的媒体分组大小适配信息; 或所述 媒体流中已过滤掉所述媒体分组大小适配信息。 The system of claim 7, wherein the media stream forwarded by the media forwarding server carries original media packet size adaptation information or updated media packet size adaptation information; or the media stream is filtered out The media packet size adaptation information.
13、 一种媒体转发服务器, 其包括:  13. A media forwarding server, comprising:
接收模块, 其设置为接收流媒体服务器发送的媒体流;  a receiving module, configured to receive a media stream sent by the streaming media server;
适配处理模块, 其设置为根据接收的所述媒体流中的媒体分组大小适配 信息对所述媒体流进行分组大小适配处理; 以及  And an adaptation processing module, configured to perform packet size adaptation processing on the media stream according to the received media packet size adaptation information in the media stream; and
转发模块, 其设置为转发分组大小适配处理后的媒体流。  A forwarding module configured to forward the media stream after the packet size adaptation process.
14、 如权利要求 13所述的媒体转发服务器, 其中: 14. The media forwarding server of claim 13, wherein:
所述媒体流是加扰数据时, 所述媒体分组大小适配信息还包括加解扰信 息, 用于为经过分组大小适配后的加扰数据提供解扰所需信息。  When the media stream is scrambled data, the media packet size adaptation information further includes descrambling information, which is used to provide descrambling required information for the packet size-adapted scrambled data.
15、 如权利要求 13所述的媒体转发服务器, 其中: 15. The media forwarding server of claim 13 wherein:
所述适配处理模块是设置为: 根据所述媒体分组大小适配信息同时结合 底层传输链路状态, 对要转发的媒体流进行分段或重组, 完成适配处理。  The adaptation processing module is configured to: segment or reassemble the media stream to be forwarded according to the media packet size adaptation information and the state of the underlying transmission link, and complete the adaptation process.
PCT/CN2012/070174 2011-01-11 2012-01-10 Method and system for transmitting streaming media, and media forwarding server WO2012094980A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011100046800A CN102594775A (en) 2011-01-11 2011-01-11 Method and system for transmitting streaming media
CN201110004680.0 2011-01-11

Publications (1)

Publication Number Publication Date
WO2012094980A1 true WO2012094980A1 (en) 2012-07-19

Family

ID=46482983

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/070174 WO2012094980A1 (en) 2011-01-11 2012-01-10 Method and system for transmitting streaming media, and media forwarding server

Country Status (2)

Country Link
CN (1) CN102594775A (en)
WO (1) WO2012094980A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101253771A (en) * 2005-08-30 2008-08-27 汤姆森许可贸易公司 Cross layer optimizing capable of extending video frequency multicasting for IEEE802.11 wireless local area network
CN101494655A (en) * 2009-03-12 2009-07-29 中国电信股份有限公司 RTP distributed stream media service system and method
US20090310622A1 (en) * 2008-06-12 2009-12-17 Alcatel Lucent Minimal GAN RTP packet length via multi-level header compression

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101253771A (en) * 2005-08-30 2008-08-27 汤姆森许可贸易公司 Cross layer optimizing capable of extending video frequency multicasting for IEEE802.11 wireless local area network
US20090310622A1 (en) * 2008-06-12 2009-12-17 Alcatel Lucent Minimal GAN RTP packet length via multi-level header compression
CN101494655A (en) * 2009-03-12 2009-07-29 中国电信股份有限公司 RTP distributed stream media service system and method

Also Published As

Publication number Publication date
CN102594775A (en) 2012-07-18

Similar Documents

Publication Publication Date Title
US11621984B2 (en) Interface apparatus and method for transmitting and receiving media data
US10911510B2 (en) Apparatus and method for transmitting multimedia data in a broadcast system
US20090022154A1 (en) Reception device, reception method, and computer-readable medium
EP1965561A2 (en) System and method for transmitting digital content using cable modem termination system (CMTS) bypass architecture
US20060182139A1 (en) Method and system for transforming video streams using a multi-channel flow-bonded traffic stream
EP3007392A1 (en) Transmission apparatus, transfer stream transmission method and processing apparatus
JP2006211681A (en) High-speed ethernet mac and phy apparatus comprising filter-based ethernet packet router having priority queue, and single or multiple transport stream interface
KR20130040090A (en) Apparatus and method for delivering multimedia data in hybrid network
TW201349822A (en) Cable modem for maximizing use of frame bursts, and method and terminal system thereof
WO2012094998A1 (en) Method, system and device for transferring streaming media
KR101567991B1 (en) Data transport container for transferring data in a high speed internet protocol network
JP2024120983A (en) Transmission method and transmission device
US9288150B2 (en) Method and apparatus for supporting class of service over bonded digital subscriber line (DSL) links
WO2012094980A1 (en) Method and system for transmitting streaming media, and media forwarding server
MX2008002770A (en) System and method for transmitting digital content using cable modem termination system (cmts) bypass architecture.

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: 12733922

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: 12733922

Country of ref document: EP

Kind code of ref document: A1