A data exchange system based on GB35114 standard on network gate equipment

By implementing the GB35114 standard unilateral proxy and dynamic proxy functions on the network gate equipment, combining identity authentication and data encryption and decryption, the problem of difficult data exchange implementation and insufficient security in the existing technology is solved, and efficient and secure A is achieved , B and C level data exchange, suitable for docking between different video manufacturers.

CN118659919BActive Publication Date: 2024-12-03SHANDONG ZHONGWANG YUNAN INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411102935.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-13
Publication Date
2024-12-03
Estimated Expiration
2044-08-13

AI Technical Summary

Technical Problem

When the prior art realizes data exchange of video platform based on GB35114 standard, there is a problem of difficulty in realizing, repeated wheels and resource consumption, and lacks security authentication and integrity verification, so it is impossible to achieve the three encryption levels of A, B, and C. data exchange at any level.

Method used

The network gate device uses a one-sided proxy method, combined with the GB35114 standard, to realize the signaling proxy module and video code flow dynamic proxy functions, adopt SIP data exchange access proxy to improve the security of data transmission, and through FDWSF, SIP server and The signature public and private keys and encrypted public and private keys of the gateway are authenticated and data encryption and decrypted.

Benefits of technology

It realizes data exchange at any level of encryption levels A, B, and C based on the GB35114 standard on the video boundary, improves the security and adaptability of data transmission, saves CPU resources, and ensures the security of cross-network video exchange. reliability.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present invention belongs to the field of computer software technology, and relates to a data exchange system based on the GB35114 standard on a network gate device. It is divided into an agent module and a link forwarding module. The agent module is used to realize a unilateral agent function, including a data agent function, a data format verification function, a signature verification function, a data encryption and decryption function, a data processing function, and a channel creation function; the agent also stores a signature public key and an encryption public key for subsequent signature verification and data encryption and decryption. The present invention realizes a national secret-level signature verification process and encryption method, realizes signaling interaction of dynamic ports, and improves the security of data transmission. It realizes SIP signaling data interaction and video playback between FDWSF and SIP servers in different network isolation security domains. It can cooperate with most network gates on the market to realize GBT35114 / GBT28181 video protocol data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] The invention belongs to the technical field of computer software and relates to a data exchange system based on GB35114 standard on a network gate device. Background Art

[0002] In actual use, it is necessary to implement data exchange of any level based on the three encryption levels of A, B, and C of the GB35114 standard on the video boundary. In the existing technology, the solution is mostly to implement a complete set of video platforms on the network gate, and realize the exchange of BG35114 data through platform cascading. This solution is not only difficult to implement, but also has the problem of reinventing the wheel. Because the actual conditions of different video manufacturers are different, a lot of adaptation may be required for the docking of different video manufacturers' platforms. In addition, the analysis of signaling and video streams requires relatively high performance of the equipment. In addition, the current existing technology requires registration of internal and external machines of the network gate separately, which consumes more resources. Summary of the invention

[0003] Aiming at the problems existing in data exchange of traditional video platforms, the present invention proposes a new data exchange system based on GB35114 standard on network gateway equipment.

[0004] A network gate is an information security device that uses a solid-state switch read-write medium with multiple control functions to connect two independent host systems. Since the two independent host systems are isolated by the network gate, there is no physical connection, logical connection, or information transmission protocol for communication between the systems, and there is no information exchange based on the protocol, but only non-protocol ferrying in the form of data files. Therefore, the network gate physically isolates and blocks all network connections that have the potential to attack the intranet, making it impossible for external attackers to directly invade, attack, or destroy the intranet, thus ensuring the security of the internal host.

[0005] It is usually necessary to deploy a network gate for video network boundary protection at the boundaries between the video network and other networks, and at the boundaries between upper and lower video networks. Due to the characteristics of the network gate, the network connection between the video network and other network boundaries is physically isolated. The traditional network gate only supports data exchange of the GB / T28181 protocol. The protocol includes two channels, the session channel and the media stream channel. The session channel includes signaling interaction and video session, which is mainly extended based on sip. The streaming media channel is transmitted through RTP / RTCP. The latest version of the transport layer protocol 28181 specification can already support both TCP and UDP. This method of data exchange based on GB / T28181 lacks security checks such as security authentication and integrity verification, and is relatively simple to implement.

[0006] Data exchange based on the GB35114 standard on the network gate device needs to be combined with the identity authentication requirements, integrity verification requirements and video encryption and integrity verification requirements in the GB35114 standard to achieve secure data exchange. Since GB35114 has three security levels, the present invention combines the GB35114 standard and implements the signaling proxy module and video code stream dynamic proxy function based on the GB35114 standard through a unilateral proxy on the network gate, and can achieve data exchange of any level based on the three encryption levels A, B, and C of the GB35114 standard on the video boundary.

[0007] In order to achieve the above object, the present invention is implemented by adopting the following technical solutions:

[0008] The invention is an exchange access proxy for implementing SIP data on a network gate device, which can comply with the three levels A, B and C of GB35114 protocol and the GBT28181 protocol, realizes dynamic port transmission in streaming media data exchange, and improves the security of data transmission.

[0009] In the solution of the present invention, FDWSF represents a front-end device with information security protection functions such as device identity authentication with digital certificates, video signature, video encryption, etc., and is generally used as a subordinate in this system.

[0010] The SIP server represents a central signaling control server with security functions such as device identity authentication based on digital certificates, signaling security, and key distribution. It generally acts as a superior in this system.

[0011] VKEK represents the video key encryption key. The value of VKEK can be obtained by decrypting the cryptkey in the signaling with the agent's own encrypted private key, which is a string.

[0012] Public key and private key: In the modern cryptographic system, encryption and decryption use different keys (public keys), that is, an asymmetric key cryptographic system. Each communicating party needs two keys, namely a public key and a private key, which can be used for mutual encryption and decryption. The public key is public and does not need to be kept confidential, while the private key is held by the individual and must be properly kept and kept confidential.

[0013] Purpose of signature public and private keys: In this system, sign is the keyword for signature and signature verification.

[0014] Purpose of encrypting public and private keys: In this system, cryptkey is the value of VKEK encrypted with the private key and encoded in Base64.

[0015] The present invention is divided into a proxy module and a link forwarding module according to the module division. In the actual application of the network gate, the proxy module and the link forwarding module are deployed in the internal and external machines of the network gate. Take the example that the video network is connected to the external machine of the network gate, and the video monitoring security management platform is connected to the internal machine of the network gate. The video network has an FDWSF, and the video monitoring security management platform is a SIP server. At this time, the FDWSF, the SIP server, and the external machine of the network gate all have their own set of signature public and private keys and encryption public and private keys. The FDWSF and the SIP server need to import the signature public key and encryption public key of the external machine of the network gate. The external machine of the network gate needs to import the signature public key and encryption public key of the FDWSF and SIP server. The external machine of the network gate is connected to the FDWSF and can communicate with each other, and the internal machine of the network gate is connected to the SIP server and can communicate with each other. The network gate only needs to start the proxy module of the external machine, receive the SIP data sent by FDWSF or other video surveillance security management platforms (this platform is also equivalent to the lower-level platform) and perform corresponding processing. The internal machine of the network gate only needs to start the link forwarding module to receive the data transmitted by the proxy module of the external machine of the network gate and connect to the corresponding video surveillance security management platform for data interaction and transmit the interactive data back to the proxy module. If the video network is connected to the internal machine of the network gate, and the video surveillance security management platform is connected to the external machine of the network gate, the internal and external machines can be interchanged.

[0016] Agent module: mainly realizes the unilateral agent function, divided by function, including data agent, data format verification, signature verification, data encryption and decryption, data processing, channel creation and other functions. The agent needs to generate signature public and private keys and encryption public and private keys, and provide the public keys to FDWSF and SIP server respectively. The signature public key and encryption public key of FDWSF and SIP server also need to be stored in the agent for subsequent signature verification and data encryption and decryption.

[0017] The data proxy function mainly starts a monitoring port for monitoring the transmission data on this port. In the invention, the SIP signaling data is mainly monitored. The commonly used port is 5060, and it can also be set to other ports according to actual usage.

[0018] The data format verification function mainly performs the first round of format verification on the SIP signaling data received by the data proxy, requiring that the received data must comply with the signaling format of GB / T28181 or GB35114. This verification module mainly uses regular expressions to perform fast format verification, and discards the received data that does not comply with the national standard, and only processes and forwards the data that complies with the national standard.

[0019] The signature and verification functions are mainly used when the SIP server authenticates FDWSF. They are divided into one-way authentication and two-way authentication. The one-way authentication mainly implements whether the digital signature of the random number R1 generated by the SIP server, the random number R2 generated by FDWSF and the SIP server ID is valid after receiving the REGISTER request sent by FDWSF. By using the signature public key of FDWSF to verify, if the sign1 verification is successful, it proves that the FDWSF identity is legal, otherwise the data will be discarded and a denial of service response will be sent to FDWSF. Based on the success of the one-way authentication verification, the two-way authentication receives the 200 OK message sent by the SIP server. If the message body contains sign2, it proves that it is a two-way authentication. It is necessary to verify whether R1+R2+FDWSFid+cryptkey uses the SIP server signature public key to verify successfully. If the verification is successful, it proves that the SIP server identity is legal. If the verification fails, a denial of service response will be sent. This signature verification function is required in GB35114 A, B, and C levels.

[0020] The data encryption and decryption function is mainly used to obtain the value of VKEK. After the identity authentication is successful, the 200 OK message body contains cryptkey. The VKEK can be obtained by decrypting it with the proxy's own encrypted private key. When playing video on demand, the SIP server will return a 200 OK data packet containing a=vkek <version><Space> <encryptedvkek>,At this time, the agent's own encryption private key is also needed for decryption. vkek is required in GB35114 A, B, and C levels.

[0021] The data processing function is a module that replaces data content in the proxy. It mainly replaces and processes the message body content in REGISTER messages, registration 200 OK signaling, control signaling (after successful registration, when the signaling sender and the signaling receiver interact, a key-based hashing method is used to ensure the security of the signaling source. The control signaling here refers to other signaling after the registration is completed.), and video encryption playback signaling. Because we use the proxy mode to forward data, we need to process the key IP information such as From and To in GB / T28181 (the proxy of GB / T28181 only needs to process the replacement of IP information, so the examples below are all information that needs additional processing in GB35114.), and the SIP server IP and FDWSF IP in all signaling need to be replaced so that the message can be forwarded through the proxy. The following examples are information that needs additional processing in addition to IP information.

[0022] In the REGISTER message body, you need to use the gatekeeper's signature private key to digitally sign random2+random1+SIP server id and replace the sign1 value.

[0023] For the registration 200 OK signaling, when the 200 OK signaling is received and the content contains cryptkey, the cryptkey in the 200 OK signaling returned by the SIP server needs to be replaced. The replacement method refers to the data encryption and decryption function, and the proxy's own encryption private key is used to decrypt to obtain VKEK, cache this VKEK, and use the public key provided by FDWSF to encrypt this VKEK and replace the cryptkey in the message body. If the message body also contains sign2, it is a two-way identity authentication. At this time, it is also necessary to use the signature private key of the network gate to sign random1+random2+deviceid+cryptkey and replace the sign2 value.

[0024] In the control signaling, because GB35114 has an authentication for the control signaling, in the data processing module, it is necessary to use a hashing algorithm to perform a hashing operation on METHOD, From, To, Call ID, Date, VKEK and the message body, and replace the generated data with the value in the nonce in the SIP signaling. Otherwise, when the signaling interaction is performed between the FDWSF and the SIP server, the signaling will be considered illegal. Among them, METHOD refers to the operation method of the signaling, such as REGISTER, MESSAGE, INVITE, etc. From, To, Call ID, and Date are the values ​​of the subsequent strings corresponding to these keywords in the signaling. Vkek is the cached vkek value. The message body is generally the xml message that follows the signaling, and the length is the value after Content-Length. All the strings obtained above are concatenated and the value of SM3 is calculated to replace the nonce.

[0025] In the video on demand signaling, the SIP message body METHOD is 200 OK, and the content contains a=vkek <version><Space> <encryptedvkek>This indicates that this is a C-level encrypted video on demand signaling, and the a=vkek in the 200 OK signaling returned by the SIP server needs to be <version><Space> <encryptedvkek>The VKEK value in the message is decrypted using the proxy's own private encryption key, and then the VKEK is encrypted using the public key provided by the FDWSF and the encryptedVKEK value is replaced. Otherwise, after receiving the message, the FDWSF will verify that it is illegal and refuse to receive it. The video on demand signaling replacement can realize the GB35114 C-level authentication function.

[0026] The channel creation function is to obtain the RTP interaction port between the FDWSF and the SIP server in the INVITE signaling, and open the video interaction channel through the dynamic proxy function of the network gate to realize the video playback function.

[0027] Link-end forwarding module: receives data transmitted from the agent-end module through the network gate isolation module, directly connects to the video surveillance security management platform within the boundary, and forwards data transmitted from the agent-end module and the video surveillance security management platform.

[0028] The patent of this invention creatively proposes a unilateral proxy that meets the GB35114 protocol. The advantage is that the CPU resource utilization rate of the network gate is not high, which saves more resources. When connecting with different video manufacturers, it has higher adaptability. The present invention also realizes the release of dynamic ports of video code streams, which is safer and more reliable in cross-network video exchange.

[0029] Compared with the prior art, the advantages and positive effects of the present invention are:

[0030] The patent of this invention not only uses the national secret level signature verification process and encryption method, but also realizes the signaling interaction of dynamic ports, improving the security of data transmission. By realizing the proxy and signaling processing of GB35114 signaling in a unilateral proxy, combined with the physical isolation and dynamic port release functions of the network gate, the SIP signaling data interaction and video playback functions between FDWSF and SIP server in different network isolation security domains are realized. The implementation method of the present invention can be adapted to the ChinaNet Security Isolation Network Gate System (abbreviated as X-GAP-FT V7.0) and can also cooperate with most network gates on the market to realize GBT35114 / GBT28181 video protocol data transmission. DETAILED DESCRIPTION

[0031] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described below in conjunction with specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0032] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways than those described herein. Therefore, the present invention is not limited to the specific embodiments of the following disclosure.

[0033] Example 1

[0034] The system provided in this embodiment uses an asymmetric cryptographic algorithm and a cryptographic hash algorithm approved by the national cryptographic administration agency, and the algorithm is implemented using a secure cryptographic product approved by the national cryptographic administration agency.

[0035] The algorithms and their usage are as follows.

[0036] a) The asymmetric cryptographic algorithm uses the SM2 elliptic curve cryptographic algorithm for identity authentication, digital signature, key negotiation, etc.

[0037] b) The password hash algorithm uses the SM3 password hash algorithm for integrity verification. The SM3 algorithm of the national secret algorithm is equivalent to calculating the MD5 value.

[0038] The system uses a digital certificate system based on asymmetric cryptographic algorithms to implement security functions such as user identity authentication, front-end device authentication, server device authentication, and authentication between management platforms. Digital certificates can be issued for users, front-end devices, server devices, and management platforms. The specific certificate types are as follows.

[0039] a) User certificate: used to authenticate the user's identity.

[0040] b) Front-end device certificate: used for front-end device identity authentication and digital signature of video data generated by the device.

[0041] c) Server device certificate: used for server device identity authentication.

[0042] d) Management platform certificate: used for identity authentication of the management platform.

[0043] The system's keys are divided into asymmetric keys and symmetric keys. Asymmetric keys include signature public and private keys and encryption public and private keys of functional entities in the management platform, FDWSF signature public and private keys, and user terminal signature public and private keys with security functions. Symmetric keys include video key encryption keys, video encryption keys, etc. This system only uses asymmetric keys.

[0044] According to the strength of security protection, the security capabilities of FDWSF are divided into three levels, from weak to strong: A, B, and C.

[0045] Level A should achieve the goal of true identity based on the ability of two-way identity authentication between digital certificates and management platforms.

[0046] Class B should have the ability to perform two-way identity authentication based on digital certificates and management platforms and the ability to sign video data, so as to ensure that the identity is authentic and the video comes from a real device, and be able to verify whether the video content has been tampered with.

[0047] Class C should have the ability of two-way identity authentication based on digital certificates and management platforms, video data signing and video data encryption, to ensure that the identity is authentic and the video comes from real devices, to verify whether the video content has been tampered with, and to achieve the goal of encrypting and protecting the video content.

[0048] The patent of the present invention is divided into modules, which are agent-side modules and link-side forwarding modules. In the actual application of the network gate, the agent-side module and the link-side forwarding module are deployed in both the internal and external machines of the network gate. Taking the example of the video network being connected to the external machine of the network gate and the video surveillance security management platform being connected to the internal machine of the network gate, the video network has an FDWSF, and the video surveillance security management platform is a SIP server. At this time, the FDWSF, the SIP server, and the external machine of the network gate all have their own set of signature public and private keys and encryption public and private keys. The FDWSF and the SIP server need to import the signature public key and encryption public key of the external machine of the network gate. The external machine of the network gate needs to import the signature public key and encryption public key of the FDWSF and SIP server. The external machine of the network gate is connected to the FDWSF and can communicate with each other, and the internal machine of the network gate is connected to the SIP server and can communicate with each other. The gateway only needs to start the proxy module of the external machine, receive the SIP data sent by FDWSF or other video surveillance security management platforms and perform corresponding processing. The internal machine of the gateway only needs to start the link forwarding module to receive the data transmitted by the proxy module of the external machine of the gateway and connect to the corresponding video surveillance security management platform for data interaction and transmit the interactive data back to the proxy module. If the video network is connected to the internal machine of the gateway, and the video surveillance security management platform is connected to the external machine of the gateway, the internal and external machines can be interchanged.

[0049] Agent module: mainly realizes the unilateral agent function, divided by function, including data agent, data format verification, signature verification, data encryption and decryption, data processing, channel creation and other functions. The agent needs to generate signature public and private keys and encryption public and private keys, and provide the public keys to FDWSF and SIP server respectively. The signature public key and encryption public key of FDWSF and SIP server also need to be stored in the agent for subsequent signature verification and data encryption and decryption.

[0050] The data proxy function mainly starts a listening port to monitor the transmission data on this port. In this patent, the main monitoring is SIP signaling data. The commonly used port is 5060, and it can also be set to other ports according to the actual usage of the customer.

[0051] The data format verification function is mainly to perform the first round of format verification on the SIP signaling data received by the data proxy. The received data needs to comply with the signaling format requirements of GB / T28181 or GB35114. This verification module mainly uses regular expressions to perform fast format verification. The received data that does not comply with the national standard will be discarded, and only the data that complies with the national standard will be processed and forwarded.

[0052] The signature and verification functions are mainly used when the SIP server authenticates FDWSF. It is divided into one-way authentication and two-way authentication. The one-way authentication mainly implements whether the digital signature of the random number R1 generated by the SIP server, the random number R2 generated by FDWSF and the SIP server ID is valid after receiving the REGISTER request sent by FDWSF. By using the public key of FDWSF to verify, if the sign1 is successfully verified, it proves that the FDWSF identity is legal, otherwise the data will be discarded and a denial of service response will be sent to FDWSF. Based on the successful verification of the one-way authentication, the two-way authentication receives the 200 OK message sent by the SIP server. If the message body contains sign2, it proves that it is a two-way authentication. It is necessary to verify whether R1+R2+FDWSFid+cryptkey uses the SIP server signature public key to verify successfully. If the verification is successful, it proves that the SIP server identity is legal. If the verification fails, a denial of service response will be sent. This signature verification function is required in GB35114 A, B, and C levels. Here, sign2 is a keyword in the registration signaling. If the sign2 keyword is included, it proves that this registration message is a two-way authentication registration, and two-way authentication registration processing is required.

[0053] The data encryption and decryption function is mainly used to obtain the value of VKEK. After the identity authentication is successful, the 200 OK message body contains cryptkey. The VKEK can be obtained by decrypting it with the proxy's own encrypted private key. When playing video on demand, the SIP server will return a 200 OK data packet containing a=vkek <version><Space> <encryptedvkek>,At this time, the agent's own encrypted private key is also needed for decryption. VKEK is required in GB35114 A, B, and C levels.

[0054] The data processing function mainly replaces and processes the message content in the REGISTER message, registration 200 OK signaling, control signaling, and video encryption playback signaling. Because we use the proxy mode to forward data, we need to process the key IP information such as From and To in GB / T28181. The SIP server IP and FDWSF IP in all signaling need to be replaced so that the message can be forwarded through the proxy. The following example shows the information that needs to be processed in addition to the IP information.

[0055] In the REGISTER message body, you need to use the gatekeeper's signature private key to digitally sign random2+random1+SIP server id and replace the sign1 value.

[0056] For the registration 200 OK signaling, when the 200 OK signaling is received and the content contains cryptkey, the cryptkey in the 200 OK signaling returned by the SIP server needs to be replaced. The replacement method refers to the data encryption and decryption function, and the proxy's own encryption private key is used to decrypt to obtain VKEK, cache this VKEK, and use the public key provided by FDWSF to encrypt this VKEK and replace the cryptkey in the message body. If the message body also contains sign2, it is a two-way identity authentication. At this time, it is also necessary to use the signature private key of the network gate to sign random1+random2+deviceid+cryptkey and replace the sign2 value.

[0057] In the control signaling, because GB35114 will have an authentication for the control signaling, in the data processing module, it is necessary to use a hash algorithm to perform a hash operation on METHOD, From, To, Call ID, Date, VKEK and the message body, and replace the generated data with the value in the nonce in the SIP signaling. Otherwise, when the signaling interaction is carried out between the FDWSF and the SIP server, the signaling will be identified as illegal signaling.

[0058] In the video on demand signaling, the SIP message body METHOD is 200 OK and the content contains a=vkek <version><Space> <encryptedvkek>This indicates that this is a C-level encrypted video on demand signaling, and the a=vkek in the 200 OK signaling returned by the SIP server needs to be <version><Space> <encryptedvkek>The VKEK value in the message is decrypted using the proxy's own private encryption key, and then the VKEK is encrypted using the public key provided by the FDWSF and the encryptedVKEK value is replaced. Otherwise, after receiving the message, the FDWSF will verify that it is illegal and refuse to receive it. The video on demand signaling replacement can realize the GB35114 C-level authentication function.

[0059] The channel creation function is to obtain the RTP interaction port between the FDWSF and the SIP server in the INVITE signaling, and open the video interaction channel through the dynamic proxy function of the network gate to realize the video playback function.

[0060] Link-end forwarding module: receives data transmitted from the agent-end module through the network gate isolation module, directly connects to the video surveillance security management platform within the boundary, and forwards data transmitted from the agent-end module and the video surveillance security management platform.

[0061] Take FDWSF as the lower level, connected to the external machine of the network gate, and the external machine of the network gate starts the proxy module; SIP server is the upper level, connected to the internal machine of the network gate, and the internal machine starts the link forwarding module. The data processing flow is introduced as follows.

[0062] 1. The subordinate initiates registration to the superior through the network gate. By connecting to the proxy, the proxy can obtain all data traffic. First, all traffic will pass the data format verification function. This function has built-in national standard regular expressions. Through regular methods, illegal data streams can be filtered out and directly discarded. This not only meets the rigor of the national standard, but also blocks some illegal data access and avoids malicious attacks.

[0063] 2. Legitimate signaling will first replace key IP information such as From and To through the data processing function.

[0064] 3. When the proxy receives the sip signaling of the REGISTER header, it is a registration message sent by the subordinate to the superior. At this time, the signature verification function will be called to verify the sign1 value using the public key of FDWSF. After the signature verification is legal, it proves that this registration message is a real FDWSF registration message. When the signature verification is legal, the data processing function is called to recalculate the sign1 value using the signature private key of the network gate and replace the sign1 value in the message body. When receiving the 200 OK message sent by the SIP server, if the message body contains sign2, it is a two-way identity authentication. In addition to verifying sign2 with the SIP server signature public key, it is also necessary to sign random1+random2+deviceid+cryptkey with the signature private key of the network gate and replace the sign2 value.

[0065] 4. When receiving the 200 OK signaling, if the content contains cryptkey, the data encryption and decryption function is called to obtain and cache the VKEK value. The data processing function needs to be called to replace the corresponding data value. Please refer to the data processing function description. The content contains a=vkek <version><Space> <encryptedvkek>, it is encrypted video on demand signaling, then the data processing function is called to replace the encryptedVKEK value.

[0066] 5. When the received control signaling contains Date and nonce, it means that the signaling needs to be authenticated. At this time, the data processing function is called to replace the nonce value through calculation. Otherwise, the superiors and subordinates will consider the signaling to be illegal and will not receive it.

[0067] 6. When the INVITE signaling is received, the RTP interaction port between the FDWSF and the SIP server is cached, and the dynamic proxy function of the network gate is called to open the video interaction channel. When all the video-on-demand signaling is forwarded, the superiors and subordinates can play the video through the video interaction channel opened by the network gate.

[0068] Take FDWSF as the lower level, connect to the internal machine of the network gate, the internal machine of the network gate starts the proxy module, SIP server as the upper level, connect to the external machine of the network gate, the external machine starts the link forwarding module, then the above operation process can be interchanged between the internal and external machines.

[0069] The above description is only a preferred embodiment of the present invention and does not limit the present invention in other forms. Any technician familiar with the profession may use the technical content disclosed above to change or modify it into an equivalent embodiment with equivalent changes and apply it to other fields. However, any simple modification, equivalent change and modification made to the above embodiment based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the protection scope of the technical solution of the present invention.< / encryptedvkek> < / version> < / encryptedvkek> < / version> < / encryptedvkek> < / version> < / encryptedvkek> < / version> < / encryptedvkek> < / version> < / encryptedvkek> < / version> < / encryptedvkek> < / version>

Claims

1. A data exchange system based on GB35114 standard on a network gate device, It is characterized in that The system includes a SIP server, a FDWSF, and a network gate. The network gate includes an internal network gate machine and an external network gate machine. The external network gate machine is connected to the FDWSF, and the internal network gate machine is connected to the SIP server. The internal network gate machine and the external network gate machine are also deployed with an agent module and a link end forwarding module. The link end forwarding module of the internal network gate machine is used to receive data transmitted from the agent module of the external network gate machine through the network gate, directly connect to the SIP server, and forward data transmitted from the agent module and the SIP server. The proxy module is used to implement unilateral proxy functions, including data proxy function, data format verification function, signature verification function, data encryption and decryption function, data processing function, and channel creation function; the proxy can generate a signature public key, a signature private key, an encryption public key, and an encryption private key, and provide the signature public key and the encryption public key to the FDWSF and SIP server respectively, and store the signature public key and the encryption public key of the FDWSF and SIP server to the proxy for subsequent signature verification and data encryption and decryption; Among them, the data proxy function is to start the monitoring port to monitor the SIP signaling data transmitted on the port; The data format verification function performs the first round of format verification on SIP signaling data to verify whether the SIP signaling data complies with the requirements of GB / T28181 or GB35114. The data that does not meet the standards will be discarded and the data that meets the standards will be forwarded. The signature verification function is used by the SIP server to authenticate FDWSF. It includes one-way authentication and two-way authentication. The one-way authentication is used to receive the REGISTER request sent by FDWSF to check whether the digital signature sign1 of the random number R1 generated by the SIP server, the random number R2 generated by FDWSF and the ID of the SIP server is valid. By using the signature public key of FDWSF to verify, if the sign1 verification succeeds, it proves that the identity of FDWSF is legal, and the SIP server sends a 200 OK message; otherwise, the data is discarded and a denial of service response is sent to FDWSF; based on the success of the one-way authentication verification, the two-way authentication receives the 200 OK message sent by the SIP server to verify whether the R1+R2+FDWSF id+cryptkey verification is successful using the SIP server signature public key. If the verification succeeds, it proves that the identity of the SIP server is legal; if the verification fails, a denial of service response is sent; The data encryption and decryption function is used to obtain the cryptkey contained in the 200 OK message after verifying the legality of the SIP server identity, decrypt it with the proxy's own encryption private key, and obtain VKEK, where VKEK represents the video key encryption key; Data processing function, used for data processing and replacement, so that messages can be forwarded through the proxy module; The channel creation function is to obtain the RTP interaction port between the FDWSF and the SIP server in the INVITE signaling, and through the dynamic proxy function of the network gatekeeper, open the video interaction channel to realize the video playback function.

2. According to the data exchange system based on GB35114 standard on the network gate device of claim 1, It is characterized in that The data format verification function module uses regular expressions to perform format verification.

3. According to the data exchange system based on GB35114 standard on the network gate device of claim 1, It is characterized in that The signature verification function is required in levels A, B and C of GB35114.

4. According to the data exchange system based on GB35114 standard on the network gate device of claim 1, It is characterized in that The messages processed by the data processing function include REGISTER messages, registration 200 OK signaling, control signaling, and replacement of the SIP server IP and the FDWSF IP in the video encryption playback signaling; In the REGISTER message, the gatekeeper's signature private key needs to be used to digitally sign random2+random1+SIP server ID and replace the sign1 value. For the registration 200 OK signaling, when a 200 OK signaling is received and the content contains cryptkey, the cryptkey in the 200 OK signaling returned by the SIP server needs to be replaced. The replacement method refers to the data encryption and decryption function. The proxy's own encryption private key is used to decrypt to obtain VKEK, cache this VKEK, and use the public key provided by FDWSF to encrypt this VKEK to replace the cryptkey in the message body; if the message body also contains sign2, it is a two-way identity authentication. At this time, the signature private key of the network gate also needs to be used to sign random1+random2+deviceid+cryptkey to replace the sign2 value; In the control signaling, in the data processing module, a hashing algorithm needs to be used to perform a hashing operation on METHOD, From, To, Call ID, Date, VKEK and the message body, and the generated data replaces the value in the nonce in the SIP signaling; In the video encryption playback signaling, the SIP message body METHOD is 200 OK, and the content contains a=vkek <version><space> <encryptedvkek>This indicates that this is a C-level encrypted video on demand signaling, and the a=vkek in the 200 OK signaling returned by the SIP server needs to be <version><Space> <encryptedvkek> The VKEK value in the proxy is decrypted using the proxy's own encryption private key, and then the VKEK is encrypted using the public key provided by FDWSF and the encryptedVKEK value is replaced. The video on demand signaling replacement can achieve GB35114 C-level authentication function.< / encryptedvkek> < / version> < / encryptedvkek> < / version>