Regional content copyright protection-based OTT set top box implementation method

Through user registration, regional tag binding and hardware authentication combined with SSL encryption and VPN technology, the shortcomings of OTT set-top boxes in regional copyright protection are solved, accurate geographical area verification and data security are achieved, and content is ensured that only in authorized areas are available. In-house playback improves copyright management capabilities.

CN118945401APending Publication Date: 2024-11-12HENAN ZHONGGUANG INTELLIGENT MEDIA TECH CO LTD

Patent Information

Application Number
CN202410999719.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

The existing OTT set-top boxes have limitations in regional copyright protection, which are easily bypassed or misjudged, and cannot fully meet the copyright owner's strict requirements on regional restrictions, and there are problems with data transmission security and equipment uniqueness.

Method used

Through user registration and identity authentication, regional tag binding, regional copyright marking control, device startup and authentication process, combined with hardware authentication, geolocation verification and data encryption transmission, SSL encryption protocol and VPN technology are used to ensure that users are only in the authorized area Access content within.

Benefits of technology

It realizes the effectiveness and accuracy of geographic area verification, ensures the security of user data transmission and the uniqueness of equipment, improves content protection and copyright management capabilities, and prevents unauthorized access and replication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945401A_ABST
    Figure CN118945401A_ABST
Patent Text Reader

Abstract

The invention relates to an implementation method of an OTT set top box based on regional content copyright protection, which comprises the OTT set top box and comprises the following steps: step 1, user registration and identity authentication; step 2, binding of area labels: a system obtains geographical area information of a user and binds the geographical area information with a user account; step 3, regional copyright marking control: performing regional copyright marking on the video content at the server side; step 4, content access request processing control: when the user requests to access the video content, the system checks the matching condition of the user area label and the video area copyright label; step 5, equipment starting and authentication process, namely authorization and control: according to a matching result, determining whether to authorize the user to access the video content so as to realize regional copyright protection; the method has the advantages of improving regional copyright protection effectiveness, enhancing data transmission security, ensuring equipment uniqueness and authentication reliability, and improving content protection and copyright management capabilities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of OTT set-top boxes, and in particular relates to an implementation method of an OTT set-top box based on regional content copyright protection. Background Art

[0002] With the popularity of Internet video services, OTT set-top boxes have become a common device for home entertainment. These devices provide users with rich video content through the Internet, including live TV, on-demand movies, etc. However, copyright protection issues are becoming more and more prominent, especially when the copyright holder of the video content has strict restrictions on the playback area. How to ensure that the content is only played in the authorized area becomes an important technical challenge. Existing technologies include: IP address restriction, VPN (virtual private network) technology and smart DNS service, etc., but the disadvantages of IP address restriction are: 1) IP address spoofing: users can disguise their IP addresses through proxy servers, VPNs, etc. to bypass geographic restrictions; 2) Accuracy issues: The geolocation accuracy of IP addresses is not high, which may lead to misjudgment; 3) Dynamic IP issues: Some users use dynamic IP addresses, resulting in unstable geographic location detection; Disadvantages of VPN technology: 1) Resource consumption: VPN connections require a lot of network resources and computing resources, which may affect the quality and speed of video playback; 2) ) High cost: high-quality VPN services usually require users to pay extra fees; 3) Risk of being blocked: some video service providers will actively detect and block VPN servers, resulting in users being unable to access content; Disadvantages of smart DNS services: 1) Strong dependence: users need to rely on third-party DNS services, and there is a risk of service interruption; 2) Security issues: smart DNS services may pose a threat to user privacy and data security; 3) Difficulty in bypassing: similar to IP address restrictions, users can bypass the geographic location restrictions of smart DNS services in a variety of ways; Overall, existing geographic location restriction technologies have certain limitations in dealing with regional copyright protection, are easily bypassed or misjudged, and cannot fully meet the copyright holders' strict requirements for regional restrictions; Therefore, it is very necessary to provide an implementation method for OTT set-top boxes based on regional content copyright protection to improve the effectiveness of regional copyright protection, enhance data transmission security, ensure device uniqueness and authentication reliability, and enhance content protection and copyright management capabilities. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings of the prior art and to provide an implementation method of an OTT set-top box based on regional content copyright protection, which improves the effectiveness of regional copyright protection, enhances the security of data transmission, ensures device uniqueness and authentication reliability, and improves content protection and copyright management capabilities.

[0004] The object of the present invention is achieved by: an implementation method of an OTT set-top box based on regional content copyright protection, the implementation method comprising the following steps:

[0005] Step 1: User registration and identity authentication: The user provides identity information for registration and performs identity authentication through various verification methods;

[0006] Step 2: Binding of regional tags: The system obtains the user's geographical area information and binds it to the user account;

[0007] Step 3: Regional copyright tag control: On the server side, perform regional copyright tagging on video content;

[0008] Step 4: Content access request processing control: When a user requests to access video content, the system checks the match between the user region tag and the video regional copyright mark;

[0009] Step 5: Device startup and authentication process, namely authorization and control: Based on the matching results, decide whether to authorize the user to access the video content to achieve regional copyright protection.

[0010] The step 1 comprises the following steps:

[0011] Step 1.1: User registration: When using the app for the first time, users need to register and provide identity information to create a user account;

[0012] Step 1.2: Identity authentication: The system authenticates the user's identity in a variety of ways to ensure the authenticity and legitimacy of the user's information.

[0013] The step 2 comprises the following steps:

[0014] Step 2.1: Regional information acquisition: Based on the address information provided by the user, the system automatically obtains the user's geographic region tag;

[0015] Step 2.2: Regional tag binding: Bind the acquired geographic region tag to the user's account and store it in the user database of the server;

[0016] Step 2.3: Before the terminal is sold, the hardware security information generates a HASH code and pairs it with the backend service system to put the device into storage, making it easier for users to verify the device when they activate it.

[0017] The step 3 comprises the following steps:

[0018] Step 3.1: Regional tagging of video content: On the server side, add a regional copyright tag to each video content to indicate the accessible region of the video;

[0019] Step 3.2: User region verification: ① When a user requests to access a certain video content, the system first checks the regional copyright mark of the video content; ② The system reads the regional tag information in the user account and compares it with the regional copyright mark of the video content.

[0020] The step 4 comprises the following steps:

[0021] Step 4.1: Authorize access: If the user's regional tag matches the regional copyright mark of the video content, the system authorizes the user to access the video content;

[0022] Step 4.2: Access Denied: If the user's region tag does not match the regional copyright mark of the video content, the system denies the user access to the video content and prompts the user that the content is not available in his or her region.

[0023] The step 5 comprises the following steps:

[0024] Step 5.1: User request and geographic location verification: When a user requests to play a program, the system obtains the user's IP address through dynamic DNS resolution, and simulates and verifies the user's geographic location through VPN technology; the system establishes a secure connection with the server through SSL encryption protocol to ensure the security of data transmission;

[0025] Step 5.2: Content encryption and decryption: The server encrypts the video program content and generates a corresponding encryption certificate. The set-top box generates a hash by mixing other hardware information with the built-in security chip, generates a certificate, and obtains a token after logging in through the remote server. The token is combined with the hardware key to download the key for content decryption to ensure that only authorized users can watch.

[0026] Step 5.3: Playback control and regional restrictions: Only verified users can start playing content. The system will regularly check the user's geographic location during playback to ensure that the user is always in the authorized area. If it is detected that the user is out of the authorized area, the system will immediately stop playback and prompt the user.

[0027] The SSL encryption protocol provided in step 5.1 protects the integrity and security of data transmission, including asymmetric public key encryption, symmetric public key encryption and hash function, wherein the asymmetric public key encryption adopts the RSA algorithm, the symmetric public key encryption adopts the AES algorithm, and the hash function adopts SHA-256 or SHA-1.

[0028] The dynamic DNS resolution in step 5.1 specifically includes the following steps:

[0029] Step 5.11: The set-top box middleware has several built-in DNS servers, which are the intranet servers of China Mobile, China Unicom, China Telecom, and China Radio and Television. First, confirm which server can be pinged through the ICMP protocol to confirm the operator in advance;

[0030] Step 5.12: Since the intranet IP of the provincial network of major operators is not a national IP plan, you can determine which province the set-top box belongs to after it is started;

[0031] Step 5.13: After the set-top box is successfully bound to the DNS server, it can log in to the VPN server through the regional authentication module to load the link, and finally lock the user's area within the provincial scope.

[0032] The content encryption and decryption in step 5.2 specifically includes the following steps:

[0033] Step 5.21: AES encryption: Assume that the input data block is plaintext = (P0, P1, ..., P 15 ), where each P i is a byte, the key is key=(K0,K1,...,K 15 ), each K i It is also a byte. The encryption process is as follows: ① Key expansion: The key key generates multiple round keys through the key expansion algorithm. Where N r is the number of rounds; ② Initial Round: ③Multi-round encryption Rounds: For each round r = 1, 2, ..., N r -1, perform the following steps: 1) SubBytes: apply a fixed byte replacement table S-box to each byte in state; 2) ShiftRows: perform shift operations on the rows of the matrix state; 3) MixColumns: perform linear permutations on the columns of the matrix state; 4) AddRoundKey: apply the round key K to state (r) XOR operation; ④ Final Round: In the last round N r In the process, the following steps are performed: 1) SubBytes: Apply a fixed byte replacement table S-box to each byte in state; 2) ShiftRows: Shift the rows of the matrix state; 3) AddRoundKey: Apply the round key to state XOR operation; ⑤ Output: ciphertext = state, that is, the encrypted ciphertext;

[0034] Step 5.22: AES decryption: The AES decryption process is the inverse of the encryption process. The same round key is used but the inverse transformation of each round is applied in reverse order. The decryption process is: ① Initial Round: ③Multiple rounds of decryption: For each round r = N r -1,N r -2,...,1, perform the following steps: 1) InvShiftRows: perform inverse shift operations on the rows of the matrix state; 2) InvSubBytes: apply the inverse S-box to each byte in state; 3) AddRoundKey: apply the round key K to state (r) XOR operation; 4) InvMixColumns: reverse linear permutation of the columns of the matrix state; Final Round: In the first round r = 0, perform the following steps: 1) InvShiftRows: reverse shift operation on the rows of the matrix state; 2) InvSubBytes: apply the reverse S-box to each byte in state; 3) AddRoundKey: apply the round key K to state (0) XOR operation; ⑤ Output: plaintext = state, which is the decrypted plaintext.

[0035] An OTT terminal based on regional copyright protection technology includes an OTT set-top box, wherein the OTT set-top box includes a processor, memory, storage, a network interface and a security chip with a unique IC mark; the OTT set-top box is used to execute the above-mentioned implementation method of an OTT set-top box based on regional content copyright protection to achieve regional copyright protection.

[0036] Beneficial effects of the invention: The invention is an implementation method of an OTT set-top box based on regional content copyright protection, especially for protecting and authorizing the playback of copyrighted content in a specific geographical area (such as Henan Province). The invention is mainly used in broadcasting and television broadband networks and their compatibility processing with other operators' broadbands. By combining hardware and software customization, regional copyright protection is achieved to prevent unauthorized copying or dissemination. In use, the method of the invention includes specific processes of hardware authentication, geographic location verification, data encryption transmission, and content request and decryption. The invention has the effectiveness and accuracy of geographic area verification, provides a reliable geographic area verification mechanism, and through hardware identification, dynamic DNS resolution and V PN technology is combined to ensure that the user is actually in the authorized area; the present invention uses the SSL encryption protocol to ensure the integrity and security of user data during transmission to prevent unauthorized access and modification; the present invention is compatible with a variety of broadband networks. The present invention uses Internet compatibility processing, combined with VPN and dynamic DNS resolution, to ensure that no matter what broadband network the user uses, geographic area restrictions can be effectively implemented to prevent unauthorized copying and dissemination of content; the present invention has the uniqueness and security of device authentication; the present invention has the advantages of improving the effectiveness of regional copyright protection, enhancing data transmission security, ensuring device uniqueness and authentication reliability, and improving content protection and copyright management capabilities. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is the overall authentication flow chart of the present invention.

[0038] Figure 2 It is a hardware authentication flow chart of the present invention.

[0039] Figure 3 This is a flow chart of geographic location verification of the present invention.

[0040] Figure 4 The present invention is a flow chart of content decryption and playback.

[0041] Figure 5 This is a data transmission security flow chart of the present invention.

[0042] Figure 6 It is a hardware architecture block diagram of the present invention.

[0043] Figure 7 It is the work flow chart of the present invention. DETAILED DESCRIPTION

[0044] The present invention will be further described below in conjunction with the accompanying drawings.

[0045] Example 1

[0046] like Figure 1-7As shown, an implementation method of an OTT set-top box based on regional content copyright protection includes the following steps:

[0047] Step 1: User registration and identity authentication: The user provides identity information for registration and performs identity authentication through various verification methods;

[0048] In this embodiment, step 1 includes the following steps:

[0049] Step 1.1: User registration: When using the app for the first time, users need to register and provide their identity information (such as name, address, ID number, etc.) to create a user account;

[0050] Step 1.2: Identity authentication: The system authenticates the user's identity through various methods (such as mobile phone verification code, email verification, ID card verification, etc.) to ensure the authenticity and legality of the user information.

[0051] Step 2: Binding of regional tags: The system obtains the user's geographical area information and binds it to the user account;

[0052] In this embodiment, step 2 includes the following steps:

[0053] Step 2.1: Regional information acquisition: Based on the address information provided by the user, the system automatically obtains the user's geographic region label (such as country, province, city, etc.);

[0054] Step 2.2: Regional tag binding: Bind the acquired geographic region tag to the user's account and store it in the user database of the server;

[0055] Step 2.3: Before the terminal is sold, the hardware security information generates a HASH code and pairs it with the backend service system to put the device into storage, making it easier for users to verify the device when they activate it.

[0056] Step 3: Regional copyright tag control: On the server side, perform regional copyright tagging on video content;

[0057] In this embodiment, step 3 includes the following steps:

[0058] Step 3.1: Regional tagging of video content: On the server side, add a regional copyright tag to each video content to indicate the accessible region of the video;

[0059] Step 3.2: User region verification: ① When a user requests to access a certain video content, the system first checks the regional copyright mark of the video content; ② The system reads the regional tag information in the user account and compares it with the regional copyright mark of the video content.

[0060] Step 4: Content access request processing control: When a user requests to access video content, the system checks the match between the user region tag and the video regional copyright mark;

[0061] In this embodiment, step 4 includes the following steps:

[0062] Step 4.1: Authorize access: If the user's regional tag matches the regional copyright mark of the video content, the system authorizes the user to access the video content;

[0063] Step 4.2: Access Denied: If the user's region tag does not match the regional copyright mark of the video content, the system denies the user access to the video content and prompts the user that the content is not available in his or her region.

[0064] Step 5: Device startup and authentication process, namely authorization and control: Based on the matching results, decide whether to authorize the user to access the video content to achieve regional copyright protection.

[0065] In this embodiment, step 5 is specifically as follows: after the device is started, the operating system initializes and loads the necessary driver and application software, the system reads the unique IC mark in the security chip and the unique ID mark of the storage device and the network card, and performs device authentication, including the following steps:

[0066] Step 5.1: User request and geographic location verification: When a user requests to play a program, the system obtains the user's IP address through dynamic DNS resolution, and simulates and verifies the user's geographic location through VPN technology; the system establishes a secure connection with the server through SSL encryption protocol to ensure the security of data transmission;

[0067] In this embodiment, the SSL encryption protocol provided in step 5.1 protects the integrity and security of data transmission, including asymmetric public key encryption, symmetric public key encryption and Hash function (message digest), wherein the asymmetric public key encryption adopts the RSA algorithm: ① Key generation: 1) Select two different large prime numbers p and q; 2) Calculate the modulus n=p×q; 3) Calculate the Euler function φ(n)=(p-1)×(q-1); 4) Select the public key e, so that 1<e<φ(n) and e and φ(n) are mutually prime; 5) Calculate the private key d, so that d×e≡1modφ(n); ② Encryption and decryption: 1) Encryption: C=M e modn, where M is plaintext and C is ciphertext; 2) Decryption: M = C d modn, where M is plaintext and C is ciphertext;

[0068] Symmetric public key encryption uses the AES algorithm: Encryption: C = AES k (M), where M is plaintext; k is the key; C is the ciphertext; decryption: Among them, M is plaintext; k is the key; C is ciphertext; the hash function uses SHA-256 or SHA-1: The mathematical formula of the hash function is: Calculate the message digest: H = Hash (M) is the key, where M is the input message; H is the output fixed-length summary.

[0069] The dynamic DNS resolution in step 5.1 specifically includes the following steps:

[0070] Step 5.11: The set-top box middleware has several built-in DNS servers, which are the intranet servers of China Mobile, China Unicom, China Telecom, and China Radio and Television. First, confirm which server can be pinged through the ICMP protocol to roughly identify the operator;

[0071] Step 5.12: Since the intranet IP of the provincial network of major operators is not a national IP plan, such as 10.0.0.0 / 8, 172.0.0.0 / 8, it is possible to determine which province the set-top box belongs to after it is started;

[0072] Step 5.13: After the set-top box is successfully bound to the DNS server, it can log in to the VPN server through the regional authentication module to load the link, and finally lock the user's area within the provincial scope.

[0073] In this embodiment, the present invention needs to write corresponding codes in the middleware of the set-top box to implement such functions to perform network detection, provincial IP address identification and VPN authentication. The following is a pseudo code example showing how to roughly implement the three steps described:

[0074] 1. Network detection and identification of operators:

[0075]

[0076] 2. Determine the provincial network IP range: ① Mathematical formula description: Assume that there is a matrix M, in which each element M[i][j] represents the information that the IP address segment j belongs to the operator i; ② Matrix construction: The matrix M can be expressed as: M = {M[i][j]1≤i≤N,1≤j≤K}, where N is the number of operators or network service providers; K is the number of IP address segments stored by each operator or network service provider; ③ Concurrent search process: For a given IP address internal_ip, perform the following steps: 1. Calculate the hash value of the IP address: hash_value = Hash(internal_ip), the hash function can be a simple modulus operation; 2. Determine the row index i according to the hash value: i = hash_value%N, indicating the operator to which the IP address may belong; ④ Concurrent search task description: For each concurrent task T k(k=1,2,...,K), the task is responsible for searching the entry in the kth column of the matrix: T k (internal_ip) = {M[i][j]internal_ipmatchersM[i][k]}, where internal_ipmatchersM[i][k] indicates whether internal_ip belongs to IP address segment M[i][k]; ⑤ Consideration of processor time inconsistency: Since the execution order and time allocation of processor time in multiple threads may be different, it is necessary to consider the inconsistency of processor time. In the concurrent search process, the inconsistency of processing time can be evaluated in the following ways: 1) Each task T k Record the start time start_time when execution starts k and end time end_time k ; 2) Calculate the execution time execution_time when the task is completed k =end_time k -start_time k ; 3) Statistics and analysis of the execution time of multiple tasks to evaluate the inconsistency of processor time.

[0077] Identify the approximate range of the province based on the operator's intranet IP address, for example:

[0078]

[0079] To ensure that IPv4 data can be processed efficiently, a public algorithm is used to compress the IP library and store the IP as a digital type: when the IPv4 addresses A, B, C, and D are converted to integers X, the mathematical formula is as follows: X = A × 256 3 +B×256 2 +C×256+D, where A, B, C, and D are the four parts of the IPv4 address, and the value range of each part is 0 to 255;

[0080] Retrieve IP segments: Assume that you want to store an IP segment [start_ip, end_ip], where each IP address x, y, z, w can be converted to an integer ip_int: ip_int = x × 256 3 +y×256 2 +z×256+w, where x, y, z, and w are the four parts of the IP address, ranging from 0 to 255. The multi-server load and multi-threading technology are used to greatly improve the query efficiency;

[0081] 3. VPN authentication and loading link: Regional authentication and loading link are performed through the VPN server to ensure that users do not exceed the provincial scope. This part usually involves the integration and authentication process of the VPN client, which needs to be implemented according to the specific VPN provider's API and configuration: 1) Security considerations: In actual applications, ensure that all network operations and authentication processes are secure, including encrypted data transmission and protection of authentication information; 2) Exception handling: Consider the exception handling mechanism when the network is unstable or the server is unreachable to ensure the stability and reliability of the system; 3) Adaptability: The sample code here is based on Python pseudocode. In actual situations, it needs to be adapted and implemented according to the specific language and environment of the set-top box middleware.

[0082] Regional verification module: obtains the user's geographic location through dynamic DNS resolution, and verifies the user's geographic location in combination with VPN technology. A unique algorithm is used to allow the security module to access the regional verification module to implement data authentication, ensuring that the user is in the authorized area. During the authentication process, the device logs in to the VPN after startup to open a special network tunnel to ensure that the authentication information is transmitted through the VPN tunnel and connected to the intranet authentication server for access. The authentication server is protected by an additional layer of SSL to ensure that communication information is not leaked. Each set-top box device has a built-in RSA public key in the launcher for communication with the authentication server. The relevant device data is encrypted using RSA to generate a unique HASH and encrypted certificate data.

[0083] Step 5.2: Content encryption and decryption: The server encrypts the video program content and generates a corresponding encryption certificate. The set-top box generates a hash by mixing other hardware information with the built-in security chip, generates a certificate, and obtains a token after logging in through the remote server. The token is combined with the hardware key to download the key for content decryption to ensure that only authorized users can watch.

[0084] In this embodiment, step 5.2 is specifically as follows: the program content is encrypted on the server side, and a corresponding encryption certificate is generated. When a user requests to play the content, the OTT set-top box verifies the certificate and decrypts the content through a built-in security chip to ensure that only authorized users can watch it. The program's decryption private key can only be obtained after the user completes the login. Video encryption uses AES128 / 256 encryption for the index part of HLS (M3u8) and 3DES encryption for the MPEGTS data part, including the following steps:

[0085] Step 5.21: AES encryption: Assume that the input data block is plaintext = (P0, P1, ..., P 15 ), where each P iis a byte (8 bits), the key is key=(K0,K1,...,K 15 ), each K i It is also a byte. The encryption process is as follows: ① Key expansion: The key key generates multiple round keys through the key expansion algorithm. Where N r is the number of rounds; ② Initial Round: ③Multi-round encryption Rounds: For each round r = 1, 2, ..., N r -1, perform the following steps: 1) SubBytes: apply a fixed byte replacement table S-box to each byte in state; 2) ShiftRows: perform shift operations on the rows of the matrix state; 3) MixColumns: perform linear permutations on the columns of the matrix state; 4) AddRoundKey: apply the round key K to state (r) XOR operation; ④ Final Round: In the last round N r In the process, the following steps are performed: 1) SubBytes: Apply a fixed byte replacement table S-box to each byte in state; 2) ShiftRows: Shift the rows of the matrix state; 3) AddRoundKey: Apply the round key to state XOR operation; ⑤ Output: ciphertext = state, that is, the encrypted ciphertext;

[0086] Step 5.22: AES decryption: The AES decryption process is the inverse of the encryption process. The same round key is used but the inverse transformation of each round is applied in reverse order. The decryption process is: ① Initial Round: ③Multiple rounds of decryption: For each round r = N r -1,N r -2,...,1, perform the following steps: 1) InvShiftRows: perform inverse shift operations on the rows of the matrix state; 2) InvSubBytes: apply the inverse S-box to each byte in state; 3) AddRoundKey: apply the round key K to state (r)XOR operation; 4) InvMixColumns: reverse linear permutation of the columns of the matrix state; Final Round: In the first round r = 0, perform the following steps: 1) InvShiftRows: reverse shift operation on the rows of the matrix state; 2) InvSubBytes: apply the reverse S-box to each byte in state; 3) AddRoundKey: apply the round key K to state (0) XOR operation; ⑤ Output: plaintext = state, which is the decrypted plaintext.

[0087] Step 5.3: Playback control and regional restrictions: Only verified users can start playing content. The system will regularly check the user's geographic location during playback to ensure that the user is always in the authorized area. If it is detected that the user is out of the authorized area, the system will immediately stop playback and prompt the user.

[0088] In this embodiment, the distributed storage and algorithm of the present invention for video programs are as follows: ① Load balancing calculation: Assuming that there are 10 servers, the storage capacity of each server is 1TB, and the total storage capacity on each server does not exceed 80%, in order to achieve load balancing and ensure that each video program is stored on at least two servers, the following calculations can be performed: 1) Utilization of storage capacity of a single server: The maximum storage capacity of each server is 1TB, that is, C server =1TB; 2) Maximum allowed storage capacity: The maximum allowed storage capacity on each server is 80% utilization, i.e. 0.8×C server = 0.8TB; 3) Maximum available storage capacity: If each video program is stored on at least two servers, considering load balancing, the total number of video programs actually stored on each server needs to be evenly distributed; 4) Load balancing algorithm: Assuming that there are N video programs that need to be stored, calculate the average number of video programs stored on each server Ensure that each video program is stored on at least two servers, i.e.

[0089] ② Load balancing calculation includes the proportion of hot programs: Assuming that hot programs account for 5% of all programs, it is necessary to ensure that hot programs are deployed on each server as much as possible, and considering that their high coverage time does not exceed 72 hours; 1) Calculation of the number of hot programs: Assuming that there are N video programs in total, the number of hot programs is 0.05×N; 2) Average number of hot programs stored: Assuming there are K servers, the average number of hot programs stored on each server is 3) Ensure high coverage of hot programs: The maximum number of hot programs stored on each server is That is, 3×24=72 hours; 4) Calculation of total storage requirement: Total storage requirement of all video programs: Total_Storage_Requirement=N×S video ; Storage requirement for hot programs: Hot_Video_Storage_Requirement = 0.05 × N × S video ; 5) Redundant capacity calculation includes hot programs: Redundant capacity of each video program: 2×S video ; Redundant capacity for each hotspot program: 2×S video Total Redundant Capacity: Total_Redundant_Capacity = (2×N+0.05×N×2)×S video ;

[0090] ③ The minimum link algorithm is used to achieve interface load balancing without considering bandwidth traffic, and the interface uses CDN technology. The minimum link algorithm is: Assume that there are N servers, and the current connection of each server is C1, C2, ..., C N ; 1) Select the server: Select the server with the least number of connections as the target server next =argmin i C i , where C i Indicates the current number of connections to the i-th server; 2) Update the number of connections: When a new request is assigned to a server, update the number of connections to the server; if the request is assigned to the first server next If there are multiple servers, update the number of connections: This ensures that the next request will be assigned to the server with the least current connections, thus achieving load balancing.

[0091] In this embodiment, the working principle and algorithm steps of the present invention are as follows: Figure 1 As shown in the figure, the hardware authentication process is as follows Figure 2 As shown, specifically: Start → Read IC tag and ID mark → Verify device uniqueness → Authentication passed → Enter the system; if the authentication fails, a black screen warning prompt will appear: "Dear user, the network you are using the device on is not within the permitted range";

[0092] The geolocation verification process is as follows Figure 3As shown, specifically: user requests content → obtains user IP → dynamic DNS resolution → simulates geographic location through VPN → verifies regional authorization → regional verification passes → requests to play content; it is worth noting that: ① DNS server: a DNS server (including redundancy) is set up in each operator network, and a dedicated DNS resolution library is configured; ② VPN server: a VPN server (including load balancing mechanism) is set up in each operator network, and users automatically log in to the VPN server through the domain name after passing the DNS resolution; ③ If the authentication fails, a black screen warning prompt will be prompted: "Dear user, the network you are using is not within the allowed range";

[0093] Content decryption and playback process is as follows Figure 4 As shown in the figure, specifically: server encrypts content → set-top box obtains encrypted content and certificate through VPN link combined with Token → content decryption → content playback → regular location verification; data transmission security process is as follows Figure 5 As shown, specifically: user request → SSL encrypted data transmission → server response → data decryption → content playback; in order to describe the user request transmitted to the server through SSL encrypted data, the server decrypts the data and plays the content after responding, the following is a simplified pseudo code framework that shows the basic logic of the entire process: ① Server-side code (example): Since the server code is relatively complex, the server uses the Python Flask framework to demonstrate the logic of receiving and processing user requests, and performs SSL encrypted transmission and data decryption:

[0094]

[0095]

[0096] ②Client code example (assuming Python request): The client uses Python's requests library to send encrypted data requests and processes the server response:

[0097]

[0098]

[0099] In this embodiment, the security of data transmission in the present invention is described for reference and understanding. The present invention uses the SSL encryption protocol to ensure the integrity and security of user data during transmission to prevent unauthorized access and modification: Example code snippet, demonstrating how to use Python language and TLS / SSL library (such as ssl module) to establish a secure connection and transmit data. Please note that this code is only for demonstration purposes and does not fully handle all possible abnormal situations and security best practices;

[0100]

[0101]

[0102] Explanation: 1) Import necessary modules: Use socket and ssl modules to implement network communication and TLS / SSL encryption; 2) Specify server address and port: The server_address variable specifies the server address and port number to be connected (port 443 is used in the example, which is commonly used for HTTPS); 3) Create a normal TCP Socket: Use socket.socket() to create a normal TCP Socket object sock; 4) Wrap the Socket as an SSL Socket: Use the ssl.wrap_socket() method to wrap the ordinary Socket sock as an SSL / TLS secure Socket ssl_sock; 5) Connect to the server: Use the ssl_sock.connect() method to connect to the specified server address and port; 6) Send and receive data: Use the ssl_sock.sendall() method to send encrypted sensitive user data to the server; Use the ssl_sock.recv() method to receive the data returned by the server; 7) Close the connection: Use the ssl_sock.close() method to close the SSL connection.

[0103] To achieve the described function, VPN technology and dynamic DNS resolution are needed to ensure that users are within the geographical area restrictions under different types of broadband networks. The following is a simple sample code framework that uses Python to demonstrate the basic principles of how to combine VPN and dynamic DNS resolution. Please note that this is only a basic example, and the actual implementation will depend on the API and configuration of the specific VPN and DNS resolution service providers:

[0104] 1. Use VPN to connect and manage: Since this solution is based on third-party VPN services and interface codes, the open source OpenVPN is used as the VPN client to connect to the VPN server to simulate the logic of the entire application. In actual applications, it is necessary to install and configure the VPN client and ensure that the VPN server supports geographic area restrictions;

[0105]

[0106]

[0107] 2. Dynamic DNS resolution: Dynamic DNS resolution ensures that no matter what broadband network the user is on, the IP address processed by VPN can be correctly resolved. Here, it is assumed that a simple dynamic DNS resolver function is used to update the DNS record;

[0108]

[0109] 3. Comprehensive application example: Combine VPN connection and dynamic DNS resolution to ensure that DNS records are dynamically updated after users connect to VPN, so that geographic area restrictions can be correctly implemented regardless of the broadband network used by users;

[0110]

[0111]

[0112] The present invention is an implementation method of an OTT set-top box based on regional content copyright protection, including specific processes of hardware authentication, geographic location verification, data encryption transmission, and content request and decryption. In use, the present invention has the effectiveness and accuracy of geographic area verification, provides a reliable geographic area verification mechanism, and ensures that the user is actually located in the authorized area by combining hardware identification, dynamic DNS resolution and VPN technology; the present invention ensures the integrity and security of user data during transmission through the SSL encryption protocol to prevent unauthorized access and modification; the present invention has compatibility with a variety of broadband networks, and the present invention ensures that no matter what broadband network the user uses, geographic area restrictions can be effectively implemented to prevent unauthorized copying and dissemination of content through Internet compatibility processing, combined with VPN and dynamic DNS resolution; the present invention has the uniqueness and security of device authentication; the present invention has the advantages of improving the effectiveness of regional copyright protection, enhancing data transmission security, ensuring device uniqueness and authentication reliability, and improving content protection and copyright management capabilities.

[0113] Example 2

[0114] like Figure 1-7 As shown, an OTT terminal based on regional copyright protection technology includes an OTT set-top box, wherein the OTT set-top box includes a processor, memory, storage, a network interface and a security chip with a unique IC mark; the OTT set-top box is used to execute the above-mentioned implementation method of an OTT set-top box based on regional content copyright protection to achieve regional copyright protection.

[0115] In this embodiment, the IC security chip is integrated with the processor, memory, storage, and network interface to form a complete hardware platform; the hardware identification and unique ID communicate with the main processor through the hardware bus to realize device authentication; the IC security chip has a customized driver, and the launcher calls the information of the IC chip through the driver after startup, and outputs the HASH code for unique identification; ① Processor: A general X86 architecture high-performance processor is used to realize the encryption protection of unicast HLS and multicast MPEGTS video streams, and to transfer tokens and keys to ensure smooth playback of high-definition content and efficient processing of encryption and decryption: 1) The client uses armeabi-v7 / ARM CortexA53 and above processors, which are responsible for the decryption of video programs and access authentication, and ensure execution efficiency to reduce user waiting time; 2) The server can use Intel Xoen or AMD EPYC Processors with more than 12 cores released after 2020 are required to support virtualization technology, and the number of processor cores for database and application servers is higher. The server side can also use a general-purpose X86 architecture high-performance processor to implement encryption protection for unicast HLS and multicast MPEGTS video streams, and to transfer tokens and keys.

[0116] ②Memory: Configure large-capacity memory to support multi-tasking and cache optimization to improve user experience: 1) Client requirements: 1GB or more memory, 2GB or more is recommended; 2) Server: Provincial center server application server requires 32GB or more, database server requires 64GB or more;

[0117] ③ Storage: Use high-speed storage devices to ensure fast data access and program loading. The storage device has a unique ID that can be used for device authentication. In addition, due to the strong performance of SSD, a unique HASH can be quickly generated based on the object of file storage: 1) Client: EMMC and UFS storage, storage generally requires at least 8GB; 2) Server: It is recommended to use u.2SSD as storage as a data persistence exchange environment. For persistent storage data, a more secure Riad5 / 6 / 10 and other technical methods can be used for storage;

[0118] ④ Network interface: equipped with Gigabit Ethernet port and Wi-Fi module, supporting high-speed network connection. The network interface has a unique ID for network device authentication;

[0119] ⑤ Special identification chip: A processor with a built-in security chip or integrated security chip with a unique IC mark, which is used for device uniqueness authentication and data encryption storage. Taking the domestic Hi3798 chip as an example, it is used to store encryption keys and perform encryption calculations. It has a customized security module inside (security module: encapsulates the call of the authentication interface, uses the SSL encryption protocol to ensure data transmission security). This solution can support a variety of integrated chips and independent IC chips; Special ID identification: Both storage devices and network cards are equipped with unique ID identification for device identity authentication and tracking.

[0120] ⑥ Regional copyright protection achieved through hardware: Unique hardware identification: Through the built-in security chip and the unique ID identification of storage devices and network cards, unique authentication of each device is achieved to prevent device cloning and impersonation; Secure encryption chip: Stores and processes encryption keys to ensure secure transmission and storage of data.

[0121] The present invention runs on an embedded operating system based on the Linux kernel, and provides a stable and efficient system operating environment: including an operating system, middleware, and an application platform, supporting dynamic DNS resolution, VPN connection, and SSL encryption, wherein the middleware is: an integrated multimedia playback engine, a network protocol stack, and a security module, supporting decoding and playback of various audio and video formats; the application platform is: an OTT platform: combining hardware identification codes for device authentication and authorization, supporting dynamic DNS resolution and VPN connection, and realizing regional copyright protection.

[0122] In this embodiment, the framework and flow chart of the OTT set-top box: ① Hardware architecture block diagram as shown in Figure 6 As shown, specifically: processor → memory → security chip (unique IC mark) → launcher main program (resident memory) → regional authentication module APK (resident background program); the process is as follows Figure 7 As shown, specifically: device startup → operating system loading → hardware authentication → user request content → geographic location verification → SSL encrypted transmission → obtain encrypted content and certificate → content decryption and playback → regular location verification; that is: startup and authentication: when the device is started, the device is authenticated through hardware identification and ID; geographic location verification: use dynamic DNS resolution to obtain the user's IP address, and simulate the user's geographic location through VPN; data encryption transmission: through the SSL encryption protocol, ensure the security of data during transmission; content request and decryption: when the user requests to play content, the encryption certificate is verified through the security chip, and the program content is decrypted and played.

[0123] The present invention realizes effective verification and control of the user's geographical location, ensuring that the program content is played only in the authorized area, and has the following advantages and positive effects: 1. Improving the effectiveness of regional copyright protection: by combining dynamic DNS resolution, VPN technology and hardware unique identification, accurate verification of the user's actual geographical location is achieved, ensuring that only users in the authorized area (such as Henan Province) can play the content, and regional verification is more accurate and reliable and difficult to be bypassed; 2. Enhanced data transmission security: through the SSL encryption protocol, the security of user data during transmission is ensured to prevent data from being stolen or tampered with; 3. Ensure the uniqueness of the device and the reliability of authentication: use a security chip with a unique IC mark and a special ID mark 4. Improve content protection and copyright management capabilities: Through a multi-level protection mechanism, prevent content from being copied and disseminated without authorization, ensure that only authenticated and authorized users can decrypt and play content, and protect the legitimate rights and interests of copyright holders; 5. Enhance compatibility with a variety of broadband networks: Consider the compatibility of radio and television broadband and other operators' broadband, through Internet compatibility processing, combined with VPN and dynamic DNS resolution, ensure that regional copyright protection can be effectively implemented in different types of broadband network environments; 6. Improve user experience and system performance: Use high-performance processors, large capacity Large amounts of memory and high-speed storage devices ensure smooth playback of high-definition content and efficient operation of the system, significantly improving the user viewing experience; 7. Support flexible content management and authorization mechanisms: Through the OTT platform, flexible content management and authorization mechanisms are supported. Copyright holders can flexibly adjust the authorized area and user rights as needed to provide personalized content services; 8. Adopt unique ID identification, security chip, regional copyright protection mechanism, VPN and SSL combined with hardware IC and unique ID technology, embed unique ID in storage devices and network interfaces, authenticate and authorize when the device is connected and the content is accessed, and prevent unauthorized devices from using copyrighted content; the security chip has a built-in unique IC tag, which is responsible for processing All encryption and decryption operations are carried out, and anti-tampering protection is provided to ensure the integrity and confidentiality of data during transmission and storage; the regional copyright protection mechanism restricts content access through the unique ID and geographic location of the device, and distributes content according to regional copyright rules to ensure that only legitimate users and devices can access the copyrighted content in the specified area; 9. Through VPN and SSL combined with hardware IC and unique ID technology, the terminal hardware is uniquely realized, and a composite encrypted data transmission link is constructed. While ensuring the security of data transmission, it also controls the controllability of user login authentication and authorization in the region, and it is achieved at a low cost; the encryption key of the program content is protected by a composite encrypted link to ensure the security of the program decryption key;10. Regional sales restrictions: Set-top boxes cannot be sold outside the provincial region to ensure the effectiveness of regional copyright protection; Network resource restrictions: Ensure that network resources within the province do not provide services across provinces, reducing export costs; Equipment security: Ensure user interests and prevent equipment from being used in other provinces after being lost or stolen; Data security: Ensure data security during user authentication and user rights acquisition to prevent data leakage and unauthorized access. ;

[0124] In summary, the present invention significantly improves the security of copyrighted content, the reliability of device authentication and the quality of user experience. Its multi-level protection mechanism and flexible content management capabilities provide copyright holders and users with a safer and more efficient solution, and has broad application prospects and significant practical benefits.

[0125] The present invention is an OTT terminal based on regional copyright protection technology, including an OTT set-top box, which solves the shortcomings of existing OTT set-top boxes in geographical copyright protection, ensures that program content is only played within an authorized geographical area (such as Henan Province), and prevents unauthorized copying and dissemination. In use, the set-top box of the present invention can allow authorized users to play on-demand content in Henan Province, while preventing unauthorized copying or dissemination. Since the copyright owner stipulates that the viewing range of the program must be within Henan Province, and the user group can be ensured not to exceed the range within the radio and television broadband, but some communities belong to the broadband cooperation of operators, and Internet compatibility processing is still required. The present invention has the uniqueness and security of device authentication. The present invention ensures the uniqueness and security of each OTT set-top box through a chip with a built-in unique hardware identification code, and prevents the device from being illegally copied and used; the present invention has the advantages of improving the effectiveness of regional copyright protection, enhancing data transmission security, ensuring device uniqueness and authentication reliability, and improving content protection and copyright management capabilities.

Claims

1. A method for implementing an OTT set-top box based on regional content copyright protection, characterized in that: The implementation method comprises the following steps: Step 1: User registration and identity authentication: The user provides identity information for registration and performs identity authentication through various verification methods; Step 2: Binding of regional tags: The system obtains the user's geographical area information and binds it to the user account; Step 3: Regional copyright tag control: On the server side, perform regional copyright tagging on video content; Step 4: Content access request processing control: When a user requests to access video content, the system checks the match between the user region tag and the video regional copyright mark; Step 5: Device startup and authentication process, namely authorization and control: Based on the matching results, decide whether to authorize the user to access the video content to achieve regional copyright protection.

2. The implementation method of an OTT set-top box based on regional content copyright protection as claimed in claim 1, characterized in that: The step 1 comprises the following steps: Step 1.1: User registration: When using the app for the first time, users need to register and provide identity information to create a user account; Step 1.2: Identity authentication: The system authenticates the user's identity in a variety of ways to ensure the authenticity and legitimacy of the user's information.

3. The implementation method of an OTT set-top box based on regional content copyright protection as claimed in claim 1, characterized in that: The step 2 comprises the following steps: Step 2.1: Regional information acquisition: Based on the address information provided by the user, the system automatically obtains the user's geographic region tag; Step 2.2: Regional tag binding: Bind the acquired geographic region tag to the user's account and store it in the user database of the server; Step 2.3: Before the terminal is sold, the hardware security information generates a HASH code and pairs it with the backend service system to put the device into storage, making it easier for users to verify the device when they activate it.

4. The implementation method of an OTT set-top box based on regional content copyright protection as claimed in claim 1, characterized in that: The step 3 comprises the following steps: Step 3.1: Regional tagging of video content: On the server side, add a regional copyright tag to each video content to indicate the accessible region of the video; Step 3.2: User region verification: ① When a user requests to access a certain video content, the system first checks the regional copyright mark of the video content; ② The system reads the regional tag information in the user account and compares it with the regional copyright mark of the video content.

5. The implementation method of an OTT set-top box based on regional content copyright protection as claimed in claim 1, characterized in that: The step 4 comprises the following steps: Step 4.1: Authorize access: If the user's regional tag matches the regional copyright mark of the video content, the system authorizes the user to access the video content; Step 4.2: Access Denied: If the user's region tag does not match the regional copyright mark of the video content, the system denies the user access to the video content and prompts the user that the content is not available in his or her region.

6. The implementation method of an OTT set-top box based on regional content copyright protection as claimed in claim 1, characterized in that: The step 5 comprises the following steps: Step 5.1: User request and geographic location verification: When a user requests to play a program, the system obtains the user's IP address through dynamic DNS resolution, and simulates and verifies the user's geographic location through VPN technology; the system establishes a secure connection with the server through SSL encryption protocol to ensure the security of data transmission; Step 5.2: Content encryption and decryption: The server encrypts the video program content and generates a corresponding encryption certificate. The set-top box generates a hash by mixing other hardware information with the built-in security chip, generates a certificate, and obtains a token after logging in through the remote server. The token is combined with the hardware key to download the key for content decryption to ensure that only authorized users can watch. Step 5.3: Playback control and regional restrictions: Only verified users can start playing content. The system will regularly check the user's geographic location during playback to ensure that the user is always in the authorized area. If it is detected that the user is out of the authorized area, the system will immediately stop playback and prompt the user.

7. The implementation method of an OTT set-top box based on regional content copyright protection as claimed in claim 6, characterized in that: The SSL encryption protocol provided in step 5.1 protects the integrity and security of data transmission, including asymmetric public key encryption, symmetric public key encryption and hash function, wherein the asymmetric public key encryption adopts the RSA algorithm, the symmetric public key encryption adopts the AES algorithm, and the hash function adopts SHA-256 or SHA-1.

8. The implementation method of an OTT set-top box based on regional content copyright protection as claimed in claim 7, characterized in that: The dynamic DNS resolution in step 5.1 specifically includes the following steps: Step 5.11: The set-top box middleware has several built-in DNS servers, which are the intranet servers of China Mobile, China Unicom, China Telecom, and China Radio and Television. First, confirm which server can be pinged through the ICMP protocol to confirm the operator in advance; Step 5.12: Since the intranet IP of the provincial network of major operators is not a national IP plan, you can determine which province the set-top box belongs to after it is started; Step 5.13: After the set-top box is successfully bound to the DNS server, it can log in to the VPN server through the regional authentication module to load the link, and finally lock the user's area within the provincial scope.

9. The implementation method of an OTT set-top box based on regional content copyright protection as claimed in claim 6, characterized in that: The content encryption and decryption in step 5.2 specifically includes the following steps: Step 5.21: AES encryption: Assume that the input data block is plaintext = (P0, P1, ..., P 15 ), where each P i is a byte, the key is key=(K0,K1,...,K 15 ), each K i It is also a byte. The encryption process is as follows: ① Key expansion: The key key generates multiple round keys through the key expansion algorithm. Where N r is the number of rounds; ② Initial Round: ③Multi-round encryption Rounds: For each round r = 1, 2, ..., N r -1, perform the following steps: 1) SubBytes: apply a fixed byte replacement table S-box to each byte in state; 2) ShiftRows: perform shift operations on the rows of the matrix state; 3) MixColumns: perform linear permutations on the columns of the matrix state; 4) AddRoundKey: apply the round key K to state (r) XOR operation; ④ Final Round: In the last round N r In the process, the following steps are performed: 1) SubBytes: Apply a fixed byte replacement table S-box to each byte in state; 2) ShiftRows: Shift the rows of the matrix state; 3) AddRoundKey: Apply the round key to state XOR operation; ⑤ Output: ciphertext = state, that is, the encrypted ciphertext; Step 5.22: AES decryption: The AES decryption process is the inverse of the encryption process. The same round key is used but the inverse transformation of each round is applied in reverse order. The decryption process is: ① Initial Round: ③Multiple rounds of decryption: For each round r = N r -1,N r -2,...,1, perform the following steps: 1) InvShiftRows: perform inverse shift operations on the rows of the matrix state; 2) InvSubBytes: apply the inverse S-box to each byte in state; 3) AddRoundKey: apply the round key K to state (r) XOR operation; 4) InvMixColumns: reverse linear permutation of the columns of the matrix state; Final Round: In the first round r = 0, perform the following steps: 1) InvShiftRows: reverse shift operation on the rows of the matrix state; 2) InvSubBytes: apply the reverse S-box to each byte in state; 3) AddRoundKey: apply the round key K to state (0) XOR operation; ⑤ Output: plaintext = state, which is the decrypted plaintext.

10. An OTT terminal based on regional copyright protection technology, characterized in that: It includes an OTT set-top box, which includes a processor, memory, storage, a network interface and a security chip with a unique IC mark; the OTT set-top box is used to execute an implementation method of an OTT set-top box based on regional content copyright protection as described in any one of claims 1-9 to achieve regional copyright protection.

Citation Information

Patent Citations

  • Method and apparatus for maintaining the concentration of a liquid developing solution, in particular for a developing process using the semi-wet method

    EP0002020A1

Cited By

  • Audio and video content copyright protection method and system

    CN121644854A