CN113286177A - Block chain based distributed video processing system - Google Patents

Block chain based distributed video processing system Download PDF

Info

Publication number
CN113286177A
CN113286177A CN202110846053.5A CN202110846053A CN113286177A CN 113286177 A CN113286177 A CN 113286177A CN 202110846053 A CN202110846053 A CN 202110846053A CN 113286177 A CN113286177 A CN 113286177A
Authority
CN
China
Prior art keywords
node
nodes
service
video
management module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110846053.5A
Other languages
Chinese (zh)
Other versions
CN113286177B (en
Inventor
马保林
赵建立
李伟
姚维久
李厚鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Digibird Technology Co ltd
Original Assignee
Beijing Digibird Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Digibird Technology Co ltd filed Critical Beijing Digibird Technology Co ltd
Priority to CN202110846053.5A priority Critical patent/CN113286177B/en
Publication of CN113286177A publication Critical patent/CN113286177A/en
Application granted granted Critical
Publication of CN113286177B publication Critical patent/CN113286177B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2347Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving video stream encryption
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/71Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/75Clustering; Classification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Computational Linguistics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention belongs to the field of video processing, and particularly relates to a distributed video processing system based on a block chain, which aims to solve the problems of stability, reliability defects, user authority management safety, difficulty in system operation and maintenance and video content leakage caused by the fact that management, configuration and maintenance of the distributed video processing system are carried out through a server. The system comprises a video coding node, a switch, a video decoding node and a client; the video coding node and the decoding node comprise management and control service units and are provided with node IPs and virtual management IPs; the management and control service unit comprises a node configuration management module, a system-wide service management module, an intra-network authority management module, a user data management module and a block chain calculation and contract management module. The invention solves the problems of stability and reliability defects, user authority management safety, system operation and maintenance difficulty and video content leakage of the distributed video processing system.

Description

Block chain based distributed video processing system
Technical Field
The invention belongs to the field of video processing, and particularly relates to a distributed video processing system based on a block chain.
Background
The existing distributed video processing system is generally divided into a video encoding node, a video decoding node, and a control and management server (server for short) according to the function difference of the nodes, and these nodes are interconnected through a switch or a cluster of switches, as shown in fig. 3.
The user is connected to the server through the switch by using the client PC, and the server controls and operates the video coding nodes and the receiving nodes to realize the inherent functions of the distributed system, such as marking of video input signals, video switching, video display resolution setting, video display mode configuration, video operation authority grant and the like.
The video coding/decoding node only needs to receive the server instruction and then performs corresponding operation according to the server instruction. When the conditions of disconnection reconnection, equipment restarting and the like occur to the coding and decoding nodes, the operation can be carried out only by waiting for the reconfiguration of the server. This causes the following four problems:
1) the stability and reliability of the system have disadvantages: the management and authorization of the distributed video processing system with the framework, the maintenance of video coding nodes and receiving nodes, the maintenance of signal switching relations and the like all depend on a server, and the stability and the reliability of the server are directly related to the stability and the reliability of the whole system.
2) There are issues with rights security: user authority data is easy to intercept and cause user authority leakage due to server management and distribution, and the safety problem of user authority management exists.
3) The system has the following disadvantages of difficult operation and maintenance: when some coding and decoding nodes are disconnected and reconnected, the operation can be performed only by waiting for the reconfiguration of the server, the recovery time is long, and the recovery time is increased along with the increase of the number of the nodes.
4) Problem of leakage of video content within the system: in an application requiring video encryption, a server-centered distributed video processing system performs key management through the server, so that once a key is leaked and intercepted, a corresponding video stream can be analyzed, and the leakage of video content is caused.
Based on the above problem, the present invention provides a distributed video processing system based on a block chain.
Disclosure of Invention
In order to solve the above problems in the prior art, that is, to solve the problems that the management, configuration and maintenance of the existing distributed video processing system are all performed by a server, and there are defects of stability and reliability, user right management security, difficulty in system operation and maintenance, and video content leakage, in a first aspect of the present invention, a distributed video processing system based on a block chain is provided, which includes a video coding node, a switch, a video decoding node, and a client; the video coding node and the video decoding node in the distributed video processing system both comprise management and control service units; the video coding node and the video decoding node are both provided with a node IP and a virtual management IP;
the management and control service unit comprises a node configuration management module, a full-system service management module, an intra-network authority management module, a user data management module and a block chain calculation and contract management module;
the node configuration management module is used for carrying out parameter configuration on node starting and network connection of the current node;
the system-wide service management module is used for managing a service framework and service classification of the whole system of the distributed video processing system;
the in-network authority management module is used for managing the authority of the user set by the distributed video processing system; the users comprise a super manager, an administrator and a common user;
the user data management module is used for managing, encrypting and storing the user data of the distributed video processing system;
the block chain calculation and contract management module is used for calculating the service effective value of the current node by combining the ID, the connected quantity, the residual calculation force and the continuous online time of the current node; selecting the node with the largest service effective value as an M1 node; the M1 node provides a virtual management IP for user login, conventional service operation and configuration operation, and selects the first Q nodes as service processing nodes by inquiring service effective values of other nodes and sorting according to size; the normal business operation comprises signal switching; the configuration operation comprises an encoding/decoding configuration and a display effect configuration;
the system is also used for designating all nodes providing service processing including M1 as backup nodes and recording the backup nodes into all the nodes through a block link contract; when a user accesses, the M1 node calls and distributes each service processing node to execute the operation of the user, and after the operation is executed, the operation information is recorded into all the nodes through a block link contract; the operation information comprises an operator and an operation behavior.
In some preferred embodiments, the management and control service unit further comprises a system backup management module:
the system backup management module is configured to acquire the condition that all nodes in the distributed video processing system provide services through a block chaining contract, and find out a plurality of nodes with higher priorities to perform service backup on all nodes providing service processing including M1;
and the service standby node is also configured to take over the service when the service standby node detects that the service effective value of the node providing the service processing is reduced and exceeds a set threshold value or is disconnected.
In some preferred embodiments, the management and control service unit further includes a system operation and maintenance management module;
the system operation and maintenance management module is configured to screen out a node with the shortest network path in the nodes connected with the node through a ping command when the node is disconnected and reconnected, and then send a data recovery request; and the requested node inquires whether the requested node is a valid node or not through block chaining, and if so, the configuration information is sent to the requested node.
In some preferred embodiments, the management and control service unit further comprises a video encryption management module;
the video encryption management module of the video coding node is configured to:
the video coding node regularly sends a key updating instruction to a video decoding node receiving the video stream;
the video coding node generates a public key according to a video decoding node receiving the video stream and a serial number corresponding to a secret key updating instruction, encrypts the coded video stream by using the public key, and sends the encrypted video stream and the public key to the video decoding node after encryption;
the video coding node adopts different public keys for encryption when coding each frame of image in a video stream, and a data stream transmission channel between the video coding node and the video decoding node is a temporary channel;
and the video encryption management module of the video decoding node is configured to generate a private key according to the private key updating instruction and decrypt the received encrypted video stream.
In some preferred embodiments, the node IP is used for networking, providing coding/decoding services, and transmitting service data.
In some preferred embodiments, all nodes have the same virtual management IP.
In some preferred embodiments, the service effective value of the current node is calculated by:
Figure 291601DEST_PATH_IMAGE001
wherein the content of the first and second substances,
Figure 26208DEST_PATH_IMAGE002
a service valid value representing the current node,
Figure 320923DEST_PATH_IMAGE003
is shown as
Figure 233516DEST_PATH_IMAGE003
The number of nodes, i.e. the current node,
Figure 184154DEST_PATH_IMAGE004
indicating the number of connected nodes of the current node,
Figure 863397DEST_PATH_IMAGE005
which represents the total number of nodes,
Figure 871673DEST_PATH_IMAGE006
indicating the current node ID and the current node ID,
Figure 548642DEST_PATH_IMAGE007
representing the remaining computational power of the current node,
Figure 783315DEST_PATH_IMAGE008
representing the total computational power of the current node,
Figure 938352DEST_PATH_IMAGE009
indicating the duration of the on-line duration of the current node,
Figure 817447DEST_PATH_IMAGE010
indicating the duration of continuous presence of all nodes in the network,
Figure 462055DEST_PATH_IMAGE011
Figure 121706DEST_PATH_IMAGE012
Figure 282034DEST_PATH_IMAGE013
Figure 140269DEST_PATH_IMAGE014
the percentage values, the sum of which is 100,
Figure 159040DEST_PATH_IMAGE015
means for removing
Figure 243671DEST_PATH_IMAGE006
Figure 740511DEST_PATH_IMAGE004
Figure 718831DEST_PATH_IMAGE007
Figure 829876DEST_PATH_IMAGE016
And the external parameters comprise the delay reciprocal of the current node to the switch.
In some preferred embodiments, "managing the rights of the distributed video processing system" includes:
when a user operates, the M1 node arbitrates the authority of the current user by calling an authority management module in the network; the method comprises the following steps that an in-network authority management module inquires authorities of current users stored in all nodes through a block link contract to determine the validity of the authorities of the current users, and if the validity is larger than a set authority threshold value, the current users operate with the authorities;
of said rightEffectiveness of
Figure 464119DEST_PATH_IMAGE017
The calculation method comprises the following steps:
Figure 826968DEST_PATH_IMAGE018
wherein the content of the first and second substances,
Figure 597478DEST_PATH_IMAGE019
representing the number of nodes that are on-line in total,
Figure 895735DEST_PATH_IMAGE002
a service valid value representing the current node,
Figure 814012DEST_PATH_IMAGE020
or 1 of the number of the groups in the group,
Figure 652655DEST_PATH_IMAGE020
is shown as
Figure 730202DEST_PATH_IMAGE003
Each node records that the current user is not authorized,
Figure 58415DEST_PATH_IMAGE021
is shown as
Figure 401671DEST_PATH_IMAGE003
And recording that the current user has the authority by each node.
The invention has the beneficial effects that:
the invention solves the problems of stability and reliability defects, user authority management safety, difficult system operation and maintenance and video content leakage of the distributed video processing system.
1) The invention solves the system stability and reliability risk caused by the centralization of all services in the server by dispersing the service of the server to all nodes for processing, and can ensure the reliability of the service by providing the service through multi-node backup.
2) The invention provides the backup of the service data of the whole network, and can carry out configuration recovery on some nodes through a block chaining contract mechanism after the nodes are disconnected and recovered, thereby avoiding the abnormal work of the nodes.
3) According to the invention, through the block chain technology, the unauthorized node can be prevented from acquiring data and information in the network, and the safety of services and data in the distributed video processing system network is ensured.
4) When the nodes are disconnected and reconnected, the missing data is requested to the nearest node of the network path for recovery, so that the problem that the conventional distributed video processing system can work only by waiting for the server to be reconfigured and the recovery time is long is solved.
5) Through carrying out the dynamic encryption to video stream transmission process to set up the transmission channel of video stream into interim passageway, even if secret key reveals occasionally like this, also can not influence subsequent encryption effect because the quick inefficacy of secret key, because the frame difference code that distributed system adopted, when not receiving multiframe continuous image data, hardly decode, can effectually prevent revealing of video content, improved the security of system.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings.
FIG. 1 is a block diagram of a framework for managing and controlling a service element in accordance with an embodiment of the present invention;
FIG. 2 is a block chain based distributed video processing system according to an embodiment of the present invention;
fig. 3 is a block diagram of a conventional distributed video processing system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The invention discloses a distributed video processing system based on a block chain, which comprises a video coding node, a switch, a video decoding node and a client; the video coding node and the video decoding node in the distributed video processing system both comprise management and control service units; the video coding node and the video decoding node are both provided with a node IP and a virtual management IP;
the management and control service unit comprises a node configuration management module, a full-system service management module, an intra-network authority management module, a user data management module and a block chain calculation and contract management module;
the node configuration management module is used for carrying out parameter configuration on node starting and network connection of the current node;
the system-wide service management module is used for managing a service framework and service classification of the whole system of the distributed video processing system;
the in-network authority management module is used for managing the authority of the user set by the distributed video processing system; the users comprise a super manager, an administrator and a common user;
the user data management module is used for managing, encrypting and storing the user data of the distributed video processing system;
the block chain calculation and contract management module is used for calculating the service effective value of the current node by combining the ID, the connected quantity, the residual calculation force and the continuous online time of the current node; selecting the node with the largest service effective value as an M1 node; the M1 node provides a virtual management IP for user login, conventional service operation and configuration operation, and selects the first Q nodes as service processing nodes by inquiring service effective values of other nodes and sorting according to size; the normal business operation comprises signal switching; the configuration operation comprises an encoding/decoding configuration and a display effect configuration;
the system is also used for designating all nodes providing service processing including M1 as backup nodes and recording the backup nodes into all the nodes through a block link contract; when a user accesses, the M1 node calls and distributes each service processing node to execute the operation of the user, and after the operation is executed, the operation information is recorded into all the nodes through a block link contract; the operation information comprises an operator and an operation behavior.
In order to more clearly describe the block chain-based distributed video processing system of the present invention, the following describes each system in an embodiment of the system in detail with reference to fig. 1.
The invention relates to a distributed video processing system based on a block chain, which comprises a video coding node, a switch, a video decoding node and a client;
each video coding node and each video decoding node are respectively provided with a node IP and a virtual management IP, and all the video coding and decoding nodes are provided with different node IPs for realizing networking, providing video coding and decoding services and transmitting service data in a network.
The virtual management IP is a node which is presented by the distributed video processing system and used for managing user login, and all the nodes have the same virtual management IP.
After the distributed video processing system is built, all nodes are sorted and selected in an election mode through service effective values, a node with the largest service effective value (the calculation process of the node is described in the following) is selected and named as an M1 node, the node provides a virtual management IP to the outside, a supporting service framework of the whole system is used for user login and operation, and the virtual management IP of the nodes except the M1 is in a closed state.
The M1 node queries the service effective values of other nodes, sorts the nodes according to size, selects the top Q (in other embodiments, an appropriate number may be selected according to the number of nodes to undertake all management services of the system) nodes to perform service distribution, distributes a system operation module, a right management module, a user data module, a system operation and maintenance module, and the like to the nodes, and designates a backup node for all the nodes providing management services including M1 and records the backup node in all the nodes through a block chain contract. When the user accesses the modules, the M1 node calls the data of the nodes that really realize the services to execute the user operation, and after the operation is executed, information such as operator, operation behavior and the like is recorded in all the nodes through the block chain contract. In the invention, Q is set according to the total node number of the system, the node computing capacity of 10% of the total node number in the system can meet the management requirement of the system in general conditions, in the application with higher requirement on the system, the maximum value can be set to be 50% of the total node number, and the rest nodes are used for carrying out dynamic backup on Q.
Therefore, the video coding node of the present invention comprises a video coding service unit, a management and control service unit; the video decoding node comprises a video decoding service unit and a management and control service unit; as shown in fig. 1 and 2.
The video coding service unit is used for coding a video;
the video decoding service unit is used for decoding a video;
the management and control service unit comprises a node configuration management module, a full-system service management module, an intra-network authority management module, a user data management module and a block chain calculation and contract management module;
the node configuration management module is used for carrying out parameter configuration on node starting and network connection of the current node;
in this embodiment, the node configures the management module to configure the node itself, so as to ensure that the node itself can start and connect to the specified network.
The system-wide service management module is used for managing a service framework and service classification of the whole system of the distributed video processing system; also for presenting a UI interface to the user for operation by the user;
in this embodiment, the system-wide service management manages the configuration and service of the entire distributed video processing system in the network, and shares the management work of the server. Specifically, the method includes but is not limited to: managing a signal source coding mode, a coding rate, an encryption mode and the like;
the block chain calculation and contract management module is used for calculating the service effective value of the current node by combining the ID, the connected quantity, the residual calculation force and the continuous online time of the current node; selecting the node with the largest service effective value as an M1 node; the M1 node provides a virtual management IP for user login, conventional service operation and configuration operation, and selects the first Q nodes as service processing nodes by inquiring service effective values of other nodes and sorting according to size; the normal business operation comprises signal switching; the configuration operation comprises an encoding/decoding configuration and a display effect configuration;
the system is also used for designating all nodes providing service processing including M1 as backup nodes and recording the backup nodes into all the nodes through a block link contract; when a user accesses, the M1 node calls and distributes each service processing node to execute the operation of the user, and after the operation is executed, the operation information is recorded into all the nodes through a block link contract; the operation information comprises an operator and an operation behavior.
In this embodiment, the service effective value of the current node is calculated by:
Figure 247268DEST_PATH_IMAGE001
(1)
wherein the content of the first and second substances,
Figure 992370DEST_PATH_IMAGE022
representing services of a current nodeThe effective value of the effective value is,
Figure 491484DEST_PATH_IMAGE023
is shown as
Figure 508988DEST_PATH_IMAGE024
The number of nodes, i.e. the current node,
Figure 689433DEST_PATH_IMAGE025
indicating the number of connected nodes of the current node,
Figure 616938DEST_PATH_IMAGE026
which represents the total number of nodes,
Figure 162320DEST_PATH_IMAGE027
indicating the current node ID and the current node ID,
Figure 480169DEST_PATH_IMAGE028
representing the remaining computational power of the current node,
Figure 526622DEST_PATH_IMAGE029
representing the total computational power of the current node,
Figure 246317DEST_PATH_IMAGE030
indicating the duration of the on-line duration of the current node,
Figure 214797DEST_PATH_IMAGE031
indicating the duration of continuous presence of all nodes in the network,
Figure 82259DEST_PATH_IMAGE032
Figure 870086DEST_PATH_IMAGE033
Figure 381970DEST_PATH_IMAGE034
Figure 393789DEST_PATH_IMAGE035
represents a percentage ofThe ratio value, the sum of which is 100,
Figure 420651DEST_PATH_IMAGE032
Figure 199120DEST_PATH_IMAGE033
Figure 627827DEST_PATH_IMAGE034
Figure 76126DEST_PATH_IMAGE035
the values of (c) can be adjusted according to the actual needs in the embodiments,
Figure 527967DEST_PATH_IMAGE036
means for removing
Figure 657597DEST_PATH_IMAGE027
Figure 3128DEST_PATH_IMAGE025
Figure 825590DEST_PATH_IMAGE028
Figure 748416DEST_PATH_IMAGE037
The external parameters include the inverse delay from the current node to the switch, i.e. the inverse delay from the current node to the switch is preferred in the invention. In other embodiments of the present invention, the substrate may be,
Figure 478474DEST_PATH_IMAGE036
the parameters can be adjusted according to actual requirements.
Selecting the node with the largest service effective value as an M1 node;
the M1 node provides a virtual management IP for user login and operation, and by inquiring service effective values of other nodes and sorting according to size, the first Q nodes are selected for amateur distribution, and a system operation module, a right management module, a user data module, a system operation and maintenance module and the like are respectively distributed to the nodes, namely the first Q nodes are used as service processing nodes.
When a user accesses, the M1 node calls each service processing node to execute the operation of the user, and after the operation is executed, the operation information such as an operator and operation behaviors is recorded in all nodes through a block link contract.
In addition, the block chain calculation and contract management module is further used for interacting with other nodes of the distributed video processing system through a block chain contract and storing contract data.
The in-network authority management module is used for managing the authority of the user set by the distributed video processing system; the users comprise a super manager, an administrator and a common user;
in this embodiment, the intra-network rights management is to manage the rights of the entire distributed video processing system in the network and to share the rights management work of the server. According to different roles of users, the users are divided into super administrators, ordinary users and other authority levels; the super administrator can perform all settings in the network, including system change, setting, node increase and decrease, and assign authority to other people and normal function use of the system; the administrator can use the conventional functions in the system, including the interconnection relation of signal source configuration, display screen configuration and encoding and decoding; the average user is limited to the operation of a given function, which is assigned by the hypervisor, as a subset of the functions owned by the hypervisor. The method comprises the following specific steps:
when a user operates, the M1 node arbitrates the authority of the current user by calling an authority management module in the network; and the authority management module in the network inquires the authority of the current user stored in all the nodes through a block link contract to determine the validity of the authority, and if the validity is greater than a set authority threshold value, the current user operates with the authority.
The validity judgment of the authority is carried out through the weighting of the service effective values of all online nodes, and specifically comprises the following steps:
setting the total number of nodes on line
Figure 881774DEST_PATH_IMAGE038
Of 1 at
Figure 812821DEST_PATH_IMAGE039
The service effective value of each node is
Figure 832729DEST_PATH_IMAGE040
Of 1 at
Figure 569741DEST_PATH_IMAGE039
Each node stores the effective authority of the user as
Figure 14498DEST_PATH_IMAGE041
Figure 913184DEST_PATH_IMAGE042
Is shown as
Figure 951547DEST_PATH_IMAGE024
Each node records that the current user is not authorized,
Figure 898774DEST_PATH_IMAGE043
is shown as
Figure 11087DEST_PATH_IMAGE024
Each node records that the current user is authorized,
Figure 408570DEST_PATH_IMAGE044
the calculation method of the validity of the authority comprises the following steps:
Figure DEST_PATH_IMAGE045
(2)
when in use
Figure 265055DEST_PATH_IMAGE046
And when the current user is larger than the set authority threshold value, the current user uses the authority to operate, otherwise, the current user does not have the authority to operate. Rights of the inventionThe threshold limit is preferably set to 0.8.
The user data management module is used for managing, encrypting and storing the user data of the distributed video processing system;
in this embodiment, the management of user data in the network, the sharing of user management work of the server, and the encrypted storage of user data.
In addition, the management and control service unit further includes a system backup management module configured to obtain a condition that all nodes in the distributed video processing system provide services through a blockchain contract, and find out a plurality of nodes with higher priorities to perform service backup on all nodes providing service processing including M1;
and when the service standby node detects that the service effective value of the node providing the service processing is reduced and exceeds a set threshold value or is disconnected, the service standby node takes over the service, so that the whole set of system can continue to work.
The management and control service unit also comprises a system operation and maintenance management module which is configured to screen out the node with the shortest network path in the nodes connected with the node through a ping command when the node is disconnected and reconnected, and then send a data recovery request; and the requested node inquires whether the requested node is a valid node or not through block chaining, and if so, the configuration information is sent to the requested node.
In this embodiment, when the node is disconnected and reconnected, the specific processing procedure is as follows:
1) the node X which is reconnected after disconnection acquires a node IP communicated with the node X;
2) screening out the node X0 with the shortest response time from the node IP communicated with X through a ping command;
3) sending a data recovery request to the X0 node;
4) the X0 node inquires whether the X node is an effective node according to the request packet sent by the X node;
5) when the X0 finds that the X node is a valid node, screening data required by the X node, and sending the data to the X node;
6) the X node recovers by using the received data; the recovered data mainly includes: user authority, image display state, and node information managed in the distributed video processing system;
the management and control service unit also comprises a video encryption management module;
the video encryption management module of the video coding node is configured to:
1) the video coding node actively sends a secret key updating instruction to a video decoding node receiving the node code stream of the video coding node, the secret key updating frequency is set according to the video encryption degree, and the fastest time is preferably to update each frame;
2) the video coding node generates a public key according to a video decoding node receiving a node code stream (namely, a video stream) of the video coding node and a serial number corresponding to a secret key updating instruction, and encrypts the coded video stream by using the public key;
3) the video coding node sends the encrypted video stream to a responding video decoding node, and the public key is sent along with the video stream; the video coding node adopts different public keys for encryption when coding each frame of image in a video stream (namely frame difference coding), and a data stream transmission channel of the video coding node is a temporary channel, so that even if the secret key is leaked occasionally, subsequent encryption is not influenced, and the system safety is improved.
A video encryption management module of the video decoding node configured to:
4) the video decoding node generates a private key according to the secret key updating instruction;
5) after receiving the encrypted video stream, the video decoding node decrypts the encrypted video stream by using a private key;
6) and the video decoding node decodes the decrypted video stream to obtain a decoded video stream.
In addition, all the encoding nodes and decoding nodes store management and control service data of the distributed video processing system in the network.
In addition, it should be noted that, the distributed video processing system based on the block chain provided in the foregoing embodiment is only illustrated by the division of the above functional modules, and in practical applications, the above functions may be allocated to different functional modules according to needs, that is, the modules or steps in the embodiments of the present invention are further decomposed or combined, for example, the modules in the foregoing embodiment may be combined into one module, or may be further split into multiple sub-modules, so as to complete all or part of the above described functions. The names of the modules and steps involved in the embodiments of the present invention are only for distinguishing the modules or steps, and are not to be construed as unduly limiting the present invention.
Those of skill in the art would appreciate that the various illustrative modules, method steps, and modules described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that programs corresponding to the software modules, method steps may be located in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. To clearly illustrate this interchangeability of electronic hardware and software, various illustrative components and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as electronic hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The terms "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing or implying a particular order or sequence.
The terms "comprises," "comprising," or any other similar term are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
So far, the technical solutions of the present invention have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present invention is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the invention, and the technical scheme after the changes or substitutions can fall into the protection scope of the invention.

Claims (8)

1. A distributed video processing system based on a block chain comprises a video coding node, a switch, a video decoding node and a client, and is characterized in that the video coding node and the video decoding node in the distributed video processing system both comprise a management and control service unit; the video coding node and the video decoding node are both provided with a node IP and a virtual management IP;
the management and control service unit comprises a node configuration management module, a full-system service management module, an intra-network authority management module, a user data management module and a block chain calculation and contract management module;
the node configuration management module is used for carrying out parameter configuration on node starting and network connection of the current node;
the system-wide service management module is used for managing a service framework and service classification of the whole system of the distributed video processing system;
the in-network authority management module is used for managing the authority of the user set by the distributed video processing system; the users comprise a super manager, an administrator and a common user;
the user data management module is used for managing, encrypting and storing the user data of the distributed video processing system;
the block chain calculation and contract management module is used for calculating the service effective value of the current node by combining the ID, the connected quantity, the residual calculation force and the continuous online time of the current node; selecting the node with the largest service effective value as an M1 node; the M1 node provides a virtual management IP for user login, conventional service operation and configuration operation, and selects the first Q nodes as service processing nodes by inquiring service effective values of other nodes and sorting according to size; the normal business operation comprises signal switching; the configuration operation comprises an encoding/decoding configuration and a display effect configuration;
the system is also used for designating all nodes providing service processing including M1 as backup nodes and recording the backup nodes into all the nodes through a block link contract; when a user accesses, the M1 node calls and distributes each service processing node to execute the operation of the user, and after the operation is executed, the operation information is recorded into all the nodes through a block link contract; the operation information comprises an operator and an operation behavior.
2. The blockchain-based distributed video processing system of claim 1 wherein the management and control service unit further includes a system backup management module;
the system backup management module is configured to acquire the condition that all nodes in the distributed video processing system provide services through a block chaining contract, and find out a plurality of nodes with higher priorities to perform service backup on all nodes providing service processing including M1;
and the service standby node is also configured to take over the service when the service standby node detects that the service effective value of the node providing the service processing is reduced and exceeds a set threshold value or is disconnected.
3. The blockchain-based distributed video processing system of claim 1, wherein the management and control service unit further includes a system operation and maintenance management module;
the system operation and maintenance management module is configured to screen out a node with the shortest network path in the nodes connected with the node through a ping command when the node is disconnected and reconnected, and then send a data recovery request; and the requested node inquires whether the requested node is a valid node or not through block chaining, and if so, the configuration information is sent to the requested node.
4. The blockchain-based distributed video processing system of claim 1 wherein the management and control service unit further includes a video encryption management module;
the video encryption management module of the video coding node is configured to:
the video coding node regularly sends a key updating instruction to a video decoding node receiving the video stream;
the video coding node generates a public key according to a video decoding node receiving the video stream and a serial number corresponding to a secret key updating instruction, encrypts the coded video stream by using the public key, and sends the encrypted video stream and the public key to the video decoding node after encryption;
the video coding node adopts different public keys for encryption when coding each frame of image in a video stream, and a data stream transmission channel between the video coding node and the video decoding node is a temporary channel;
and the video encryption management module of the video decoding node is configured to generate a private key according to the private key updating instruction and decrypt the received encrypted video stream.
5. The blockchain-based distributed video processing system of claim 1, wherein the node IP is used for networking, providing coding/decoding services, and traffic data transmission.
6. The blockchain-based distributed video processing system of claim 1 wherein all nodes have the same virtual management IP.
7. The blockchain-based distributed video processing system of claim 1, wherein the service effective value of the current node is calculated by:
Figure 208264DEST_PATH_IMAGE002
wherein the content of the first and second substances,
Figure DEST_PATH_IMAGE003
a service valid value representing the current node,
Figure 37986DEST_PATH_IMAGE004
is shown as
Figure 83303DEST_PATH_IMAGE004
The number of nodes, i.e. the current node,
Figure DEST_PATH_IMAGE005
indicating the number of connected nodes of the current node,
Figure 150616DEST_PATH_IMAGE006
which represents the total number of nodes,
Figure DEST_PATH_IMAGE007
indicating the current node ID and the current node ID,
Figure 496147DEST_PATH_IMAGE008
representing the remaining computational power of the current node,
Figure DEST_PATH_IMAGE009
representing the total computational power of the current node,
Figure 974401DEST_PATH_IMAGE010
indicating the duration of the on-line duration of the current node,
Figure DEST_PATH_IMAGE011
indicating the duration of continuous presence of all nodes in the network,
Figure 913539DEST_PATH_IMAGE012
Figure DEST_PATH_IMAGE013
Figure 643597DEST_PATH_IMAGE014
Figure DEST_PATH_IMAGE015
the percentage values, the sum of which is 100,
Figure 233847DEST_PATH_IMAGE016
means for removing
Figure 492790DEST_PATH_IMAGE007
Figure 512699DEST_PATH_IMAGE005
Figure 390656DEST_PATH_IMAGE008
Figure DEST_PATH_IMAGE017
And the external parameters comprise the delay reciprocal of the current node to the switch.
8. The blockchain-based distributed video processing system of claim 7, wherein the method of managing the user's right set by the distributed video processing system comprises:
when a user operates, the M1 node arbitrates the authority of the current user by calling an authority management module in the network; the method comprises the following steps that an in-network authority management module inquires authorities of current users stored in all nodes through a block link contract to determine the validity of the authorities of the current users, and if the validity is larger than a set authority threshold value, the current users operate with the authorities;
validity of the right
Figure 710779DEST_PATH_IMAGE018
The calculation method comprises the following steps:
Figure 530836DEST_PATH_IMAGE020
wherein the content of the first and second substances,
Figure DEST_PATH_IMAGE021
representing the number of nodes that are on-line in total,
Figure 900025DEST_PATH_IMAGE003
a service valid value representing the current node,
Figure 440728DEST_PATH_IMAGE022
or 1 of the number of the groups in the group,
Figure 349778DEST_PATH_IMAGE022
is shown as
Figure 91469DEST_PATH_IMAGE004
Each node records that the current user is not authorized,
Figure DEST_PATH_IMAGE023
is shown as
Figure 351549DEST_PATH_IMAGE004
And recording that the current user has the authority by each node.
CN202110846053.5A 2021-07-26 2021-07-26 Block chain based distributed video processing system Active CN113286177B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110846053.5A CN113286177B (en) 2021-07-26 2021-07-26 Block chain based distributed video processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110846053.5A CN113286177B (en) 2021-07-26 2021-07-26 Block chain based distributed video processing system

Publications (2)

Publication Number Publication Date
CN113286177A true CN113286177A (en) 2021-08-20
CN113286177B CN113286177B (en) 2021-09-28

Family

ID=77281313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110846053.5A Active CN113286177B (en) 2021-07-26 2021-07-26 Block chain based distributed video processing system

Country Status (1)

Country Link
CN (1) CN113286177B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108960822A (en) * 2018-06-13 2018-12-07 阿里巴巴集团控股有限公司 A kind of exchanging method and device of the available resources quota based on block chain
CN109361664A (en) * 2018-10-11 2019-02-19 腾讯科技(深圳)有限公司 Data verification method, system and computer readable storage medium based on block chain
CN109729168A (en) * 2018-12-31 2019-05-07 浙江成功软件开发有限公司 A kind of data share exchange system and method based on block chain
CN109951537A (en) * 2019-03-06 2019-06-28 上海共链信息科技有限公司 A kind of load balance distribution method towards block chain
US20190342077A1 (en) * 2018-05-03 2019-11-07 Honeywell International Inc. Apparatus and method for using blockchains to establish trust between nodes in industrial control systems or other systems
CN111400100A (en) * 2020-03-16 2020-07-10 北京伟杰东博信息科技有限公司 Management method and system for distributed software backup
US20200260147A1 (en) * 2019-02-12 2020-08-13 Vijay Madisetti Hybrid Blockchains and Streamchains Using Non-Crypto Hashes for Securing Audio-, Video-, Image-, and Speech-Based Transactions and Contracts

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190342077A1 (en) * 2018-05-03 2019-11-07 Honeywell International Inc. Apparatus and method for using blockchains to establish trust between nodes in industrial control systems or other systems
CN108960822A (en) * 2018-06-13 2018-12-07 阿里巴巴集团控股有限公司 A kind of exchanging method and device of the available resources quota based on block chain
CN109361664A (en) * 2018-10-11 2019-02-19 腾讯科技(深圳)有限公司 Data verification method, system and computer readable storage medium based on block chain
CN109729168A (en) * 2018-12-31 2019-05-07 浙江成功软件开发有限公司 A kind of data share exchange system and method based on block chain
US20200260147A1 (en) * 2019-02-12 2020-08-13 Vijay Madisetti Hybrid Blockchains and Streamchains Using Non-Crypto Hashes for Securing Audio-, Video-, Image-, and Speech-Based Transactions and Contracts
CN109951537A (en) * 2019-03-06 2019-06-28 上海共链信息科技有限公司 A kind of load balance distribution method towards block chain
CN111400100A (en) * 2020-03-16 2020-07-10 北京伟杰东博信息科技有限公司 Management method and system for distributed software backup

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张升伟等: "基于区块链技术的运营级CDN平台建设探讨", 《邮电设计技术》 *

Also Published As

Publication number Publication date
CN113286177B (en) 2021-09-28

Similar Documents

Publication Publication Date Title
US11539576B2 (en) Dynamic path selection and data flow forwarding
US5440633A (en) Communication network access method and system
US8732462B2 (en) Methods and apparatus for secure data sharing
US10218686B2 (en) Dynamically managing, from a centralized service, valid cipher suites allowed for secured sessions
KR102160187B1 (en) Apparatus and method deploying firewall on SDN, and network using the same
US20180115535A1 (en) Blind En/decryption for Multiple Clients Using a Single Key Pair
Alagheband et al. Advanced encryption schemes in multi-tier heterogeneous internet of things: taxonomy, capabilities, and objectives
US11895227B1 (en) Distributed key management system with a key lookup service
CN113286177B (en) Block chain based distributed video processing system
CN107454162A (en) A kind of system for improving cloud computing environment reliability
CN113259347B (en) Equipment safety system and equipment behavior management method in industrial Internet
EP2668737A1 (en) Controlled security domains

Legal Events

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