CN114205135A - TS stream processing method and TS stream processing system of decryption device - Google Patents

TS stream processing method and TS stream processing system of decryption device Download PDF

Info

Publication number
CN114205135A
CN114205135A CN202111486347.8A CN202111486347A CN114205135A CN 114205135 A CN114205135 A CN 114205135A CN 202111486347 A CN202111486347 A CN 202111486347A CN 114205135 A CN114205135 A CN 114205135A
Authority
CN
China
Prior art keywords
stream
packet
processing
decryption
module
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111486347.8A
Other languages
Chinese (zh)
Inventor
王炽辉
罗朝洪
李明崖
刘华预
向柄宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guowei Group Shenzhen Co ltd
Original Assignee
Guowei Group Shenzhen Co ltd
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 Guowei Group Shenzhen Co ltd filed Critical Guowei Group Shenzhen Co ltd
Priority to CN202111486347.8A priority Critical patent/CN114205135A/en
Publication of CN114205135A publication Critical patent/CN114205135A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9057Arrangements for supporting packet reassembly or resequencing

Abstract

The invention discloses a method for processing a TS (transport stream) by decryption equipment and a system for processing the TS. The method for processing the TS stream by the decryption device comprises the following steps: the sending equipment encapsulates the TS stream into segments and transmits the segments to the decryption equipment through a corresponding protocol; the decryption device receives the fragment and separates the protocol data of the fragment from TS stream data; the decryption device respectively processes the protocol data and the TS stream data, filters invalid TS packets in the TS stream data, and decrypts the valid TS packets; and the decryption equipment repackages the processed TS packet according to the protocol data and transmits the TS packet to the sending equipment through a corresponding protocol. The invention can prevent the decryption equipment from being suspended or having compatibility problems due to the phenomena of packet loss and the like, and improves the user experience.

Description

TS stream processing method and TS stream processing system of decryption device
Technical Field
The present invention relates to the technical field of TS stream processing, and in particular, to a method and a system for processing a TS stream by a decryption device.
Background
The decryption device of the TS stream is used for receiving the TS stream from the host computer, carrying out decryption related processing, and then transmitting the TS stream to the host computer.
The existing decryption device of the TS stream generally performs data transmission with a host through a USB interface, the USB decryption device receives the TS stream from the host through a USB protocol, and after decryption processing, the processed stream is transmitted back to the host through the USB protocol. In current implementations the data received by the USB decryption device is exactly the same as the data sent back to the host. In an actual scenario, packet loss may occur in TS decryption processing, and the number of lost packets may not be known, which may cause the USB decryption device to suspend or restart erroneously, which may cause the data packet to be unable to be processed in that period, and seriously affect user experience. This is because decryption is responsible for by a module in the decryption device, and because the chip defect of this module can cause this chip to hang up and do not work when receiving the invalid packet, therefore can't decrypt, need to reset the chip and just can work again.
Disclosure of Invention
In order to solve the technical problem that the decryption device is suspended or compatible due to the packet loss problem of the TS in the transmission process of the decryption device in the prior art, the invention provides a method and a system for processing the TS by the decryption device.
The method for processing the TS stream by the decryption equipment provided by the invention comprises the following steps:
the sending equipment encapsulates the TS stream into segments and transmits the segments to the decryption equipment through a corresponding protocol;
the decryption device receives the fragment and separates the protocol data of the fragment from TS stream data;
the decryption device respectively processes the protocol data and the TS stream data, filters invalid TS packets in the TS stream data, and decrypts the valid TS packets;
and the decryption equipment repackages the processed TS packet according to the protocol data and transmits the TS packet to the sending equipment through a corresponding protocol.
Further, the decryption device decrypts the valid TS, and then performs at least one of descrambling and secondary encryption.
Further, the sending device and the decryption device transmit the segment of the TS stream through a USB protocol.
The processing system of TS stream that the invention proposes, including sending equipment and decipher the apparatus, the said sending equipment includes: a segmentation module for encapsulating the TS stream into segments, and a first transmission module for transmitting the segments to a decryption device through a corresponding protocol; the decryption apparatus includes: the second transmission module is used for communicating with the first transmission module through a corresponding protocol, the segment disassembling module is used for separating protocol data of the segment received by the second transmission module from TS stream data, the effective TS packet filtering module is used for screening invalid TS packets in the TS stream data and reserving effective TS packets, the TS packet processing module is used for decrypting the effective TS packets, and the segment assembling module is used for repackaging the processed TS packets output by the TS packet processing module according to the protocol data.
Further, the first transmission module and the second transmission module are USB modules.
Further, the TS packet processing module performs at least one of descrambling and secondary encryption on the decrypted TS packet.
The invention utilizes the characteristics of the TS stream to ensure that the decryption equipment continuously receives the TS stream from the sending equipment (host), repackages the processed TS and then sends the TS back to the sending equipment, thus leading the TS stream to lose part of packets during processing without influencing the decryption equipment to process other normal packets, reducing the compatibility problem caused by packet loss during processing of the TS stream and improving the user experience.
Drawings
The invention is described in detail below with reference to examples and figures, in which:
fig. 1 is a block diagram of a system architecture according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present invention more clearly apparent, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Thus, a feature indicated in this specification will serve to explain one of the features of one embodiment of the invention, and does not imply that every embodiment of the invention must have the stated feature. Further, it should be noted that this specification describes many features. Although some features may be combined to show a possible system design, these features may also be used in other combinations not explicitly described. Thus, the combinations illustrated are not intended to be limiting unless otherwise specified.
The method for processing the TS stream by the decryption device of the invention requires that the sending device firstly encapsulates the TS stream into Fragments (Fragments), and then transmits the Fragments to the decryption device through a corresponding protocol.
After receiving the segment sent by the sending device, the decryption device separates the protocol data from the TS stream data in the segment, and the decryption device processes the protocol data and the TS stream data respectively, filters out invalid TS packets in the TS stream data, decrypts valid TS packets, and besides decrypting valid TS packets, the decryption device may perform other processing on TS packets, including but not limited to at least one of descrambling and secondary encryption.
And then the decryption device repackages the processed TS packet according to the protocol data and transmits the TS packet to the sending device through a corresponding protocol.
The repackaging of the invention is mainly based on the characteristics of TS stream, firstly separating the protocol data and the TS stream, filtering the invalid packet and correspondingly processing, and then recombining the protocol data and the TS stream. This way, it is avoided that the TS stream returned to the sending device is interrupted due to error processing (such as protocol renegotiation, resetting the decryption device, etc.) when packet loss occurs during decryption. According to the characteristics of the TS stream, on one hand, the method continuously receives the TS stream from the sending equipment, so that even if packet loss occurs, the TS packet received later can be filled and sent back.
The main reason for the separation in the above process is that decryption and encryption of TS streams are usually implemented by hardware modules in embedded devices, and the hardware modules usually only process pure TS stream data, and protocol data cannot be identified, and errors will occur when protocol data is sent together. The re-encapsulation is because the sending device (host) and the decryption device transmit TS stream data by a specific protocol, including a fragmentation method, a transmission protocol, and the like. The re-encapsulated data satisfies the particular protocol.
The filtering of the invalid packets is mainly judged by the fixed size characteristics of the TS packets 0x47 synchronous bytes and 188 bytes, and the method is high in speed and efficiency.
In one embodiment, the sending device acts as a host, and the segments of the TS stream are transmitted between the host and the decryption device via the USB protocol. Besides the USB protocol, the related data of the TS stream can be transmitted between the host and the decryption device through other protocols.
As shown in fig. 1, the present invention also protects a processing system of TS stream, which includes a transmitting device and a decrypting device, corresponding to the above method.
The sending device serves as a Host (Host) and comprises a segmentation module and a first transmission module. The segmentation module encapsulates the TS stream into segments, and the first transmission module transmits the segments to the decryption device via a corresponding protocol. In one embodiment, the first transmission module is a USB module.
The decryption device comprises a second transmission module, a fragment disassembling module, an effective TS packet filtering module, a TS packet processing module and a fragment assembling module.
The second transmission module communicates with the first transmission module through a corresponding protocol, and when the first transmission module is a USB module, the second transmission module is also a USB transmission module, so the decryption device is also called a USB decryption device. The fragment disassembling module is also called as Fragments disassembling module, and separates the protocol data of the fragment received by the second transmission module from the TS stream data. And the effective TS packet filtering module screens out invalid TS packets in the TS stream data and reserves effective TS packets. The TS packet processing module decrypts the effective TS packet, and on the basis, the TS packet processing module can also perform at least one of descrambling and secondary encryption on the decrypted TS packet. The fragment assembly module is also called as Fragments assembly module, and the fragment assembly module re-encapsulates the TS packet after processing output by the TS packet processing module according to the protocol data.
Both the filtering and decryption processes for invalid packets may cause inconsistency between the received data and the data returned to the sending device after processing, at least the data lengths being different. Equipment restart or renegotiation is generally required, and the negotiation process can cause more data loss; however, according to the characteristics of the stream, the patent continuously acquires data from the sending equipment and repacks the data, so that renegotiation is not needed, and the number of lost packets is reduced.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (7)

1. A method for processing a TS stream by a decryption device, comprising:
the sending equipment encapsulates the TS stream into segments and transmits the segments to the decryption equipment through a corresponding protocol;
the decryption device receives the fragment and separates the protocol data of the fragment from TS stream data;
the decryption device respectively processes the protocol data and the TS stream data, filters invalid TS packets in the TS stream data, and decrypts the valid TS packets;
and the decryption equipment repackages the processed TS packet according to the protocol data and transmits the TS packet to the sending equipment through a corresponding protocol.
2. The method for processing the TS stream by the decryption device according to claim 1, wherein the decryption device decrypts the valid TS and then performs at least one of descrambling and secondary encryption.
3. The method for processing the TS stream by the decryption device according to claim 1, wherein the fragments of the TS stream are transmitted between the transmission device and the decryption device by a USB protocol.
4. The method for processing a TS stream by a decryption device according to claim 1, wherein a valid TS packet and an invalid TS packet are distinguished based on a sync byte and a fixed size of the TS packet.
5. A TS stream processing system including a transmission device and a decryption device, wherein the transmission device includes: a segmentation module for encapsulating the TS stream into segments, and a first transmission module for transmitting the segments to a decryption device through a corresponding protocol;
the decryption apparatus includes: the second transmission module is used for communicating with the first transmission module through a corresponding protocol, the segment disassembling module is used for separating protocol data of the segment received by the second transmission module from TS stream data, the effective TS packet filtering module is used for screening invalid TS packets in the TS stream data and reserving effective TS packets, the TS packet processing module is used for decrypting the effective TS packets, and the segment assembling module is used for repackaging the processed TS packets output by the TS packet processing module according to the protocol data.
6. The system for processing TS stream of claim 5, wherein the first transmission module and the second transmission module are USB modules.
7. The system for processing TS stream of claim 5 wherein the TS packet processing module at least one of descrambles and re-encrypts the decrypted TS packets.
CN202111486347.8A 2021-12-07 2021-12-07 TS stream processing method and TS stream processing system of decryption device Pending CN114205135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111486347.8A CN114205135A (en) 2021-12-07 2021-12-07 TS stream processing method and TS stream processing system of decryption device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111486347.8A CN114205135A (en) 2021-12-07 2021-12-07 TS stream processing method and TS stream processing system of decryption device

Publications (1)

Publication Number Publication Date
CN114205135A true CN114205135A (en) 2022-03-18

Family

ID=80651064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111486347.8A Pending CN114205135A (en) 2021-12-07 2021-12-07 TS stream processing method and TS stream processing system of decryption device

Country Status (1)

Country Link
CN (1) CN114205135A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595197A (en) * 2012-01-19 2012-07-18 北京数码视讯软件技术发展有限公司 Transfer system protection method and device
EP2667631A1 (en) * 2012-05-23 2013-11-27 TP Vision Holding B.V. Data processing system and method
WO2015109904A1 (en) * 2014-01-22 2015-07-30 深圳国微技术有限公司 Method of identifying multiple transport streams based on usb interface
CN108282397A (en) * 2017-12-26 2018-07-13 深圳数字太和科技有限公司 A kind of hybrid network gateway for supporting plurality of access modes
CN108322777A (en) * 2018-01-10 2018-07-24 成都驰通数码系统有限公司 A kind of system and processing method for supporting AC-3, AAC, DRA audio transparent transmission
CN113132766A (en) * 2021-03-17 2021-07-16 杭州当虹科技股份有限公司 VBR (video base layer) sending method in TS (transport stream) packaging format

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595197A (en) * 2012-01-19 2012-07-18 北京数码视讯软件技术发展有限公司 Transfer system protection method and device
EP2667631A1 (en) * 2012-05-23 2013-11-27 TP Vision Holding B.V. Data processing system and method
WO2015109904A1 (en) * 2014-01-22 2015-07-30 深圳国微技术有限公司 Method of identifying multiple transport streams based on usb interface
CN108282397A (en) * 2017-12-26 2018-07-13 深圳数字太和科技有限公司 A kind of hybrid network gateway for supporting plurality of access modes
CN108322777A (en) * 2018-01-10 2018-07-24 成都驰通数码系统有限公司 A kind of system and processing method for supporting AC-3, AAC, DRA audio transparent transmission
CN113132766A (en) * 2021-03-17 2021-07-16 杭州当虹科技股份有限公司 VBR (video base layer) sending method in TS (transport stream) packaging format

Similar Documents

Publication Publication Date Title
US9935774B2 (en) Configurable cryptographic controller area network (CAN) device
US7447902B2 (en) Method for processing multiple wireless communications security policies
EP3096257A1 (en) In-vehicle network (ivn) device and method for operating an ivn device
EP1668816B1 (en) Method and apparatus of communicating security/encryption information to a physical layer transceiver
CN104601550B (en) Reverse isolation file transmission system and method based on cluster array
CN1926839A (en) Two parallel engines for high speed transmit IPSEC processing
CN109714292A (en) The method and apparatus of transmitting message
CN103581683A (en) Jpeg image encryption transmission method
EP3413533A1 (en) Data transmission method and server
CN107528923B (en) Data transmission method of network adapter and network adapter
EP1687998A1 (en) Method and apparatus to inline encryption and decryption for a wireless station
US20060120400A1 (en) Bidirectional communication control apparatus, terminal apparatus, and bidirectional communication control method
KR102095911B1 (en) Digital content protection over audio return data link
JP4199477B2 (en) Digital bidirectional communication control apparatus and method
CN114205135A (en) TS stream processing method and TS stream processing system of decryption device
KR101457455B1 (en) Apparatus and method for data security in cloud networks
KR20120043364A (en) High performance network equipment with a fuction of multi-decryption in ssl/tls sessions' traffic and data processing method of the same
CN114697051B (en) Method, device and system for safely transmitting data
JP2693881B2 (en) Cryptographic processing apparatus and method used in communication network
CN111221764B (en) Cross-link data transmission method and system
US20110026707A1 (en) Communication apparatus
EP1404084A2 (en) Network relay device, communication device and network relay method
US8213450B2 (en) Communication apparatus
CN117560226B (en) Method and device for data transmission through VPN
CN111770099B (en) Data transmission method and device, electronic equipment and computer readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination