WO2020118492A1 - 流传输方法和相关装置 - Google Patents

流传输方法和相关装置 Download PDF

Info

Publication number
WO2020118492A1
WO2020118492A1 PCT/CN2018/120123 CN2018120123W WO2020118492A1 WO 2020118492 A1 WO2020118492 A1 WO 2020118492A1 CN 2018120123 W CN2018120123 W CN 2018120123W WO 2020118492 A1 WO2020118492 A1 WO 2020118492A1
Authority
WO
WIPO (PCT)
Prior art keywords
pid
multicast program
program
multicast
stream
Prior art date
Application number
PCT/CN2018/120123
Other languages
English (en)
French (fr)
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 PCT/CN2018/120123 priority Critical patent/WO2020118492A1/zh
Publication of WO2020118492A1 publication Critical patent/WO2020118492A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Definitions

  • This application relates to the field of data processing, and in particular to a streaming method and related devices.
  • a television program refers to a work that a television station passes through signals containing sound and images. After the TV program signal is modulated, it can be transmitted to the area where the TV program is received through microwave relay, cable, optical cable, communication satellite, etc.
  • TV programs which are digital broadcast television (digital video broadcasting (DVB), internet protocol television (IPTV) and open Internet-based video service (over the top, OTT), among which DVB
  • IPTV internet protocol television
  • OTT Internet-based video service
  • DVB digital broadcast television
  • IPTV internet protocol television
  • OTT Internet-based video service
  • the transport stream corresponding to the IPTV and OTT programs is transmitted based on the Internet Protocol (IP) network.
  • IP Internet Protocol
  • DVB and IPTV are carried on the same transmission network to reuse the equipment resources and transmission resources in the transmission network.
  • IP coaxial cable broadband Internet protocol
  • CMTS cable modem terminal system
  • EOC coaxial cable Ethernet
  • the stream is transmitted in the upper-layer open IP network, and any user can send multicast data on the network.
  • Some of the attacking multicast data will attack the multicast transmission stream of the IPTV service, thereby making the multicast transmission
  • the program channel corresponding to the stream is attacked, and the security of the program is not high enough.
  • This application provides a streaming method and related devices to solve the problem of insufficient program security in the current DVB and IPTV fusion solution.
  • a streaming method which can be applied to the CMTS central office equipment or EOC central office equipment or optical line terminal (optical line terminal, OLT), including: from the first group according to the identification corresponding to the first multicast program Obtain the stream data of the first multicast program in the broadcast program transmission stream, and determine the first program association table (program association) (PAT) and the first program mapping table (program map (table), PMT), where the first multicast program
  • the transport stream is a multicast program transport stream sent by a DVB program source, the stream data includes first video data and/or first audio data, the first PAT is the PAT of the first multicast program, and the first PMT is the first multicast PMT of the program; IP encapsulation and Ethernet protocol encapsulation of the first PAT, the first PMT, and the stream data to obtain the second multicast program transmission stream; send the second multicast program transmission stream to the request to obtain the first group IPTV terminal broadcasting programs.
  • the streaming data of the multicast program and the PAT and PMT of the multicast program are copied from the DVB multicast program transmission stream for the multicast program of the IPTV service, and then the PAT and PMT of the multicast program are generated. And the stream data is encapsulated to obtain a second multicast program transmission stream conforming to the transmission format of the IPTV service, and then the second multicast program transmission stream is sent to the IPTV terminal requesting to obtain the multicast program.
  • the DVB multicast program transmission stream comes from the DVB broadcast control platform, which ensures the reliability of the IPTV multicast program transmission stream, and the DVB multicast program transmission stream When transmitting to the CMTS central office equipment or EOC central office equipment or OLT, it does not pass through the upper open IP network, thus ensuring the security of IPTV multicast programs.
  • the identifier corresponding to the first multicast program may be the service identifier of the first multicast program, and then the service identifier of the first multicast program and the program association table in the transport stream of the first multicast program may be used Generate a first PAT and determine a first packet identifier (PID), the first PID is the PID of the first PMT; determine the PMT corresponding to the first PID in the first multicast program transport stream as the first PMT ; Obtain the second PID and/or the third PID from the first PMT, the second PID is the PID of the first video data, and the third PID is the PID of the first audio data; The stream data corresponding to the second PID is determined as the first video data, and/or the stream data corresponding to the third PID in the first multicast program transmission stream is determined as the first audio data.
  • PID packet identifier
  • the identifier corresponding to the first multicast program may be the PID of the first PMT, and the first PAT may be generated according to the first PID; the PMT corresponding to the first PID in the first multicast program transmission stream may be determined Is the first PMT; obtain the second PID and/or the third PID from the first PMT, the second PID is the PID of the first video data, and the third PID is the PID of the first audio data; transmit the first multicast program
  • the stream data corresponding to the second PID in the stream is determined as the first video data, and/or the stream data corresponding to the third PID in the first multicast program transmission stream is determined as the first audio data.
  • the identifier corresponding to the first multicast program is the second PID or the third PID
  • the second PID is the PID of the first video data
  • the third PID is the PID of the first audio data
  • the first The stream data corresponding to the second PID in the multicast program transmission stream is determined as the first video data
  • the stream data corresponding to the third PID in the first multicast program transmission stream is determined as the first audio data
  • the second PID and/or the third PID generate the first PMT; determine the first PID, the first PID is the PID of the first PMT, and generate the first PAT according to the first PID.
  • the stream data of a multicast program can be extracted from the DVB multicast program transmission stream, so as to extract the stream data of each multicast program contained in the DVB multicast program transmission stream to form multiple single Program transport stream (single program transport stream, SPTS).
  • the foregoing method for obtaining the transmission stream of the second multicast program may specifically be: adding the stream data of the first PAT, the first PMT, and the first multicast program to the IPTV queue ; Using the multicast IP address corresponding to the first multicast program as the destination IP address, generate an IP header and a multimedia access control (MAC) header corresponding to each data packet for each data packet in the IPTV queue; In turn, each data packet in the IPTV queue is encapsulated using an IP header and a MAC header corresponding to each data packet to obtain a second multicast program transmission stream.
  • MAC multimedia access control
  • the original program stream can be encapsulated into a multicast program transmission stream that conforms to the transmission format corresponding to the IPTV service.
  • the above-mentioned sending the second multicast program transmission stream to the IPTV terminal requesting the first multicast program includes: Two multicast program transmission streams are sent to the optical network transmission terminal (ONT) or optical network unit (ONU) corresponding to the IPTV terminal, and the second multicast program transmission stream is used to instruct the ONT or the ONU to send The second multicast program transport stream is sent to the IPTV terminal.
  • This approach allows the solution to be implemented under the network architecture of a common platform for fiber access (fiber to the X, FTTX) and coaxial cable access.
  • the stream data of the first multicast program is acquired from the first multicast program transmission stream according to the identifier corresponding to the first multicast program, and the first PAT and the first Before a PMT, it can also receive a multicast program acquisition request sent by the IPTV terminal.
  • the multicast program acquisition request includes the multicast IP address of the first multicast program and the IP address of the IPTV terminal; based on the IP of the IPTV terminal If the IPTV terminal has the right to obtain the first multicast program, the transport stream identifier corresponding to the first multicast program is determined according to the multicast IP address of the first multicast program; and the transmission corresponding to the first multicast program is determined
  • the stream identifier determines the first multicast program transmission stream. This solution can determine the transport stream corresponding to the first multicast program from the DVB program transport stream.
  • a streaming device for executing the streaming device described in the first aspect.
  • the streaming device may include: a memory and a processor with the memory, wherein: the memory is used to store the implementation code of the streaming method described in the first aspect, and the processor is used to execute the program code stored in the memory, that is, the first aspect is executed The provided method, or any one of the possible implementation manners of the first aspect.
  • another streaming device is provided.
  • the device may include multiple functional modules for performing the method provided in the first aspect above, or any of the possible implementation manners in the first aspect above. The method provided.
  • a computer-readable storage medium having instructions stored on it, which when executed on a computer, causes the computer to execute the filtering method described in the first aspect above.
  • a computer program product containing instructions, which when executed on a computer, causes the computer to execute the streaming method described in the first aspect above.
  • the implementation of the technical solution of the present application can save network bandwidth and ensure the security of IPTV multicast programs in a solution in which IPTV services and DVB services are integrated.
  • FIG. 1 is a schematic structural diagram of a program transmission system provided by this application.
  • FIG. 2 is a schematic structural diagram of another program transmission system provided by this application.
  • FIG. 3 is a schematic structural diagram of a central office device provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of formation of a transport stream provided by an embodiment of the present application.
  • FIG. 5 is a schematic diagram of the composition and index of a transport stream provided by an embodiment of the present application.
  • FIG. 6 is a schematic flowchart of a streaming method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of PAT and PMT provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a package provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of another streaming method provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a streaming device provided by an embodiment of the present application.
  • the technical solution of the present application is applicable to a program transmission system 10 based on a coaxial cable or a common platform based on optical fiber and coaxial cable Program transmission system 20.
  • the network structure of the program transmission system 10 based on the coaxial cable may be as shown in FIG. 1.
  • the program transmission system 10 includes a coaxial cable central office equipment 101, a hybrid fiber coaxial (HFC) transmission network 102, and user distribution.
  • Network 103 and user equipment 104 among them:
  • the coaxial cable central office equipment 101 is used for debounce and program reference clock (PCR) correction of the TV signal, and then modulates the signal obtained by debounce and PCR correction and sends it to the HFC transmission network for utilization.
  • the optical fiber in the HFC transmission network transmits the signal.
  • the coaxial cable central office equipment 101 can also be used to manage and control the coaxial cable terminal equipment, and authenticate and configure the coaxial cable terminal equipment.
  • the configuration content includes downlink frequency, downlink modulation mode, downlink level, and so on.
  • the coaxial cable central office equipment may be a CMTS central office equipment or an EOC central office equipment.
  • the coaxial cable terminal equipment may be a coaxial cable modem (CM) or a coaxial cable network unit (coaxial network unit, CNU), where CM is the modem corresponding to the CMTS central office equipment and CNU is the modem corresponding to the EOC central office equipment.
  • CM coaxial cable modem
  • CNU coaxial network unit
  • the HFC transmission network 102 is composed of optical nodes, and is used to transmit the signal sent by the coaxial cable central office device 101 to the user distribution network 103.
  • the user distribution network 103 is used to evenly distribute signals to each user equipment 104 and ensure that each user equipment does not interfere with each other.
  • the user distribution network 104 includes a distributor.
  • the user equipment 104 is used to receive and demodulate the signal sent by the coaxial cable central office equipment 101 to obtain a television signal.
  • the user equipment 104 is also used to convert the television signal into program content after decoding, and display the program content through the television.
  • the user equipment 104 may specifically include a modem and a set-top box.
  • the modem is used to modulate or demodulate the signal. Whether the modem is CM or CNU depends on whether the coaxial cable central office equipment is a CMTS central office equipment or an EOC central office equipment.
  • the set-top box is used to complete the processing of the TV signal.
  • the set-top box includes two types of set-top boxes, one is an IP set-top box for implementing IPTV services; the other is a coaxial cable set-top box for implementing DVB services, and the coaxial cable set-top box can also be called a traditional set-top box, and so on.
  • the user equipment may also include a personal computer and the like.
  • the program transmission system 20 includes OLT 201, ONU 202, coaxial cable headend equipment 203, connecting OLT 201 and ONU 202 and OLT 201 and the optical distribution network (ODN) 204 of the coaxial cable head-end equipment 203 and the user terminal equipment 205. among them:
  • OLT 201 is located at the central office and is used to provide the fiber interface of the passive fiber network facing users.
  • OLT201 is connected to the community public television natural system (CATV), which completes the program access in the program transmission system based on the common platform of optical fiber and coaxial cable;
  • OLT201 is connected to ONU202 through ODN204 to realize ONU202 Control, management and ranging functions.
  • the OLT 201 is also connected to the coaxial cable headend device 203 through the ODN 204 to realize the common platform access for FTTX and coaxial cable access.
  • OLT 201 is also used to de-jitter and PCR correct TV signals, and then modulates the de-jitter and PCR corrected signals to transmit to ODN 204.
  • ODN 204 is composed of optical fibers and one or more passive optical splitters and other passive optical devices. It provides optical channels between OLT 201 and ONU 202 or between OLT 201 and coaxial cable headend equipment 203 for distribution or Multiplex data between OLT 201 and ONU 202 or between OLT 201 and coaxial cable headend 203.
  • the ONU 202 and the coaxial cable head-end equipment 203 are located on the user side and belong to the user-side equipment.
  • the ONU is a user-end device under the FTTX architecture. If the ONU directly provides user port functions, the ONU can also be called an optical network terminal (ONT).
  • OLT 201 cooperates with OLT 201 to implement Ethernet Layer 2 and Ethernet Layer 3 functions, which can be specifically used to provide users with IPTV services.
  • ONU 202 is connected to an IPTV terminal, which can also be called an IP set-top box.
  • the coaxial cable head end device 203 is a user end device connected with a coaxial cable, and is used to provide DVB services for users.
  • the coaxial cable head end device 203 is connected to a CM or CNU, and the CM or CNU is connected to a DVB terminal. It can be called a coaxial cable set-top box. Among them, the IPTV terminal and the DVB terminal are both user terminal devices 205. Optionally, the user terminal device may also include a personal computer and the like. Specifically, the coaxial cable head-end device 203 may be an EOC head-end device or a coaxial cable media converter (coax media converter, CMC) head-end device.
  • CMC coaxial cable media converter
  • the technical solution of the present application can be specifically applied to the coaxial cable central office equipment 101 shown in FIG. 1 or the OLT 201 shown in FIG. 2.
  • the coaxial cable central office equipment 101 and OLT 201 are collectively referred to as the central office equipment to introduce the central office The structure of the device.
  • FIG. 3 is a schematic structural diagram of a central office equipment 300 provided by an embodiment of the present application.
  • the central office equipment 300 can be implemented as a coaxial cable central office in a coaxial cable-based program transmission system shown in FIG.
  • the device 101 can also be implemented as the OLT 201 in the program transmission system based on the common platform of optical fiber and coaxial cable as shown in FIG. 2.
  • the central office equipment 300 may include: a communication interface 301, one or more processors 302, a memory 303, a modulator 304, and a demodulator 305. These components can be connected by one or more buses or by other means. among them:
  • the communication interface 301 can be used for the central office device 300 to communicate with other devices, such as user equipment, network devices in the upper layer network, and so on.
  • the communication interface 301 may include a wired communication interface.
  • the communication interface 301 may be, for example, an Ethernet interface, a radio frequency interface, etc.; when the central office equipment is an OLT, the communication interface 301 may be, for example, Ethernet interface, optical fiber interface, etc.
  • the communication interface 301 may also include a wireless communication interface.
  • the memory 303 is coupled to the processor 302 and is used to store various software programs and/or multiple sets of instructions.
  • the memory 303 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
  • An operating system is built in the memory 303, such as Linux, uCOS, VxWorks and other operating systems.
  • the memory 303 may also have a built-in network communication program that can be used to communicate with other devices in the program transmission system.
  • the memory 303 may be used to store an implementation program of the streaming method provided by one or more embodiments of the present application on the central office side.
  • the memory 303 may also include the correspondence between the program information of each multicast program sent by the DVB program source and the program information of each multicast program, the service identifier of the multicast program and the multicast IP address. For the correspondence between them, please refer to the subsequent embodiments for the program information and correspondence.
  • the processor 302 may be a general-purpose processor, such as a central processing unit (CPU).
  • the processor 302 may also include a hardware chip.
  • the hardware chip may be one or a combination of the following: application specific integrated circuit (application specific) integrated circuit (ASIC), field programmable logic gate array (field programmable gate array, FPGA), complex programmable logic device (complex programmable logic device (CPLD)).
  • ASIC application specific integrated circuit
  • FPGA field programmable logic gate array
  • CPLD complex programmable logic device
  • the processor 302 may process data received by the communication interface 301, and the processor 302 may also process data to be transmitted to the communication interface 301 to be transmitted through a wired transmission medium.
  • the processor 302 may be used to read and execute computer-readable instructions. Specifically, the processor 302 may be used to call a program stored in the memory 303, for example, an implementation program of the streaming method provided by one or more embodiments of the present application on the central office side, and execute instructions contained in the program.
  • the processor 302 is used to determine the stream data, PAT, and PMT corresponding to the multicast program, and encapsulate the stream data, PAT, and PMT corresponding to the multicast program to obtain a multicast program that conforms to the transmission format corresponding to the IPTV service.
  • Transport stream The processor 302 determines the stream data, PAT, and PMT corresponding to the multicast program, and encapsulates the stream data, PAT, and PMT corresponding to the multicast program to obtain a multicast program transmission stream that conforms to the transmission format corresponding to the IPTV service. Examples.
  • the processor 302 is further configured to determine the relationship between the service identifier of the multicast program stored in the memory 303 and the multicast IP address, the service identifier of the multicast program, and the transport stream identifier.
  • the multicast program corresponding to the multicast IP address and the transport stream corresponding to the multicast program.
  • the modulator 304 is used to modulate the program signal to obtain a modulated signal that can be transmitted in the transmission system.
  • the modulator 304 may specifically be an optical modulator.
  • the demodulator 305 is used to demodulate the modulated signal to obtain the program signal.
  • the demodulator 306 may specifically be an optical demodulator.
  • the central office equipment may further include an optical receiver 306 and an optical transmitter 307, where the optical receiver 306 is used for photoelectric signal conversion and is used to receive upstream optical signals.
  • the optical signal is converted into an electrical signal.
  • the optical transmitter 307 is used for electrical-optical signal conversion, and is used to convert the downstream electrical signal (ie, downstream data) generated by the processor 302 into an optical signal.
  • the central office equipment 300 shown in FIG. 3 is only one implementation manner of the present application. In practical applications, the central office equipment 300 may further include more or fewer components, which is not limited herein.
  • the program transmission system 10 based on the aforementioned coaxial cable or the program transmission system 20 based on the common platform of optical fiber and coaxial cable and the central office equipment 300 can implement the streaming transmission method of the present application.
  • the streaming data of the multicast program and the PAT and PMT of the multicast program are copied, and then the PAT, PMT and streaming data of the multicast program are encapsulated to obtain the transmission format that conforms to the IPTV service.
  • Multicast program transport stream and then send the second multicast program transport stream to the IPTV terminal requesting to obtain the multicast program.
  • the IPTV multicast program transmission stream is derived from the DVB program transmission stream, which ensures the reliability of the source of the IPTV multicast program transmission stream.
  • the IPTV program multicast transmission stream does not pass through the upper open IP network, ensuring the security of the IPTV multicast program Sex. The following is a detailed introduction.
  • the transport stream is obtained by audio elementary stream (ES) and/or video ES after packaging, time calibration and multiplexing.
  • ES audio elementary stream
  • video ES output from each video encoder and/or the audio ES output from each audio encoder are divided into segments by a packer and a data header is added, and multiple data packet basic codes are formed by a common or independent system time reference Packet (elementary stream, PES), multiple PES multiplexed by the transport stream multiplexer to form a transport stream.
  • PES system time reference Packet
  • the transport stream may include one or more program streams, where the program stream is composed of one or more PES with a common time reference, and each program stream corresponds to a multicast program.
  • transport streams There are two forms of transport streams, one is a transport stream that includes one program stream, and the transport stream that includes one program stream is called a single program transport stream (single program transport stream (SPTS); the other is one that includes multiple program streams.
  • Transport streams, including multiple program streams are called multi-program transport streams (MPTS).
  • MPTS multi-program transport streams
  • the transport stream also includes program special information (program special information (PSI). PSI can be used to associate stream data corresponding to the same program in the transport stream.
  • PSI program special information
  • the PSI may include PAT, PMT, conditional access table (conditional access table, CAT), and so on.
  • PAT and PMT form a tree index, and the tree index can be used to index stream data corresponding to different programs in the transport stream and different types of stream data.
  • PID conditional access table
  • CAT condition access table
  • FIG. 5 shows the composition of the transport stream and the index relationship in the transport stream.
  • the transport stream in FIG. 5 is MPTS, and the transport stream includes multiple data packets, and the multiple data packets include data packets of four programs.
  • the transport stream takes a cycle of 0.5 seconds (s), and each cycle has a PAT.
  • PAT is used to describe the number of programs contained in the transport stream and the PID of the PMT of the program.
  • Part of the data content of PAT is shown as P1 in Figure 5. As shown, it includes the service identification of each program and the PID of the PMT, and the PID index of the PMT to the PMT of each program.
  • the partial data content of PMT of each program is shown as P2 to P5 in FIG. 5, including the PID of the video data of the program and/or the PID of the audio data.
  • the PID of the video data and/or the PID of the audio data can be indexed to Video data and/or audio data of the program.
  • FIG. 6 is a schematic flowchart of a streaming method provided by an embodiment of the present application.
  • the method may be implemented on a central office device.
  • the central office device may be the coaxial cable central office device 101 shown in FIG. 1 or
  • the OLT 201 shown in FIG. 2 is described below with the central office equipment as the main body of execution.
  • the method includes the following steps:
  • the central office device obtains stream data of the first multicast program from the first multicast program transmission stream according to the identifier corresponding to the first multicast program, and determines the first PAT and the first PMT, and the first multicast program transmission stream A multicast program transport stream sent by a DVB program source.
  • the stream data of the first multicast program includes first video data and/or first audio data
  • the first PAT is the PAT of the first multicast program
  • the first PMT is the first PMT of a multicast program.
  • the central office equipment prestores the program information of each multicast program sent by the DVB program source and the correspondence between the program information of each multicast program.
  • the program information of the multicast program includes the service identifier of the multicast program, and the service identifier of the multicast program is used to uniquely identify the multicast program in the program transmission system.
  • the program information of the multicast program also includes the transport stream identifier of the multicast program.
  • the transport stream identifier of the multicast program is used to uniquely identify the transport stream corresponding to the multicast program in the program transmission system.
  • the program information of the multicast program also includes the PID of the PMT of the multicast program.
  • the PID of the PMT is used to uniquely identify the PMT to the multicast program in the transport stream corresponding to the multicast program.
  • the program information of the multicast program also includes the PID of the video data of the multicast program and/or the PID of the audio data of the multicast program.
  • the PID of the video data of the multicast program is used in the transport stream corresponding to the multicast program Uniquely identify the video data of the multicast program.
  • the PID of the audio data of the multicast program is used to uniquely identify the audio data of the multicast program in the transport stream corresponding to the multicast program.
  • the program information of the multicast program pre-stored in the central office device includes a group
  • the PID of the video data of the broadcast program does not include the PID of the audio data of the multicast program;
  • the central office equipment includes the PID of the audio data of the multicast program and does not include the PID of the video data of the multicast program; in the case where the multicast program is a multicast program with sound and pictures If the multicast program is a movie program, the program information of the multicast program pre-stored in the central office device includes the PID of the video data and the PID of the audio data of the multicast program.
  • the correspondence between the program information of each multicast program pre-stored in the central office equipment and the program information of each multicast program may be as shown in Table 1:
  • Transport Stream 1 and Transport Stream 3 are MPTS.
  • Transport stream 1 includes stream data for program 1, program 2, program 3, and program 4, program 1 is a multicast program with sound and pictures, program 2 is a multicast program with pictures and no sound, and program 3 is sound And the multicast program with pictures, program 4 is a multicast program with sound and no pictures.
  • Transport stream 3 includes the streaming data of program 6 and program 7, program 6 and program 7 are multicast programs with sound and pictures.
  • Transport stream 2 is SPTS, and transport stream 2 includes only program 5, which is a multicast program with sound and pictures.
  • the first multicast program transport stream may be MPTS or SPTS.
  • the PAT in the first multicast program transmission stream can be directly determined as the first PAT, and the PMT in the first multicast program transmission stream can be determined as the first PMT, And, determine the first multicast audio data and/or video data as the streaming data of the first multicast program.
  • the first multicast program transmission stream is MPTS
  • the stream data of the first multicast program can be obtained from the first multicast program transmission stream according to the service identifier of the first multicast program, and the first PAT and the first PMT, that is, the identifier corresponding to the first multicast program can be determined It is the service identifier of the first multicast program.
  • the first PAT may be generated according to the service identifier of the first multicast program and the PAT in the transport stream of the first multicast program, and the first PID may be determined.
  • the first PID is the PID of the first PMT; then the first group The PMT corresponding to the first PID in the broadcast program transmission stream is determined as the first PMT; then the second PID and/or the third PID are obtained from the first PMT, the second PID is the PID of the first video data, and the second PID is PID of the first audio data; finally, the stream data corresponding to the second PID in the first multicast program transmission stream is determined to be the first video data, and/or the first multicast program transmission stream corresponding to the third PID is determined The stream data is determined as the first audio data.
  • the PMT of the first multicast program can be determined according to the PAT in the first multicast program transmission stream
  • the PID is 100
  • the generated first PAT is shown as T1 in FIG. 7, and then the first PID is determined as 100
  • the P2 in FIG. 5 is determined as the first PMT
  • the second PID can be determined as 101 according to the first PMT
  • the third PID is 102
  • the data packet with PID 101 is determined as the first video data and the data packet with PID 102 is determined as the second audio data.
  • the stream data of the first multicast program can be obtained from the first multicast program transmission stream according to the PMT identifier of the first multicast program, and the first PAT and the first PMT, that is, the corresponding The identifier is the first PID, and the first PID is the PID of the first PMT.
  • the first PAT may be generated according to the first PID; then the PMT corresponding to the first PID in the first multicast program transmission stream is determined as the first PMT; and then the second PID and/or the second PMT is obtained from the first PMT Two PIDs, the second PID is the PID of the first video number, and the third PID is the PID of the first audio data; finally, the stream data corresponding to the second PID in the first multicast program transmission stream is determined as the first video data, And/or, determining the stream data corresponding to the third PID in the first multicast program transmission stream as the first audio data.
  • the correspondence between the program information of each multicast program pre-stored in the central office equipment is shown in Table 1, and the first PID is 200.
  • the service identifier of the first multicast program can be determined as 2
  • the generated first PAT is shown as T2 in FIG. 7, and then P3 in FIG. 5 is determined as the first PMT, and the first PMT can be determined according to the first PMT.
  • the second PID is 201
  • the data packet with PID 201 is determined as the first video data.
  • the stream data of the first multicast program can be obtained from the first multicast program transmission stream according to the video data of the first multicast program and/or the identification of the video data, and the first PAT and the first PMT, that is, the first
  • the identifier corresponding to a multicast program is the second PID and/or the third PID
  • the second PID is the PID of the first video data
  • the third PID is the PID of the first audio data.
  • the stream data corresponding to the second PID in the first multicast program transmission stream may be determined as the first video data, and/or the stream data corresponding to the third PID in the first multicast program transmission stream may be determined It is the first audio data; then the first PMT is generated according to the second PID and/or the third PID; the first PID is determined again, and the first PID is the PID of the first PMT; and finally the first PAT is generated according to the first PID.
  • the second PID is 301 and the third PID is 302, then the data with PID 301 is determined.
  • the packet is the first video data, and it is determined that the data packet with PID 302 is the first audio data, then the first PMT generated according to the second PID and the third PID is shown as T3 in FIG. 7, according to Table 1.
  • the service identifier of the first multicast program is 3 and the PID of the PMT is 300, and the generated first PAT is shown as T4 in FIG. 7.
  • the central office device may also The first multicast program transport stream is debounced and PCR corrected.
  • debounce refers to reordering the data packets in the first multicast program transmission stream, so that the sorted data packets are ordered.
  • PCR correction refers to modifying the time stamp of the data message in the first multicast program transmission stream, so that the time stamp of the modified data message is accurate.
  • the central office equipment performs IP encapsulation and Ethernet protocol encapsulation on the stream data of the first PAT, the first PMT, and the first multicast program to obtain a second multicast program transmission stream.
  • the central office device encapsulates the stream data of the first PAT, the first PMT, and the first multicast program, and obtaining the second multicast program transmission stream refers to the process of combining the first PAT, the first PMT, and the first multicast program.
  • the data packets corresponding to the streaming data are encapsulated to obtain Ethernet frames transmitted in the Ethernet.
  • the streaming data of the first PAT, PMT, and first multicast program can be added to the IPTV queue, and then the multicast IP address corresponding to the first multicast program is used as the destination IP address, and each data in the IPTV queue
  • the message generates an IP header and a MAC header corresponding to each data message; and then sequentially encapsulates each data message with the IP header and the MAC header corresponding to each data message to obtain a second multicast program transmission stream.
  • the schematic diagram of the central office equipment performing IP encapsulation and Ethernet protocol encapsulation on the streaming data of the first PAT, the first PMT, and the first multicast program may be as shown in FIG. 8.
  • the first multicast program Take a multicast program with sound and pictures as an example. Since the first multicast program is a multicast program with sound and pictures, the stream data of the first multicast program includes the video data of the first multicast program and the audio data of the first multicast program, that is, the first video data and The first audio data.
  • the first PAT, the first PMT, the first video data, and the first audio data are arranged in order to form an IPTV queue, because the first PAT index to the first PMT, and the first PMT index to the first video data And the first audio data, so in the IPTV queue, the data message corresponding to the first PAT is arranged before the data message corresponding to the first PMT, and the data message corresponding to the first PMT is arranged between the first audio data and the first video Before the data message corresponding to the data, the first audio data and the first video data each correspond to multiple data messages, as shown by a1 in FIG. 8. Then, an IP header and a MAC header are generated for each data packet in the IPTV queue.
  • the IP header is shown as a2 in FIG.
  • the MAC header is shown as a3 in FIG. 8, and finally, for each data packet
  • the IP header shown in a2 and the MAC header shown in a3 are added to form a second multicast program transmission stream, and the formed second multicast program transmission stream is shown as a4 in FIG. 8.
  • the central office device sends the second multicast program transmission stream to the IPTV terminal that requests to obtain the first multicast program.
  • the central office equipment when the central office equipment is the central office equipment in the coaxial cable-based program transmission system, the central office equipment sends the second multicast program transmission stream to the CM or CNU , Sending the second multicast program transport stream to the IPTV terminal requesting to obtain the first multicast program.
  • the central office device sends the second multicast program transmission stream to the CM or CNU corresponding to the IPTV terminal, and the second multicast program transmission stream is used to instruct the CM or CNU to forward the second multicast program transmission stream For IPTV terminals.
  • the central office equipment transmits the second multicast program by streaming Send to the ONT or ONU, and send the second multicast program transmission stream to the IPTV terminal requesting to obtain the first multicast program.
  • the central office device sends the second multicast program transmission stream to the ONT or ONU corresponding to the IPTV terminal, and the second multicast program transmission stream is used to instruct the ONT or ONU to forward the second multicast program transmission stream For IPTV terminals.
  • the corresponding PAT, PMT, and stream data are copied from the DVB multicast program transmission stream for the multicast program of the IPTV service, and then the The PAT, PMT and streaming data of the multicast program are encapsulated into an Ethernet frame and sent to the IPTV terminal requesting the multicast program. Since the data of the multicast program comes from the DVB multicast program transmission stream, the DVB multicast program transmission stream has not passed The upper-layer open IP network ensures the reliability and security of IPTV multicast programs. In addition, since the IPTV multicast program is copied from the DVB multicast program transmission stream, the occupation of the network bandwidth of the upper-layer network by the IPTV program transmission stream is reduced, and the bandwidth is saved.
  • the central office equipment may execute the method shown in FIG. 6 above to generate each multicast in the multicast program transmission stream when receiving the multicast program transmission stream sent by the DVB program source
  • the multicast program transport stream corresponding to the transmission format of the IPTV service corresponding to the program, and then, upon receiving the IPTV multicast program requested by the IPTV terminal, send the corresponding multicast program transport stream conforming to the transmission format of the IPTV service to the IPTV terminal .
  • the central office device may also execute the method shown in FIG. 6 above when receiving the multicast program corresponding to the IPTV service requested by the IPTV terminal to generate the multicast program requested by the IPTV terminal.
  • IPTV program transport stream Referring to FIG. 9, FIG. 9 is a schematic flowchart of another streaming transmission method provided by an embodiment of the present application. The method can be applied to the program transmission system 10 based on the coaxial cable shown in FIG. 1 or based on the optical fiber and the coaxial cable. ⁇ Transmission system 20.
  • the method may include the following steps:
  • the IPTV terminal sends a multicast program acquisition request.
  • the multicast program acquisition request includes the multicast IP address of the first multicast program and the IP address of the IPTV terminal.
  • the central office device receives the multicast program acquisition request.
  • the IPTV terminal and the central office equipment are IPTV terminals and central office equipment in a coaxial cable-based program transmission system
  • the IPTV terminal sends a multicast program transmission acquisition request to the CM or CNU corresponding to the IPTV terminal, CM Or CNU forwards the multicast program transmission request to the central office equipment;
  • the IPTV terminal and the central office equipment are IPTV terminals and central office equipment in a program transmission system based on a common platform of optical fiber and coaxial cable
  • the IPTV terminal The ONU or ONT corresponding to the IPTV terminal sends a multicast program acquisition request, and the ONU or ONT forwards the multicast program transmission request to the central office equipment.
  • the central office device authenticates the IPTV terminal according to the IP address of the IPTV terminal.
  • the central office device may determine the IP address group corresponding to the multicast IP address according to the multicast IP address of the first multicast program, and the IP address group is an IP that can acquire the first multicast program Set of addresses. If the IP address in the IPTV terminal is in the IP address group, the central office device determines that the IPTV terminal has the right to acquire the first multicast program.
  • step S503 is performed.
  • the central office device determines the transport stream identifier corresponding to the first multicast program according to the multicast IP address of the first multicast program.
  • the central office equipment pre-stores the correspondence between the service identifier of the multicast program in the IPTV service and the multicast IP address.
  • the correspondence between the service identifier of each multicast program pre-stored in the central office device and the multicast IP address may be as shown in Table 2:
  • the central office device may determine the service identifier corresponding to the multicast IP address of the first multicast program according to the correspondence between the service identifier of the multicast program in the pre-stored IPTV service and the multicast IP address, and then the service identifier And the correspondence between the service identifier of the multicast program and the transmission stream identifier of the multicast program determines the transmission stream identifier of the first multicast program.
  • the central office device determines the first multicast program transmission stream according to the transmission stream identifier corresponding to the first multicast program.
  • the first multicast program transmission stream is a multicast program transmission stream sent by the DVB program source.
  • the central office device obtains the stream data of the first multicast program from the first multicast program transmission stream according to the identifier corresponding to the first multicast program, and determines the first PAT and the first PMT, and the stream of the first multicast program
  • the data includes first video data and/or first audio data
  • the first PAT is the PAT of the first multicast program
  • the first PMT is the PMT of the first multicast program.
  • the central office equipment performs IP encapsulation and Ethernet protocol encapsulation on the stream data of the first PAT, the first PMT, and the first multicast program to obtain a second multicast program transmission stream.
  • S507 The central office device sends a second multicast program transmission stream, and the IPTV terminal receives the second multicast program transmission stream.
  • steps S505 to S507 reference may be made to the related description of steps S401 to S403 in the embodiment corresponding to FIG. 6, and details are not described herein again.
  • the central office device when receiving the multicast program corresponding to the IPTV service requested by the IPTV terminal, the central office device obtains corresponding data from the multicast program transmission stream corresponding to the DVB service, and generates a corresponding IPTV service corresponding to the IPTV terminal.
  • the multicast program transmission stream realizes the timely response to the IPTV terminal and ensures the security of the IPTV program.
  • FIG. 10 is a schematic structural diagram of a streaming device 600 provided by an embodiment of the present application.
  • the device 600 may be implemented as a coaxial cable central office equipment in a coaxial cable-based program transmission system shown in FIG. 101 can also be implemented as the OLT 201 in the program transmission system based on the common platform of optical fiber and coaxial cable as shown in FIG. 2.
  • the device 600 may include a data determination module 601, an encapsulation module 602, and a sending module 603. among them:
  • the data determining module 601 is configured to obtain the stream data of the first multicast program from the first multicast program transmission stream according to the identifier corresponding to the first multicast program, and determine the first PAT and the first PMT, the first multicast program
  • the transport stream is a multicast program transport stream sent by a DVB program source.
  • the stream data of the first multicast program includes first video data and/or first audio data.
  • the first PAT is the PAT of the first multicast program, and the first PMT PMT for the first multicast program;
  • the encapsulation module 602 is used to perform IP encapsulation and Ethernet protocol encapsulation on the stream data of the first PAT, the first PMT, and the first multicast program to obtain the second multicast program transmission stream;
  • the sending module 603 is configured to send the second multicast program transmission stream to the IPTV terminal requesting to obtain the first multicast program.
  • the first PAT, and the first PMT of the first multicast program refer to the related description of the method embodiment shown in FIG. 6.
  • the data determination module 601 may be used to perform step S401 in the embodiment of FIG. 6, or step S505 in the embodiment of FIG. 9; the packaging module 602 may be used to perform step S402 in the embodiment of FIG. 6, or, in the embodiment of FIG. Step S506; the sending module 603 can be used to perform step S403 in the embodiment of FIG. 6, or step S507 in the embodiment of FIG. 9.
  • the packaging module 602 may be used to perform step S402 in the embodiment of FIG. 6, or, in the embodiment of FIG. Step S506;
  • the sending module 603 can be used to perform step S403 in the embodiment of FIG. 6, or step S507 in the embodiment of FIG. 9.
  • the apparatus 600 may further include a receiving module 604, an identification determining module 605, and a transmission stream determining module 606.
  • the receiving module 605 is used to receive a multicast program acquisition request sent by an IPTV terminal that requests to acquire a first multicast program.
  • the group of program acquisition requests includes the multicast IP address of the first multicast program and the IP address of the IPTV terminal;
  • the identification determining module 606 is used to determine the corresponding to the first multicast program according to the multicast IP address of the first multicast program when it is determined that the IPTV terminal has the right to acquire the first multicast program according to the IP address of the IPTV terminal Transport stream identifier;
  • the transport stream determination module 606 is used to determine the first multicast program transport stream according to the transport stream identifier corresponding to the first multicast program.
  • the receiving module 604 can be used to perform step S501 in the embodiment of FIG. 9
  • the identification determination module 605 can be used to perform steps S502 and S503 in the embodiment of FIG. 9
  • the transmission stream determination module 606 can be used to perform steps in the embodiment of FIG. S504.
  • the functions implemented by the various functional modules of the apparatus 600 may be implemented by a processor in combination with a communication interface.
  • a possible implementation of the apparatus 600 may be the central office equipment 300 shown in FIG. 3, for details, refer to the figure. The structure shown in 3 will not be repeated here.
  • the computer program product includes one or more computer instructions.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device including a server, a data center, and the like integrated with one or more available media.
  • the usable medium may be a semiconductor medium (for example, SSD) or the like.
  • modules and method steps of the examples described in conjunction with the embodiments disclosed in this application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本申请提供流传输方法和相关装置,其中,该方法包括:根据第一组播节目对应的标识从第一组播节目传输流中获取第一组播节目的流数据,并确定第一节目关联表PAT和第一节目映射表PMT,第一组播节目传输流为数字广播电视DVB节目源发送的组播节目传输流,流数据包括第一视频数据和/或第一音频数据,第一PAT为第一组播节目的PAT,第一PMT为第一组播节目的PMT;对第一PAT、第一PMT以及流数据进行互联网协议封装和以太网协议封装,以得到第二组播节目传输流;将第二组播节目传输流发送给请求获取第一组播节目的互联网协议电视IPTV终端。该技术方案可以保证IPTV组播节目的安全性。

Description

流传输方法和相关装置 技术领域
本申请涉及数据处理领域,尤其涉及流传输方法和相关装置。
背景技术
电视节目,是指电视台通过载有声音、图像的信号的作品。电视节目信号在被调制后,可以通过微波中继、电缆、光缆、通信卫星等方式传输至接收电视节目的地区。电视节目有三种视频传播方式,其分别为数字广播电视(digital video broadcasting,DVB)、互联网协议电视(internet protocol television,IPTV)以及基于开放互联网的视频服务(over the top,OTT),其中,DVB为广电网络公司提供给用户的电视服务,IPTV为电信运营商提供给用户的电视服务,OTT为互联网公司提供给用户的电视服务。在这三种电视服务中,IPTV与OTT的节目对应的传输流基于互联网协议(internet protocol,IP)网络传输。
由于多种电视服务并存,为了利用现有的资源,提出了DVB与IPTV融合的概念,即将DVB和IPTV承载在同一传输网络上,以复用该传输网络中的设备资源和传输资源。目前,DVB与IPTV融合的方案如图1所示,是直接基于同轴电缆的宽带互联网协议(internet protocol,IP)网络上承载IPTV业务,IPTV业务的传输流与DVB业务的传输流在该网络中为两个并行的传输流,其并行传输至电缆调制解调器终端系统(cable modem termination system,CMTS)局端设备或同轴电缆以太网(Ethernet over coax,EOC)局端设备,由于IPTV业务的传输流在上层开放的IP网络中传输,任何用户都可以在该网络上发送组播数据,一些具备攻击性质的组播数据会对IPTV业务的组播传输流造成攻击,从而使得该在组播传输流对应的节目频道遭受攻击,节目的安全性不够高。
发明内容
本申请提供流传输方法和相关装置,解决目前的DVB与IPTV融合的方案中存在的节目安全性不够高的问题。
第一方面,提供一种流传输方法,可以应用于CMTS局端设备或EOC局端设备或光线路终端(optical line terminal,OLT),包括:根据第一组播节目对应的标识从第一组播节目传输流中获取第一组播节目的流数据,并确定第一节目关联表(program association table,PAT)和第一节目映射表(program map table,PMT),其中,第一组播节目传输流为DVB节目源发送的组播节目传输流,该流数据包括第一视频数据和/或第一音频数据,第一PAT为第一组播节目的PAT,第一PMT为第一组播节目的PMT;对第一PAT、第一PMT以及该流数据进行IP封装和以太网协议封装,以得到第二组播节目传输流;将第二组播节目传输流发送给请求获取第一组播节目的IPTV终端。
在该技术方案中,从DVB组播节目传输流中为IPTV业务的组播节目复制出该组播节目的流数据和生成该组播节目的PAT、PMT,然后对组播节目的PAT、PMT以及流数据进 行封装得到符合IPTV业务的传输格式的第二组播节目传输流,再将该第二组播节目传输流发送给请求获取该组播节目的IPTV终端。由于IPTV业务的组播节目的流数据来源于DVB组播节目传输流,DVB组播节目传输流来源于DVB播控平台,保证了IPTV组播节目传输流的可靠性,DVB组播节目传输流在传输至CMTS局端设备或EOC局端设备或OLT时,未经过上层开放的IP网络,因而保证了IPTV组播节目的安全性。
结合第一方面,在一些可能的实施方式中,可以有如下几种获取第一组播节目的流数据以及确定第一PAT和第一PMT的方式:
第一种方式,该第一组播节目对应的标识可以为第一组播节目的服务标识,则可以根据该第一组播节目的服务标识和第一组播节目传输流中的节目关联表生成第一PAT,并确定第一数据包标识(packet identifier,PID),第一PID为第一PMT的PID;将第一组播节目传输流中与第一PID对应的PMT确定为第一PMT;从第一PMT中获取第二PID和/或第三PID,第二PID为第一视频数据的PID,第三PID为第一音频数据的PID;将第一组播节目传输流中与第二PID对应的流数据确定为第一视频数据,和/或,将第一组播节目传输流中与第三PID对应的流数据确定为第一音频数据。
第二种方式,该第一组播节目对应的标识可以为第一PMT的PID,则可以根据第一PID生成第一PAT;将第一组播节目传输流中与第一PID对应的PMT确定为第一PMT;从第一PMT中获取第二PID和/或第三PID,第二PID为第一视频数据的PID,第三PID为第一音频数据的PID;将第一组播节目传输流中与第二PID对应的流数据确定为第一视频数据,和/或,将第一组播节目传输流中与第三PID对应的流数据确定第一音频数据。
第三种方式,该第一组播节目对应的标识为第二PID或第三PID,第二PID为第一视频数据的PID,第三PID为第一音频数据的PID,则可以将第一组播节目传输流中与第二PID对应的流数据确定为第一视频数据,和/或,将第一组播节目传输流中与第三PID对应的流数据确定为第一音频数据;根据第二PID和/或第三PID生成第一PMT;确定第一PID,第一PID为第一PMT的PID,根据第一PID生成第一PAT。
通过上述三种方式,可以从DVB组播节目传输流中抽取出一个组播节目的流数据,从而将DVB组播节目传输流中包含的各个组播节目的流数据抽取出来,形成多个单节目传输流(single program transport stream,SPTS)。
结合第一方面,在一种可能的实施方式中,上述得到第二组播节目传输流的方式具体可以为:将第一PAT、第一PMT以及第一组播节目的流数据添加至IPTV队列;以第一组播节目对应的组播IP地址为目的IP地址,为IPTV队列中的各个数据报文生成各个数据报文对应的IP报头和多媒体接入控制(media access control,MAC)报头;依次利用各个数据报文对应的IP报头和MAC报头分别对IPTV队列中的各个数据报文进行封装,以得到第二组播节目传输流。通过将第一组播节目的流数据、PAT以及PMT添加至IPTV队列中,并为每个数据报文生成IP报头和MAC报头,并利用该IP报头和MAC报头对各个数据报文进行封装,可以将原始的节目流封装成符合IPTV业务对应的传输格式的组播节目传输流。
结合第一方面,在一种可能的实施方式中,在将该方法应用于OLT的场景下,上述将第二组播节目传输流发送给请求第一组播节目的IPTV终端,包括:将第二组播节目传输 流发送给IPTV终端对应的光网络传输终端(optical network terminal,ONT)或光网络单元(optical network unit,ONU),第二组播节目传输流用于指示该ONT或该ONU将第二组播节目传输流发送给该IPTV终端。这种方式使得该方案可以实施在光纤接入(fiber to the X,FTTX)与同轴电缆接入共平台的网络架构下。
结合第一方面,在一种可能的实施方式中,在根据第一组播节目对应的标识从第一组播节目传输流中获取第一组播节目的流数据,并确定第一PAT和第一PMT之前,还可以接收该IPTV终端发送的组播节目获取请求,该组播节目获取请求包括第一组播节目的组播IP地址和该IPTV终端的IP地址;在根据该IPTV终端的IP地址确定IPTV终端具备对第一组播节目的获取权限的情况下,根据第一组播节目的组播IP地址确定第一组播节目对应的传输流标识;根据第一组播节目对应的传输流标识确定第一组播节目传输流。该方案可以从DVB节目传输流中确定第一组播节目对应的传输流。
第二方面,提供一种流传输装置,用于执行上述第一方面描述的流传输装置。该流传输装置可包括:存储器以及与该存储器的处理器,其中:存储器用于存储第一方面描述的流传输方法的实现代码,处理器用于执行存储器中存储的程序代码,即执行第一方面所提供的方法,或者第一方面可能的实施方式中的任意一种所提供的方法。
第三方面,提供另一种流传输装置,该装置可包括多个功能模块,用于相应的执行上述第一方面所提供的方法,或者上述第一方面可能的实施方式中的任意一种所提供的方法。
第四方面,提供一种计算机可读存储介质,该计算机可读存储介质上存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面描述的滤波方法。
第五方面,提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面描述的流传输方法。
实施本申请的技术方案,可以使节省网络带宽,保证IPTV业务与DVB业务融合的方案中IPTV组播节目的安全性。
附图说明
图1是本申请提供的一种节目传输系的架构示意图;
图2是本申请提供的另一种节目传输系的架构示意图;
图3是本申请实施例提供的一种局端设备的结构示意图;
图4是本申请实施例提供的传输流的形成示意图;
图5是本申请实施例提供的传输流的组成和索引示意图;
图6是本申请实施例提供的一种流传输方法的流程示意图;
图7是本申请实施例提供的PAT与PMT的示意图;
图8是本申请实施例提供的一种封装示意图;
图9是本申请实施例提供的另一种流传输方法的流程示意图;
图10是本申请实施例提供的一种流传输装置的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。
为了更好地描述本申请提出的技术方案,首先介绍申请的技术方案涉及的节目传输系统,本申请的技术方案适用于基于同轴电缆的节目传输系统10或基于光纤与同轴电缆共平台的节目传输系统20。
基于同轴电缆的节目传输系统10的网络结构可以如图1所示,该节目传输系统10包括同轴电缆局端设备101、混合光纤同轴(hybrid fiber coaxial,HFC)传输网络102、用户分配网络103以及用户设备104。其中:
同轴电缆局端设备101用于对电视信号进行去抖和节目参考时钟(program clock reference,PCR)校正,然后将经过去抖和PCR校正得到的信号进行调制后发送至HFC传输网络,以利用HFC传输网络中的光纤传输该信号。同轴电缆局端设备101还可以用于管理和控制同轴电缆终端设备,对同轴电缆终端设备进行认证和配置,配置的内容包括下行频率、下行调制方式、下行电平,等等。具体地,同轴电缆局端设备可以为CMTS局端设备或EOC局端设备,与之相对应地,同轴电缆终端设备可以为同轴电缆调制解调器(cable modem,CM)或同轴电缆网络单元(coaxial network unit,CNU),其中,CM为CMTS局端设备对应的调制解调器,CNU为EOC局端对应的调制解调器。
HFC传输网络102由光节点组成,用于将同轴电缆局端设备101发送的信号传输至用户分配网络103。
用户分配网络103用于将信号均匀地分配给各个用户设备104,并确保各个用户设备之间互不干扰。用户分配网络104包括分配器。
用户设备104用于接收同轴电缆局端设备101发送的信号并进行解调,得到电视信号。用户设备104还用于将电视信号经过解码后转换为节目内容,并通过电视机显示该节目内容。用户设备104具体可包括调制解调器和机顶盒。调制解调器用于对信号进行调制或者解调。调制解调器具体为CM还是CNU取决于同轴电缆局端设备是CMTS局端设备还是EOC局端设备。机顶盒用于完成对电视信号的处理。机顶盒包括两种类型的机顶盒,一种是用于实现IPTV业务的IP机顶盒;另一种是实现DVB业务的同轴电缆机顶盒,同轴电缆机顶盒又可以称之为传统机顶盒,等等。可选地,用户设备还可以包括个人计算机等。
基于光纤与同轴电缆共平台的节目传输系统20的网络结构如图2所示,该节目传输系统20包括OLT 201、ONU 202、同轴电缆头端设备203、连接OLT 201和ONU 202以及OLT 201和同轴电缆头端设备203的光分配网络(optical distribution network,ODN)204以及用户终端设备205。其中:
OLT 201位于局端,用于提供面向用户的无源光纤网络的光纤接口。OLT 201上连社区公共电视天然系统(community antenna television,CATV),完成基于光纤与同轴电缆共平台的节目传输系统中的节目接入;OLT 201通过ODN 204下连ONU 202,实现对ONU 202的控制、管理和测距等功能。OLT 201还通过ODN 204与同轴电缆头端设备203连接,实现FTTX与同轴电缆接入的共平台接入。OLT 201还用于对电视信号进行去抖和PCR校正,然后将经过去抖和PCR校正得到的信号进行调制后传输至ODN 204。
ODN 204由光纤和一个或多个无源光分路器等无源光器件组成,在OLT 201与ONU 202或者,OLT 201与同轴电缆头端设备203之间提供光通道,用于分发或复用OLT 201 与ONU 202或者,OLT 201与同轴电缆头端设备203之间的数据。
ONU 202与同轴电缆头端设备203位于用户侧,属于用户端设备。ONU为FTTX架构下的用户端设备,如果ONU直接提供用户端口功能,则ONU又可以称为光网络终端(optical network terminal,ONT)。ONU 202与OLT 201配合实现以太网二层、以太网三层功能,其具体可用于为用户提供IPTV业务,ONU 202下连IPTV终端,IPTV终端又可以称之为IP机顶盒。同轴电缆头端设备203为同轴电缆接入的用户端设备,用于为用户提供DVB业务,同轴电缆头端设备203下连CM或CNU,CM或CNU与DVB终端连接,DVB终端又可以称之为同轴电缆机顶盒。其中,IPTV终端与DVB终端均为用户终端设备205。可选地,用户终端设备还可以包括个人计算机等。具体地,同轴电缆头端设备203可以为EOC头端设备或同轴电缆媒体转换器(coax media convert,CMC)头端设备。
本申请的技术方案具体可应用于图1所示的同轴电缆局端设备101或图2所示的OLT201,以下将同轴电缆局端设备101和OLT 201统称为局端设备来介绍局端设备的结构。
参见图3,图3是本申请实施例提供的一种局端设备300的结构示意图,局端设备300可以实现为图1所示的基于同轴电缆的节目传输系统中的同轴电缆局端设备101,也可以实现为图2所示的基于光纤与同轴电缆共平台的节目传输系统中的OLT 201。如图3所示,局端设备300可包括:通信接口301、一个或多个处理器302、存储器303、调制器304、解调器305。这些部件可通过一个或多个总线连接或者其他方式连接。其中:
通信接口301可用于局端设备300与其他设备通信,例如用户设备、上层网络中的网络设备等。通信接口301可包括有线通信接口。具体地,在局端设备为同轴电缆局端设备的情况下,该通信接口301例如可以为以太网接口、射频接口等;在局端设备为OLT的情况下,该通信接口301例如可以为以太网接口、光纤接口等。可选地,通信接口301还可以包括无线通信接口。
存储器303与处理器302耦合,用于存储各种软件程序和/或多组指令。具体实现中,存储器303可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器303中内置有操作系统,例如Linux、uCOS、VxWorks等操作系统。存储器303还可以内置网络通信程序,该网络通信程序可用于与节目传输系统中的其他设备进行通信。
在本申请的一些实施例中,存储器303可用于存储本申请的一个或多个实施例提供的流传输方法在局端设备侧的实现程序。关于本申请提供的流传输方法的实现,请参考后续实施例。在可选实施例中,存储器303还可以DVB节目源发送的各个组播节目的节目信息以及各个组播节目的节目信息相互之间的对应关系,组播节目的服务标识与组播IP地址之间的对应关系,关于节目信息以及对应关系,请参考后续实施例。
处理器302可以是通用处理器,例如中央处理器(central processing unit,CPU),处理器302还可包括硬件芯片,上述硬件芯片可以是以下一种或多种的组合:专用集成电路(application specific integrated circuit,ASIC)、现场可编程逻辑门阵列(field programmable gate array,FPGA),复杂可编程逻辑器件(complex programmable logic device,CPLD)。处理器302可处理通信接口301接收到的数据,处理器302还可处理将被发送到通信接口301以通过有线传输介质传送的数据。
本申请实施例中,处理器302可用于读取和执行计算机可读指令。具体的,处理器302可用于调用存储于存储器303中的程序,例如本申请的一个或多个实施例提供的流传输方法在局端设备侧的实现程序,并执行该程序包含的指令。
本申请实施例中,处理器302用于确定组播节目对应的流数据、PAT以及PMT,对组播节目对应的流数据、PAT以及PMT进行封装得到符合IPTV业务对应的传输格式的组播节目传输流。处理器302确定组播节目对应的流数据、PAT以及PMT,对组播节目对应的流数据、PAT以及PMT进行封装得到符合IPTV业务对应的传输格式的组播节目传输流的具体实现可参考后续实施例。在一些实施例中,处理器302还用于根据存储器303中存储的组播节目的服务标识与组播IP地址、组播节目的服务标识与传输流标识等相互之间的对应关系,确定与组播IP地址对应的组播节目以及该组播节目对应的传输流等。
调制器304用于对节目信号进行调制,以得到能够在传输系统中传输的调制信号。具体地,在局端设备为OLT的情况下,该调制器304具体可以为光调制器。解调器305用于对调制信号进行解调,得到节目信号。具体地,在局端设备为OLT的情况下,该解调器306具体可以为光解调器。
可选地,在局端设备为OLT的情况下,该局端设备还可以包括光接收机306和光发射机307,其中,光接收机306用于光电信号转换,用于接收上行光信号,把光信号转换成电信号。光发射机307用于电光信号转换,用于将处理器302生成的下行电信号(即下行数据)转换成光信号。
这里,图3所示的局端设备300仅仅是本申请的一种实现方式,实际应用中,局端设备300还可以包括更多或更少的部件,这里不作限制。
基于前述基于同轴电缆的节目传输系统10或基于光纤与同轴电缆共平台的节目传输系统20以及局端设备300,可以实现本申请的流传输方法,本申请通过从DVB组播节目传输流中为IPTV业务的组播节目复制出该组播节目的流数据和生成该组播节目的PAT、PMT,然后对组播节目的PAT、PMT以及流数据进行封装得到符合IPTV业务的传输格式的组播节目传输流,然后将该第二组播节目传输流发送给请求获取该组播节目的IPTV终端。IPTV的组播节目传输流来源于DVB节目传输流,保证了IPTV组播节目传输流来源的可靠性,该IPTV节目组播传输流不经过上层开放的IP网络,保证了IPTV组播节目的安全性。以下具体介绍。
先对本申请涉及的传输流的概念进行介绍。如图4所示,传输流是由音频基本码流(elementary stream,ES)和/或视频ES经过打包、时间校准以及复用得到。其中,各个视频编码器输出的视频ES和/或各个音频编码器输出的音频ES经过打包器将其分割成段以及添加数据报头,并通过共同或独立的系统时间基准形成多个数据包基本码流(packet elementary stream,PES),多个PES经过传输流复用器复用后形成传输流。
传输流中可包括一个或多个节目流,其中,节目流由具有共同的时间基准的一个或多个PES复合形成,每个节目流各自对应一个组播节目。传输流有两种形式,一种为包括一个节目流的传输流,包括一个节目流的传输流被称为单节目传输流(single transport stream,SPTS);另一种为包括多个节目流的传输流,包括多个节目流的传输流被称为多节目传输 流(multi-program transport stream,MPTS)。除了包括节目流外,传输流还包括节目特殊信息(program special info,PSI),PSI可以用于将传输流中的对应同一个节目的流数据关联起来。具体地,PSI可包括PAT、PMT和条件接收表(conditional access table,CAT)等。PAT和PMT组成树状索引,通过该树状索引可索引到传输流中不同节目对应的流数据以及不同种类的流数据。在传输流中,不同种类的流数据通过PID来区分,即不同种类的流数据对应不同的PID。
以下介绍传输流中的不同种类的流数据之间的索引关系。参见图5,图5示出了传输流的组成以及传输流中的索引关系。图5中的传输流为MPTS,传输流包括多个数据报文,这个多个数据报文包括4个节目的数据报文。传输流以0.5秒(s)为周期,每个周期中均有一个PAT,PAT用于描述传输流中包含的节目的数量和节目的PMT的PID,PAT的部分数据内容如图5中的P1所示,包括各个节目的服务标识和PMT的PID,PMT的PID索引至各个节目的PMT。各个节目的PMT的部分数据内容如图5中的P2~P5所示,包括节目的视频数据的PID和/或音频数据的PID,该视频数据的PID和/或音频数据的PID可分别索引至该节目的视频数据和/或音频数据。
接下来介绍本申请的技术方案。
参见图6,图6是本申请实施例提供的一种流传输方法的流程示意图,该方法可以实现在局端设备上,局端设备可以为图1所示的同轴电缆局端设备101或图2所示的OLT 201,以下以局端设备为执行主体进行介绍。
如图6所示,该方法包括如下步骤:
S401,局端设备根据第一组播节目对应的标识从第一组播节目传输流中获取第一组播节目的流数据,并确定第一PAT和第一PMT,第一组播节目传输流为DVB节目源发送的组播节目传输流,第一组播节目的流数据包括第一视频数据和/或第一音频数据,第一PAT为第一组播节目的PAT,第一PMT为第一组播节目的PMT。
本申请实施例中,局端设备中预存有DVB节目源发送的各个组播节目的节目信息以及各个组播节目的节目信息相互之间的对应关系。其中,组播节目的节目信息包括组播节目的服务标识,该组播节目的服务标识用于在节目传输系统中唯一地标识组播节目。组播节目的节目信息还包括组播节目的传输流标识,该组播节目的传输流标识用于在节目传输系统中唯一地标识该组播节目对应的传输流。组播节目的节目信息还包括组播节目的PMT的PID,该PMT的PID用于在该组播节目对应的传输流中唯一地标识至该组播节目的PMT。该组播节目的节目信息还包括组播节目的视频数据的PID和/或组播节目的音频数据的PID,该组播节目的视频数据的PID用于在该组播节目对应的传输流中唯一地标识该组播节目的视频数据。该组播节目的音频数据的PID用于在该组播节目对应的传输流中唯一地标识该组播节目的音频数据。具体地,在组播节目为只有画面而没有声音的组播节目的情况下,如组播节目为聋哑人设计的手语节目,该局端设备中预存的该组播节目的节目信息包括组播节目的视频数据的PID而不包括组播节目的音频数据的PID;在组播节目为只有声音而没有画面的组播节目的情况下,如该组播节目为电台类节目,局端设备中预存的该组播节目的节目信息包括该组播节目的音频数据的PID而不包括组播节目的视频数据的 PID;在该组播节目为有声音且有画面的组播节目的情况下,如该组播节目为电影节目,局端设备中预存的该组播节目的节目信息包括该组播节目的视频数据的PID和音频数据的PID。
示例性地,局端设备中预存的各个组播节目的节目信息以及各个组播节目的节目信息相互之间的对应关系可以如表1所示:
服务标识 传输流标识 PMT的PID 视频数据的PID 音频数据的PID
1 1 100 101 102
2 1 200 201  
3 1 300 301 302
4 1 400   402
5 2 500 501 502
6 3 600 601 602
7 3 700 701 702
…… ……. …… …… ……
表1
由表1可知,传输流1和传输流3为MPTS。传输流1包括节目1、节目2、节目3以及节目4的流数据,节目1为有声音且有画面的组播节目,节目2为有画面且无声音的组播节目,节目3为有声音且有画面的组播节目,节目4为有声音且无画面的组播节目。传输流3包括节目6和节目7的流数据,节目6和节目7均为有声音且有画面的组播节目。传输流2为SPTS,传输流2仅包括节目5,节目5为有声音且有画面的组播节目。
这里,第一组播节目传输流可以为MPTS,也可以为SPTS。
在第一组播节目传输流为SPTS的情况下,可以直接将第一组播节目传输流中的PAT确定为第一PAT,将第一组播节目传输流中的PMT确定为第一PMT,以及,将第一组播音频数据和/或视频数据确定为第一组播节目的流数据。
在第一组播节目传输流为MPTS的情况下,可以有以下几种从第一组播节目传输流中获取第一组播节目的流数据,并确定第一PAT和第一PMT的方式:
1)可以根据第一组播节目的服务标识从第一组播节目传输流中获取第一组播节目的流数据,并确定第一PAT和第一PMT,即第一组播节目对应的标识为第一组播节目的服务标识。具体地,可以根据第一组播节目的服务标识和第一组播节目传输流中的PAT生成第一PAT,并确定第一PID,第一PID为第一PMT的PID;然后将第一组播节目传输流中与第一PID对应的PMT确定为第一PMT;再从第一PMT中获取第二PID和/或第三PID,第二PID为第一视频数据的PID,第二PID为第一音频数据的PID;最后将第一组播节目传输流中与第二PID对应的流数据确定第一视频数据,和/或,将第一组播节目传输流中与第三PID对应的流数据确定为第一音频数据。
举例来进行说明,假设第一组播节目传输流如图5所示,第一组播节目的服务标识为1,根据第一组播节目传输流中的PAT可确定第一组播节目的PMT的PID为100,生成的第一PAT如图7中的T1所示,然后确定第一PID为100,接着确定图5中的P2为第一PMT,根据第一PMT可确定第二PID为101,第三PID为102,最后确定PID为101的数据报文 为第一视频数据并确定PID为102的数据报文为第二音频数据。
2)可以根据第一组播节目的PMT的标识从第一组播节目传输流中获取第一组播节目的流数据,并确定第一PAT和第一PMT,即第一组播节目对应的标识为第一PID,第一PID为第一PMT的PID。具体地,可以根据第一PID生成第一PAT;然后将第一组播节目传输流中与第一PID对应的PMT确定为第一PMT;再从第一PMT中获取第二PID和/或第二PID,第二PID为第一视频数的PID,第三PID为第一音频数据的PID;最后将第一组播节目传输流中与第二PID对应的流数据确定为第一视频数据,和/或,将第一组播节目传输流中与第三PID对应的流数据确定为第一音频数据。
举例来进行说明,假设第一组播节目传输流如图5所示,局端设备中预存的各个组播节目的节目信息相互之间的对应关系如表1所示,第一PID为200,则根据表1可确定第一组播节目的服务标识为2,生成的第一PAT如图7中的T2所示,然后确定图5中的P3为第一PMT,根据第一PMT可确定第二PID为201,最后确定PID为201的数据报文为第一视频数据。
3)可以根据第一组播节目的视频数据和/或视频数据的标识从第一组播节目传输流中获取第一组播节目的流数据,并确定第一PAT和第一PMT,即第一组播节目对应的标识为第二PID和/或第三PID,第二PID为第一视频数据的PID,第三PID为第一音频数据的PID。具体地,可以将第一组播节目传输流中与第二PID对应的流数据确定为第一视频数据,和/或,将第一组播节目传输流中与第三PID对应的流数据确定为第一音频数据;然后根据第二PID和/或第三PID生成第一PMT;再确定第一PID,第一PID为第一PMT的PID;最后根据第一PID生成第一PAT。
举例来进行说明,假设局端设备中预存的各个组播节目的节目信息相互之间的对应关系如表1所示,第二PID为301,第三PID为302,则确定PID为301的数据报文为第一视频数据,并确定PID为302的数据报文为第一音频数据,则根据第二PID和第三PID生成的第一PMT如图7中的T3所示,根据表1可确定第一组播节目的服务标识为3,PMT的PID为300,生成的第一PAT如图7中的T4所示。
可选地,局端设备在根据第一组播节目对应的标识从第一组播节目传输流中获取第一组播节目的流数据,并确定第一PAT和第一PMT之前,还可以对第一组播节目传输流进行去抖和PCR校正。其中,去抖是指对第一组播节目传输流中的数据报文进行重新排序,使得排序后的数据报文为有序排列的。PCR校正是指对第一组播节目传输流中的数据报文的时间戳进行修改,使得修改后的数据报文的时间戳准确。
S402,局端设备对第一PAT、第一PMT以及第一组播节目的流数据进行IP封装和以太网协议封装,以得到第二组播节目传输流。
这里,局端设备对第一PAT、第一PMT以及第一组播节目的流数据进行封装,得到第二组播节目传输流是指将第一PAT、第一PMT以及第一组播节目的流数据各自对应的数据报文进行封装,得到在以太网中传输的以太网帧。
具体实现中,可以将第一PAT、PMT以及第一组播节目的流数据添加至IPTV队列,然后以第一组播节目对应的组播IP地址为目的IP地址,为IPTV队列中的各个数据报文生成各个数据报文对应的IP报头和MAC报头;再依次利用各个数据报文对应的IP报头和 MAC报头分别对各个数据报文进行封装,以得到第二组播节目传输流。
示例性地,局端设备对第一PAT、第一PMT以及第一组播节目的流数据进行IP封装和以太网协议封装的示意图可以如图8所示,图8中以第一组播节目为有声音且有画面的组播节目为例。由于第一组播节目为有声音且有画面的组播节目,第一组播节目的流数据包括第一组播节目的视频数据和第一组播节目的音频数据,即第一视频数据和第一音频数据。首先,将第一PAT、第一PMT、第一视频数据以及第一音频数据按顺序排列形成IPTV队列,由于要通过第一PAT索引到第一PMT,以及通过第一PMT索引到第一视频数据和第一音频数据,所以在IPTV队列中,第一PAT对应的数据报文排列在第一PMT对应的数据报文之前,第一PMT对应的数据报文排列在第一音频数据和第一视频数据对应的数据报文之前,第一音频数据和第一视频数据各自对应多个数据报文,如图8中的a1所示。然后,分别为IPTV队列中的每个数据报文生成IP报头和MAC报头,IP报头如图8中的a2所示,MAC报头如图8中的a3所示,最后,为每个数据报文添加上如a2所示的IP报头和a3所示的MAC报头,形成第二组播节目传输流,形成的第二组播节目传输流如图8中的a4所示。
S403,局端设备将第二组播节目传输流发送给请求获取第一组播节目的IPTV终端。
在一种可能的实现方式中,在该局端设备为基于同轴电缆的节目传输系统中的局端设备的情况下,局端设备通过将该第二组播节目传输流发送给CM或CNU,将第二组播节目传输流发送给请求获取第一组播节目的IPTV终端。具体地,局端设备将该第二组播节目传输流发送给该IPTV终端对应的CM或CNU,该第二组播节目传输流用于指示该CM或CNU将该第二组播节目传输流转发给IPTV终端。
在另一种可能的实现方式中,在该局端设备为基于光纤与同轴电缆共平台的节目传输系统中的局端设备的情况下,局端设备通过将该第二组播节目传输流发送给ONT或ONU,将第二组播节目传输流发送给请求获取第一组播节目的IPTV终端。具体地,局端设备将该第二组播节目传输流发送给该IPTV终端对应的ONT或ONU,该第二组播节目传输流用于指示该ONT或ONU将该第二组播节目传输流转发给IPTV终端。
上述可知,在本申请实施例中,在DVB业务和IPTV业务融合的场景下,通过从DVB组播节目传输流中为IPTV业务的组播节目复制出相应的PAT、PMT以及流数据,然后将组播节目的PAT、PMT以及流数据封装成以太网帧后发送给请求组播节目的IPTV终端,由于组播节目的数据来源于DVB组播节目传输流,该DVB组播节目传输流未经过上层开放的IP网络,保证了IPTV组播节目的可靠性和安全性。另外,由于IPTV组播节目是从DVB组播节目传输流中复制出来的,减少了IPTV节目传输流对上层网络的网络带宽的占用,节省了带宽。
在一些可能的场景中,局端设备可以在接收到DVB节目源发送的组播节目传输流的情况下,执行上述图6所示的方法,以生成该组播节目传输流中的各个组播节目对应的符合IPTV业务的传输格式的组播节目传输流,然后在接收到IPTV终端请求IPTV组播节目的情况下,将相应的符合IPTV业务的传输格式的组播节目传输流发送给IPTV终端。
在另一些可能的场景中,局端设备也可以在接收到IPTV终端请求IPTV业务对应的组 播节目的情况下,执行上述图6所示的方法,生成该IPTV终端所请求的组播节目的IPTV节目传输流。参见图9,图9是本申请实施例提供的另一种流传输方法的流程示意图,该方法可应用于图1所示的基于同轴电缆的节目传输系统10或基于光纤与同轴电缆共平台的节目传输系统20。
如图9所示,该方法可包括如下步骤:
S501,IPTV终端发送组播节目获取请求,组播节目获取请求包括第一组播节目的组播IP地址和IPTV终端的IP地址,局端设备接收组播节目获取请求。
这里,在IPTV终端和局端设备为基于同轴电缆的节目传输系统中的IPTV终端和局端设备的情况下,IPTV终端向该IPTV终端对应的CM或CNU发送组播节目传输获取请求,CM或CNU将该组播节目传输请求转发给局端设备;在IPTV终端和局端设备为基于光纤与同轴电缆共平台的节目传输系统中的IPTV终端和局端设备的情况下,IPTV终端向该IPTV终端对应的ONU或ONT发送组播节目获取请求,ONU或ONT将该组播节目传输请求转发给局端设备。
S502,局端设备根据IPTV终端的IP地址对IPTV终端进行鉴权。
在一种可能的实现方式中,局端设备可以根据第一组播节目的组播IP地址确定该组播IP地址对应的IP地址分组,该IP地址分组为可以获取第一组播节目的IP地址的集合,如果该IPTV终端中的IP地址在该IP地址分组中,则局端设备确定该IPTV终端具备对第一组播节目的获取权限。
这里,局端设备在根据IPTV终端的IP地址确定IPTV终端具备对第一组播节目的获取权限的情况下,执行步骤S503。
S503,局端设备根据第一组播节目的组播IP地址确定第一组播节目对应的传输流标识。
本申请实施例中,局端设备预存有IPTV业务中组播节目的服务标识与组播IP地址之间的对应关系。示例性地,局端设备中预存的各个组播节目的服务标识与组播IP地址之间的对应关系可以如图表2所示:
服务标识 组播IP地址
1 组播IP1
2 组播IP2
…… ……
表2
具体地,局端设备可以根据预存的IPTV业务中组播节目的服务标识与组播IP地址之间的对应关系确定与第一组播节目的组播IP地址对应的服务标识,然后该服务标识以及组播节目的服务标识与组播节目的传输流标识之间的对应关系确定第一组播节目的传输流标识。
S504,局端设备根据第一组播节目对应的传输流标识确定第一组播节目传输流,第一组播节目传输流为DVB节目源发送的组播节目传输流。
S505,局端设备根据第一组播节目对应的标识从第一组播节目传输流中获取第一组播节目的流数据,并确定第一PAT和第一PMT,第一组播节目的流数据包括第一视频数据和/或第一音频数据,第一PAT为第一组播节目的PAT,第一PMT为第一组播节目的PMT。
S506,局端设备对第一PAT、第一PMT以及第一组播节目的流数据进行IP封装和以太网协议封装,以得到第二组播节目传输流。
S507,局端设备发送第二组播节目传输流,IPTV终端接收第二组播节目传输流。
这里,步骤S505~S507的具体实现方式可参考前述图6对应的实施例中步骤S401~S403的相关描述,此处不再赘述。
本申请实施例中,局端设备在接收到IPTV终端请求IPTV业务对应的组播节目的情况下从DVB业务对应的组播节目传输流中获取相应的数据,为该IPTV终端生成IPTV业务对应的组播节目传输流,实现了对IPTV终端的及时响应,保证了IPTV节目的安全性。
上述详细描述了本申请的流传输方法,为了更好地实施本申请的方法,相应地,下面提供了本申请的装置。
参见图10,图10是本申请实施例提供的一种流传输装置600的结构示意图,该装置600可以实现为图1所示的基于同轴电缆的节目传输系统中的同轴电缆局端设备101,也可以实现为图2所示的基于光纤与同轴电缆共平台的节目传输系统中的OLT 201。如图10所示,该装置600可包括:数据确定模块601、封装模块602、发送模块603。其中:
数据确定模块601,用于根据第一组播节目对应的标识从第一组播节目传输流中获取第一组播节目的流数据,并确定第一PAT和第一PMT,第一组播节目传输流为DVB节目源发送的组播节目传输流,第一组播节目的流数据包括第一视频数据和/或第一音频数据,第一PAT为第一组播节目的PAT,第一PMT为第一组播节目的PMT;
封装模块602,用于对第一PAT、第一PMT以及第一组播节目的流数据进行IP封装和以太网协议封装,以得到第二组播节目传输流;
发送模块603,用于将第二组播节目传输流发送给请求获取第一组播节目的IPTV终端。
这里,有关于第一组播节目的流数据、第一PAT、第一PMT的描述,可参考图6所示方法实施例的相关描述。
数据确定模块601可用于执行图6实施例中的步骤S401,或者,图9实施例中的步骤S505;封装模块602可用于执行图6实施例中的步骤S402,或者,图9实施例中的步骤S506;发送模块603可用于执行图6实施例中的步骤S403,或者,图9实施例中的步骤S507,具体可参考图6实施例或图9实施例的描述,在此不再赘述。
可选地,该装置600还可包括接收模块604、标识确定模块605以及传输流确定模块606。其中,接收模块605用于接收请求获取第一组播节目的IPTV终端发送的组播节目获取请求,该组节目获取请求包括第一组播节目的组播IP地址和该IPTV终端的IP地址;标识确定模块606用于在根据该IPTV终端的IP地址确定IPTV终端具备对第一组播节目的获取权限的情况下,根据第一组播节目的组播IP地址确定第一组播节目对应的传输流标识;传输流确定模块606用于根据第一组播节目对应的传输流标识确定第一组播节目传输流。
这里,接收模块604可用于执行图9实施例中的步骤S501,标识确定模块605可用于执行图9实施例中的步骤S502和S503,传输流确定模块606可用于执行图9实施例中的步骤S504,具体可参考图9实施例的描述,在此不再赘述。
具体实现中,该装置600的各个功能模块所实现的功能可以由处理器结合通信接口来实现,该装置600的一种可能的实现可以为图3所示的局端设备300,具体可参考图3所示的结构,此处不再赘述。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机指令可以存储在计算机可读存储介质中,或者通过所述计算机可读存储介质进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是半导体介质(例如SSD)等。
本领域普通技术人员可以意识到,结合本申请中所公开的实施例描述的各示例的模块及方法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
需说明,本申请实施例所涉及的第一、第二、第三以及各种数字编号仅为描述方便进行的区分,并不用来限制本申请实施例的范围。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (16)

  1. 一种流传输方法,其特征在于,包括:
    根据第一组播节目对应的标识从第一组播节目传输流中获取所述第一组播节目的流数据,并确定第一节目关联表PAT和第一节目映射表PMT,所述第一组播节目传输流为数字广播电视DVB节目源发送的组播节目传输流,所述流数据包括第一视频数据和/或第一音频数据,所述第一PAT为所述第一组播节目的PAT,所述第一PMT为所述第一组播节目的PMT;
    对所述第一PAT、所述第一PMT以及所述流数据进行互联网协议IP封装和以太网协议封装,以得到第二组播节目传输流;
    将所述第二组播节目传输流发送给请求获取所述第一组播节目的互联网协议电视IPTV终端。
  2. 根据权利要求1所述的方法,其特征在于,所述第一组播节目对应的标识为所述第一组播节目的服务标识;
    所述根据第一组播节目对应的标识从第一组播节目传输流中获取所述第一组播节目的流数据,并确定第一节目关联表PAT和第一节目映射表PMT,包括:
    根据所述第一组播节目的服务标识和所述第一组播节目传输流中的PAT生成所述第一PAT,并确定第一数据包标识PID,所述第一PID为所述第一PMT的PID;
    将所述第一组播节目传输流中与所述第一PID对应的PMT确定为所述第一PMT;
    从所述第一PMT中获取第二PID和/或第三PID,所述第二PID为所述第一视频数据的PID,所述第三PID为所述第一音频数据的PID;
    将所述第一组播节目传输流中与所述第二PID对应的流数据确定为所述第一视频数据,和/或,将所述第一组播节目传输流中与所述第三PID对应的流数据确定为所述第一音频数据。
  3. 根据权利要求1所述的方法,其特征在于,所述第一组播节目对应的标识为第一PID,所述第一PID为所述第一PMT的PID;
    所述根据第一组播节目对应的标识从第一组播节目传输流中获取所述第一组播节目的流数据,并确定第一节目关联表PAT和第一节目映射表PMT,包括:
    根据所述第一PID生成所述第一PAT;
    将所述第一组播节目传输流中与所述第一PID对应的PMT确定为所述第一PMT;
    从所述第一PMT中获取第二PID和/或第三PID,所述第二PID为所述第一视频数据的PID,所述第三PID为所述第一音频数据的PID;
    将所述第一组播节目传输流中与所述第二PID对应的流数据确定为所述第一视频数据,和/或,将所述第一组播节目传输流中与所述第三PID对应的流数据确定为所述第一音频数据。
  4. 根据权利要求1所述的方法,其特征在于,所述第一组播节目对应的标识为第二 PID和/或第三PID,所述第二PID为所述第一视频数据的PID,所述第三PID为所述第一音频数据的PID;
    所述根据第一组播节目对应的标识从第一组播节目传输流中获取所述第一组播节目的流数据,并确定第一节目关联表PAT和第一节目映射表PMT,包括:
    将所述第一组播节目传输流中与所述第二PID对应的流数据确定为所述第一视频数据,和/或,将所述第一组播节目传输流中与所述第三PID对应的流数据确定为所述第一音频数据;
    根据所述第二PID和/或所述第三PID生成所述第一PMT;
    确定第一PID,所述第一PID为所述第一PMT的PID;
    根据所述第一PID生成所述第一PAT。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述对所述第一PAT、所述第一PMT以及所述流数据进行互联网协议IP封装和以太网协议封装,以得到第二组播节目传输流,包括:
    将所述第一PAT、所述第一PMT以及所述流数据添加至IPTV队列;
    以所述第一组播节目对应的组播IP地址为目的IP地址,为所述IPTV队列中的各个数据报文生成各个数据报文对应的IP报头和多媒体接入控制MAC报头;
    依次利用所述各个数据报文对应的IP报头和MAC报头分别对所述各个数据报文进行封装,以得到所述第二组播节目传输流。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述将所述第二组播节目传输流发送给请求获取所述第一组播节目的IPTV终端,包括:
    将所述第二组播节目传输流发送给所述IPTV终端对应的光网络传输终端ONT或光网络传输单元ONU,所述第二组播节目传输流用于指示所述ONT或所述ONU将所述第二组播节目传输流转发给所述IPTV终端。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述根据第一组播节目对应的标识从第一组播节目传输流中获取第一组播节目的流数据,并确定第一节目关联表PAT和第一节目映射表PMT之前,还包括:
    接收所述IPTV终端发送的组播节目获取请求,所述组播节目获取请求包括所述第一组播节目的组播IP地址和所述IPTV终端的IP地址;
    在根据所述IPTV终端的IP地址确定所述IPTV终端具备对所述第一组播节目的获取权限的情况下,根据所述组播IP地址确定所述第一组播节目对应的传输流标识;
    根据所述传输流标识确定所述第一组播节目传输流。
  8. 一种流传输装置,其特征在于,包括:
    数据确定模块,用于根据第一组播节目对应的标识从第一组播节目传输流中获取所述第一组播节目的流数据,并确定第一节目关联表PAT和第一节目映射表PMT,所述第一组 播节目传输流为数字广播电视DVB节目源发送的组播节目传输流,所述流数据包括第一视频数据和/或第一音频数据,所述第一PAT为所述第一组播节目的PAT,所述第一PMT为所述第一组播节目的PMT;
    封装模块,用于对所述第一PAT、所述第一PMT以及所述流数据进行互联网协议IP封装和以太网协议封装,以得到第二组播节目传输流;
    发送模块,用于将所述第二组播节目传输流发送给请求获取所述第一组播节目的互联网协议电视IPTV终端。
  9. 根据权利要求8所述的装置,其特征在于,所述第一组播节目对应的标识为所述第一组播节目的服务标识;
    所述数据确定模块具体用于:
    根据所述第一组播节目的服务标识和所述第一组播节目传输流中的PAT生成所述第一PAT,并确定第一数据包标识PID,所述第一PID为所述第一PMT的PID;
    将所述第一组播节目传输流中与所述第一PID对应的PMT确定为所述第一PMT;
    从所述第一PMT中获取第二PID和/或第三PID,所述第二PID为所述第一视频数据的PID,所述第三PID为所述第一音频数据的PID;
    将所述第一组播节目传输流中与所述第二PID对应的流数据确定为所述第一视频数据,和/或,将所述第一组播节目传输流中与所述第三PID对应的流数据确定为所述第一音频数据。
  10. 根据权利要求8所述的装置,其特征在于,所述第一组播节目对应的标识为第一PID,所述第一PID为所述第一PMT的PID;
    所述数据确定模块具体用于:
    根据所述第一PID生成所述第一PAT;
    将所述第一组播节目传输流中与所述第一PID对应的PMT确定为所述第一PMT;
    从所述第一PMT中获取第二PID和/或第三PID,所述第二PID为所述第一视频数据的PID,所述第三PID为所述第一音频数据的PID;
    将所述第一组播节目传输流中与所述第二PID对应的流数据确定为所述第一视频数据,和/或,将所述第一组播节目传输流中与所述第三PID对应的流数据确定为所述第一音频数据。
  11. 根据权利要求8所述的装置,其特征在于,所述第一组播节目对应的标识为第二PID和/或第三PID,所述第二PID为所述第一视频数据的PID,所述第三PID为所述第一音频数据的PID;
    所述数据确定模块具体用于:
    将所述第一组播节目传输流中与所述第二PID对应的流数据确定为所述第一视频数据,和/或,将所述第一组播节目传输流中与所述第三PID对应的流数据确定为所述第一音频数据;
    根据所述第二PID和/或所述第三PID生成所述第一PMT;
    确定第一PID,所述第一PID为所述第一PMT的PID;
    根据所述第一PID生成所述第一PAT。
  12. 根据权利要求8-11任一项所述的装置,其特征在于,所述封装模块具体用于:
    将所述第一PAT、所述第一PMT以及所述流数据添加至IPTV队列;
    以所述第一组播节目对应的组播IP地址为目的IP地址,为所述IPTV队列中的各个数据报文生成各个数据报文对应的IP报头和多媒体接入控制MAC报头;
    依次利用所述各个数据报文对应的IP报头和MAC报头分别对所述各个数据报文进行封装,以得到所述第二组播节目传输流。
  13. 根据权利要求8-12任一项所述的装置,其特征在于,所述发送模块具体用于:
    将所述第二组播节目传输流发送给所述IPTV终端对应的光网络传输终端ONT或光网络传输单元ONU,所述第二组播节目传输流用于指示所述ONT或所述ONU将所述第二组播节目传输流转发给所述IPTV终端。
  14. 根据权利要求8-13任一项所述的装置,其特征在于,所述装置还包括:
    接收模块,用于接收所述IPTV终端发送的组播节目获取请求,所述组播节目获取请求包括所述第一组播节目的组播IP地址和所述IPTV终端的IP地址;
    标识确定模块,用于在根据所述IPTV终端的IP地址确定所述IPTV终端具备对所述第一组播节目的获取权限的情况下,根据所述组播IP地址确定所述第一组播节目对应的传输流标识;
    传输流确定模块,用于根据所述传输流标识确定所述第一组播节目传输流。
  15. 一种流传输装置,其特征在于,包括存储器以及与所述存储器耦合的处理器,其中:所述存储器用于存储程序代码,所述处理器用于调用所述程序代码,执行如权利要求1-7任一项所述的流传输方法。
  16. 一种计算机可读存储介质,其特征在于,所述可读存储介质上存储有指令,当所述指令在计算机上运行时,使得计算机执行如权利要求1-7任一项所述的流传输方法。
PCT/CN2018/120123 2018-12-10 2018-12-10 流传输方法和相关装置 WO2020118492A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/120123 WO2020118492A1 (zh) 2018-12-10 2018-12-10 流传输方法和相关装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/120123 WO2020118492A1 (zh) 2018-12-10 2018-12-10 流传输方法和相关装置

Publications (1)

Publication Number Publication Date
WO2020118492A1 true WO2020118492A1 (zh) 2020-06-18

Family

ID=71076149

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/120123 WO2020118492A1 (zh) 2018-12-10 2018-12-10 流传输方法和相关装置

Country Status (1)

Country Link
WO (1) WO2020118492A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162956A (zh) * 2006-08-07 2008-04-16 三星电子株式会社 通知ip/mac平台的重配置的方法及其dvb系统
EP2117231A1 (en) * 2008-05-06 2009-11-11 Sony Corporation Service providing method and service providing apparatus for generating and transmitting a digital television signal stream and method and receiving means for receiving and processing a digital television signal stream
CN101631228A (zh) * 2008-07-18 2010-01-20 中国科学院声学研究所 一种支持dvb cas的网络时移电视实现方法及其系统
CN102769799A (zh) * 2011-05-03 2012-11-07 朱佩江 一种在ip网络中实现数字电视业务分发服务的方法及系统
CN104869473A (zh) * 2015-05-18 2015-08-26 梅红兵 一种互联网与广电网结合的融合视频分发网络系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101162956A (zh) * 2006-08-07 2008-04-16 三星电子株式会社 通知ip/mac平台的重配置的方法及其dvb系统
EP2117231A1 (en) * 2008-05-06 2009-11-11 Sony Corporation Service providing method and service providing apparatus for generating and transmitting a digital television signal stream and method and receiving means for receiving and processing a digital television signal stream
CN101631228A (zh) * 2008-07-18 2010-01-20 中国科学院声学研究所 一种支持dvb cas的网络时移电视实现方法及其系统
CN102769799A (zh) * 2011-05-03 2012-11-07 朱佩江 一种在ip网络中实现数字电视业务分发服务的方法及系统
CN104869473A (zh) * 2015-05-18 2015-08-26 梅红兵 一种互联网与广电网结合的融合视频分发网络系统

Similar Documents

Publication Publication Date Title
US10439862B2 (en) Communication terminal with multiple virtual network interfaces
US8503447B2 (en) Broadcast receiver and channel information processing method
US9706243B2 (en) Broadcasting receiver and a method of determining an operation mode of broadcasting receiver
JP5738865B2 (ja) Mpeg−2ts多重化マルチメディアストリームのエレメンタリパケットの選択による、mpeg−2ts多重化マルチメディアストリームの配信
WO2006083467A1 (en) High speed ethernet mac and phy apparatus with a filter based ethernet packet router with priority queuing and single or multiple transport stream interfaces
JP2006238433A (ja) インターネットプロトコル基盤の放送サービスを提供するためのシステム及びその方法
KR100703379B1 (ko) 무선 송수신 장치
WO2018019239A1 (zh) 节目资源共享处理的机顶盒、系统及其方法
US20100162337A1 (en) Apparatus and method for processing video service flow using dual scheduler for headend cable modem in hfc network
US10779064B2 (en) Hybrid fiber coaxial node
US11956159B2 (en) Transmission device, transmission method, reception device, and reception method
US20090106806A1 (en) Broadcast receiver and system information processing method
CN101360230A (zh) 与部署点(pod)对接的主机设备和处理广播数据的方法
US20110154424A1 (en) Apparatus and method for transmitting video stream
CN106034259A (zh) 一种多路广播数字电视信号的路由器及其广播方法
KR100763577B1 (ko) 케이블 모뎀을 이용한 mpeg-2 a/v 데이터 수신 장치
WO2017142347A1 (ko) 멀티미디어 서비스의 컨텐츠 관련 정보 제공 방법 및 장치
CN101557513A (zh) Dvb共享路由方法和dvb共享路由器装置
WO2020118492A1 (zh) 流传输方法和相关装置
US10805689B2 (en) Method of transmitting IP-based broadcasting data over cable broadcasting network and apparatus for same
KR100818894B1 (ko) Ip 매핑테이블 전송 방식의 mdu 방송신호 분배 시스템
US20090158376A1 (en) Method and apparatus of building ip-based video service system in hybrid fiber coax network
KR100865687B1 (ko) Pon의 onu에서의 ip 방송신호 처리 시스템
CN111050206B (zh) 一种获取视音频数据的方法及装置
US20190182515A1 (en) Apparatus and method for providing broadcasting service

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

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

Country of ref document: EP

Kind code of ref document: A1