Method, device, electronic device and storage medium for secure information transmission
By calculating the difference term to handle the information transfer in the edge attack scenario, the problem of neglecting the edge attack scenario in the existing technology is solved, and the security of the information transfer is guaranteed and the calculation efficiency is improved.
Patent Information
- Application Number
- CN202410854353.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Existing distributed algorithms mainly consider node attack scenarios and pay little attention to edge attack scenarios, resulting in network security issues under edge attacks that need to be solved urgently.
By obtaining the current node status value, calculating the elastic constraint set, and obtaining the scaling amount, and then calculating the difference term, which is used to calculate the node status value and transmission at the next moment, the security of information transmission is guaranteed.
It effectively ensures the security of information transmission in edge attack application scenarios, improves the computational efficiency and applicability of the algorithm, reduces computational costs, and improves anti-attack performance.
Smart Images

Figure CN118413394B
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method, device, electronic device and storage medium for secure information transmission. Background Art
[0002] In recent years, multi-agent systems have attracted extensive attention in the fields of natural science and engineering. Related research includes large-scale vehicle networks, power grids, biological networks, social networks, and robot networks. Problems related to multi-agent systems can be solved using either distributed or centralized algorithms.
[0003] In distributed algorithms, most existing distributed algorithms only consider node attack scenarios, and rarely consider edge attack scenarios. Since edge attack scenarios are also a strategy adopted by attackers, network security under edge attacks is an urgent problem to be solved. Summary of the invention
[0004] In view of this, the purpose of the present application is to propose a method, device, electronic device and storage medium for secure information transmission to solve or partially solve the above-mentioned problems.
[0005] Based on the above objectives, in a first aspect, the present application provides a method for secure information transmission, comprising:
[0006] Get the first node status value at the current moment;
[0007] Calculating an elastic constraint set according to the first node state value;
[0008] According to the elastic constraint set, a scaling amount is obtained;
[0009] According to the scaling amount, a differential term is obtained;
[0010] According to the differential term, a second node state value at the next moment is calculated, and the second node state value is transmitted.
[0011] In a second aspect of the present application, a device for secure information transmission is provided, comprising:
[0012] An acquisition module, configured to acquire a first node state value at a current moment;
[0013] A first calculation module is configured to calculate an elastic constraint set according to the first node state value;
[0014] A second calculation module is configured to obtain a scaling amount according to the elastic constraint set;
[0015] A third calculation module is configured to obtain a differential term according to the scaling amount;
[0016] The transmission module is configured to calculate the second node state value at the next moment according to the differential term, and transmit the second node state value.
[0017] In a third aspect of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the first aspect is implemented.
[0018] According to a fourth aspect of the present application, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores computer instructions, wherein the computer instructions are used to enable a computer to execute the method described in the first aspect.
[0019] As can be seen from the above, the present application provides a method, device, electronic device and storage medium for secure information transmission. The method includes: obtaining the first node state value at the current moment; calculating the elastic constraint set according to the first node state value; obtaining the scaling amount according to the elastic constraint set; obtaining the differential term according to the scaling amount; calculating the second node state value at the next moment according to the differential term, and transmitting the second node state value. The above method can ensure the security of information transmission in the edge attack application scenario of information transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 A schematic diagram of an exemplary node attack scenario according to an embodiment of the present application is shown.
[0022] Figure 2 A schematic diagram of an exemplary edge attack scenario according to an embodiment of the present application is shown.
[0023] Figure 3 A flowchart of an exemplary method for secure information transmission according to an embodiment of the present application is shown.
[0024] Figure 4 A schematic diagram of an exemplary device for secure information transmission according to an embodiment of the present application is shown.
[0025] Figure 5 A schematic diagram of an exemplary electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0026] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0027] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0028] It is understandable that before using the technical solutions of each embodiment of the present application, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0029] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to the electronic device, application, server, storage medium or other software or hardware that performs the operation of the technical solution of the present application according to the prompt message.
[0030] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0031] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation method of this application. Other methods that meet relevant laws and regulations may also be applied to the implementation method of this application.
[0032] In recent years, multi-agent systems have received extensive attention in the fields of natural science and engineering. Related research includes large-scale vehicle networks, power grids, biological networks, social networks, and robot networks. Related problems of multi-agent systems can be implemented using either distributed algorithms or centralized algorithms. In centralized algorithms, each individual distributed in space transmits the measured information to a central node, which integrates and calculates the received information and completes the task. Although centralized algorithms have the advantage of strong computing power, they have the disadvantages of large energy consumption in information transmission, possible leakage of individual privacy, and poor robustness. In distributed algorithms, individuals complete tasks collaboratively through communication with neighboring individuals. Local communication consumes less communication resources, individual privacy protection is better, the failure of a single node has little impact on the entire system, and the algorithm has strong scalability. The main research contents of distributed algorithms include distributed estimation, distributed optimization, distributed control, distributed game, etc. Among them, distributed optimization is an important branch of distributed algorithms, which is widely used in practical problems. For example, resource allocation, coverage control, and economic dispatch of power networks in wireless sensor networks can all be regarded as distributed optimization problems. In a distributed optimization problem, each individual in the network has a local objective function that is only known to that individual. The sum of all individual objective functions is the overall objective function of the network. The goal is to optimize the global objective function through cooperation and communication between individuals.
[0033] The general form of the distributed convex optimization problem with a time-invariant objective function is as follows:
[0034]
[0035] Among them, the convex function Is an individual The local objective function can only be The observed is the total number of individuals, is the feasible domain, Indicates the minimum, represents the individual status value, Represents the set of real numbers.
[0036] The above objective function does not change with time, but in many practical problems, multiple uncertain factors may cause the objective function to be time-varying, for example, load control and economic dispatch problems in power systems when the load is time-varying. This type of distributed convex optimization problem with time-varying objective functions is called distributed online convex optimization, and its general form is:
[0037]
[0038] Among them, the convex function Is an individual At the moment The local objective function can only be The observed.
[0039] It should be noted that although the problems or algorithms introduced above are different, a common feature in algorithm design is that the gradient or sub-gradient information of the objective function is required. In practical applications, obtaining gradient or sub-gradient information is sometimes computationally expensive, or even infeasible in some cases, such as online advertising and graphical model reasoning in statistics.
[0040] On the other hand, although distributed optimization problems have been fully studied in terms of optimality and convergence speed, they still face many challenges in practical problems, including real-time, security, and privacy. For example, network attacks such as attacks on nodes and attacks on communication links prevent the successful transmission of information, thereby threatening network security. Large-scale vehicle-network interaction involves frequent interactions between a large number of distributed vehicles, charging piles, operators, and power grids. The network environment is developed and exposed on many surfaces, and network attacks on data nodes and communication links are inevitable. Common network attacks mainly include denial of service attacks, attacks that destroy topology graphs, replay attacks, spoofing attacks, and Byzantine attacks. Among them, Byzantine attacks refer to a type of attack in which a malicious party in a communication network sends arbitrary conflicting information to a node, making it impossible for the system to calculate the true optimal point. Byzantine attacks are generally divided into two attack scenarios. The first attack scenario is a node attack, and the second attack scenario is an edge attack.
[0041] Figure 1 A schematic diagram of an exemplary node attack scenario 100 according to an embodiment of the present application is shown.
[0042] Node attack is when the attacker controls the selected nodes in the network to directly send wrong messages and send wrong messages to the nodes’ neighbors. Figure 1 As shown, in the node attack scenario 100, node 2 is attacked, and the information it transmits to node 1 and node 3 is a false message of the attack.
[0043] Figure 2 A schematic diagram of an exemplary edge attack scenario 200 according to an embodiment of the present application is shown.
[0044] Edge attack is that the attacker will control the selected edge in the network and forge the message sent through the edge. For edge attack, even if some edges of each node are controlled by the attacker, as long as one outgoing edge of each node is secure, the information of each node can still be sent to neighbors. Figure 2 As shown, the information transmission link 202 (also called edge 202) from node 2 to node 3 is attacked, but unlike the node attack in the node attack scenario 100, in the edge attack scenario 200, node 2 transmits real information to node 1.
[0045] The inventor of the present application found that most existing distributed algorithms only consider node attack scenarios, and rarely consider edge attack scenarios. Since edge attack scenarios are also a strategy used by attackers, network security under edge attacks is an issue that needs to be addressed urgently.
[0046] Most of the existing technologies consider the scenario of node attack, which is described in detail as follows.
[0047] Consider a Node directed network graph ,in, represents a node set. , according to the node set, it is divided into three subsets, namely ,in, is a collection of trusted nodes. is a collection of common nodes, is the set of malicious nodes. Indicates time The edge set of At the moment The neighbor set of , define the trusted neighbor set as , that is At the moment Trusted nodes among neighboring nodes.
[0048] Individual At the moment The node status value is recorded as , the feasible domain of all node state values is the set , where all state values must be from the set Select from for dimensional real number set. Individual At the moment The objective function is ,in, is a set of real numbers, only individuals Known.
[0049] Consider the case of distributed online optimization. At time ,individual use The historical nodes and loss function information at the moment make decisions and update the feasible domain The status value within . Get the time after the status is updated The objective function Get loss .
[0050] Since the information of malicious nodes is inaccurate, the optimization of their objective function is no longer performed. The overall goal of the system is to minimize the time period The sum function of the objective functions of trusted nodes and ordinary nodes is:
[0051]
[0052] In the existing distributed algorithms applied to node attack scenarios, initialization is performed first. Initialize the node Status , scaling amount ,in, For elements with 1 dimensional vector.
[0053] After initialization is complete, as well as Carry out the cycle.
[0054] Define the trusted neighbor set as , calculate the minimum value:
[0055]
[0056] in, Indicates the minimum, Represents an individual The set of trusted neighbors.
[0057] Calculate the maximum value:
[0058]
[0059] in, Indicates maximum.
[0060] Define the elastic constraint set:
[0061]
[0062] The information exchange of individuals in the elastic constraint set is expressed as:
[0063]
[0064] The node status iteration is represented as:
[0065]
[0066] in, Represents a set of elastic constraints The number of individuals in is a non-negative decreasing step size and satisfies , , is the gradient term (which can be expressed as ), represents the projection operator, The component representing the scaling amount.
[0067] The scaling amount can be iterated using the following formula:
[0068]
[0069] in, for For any node , is the auxiliary vector, Represents the total number of trusted nodes and ordinary nodes, Represents edge The weight of .
[0070] The loop ends.
[0071] A feature of the above existing distributed online optimization algorithms is that they require the gradient or sub-gradient information of the objective function. In applications, obtaining gradient or sub-gradient information is sometimes computationally expensive, or even infeasible in some cases, such as online source location, online path selection in data networks, online advertising, and graphical model reasoning and structured prediction in statistics. Therefore, the above algorithms face the problem of high computational cost and computationally infeasible operation in actual operation.
[0072] In addition, as mentioned above, the above algorithms consider the node attack scenario but not the edge attack scenario, which has certain application limitations.
[0073] In view of this, the present application provides a method, device, electronic device and storage medium for secure information transmission. The method includes: obtaining the first node state value at the current moment; calculating the elastic constraint set according to the first node state value; obtaining the scaling amount according to the elastic constraint set; obtaining the differential term according to the scaling amount; calculating the second node state value at the next moment according to the differential term, and transmitting the second node state value. The above method can ensure the security of information transmission in the edge attack application scenario of information transmission.
[0074] The method provided in this application considers the distributed online optimization scenario of Byzantine edge attacks, which is described in detail as follows.
[0075] Consider a Node directed network graph and the edge set of time ,in, represents a node set. , according to the trusted edge, edge set It is divided into three subsets, namely ,in, is the set of trusted edges, is the set of common edges, is the set of malicious edges. At the moment The neighbor set of , define the trusted neighbor set as .
[0076] Individual At the moment The node status value is recorded as , the feasible domain of all node state values is the set , where all state values must be from the set Select from for dimensional real number set. Individual At the moment The objective function is ,in, is a set of real numbers, only individuals Known.
[0077] Consider the case of distributed online optimization. At time ,individual use The historical nodes and loss function information at the moment make decisions and update the feasible domain The status value within . Get the time after the status is updated The objective function Get loss .
[0078] The overall goal of the system is to minimize the time period The overall objective function is:
[0079]
[0080] The goal of the embodiments of the present application is to design a lightweight online optimization algorithm that is resistant to Byzantine attacks for the above-mentioned problem, using differential terms instead of gradient terms, thereby improving the algorithm's computational efficiency and application applicability while ensuring the algorithm's anti-attack performance.
[0081] Before looping through the node information, initialize the node Status , scaling amount ,in, For elements with 1 dimensional vector.
[0082] After initialization is complete, as well as Carry out the cycle.
[0083] Obtain the first node state value at the current moment. The first node state value may include the first state value and the second state value .
[0084] According to the first node state value, the elastic constraint set is calculated. Specifically, in some embodiments, the elastic constraint set can be calculated according to the first state value and the second state value. The elastic constraint set can be expressed as:
[0085]
[0086] in, represents the elastic constraint set, Represents an individual The neighbor set of , Represents an individual , represents the first state value, Represents the second state value, Represents an individual The node status value.
[0087] According to the elastic constraint set, the scaling amount can be calculated. Specifically, the scaling amount can be calculated by the following formula:
[0088]
[0089] in, Indicates the amount of scaling, is the auxiliary vector, Indicates the total number of nodes.
[0090] Individual information is exchanged in the elastic constraint set to obtain a third state value. Specifically, in some embodiments, the third state value can be calculated by the following formula:
[0091]
[0092] According to the third state value, the observation value can be calculated, and then the difference term can be calculated. Specifically, in some embodiments, when calculating the difference term, it can be set is a sequence of positive numbers decreasing to 0, defined For individuals At the moment Estimate of the optimal value of the network. Assume that at time ,individual The objective function At the point ,in, and Point The function value at can be observed. Among them, For the The dimension is 1 and the rest are 0 dimensional vector, and record the observation as the first observation: , and the second observation: .
[0093] Based on the observed values, a differential term based on the deterministic disturbance can be obtained. Specifically, in some embodiments, the differential term can be calculated by the following formula:
[0094]
[0095] in, , represents the difference term, represents the non-negative decreasing step size used in the design difference term. In some embodiments, Can be taken .
[0096] According to the difference term, the second node state value at the next moment is calculated and the second node state value is transmitted. Specifically, in some embodiments, the second node state value can be calculated by the following formula:
[0097]
[0098] in, represents the projection operator, The component representing the scaling amount, is a non-negative decreasing step size and satisfies , , in some embodiments, Can be taken .
[0099] The loop ends.
[0100] The above algorithm uses the differential term as the estimated value of the gradient information, so the algorithm belongs to the non-gradient algorithm. When the objective function is known, the non-gradient algorithm does not need to calculate the gradient value of the objective function, and does not need to perform limit operations, which greatly saves computing power; when the objective function is difficult or impossible to obtain, it only needs to observe the objective function at a few points, which improves the applicability of the algorithm in actual situations.
[0101] As an optional embodiment, the difference term can also be obtained by -smooth( -smoothing) technique. Specifically, for the function , we can define - Smoothing function for:
[0102]
[0103] Among them, the vector is Uniform distribution or compliance in the unit sphere A random vector from a Gaussian distribution, is a constant, and E represents the edge set.
[0104] definition , as the gradient The estimated value of .
[0105] Note that the above difference term is The estimated value, rather than An estimate of , and thus a non-negative constant Characterizes the gradient of the objective function degree of approximation.
[0106] The method provided in this application is intended to solve the problem that in a dynamic online environment, due to the time-varying Byzantine edge attack on the multi-agent system of vehicle-grid interaction, individual decisions are interfered by malicious information, and the decisions cannot converge to the optimal value. A lightweight gradient-free algorithm based on deterministic differences and random differences is designed to improve the computational efficiency of the algorithm in vehicle-grid interaction while ensuring the algorithm's anti-attack performance, thereby ensuring the correctness of intelligent charging and discharging business decisions.
[0107] In the study of the distributed online optimization problem that is resistant to Byzantine attacks, the method provided in this application firstly proposes to use differential terms to replace gradient terms, and designs a gradient-free distributed online optimization algorithm that is resistant to Byzantine attacks.
[0108] The method provided in this application designs a differential term that is directly used to estimate the gradient value of the objective function, constructs a deterministic perturbation differential to replace the gradient term, and then designs a gradient-free distributed online optimization algorithm that is resistant to Byzantine attacks.
[0109] The method provided in this application considers the attack scenario of edge attack in the multi-agent Byzantine attack of the vehicle network interaction, the attacked edge is time-varying, and this paper assumes that the attacked edge is unknown. Compared with the traditional node attack scenario, the research on time-varying malicious edges can better improve network security strategies.
[0110] The method provided in this application considers the attack scenario of edge attack in the Byzantine attack of multi-agent in vehicle-network interaction, and this paper assumes that the attacked edge is unknown. Compared with the traditional node attack scenario, the research on time-varying malicious edges can better improve network security strategies.
[0111] The method provided in this application designs a differential to replace the gradient term based on deterministic perturbations, and further designs a gradient-free distributed online optimization algorithm that is resistant to Byzantine attacks. Using differential terms to replace the gradient terms in traditional elastic algorithms can reduce computing costs and improve computing feasibility. To the best of the author's knowledge, there is currently no literature that uses deterministic differentials or random differentials to design a distributed online optimization algorithm that is resistant to Byzantine attacks.
[0112] Figure 3 The flowchart of an exemplary method 300 for secure information transmission according to an embodiment of the present application is shown. The method 300 may include the following steps.
[0113] In step 302, the first node state value at the current moment is obtained.
[0114] In step 304, a set of elastic constraints is calculated according to the first node state value.
[0115] In some embodiments, the first node state value includes a first state value and a second state value, and the calculating the elastic constraint set according to the first node state value further includes: calculating the elastic constraint set according to the first state value and the second state value.
[0116] In some embodiments, the elastic constraint set is calculated by the following formula:
[0117]
[0118] in, represents the elastic constraint set, Represents an individual The neighbor set of , Represents an individual , represents the first state value, Represents the second state value, Represents an individual The node status value.
[0119] In step 306, a scaling amount is obtained according to the elastic constraint set.
[0120] In some embodiments, the scaling amount is calculated by the following formula:
[0121]
[0122] in, Indicates the amount of scaling, is the auxiliary vector, Represents the total number of nodes, Represents a set of elastic constraints.
[0123] In step 308, a differential term is obtained according to the scaling amount.
[0124] In some embodiments, obtaining the differential term according to the scaling amount further includes: obtaining a third state value according to the elastic constraint set; obtaining an observation value according to the third state value; and obtaining the differential term according to the observation value.
[0125] In some embodiments, the differential term is calculated by the following formula:
[0126]
[0127] in, represents the difference term, represents the first observation, represents the second observation, Represents a sequence of numbers.
[0128] In step 310, a second node state value at the next moment is calculated according to the differential term, and the second node state value is transmitted.
[0129] In some embodiments, the second node state value is calculated by the following formula:
[0130]
[0131] in, Indicates the second node state value, represents the projection operator, The component representing the scaling amount, is a non-negative decreasing step size and satisfies , , represents the difference term, Indicates the third state value.
[0132] The present application provides a method, device, electronic device and storage medium for secure information transmission. The method includes: obtaining the first node state value at the current moment; calculating the elastic constraint set according to the first node state value; obtaining the scaling amount according to the elastic constraint set; obtaining the differential term according to the scaling amount; calculating the second node state value at the next moment according to the differential term, and transmitting the second node state value. The above method can ensure the security of information transmission in the edge attack application scenario of information transmission.
[0133] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0134] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0135] Based on the same technical concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a device for secure information transmission.
[0136] refer to Figure 4 , the device for secure information transmission comprises:
[0137] The acquisition module 401 is configured to obtain the first node state value at the current moment.
[0138] The first calculation module 402 is configured to calculate an elastic constraint set according to the first node state value.
[0139] The first calculation module 402 is further configured to calculate the elastic constraint set according to the first state value and the second state value.
[0140] The first calculation module 402 is further configured to calculate the elastic constraint set by the following formula:
[0141]
[0142] in, represents the elastic constraint set, Represents an individual The neighbor set of , Represents an individual , represents the first state value, Represents the second state value, Represents an individual The node status value.
[0143] The second calculation module 403 is configured to obtain a scaling amount according to the elastic constraint set.
[0144] The second calculation module 403 is further configured to calculate the scaling amount using the following formula:
[0145]
[0146] in, Indicates the amount of scaling, is the auxiliary vector, Represents the total number of nodes, Represents a set of elastic constraints.
[0147] The third calculation module 404 is configured to obtain a differential term according to the scaling amount.
[0148] The third calculation module 404 is further configured to obtain a third state value according to the elastic constraint set; obtain an observation value according to the third state value; and obtain the differential term according to the observation value.
[0149] The third calculation module 404 is further configured to calculate the difference term by the following formula:
[0150]
[0151] in, represents the difference term, represents the first observation, represents the second observation, Represents a sequence of numbers.
[0152] The transmission module 405 is configured to calculate the second node state value at the next moment according to the differential term, and transmit the second node state value.
[0153] The transmission module 405 is configured to calculate the second node state value by the following formula:
[0154]
[0155] in, Indicates the second node state value, represents the projection operator, represents the component of the scaling amount, is a non-negative decreasing step size and satisfies , , represents the difference term, Indicates the third state value.
[0156] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0157] The device of the above embodiment is used to implement the corresponding method 300 in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0158] Based on the same technical concept, corresponding to any of the above-mentioned embodiments, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method 300 described in any of the above embodiments when executing the program.
[0159] Figure 5 A schematic diagram of an exemplary electronic device according to an embodiment of the present application is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other in communication within the device through the bus 1050.
[0160] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0161] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0162] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0163] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0164] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010 , the memory 1020 , the input / output interface 1030 , and the communication interface 1040 ).
[0165] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0166] The electronic device of the above embodiment is used to implement the corresponding method 300 in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0167] Based on the same technical concept, corresponding to any of the above-mentioned embodiments, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute method 300 described in any of the above embodiments.
[0168] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0169] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the method 300 described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0170] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0171] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power / ground connections to the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device may be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present application are to be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0172] Although the present application has been described in conjunction with specific embodiments of the present application, many alternatives, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the discussed embodiments.
[0173] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. A method for secure information transmission, include: Get the first node status value at the current moment; Calculating an elastic constraint set according to the first node state value; According to the elastic constraint set, a scaling amount is obtained; According to the scaling amount, a differential term is obtained; Calculate the second node state value at the next moment according to the differential term, and transmit the second node state value; Wherein, the first node state value includes a first state value and a second state value, and the calculating the elastic constraint set according to the first node state value further includes: calculating the elastic constraint set according to the first state value and the second state value; The elastic constraint set is calculated by the following formula: in, represents the elastic constraint set, Represents an individual The neighbor set of , Represents an individual , represents the first state value, Represents the second state value, Represents an individual The node status value of The scaling amount is calculated by the following formula: in, Indicates the amount of scaling, is the auxiliary vector, Represents the total number of nodes, represents the elastic constraint set, Represents an individual ; The step of obtaining a differential term based on the scaling amount further includes: obtaining a third state value based on the elastic constraint set; obtaining an observation value based on the third state value; and obtaining the differential term based on the observation value.
2. The method according to claim 1, in, The differential term is calculated by the following formula: in, represents the difference term, represents the first observation, represents the second observation, Represents a sequence of numbers.
3. The method according to claim 1, in, The second node status value is calculated by the following formula: in, Indicates the second node state value, represents the projection operator, represents the component of the scaling amount, is a non-negative decreasing step size and satisfies , , represents the difference term, Indicates the third state value.
4. A device for secure information transmission, include: An acquisition module, configured to acquire a state value of a first node at a current moment; A first calculation module is configured to calculate an elastic constraint set according to the first node state value; A second calculation module is configured to obtain a scaling amount according to the elastic constraint set; A third calculation module is configured to obtain a differential term according to the scaling amount; a transmission module, configured to calculate a second node state value at a next moment according to the differential term, and transmit the second node state value; The first node state value includes a first state value and a second state value, and the first calculation module is further configured to: calculate the elastic constraint set according to the first state value and the second state value; The elastic constraint set is calculated by the following formula: in, represents the elastic constraint set, Represents an individual The neighbor set of , Represents an individual , represents the first state value, Represents the second state value, Represents an individual The node status value of The scaling amount is calculated by the following formula: in, Indicates the amount of scaling, is the auxiliary vector, Represents the total number of nodes, represents the elastic constraint set, Represents an individual ; The third calculation module is further configured to: obtain a third state value according to the elastic constraint set; obtain an observation value according to the third state value; and obtain the differential term according to the observation value.
5. The device as claimed in claim 4, in, The differential term is calculated by the following formula: in, represents the difference term, represents the first observation, represents the second observation, Represents a sequence of numbers.
6. The device as claimed in claim 4, in, The second node status value is calculated by the following formula: in, Indicates the second node state value, represents the projection operator, represents the component of the scaling amount, is a non-negative decreasing step size and satisfies , , represents the difference term, Indicates the third state value.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, in, When the processor executes the program, the method according to any one of claims 1 to 3 is implemented.
8. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 3.
