Device network access method, device, electronic device and storage medium
By generating and verifying the device fingerprint and combining blockchain technology, the security risks of IoT devices in wind farms are solved, and the security of device access and communication data are achieved.
Patent Information
- Application Number
- CN202210583588.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-25
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-05-25
AI Technical Summary
In the deployment of wind farms, IoT devices have security risks due to their networking characteristics and equipment characteristics, such as perceived node damage, security label theft and communication security issues, resulting in data leakage and network insecurity.
By collecting device information, generating device fingerprints, using Bayesian algorithm and hash algorithm for feature fusion and hash calculations, generating a unique device fingerprint, and verifying it through blockchain technology and fingerprint library to ensure the security of device access to the network .
It effectively prevents illegal behavior of equipment access to the network, ensures the security of information in the network, enhances the confidentiality and immutability of communication data, and reduces security threats.
Smart Images

Figure CN115002775B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of networking technology, and in particular to a method and apparatus for connecting a device to a network, an electronic device, and a storage medium. Background Art
[0002] Nowadays, the country is vigorously developing clean energy, among which wind power generation is one of the main sources of clean energy in my country. Based on the characteristics of wind power generation, wind turbines are usually deployed in a wide distribution, in remote locations, and in large numbers. Usually, the safety of wind turbines is monitored and protected through IoT devices. However, due to the networking characteristics of the IoT and the characteristics of the IoT devices themselves, there are certain security risks in IoT security protection. Summary of the invention
[0003] The purpose of the present disclosure is to provide a method, device, electronic device and storage medium for accessing a device to a network, aiming to solve the above-mentioned technical problems.
[0004] In order to achieve the above-mentioned purpose, the first aspect of the present disclosure provides a method for device access to the network, including: collecting device information of a first device to be connected to the network, wherein the device information is of multiple types; generating a device fingerprint of the first device as a first device fingerprint based on the device information; if the first device fingerprint is verified successfully, controlling the first device to access the network.
[0005] Optionally, generating the device fingerprint of the first device according to the device information as the first device fingerprint includes: using a Bayesian algorithm to fuse features of multiple device information to obtain fused multiple device information; using a hash algorithm to perform hash calculation on the fused multiple device information to obtain a hash value; and determining the hash value as the device fingerprint of the first device and using it as the first device fingerprint.
[0006] Optionally, determining the hash value as the device fingerprint of the first device as the first device fingerprint includes: obtaining a collision rate based on multiple device information, wherein the collision rate is used to characterize the repetition probability of the hash value; if the collision rate is lower than a preset probability, determining the hash value as the device fingerprint of the first device; and using the device fingerprint of the first device as the first device fingerprint.
[0007] Optionally, if the fingerprint verification of the first device is successful, then controlling the first device to access the network includes: if the first device fingerprint is different from multiple second device fingerprints in the fingerprint library, determining that the fingerprint verification of the first device is successful, and controlling the first device to access the network.
[0008] Optionally, if the first device fingerprint is different from multiple second device fingerprints in the fingerprint library, it is determined that the first device fingerprint verification is successful, and before controlling the first device to access the network, it also includes: obtaining the device fingerprint of each second device among the multiple second devices that have accessed the network as the second device fingerprint; and constructing the fingerprint library based on the multiple second device fingerprints.
[0009] Optionally, if the fingerprint verification of the first device is successful, then after controlling the first device to enter the network, it also includes: sending the device identification of the first device and the first device fingerprint to multiple second devices, wherein the multiple second devices and the first device are in the same network; when receiving a communication request sent by a second device, determining the second device sending the communication request from the multiple second devices as the target device, wherein the communication request is used to request communication with the first device; if a preset number of second devices among the multiple second devices successfully verify the identity of the first device, a communication connection between the first device and the target device is established.
[0010] Optionally, the device information of the first device includes at least two of SDK, IP address, MAC address, device model, and device location coordinates.
[0011] According to a second aspect of the present disclosure, there is provided a device for accessing the network of a device, the device comprising: a collection module for collecting device information of a first device to be connected to the network, wherein the device information is of multiple types; a generation module for generating a device fingerprint of the first device as a first device fingerprint according to the device information; and a network access module for controlling the first device to access the network if the first device fingerprint is successfully verified.
[0012] A third aspect of the present disclosure provides an electronic device, comprising: a memory on which a computer program is stored; and a processor, configured to execute the computer program in the memory to implement the steps of the above method.
[0013] A fourth aspect of the present disclosure provides a non-temporary computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when executed by a processor.
[0014] The present application provides a device access method, apparatus, electronic device and storage medium, which collect device information of a first device to be connected to the network, wherein the device information may be of multiple types; a device fingerprint of the first device is generated based on the device information as a first device fingerprint; if the first device fingerprint is successfully verified, the first device is controlled to access the network, and the first device is connected to the network after verification, thereby ensuring the security of information in the network.
[0015] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:
[0017] Figure 1 It is a topology diagram of an Internet of Things system provided by an embodiment of the present disclosure;
[0018] Figure 2 is a flow chart of a method for a device to access a network according to an exemplary embodiment;
[0019] Figure 3 is based on Figure 2 A flowchart of step S120 of a method for accessing a device to a network is shown in the embodiment;
[0020] Figure 4 It is a topology diagram of an Internet of Things system provided by an embodiment of the present disclosure;
[0021] Figure 5 is a flow chart of a method for a device to access a network according to another exemplary embodiment;
[0022] Figure 6 is a schematic diagram of a device for accessing a network according to an exemplary embodiment;
[0023] Figure 7 It is a block diagram of an electronic device according to an exemplary embodiment.
[0024] Description of Reference Numerals
[0025] 1-Internet of Things system, 700-electronic device, 200-second device, 300-first device. DETAILED DESCRIPTION
[0026] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0027] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0028] Nowadays, the country is vigorously developing clean energy, among which wind power generation is one of the main sources of clean energy in my country. Based on the characteristics of wind power generation, wind turbines are usually deployed in a wide distribution, in remote locations, and in large numbers. Usually, the safety of wind turbines is monitored and protected through IoT devices. However, due to the networking characteristics of the IoT and the characteristics of the IoT devices themselves, there are certain security risks in IoT security protection. For example, there are the following risks:
[0029] (1) Perception Node Problem
[0030] The IoT has many advantages that cannot be replaced by humans, for example, it can replace humans in harsh environments such as high and low temperatures. Therefore, the sensing nodes of the IoT system can be installed in some unsupervised environments. If an attacker damages the sensing node, it will be impossible to monitor the working conditions of the wind turbine. More seriously, if the attacker replaces the corresponding accessories of the sensing node and reads the detection data through the replaced accessories, the detection data will be leaked.
[0031] (2) Security label issues
[0032] Attackers may steal the physical RFID tag on the IoT device and remove the physical chip inside the tag to obtain the information on it. At the same time, the reader reads the information in the tag through the wireless video signal, and the wireless RF signal cannot distinguish the legitimacy of the reader. In addition, the wireless RF signal has the characteristics of strong penetration and can be transmitted directly through the building. It may be because the frequency of the wireless RF signal emitted by the IoT device matches the frequency of the signal emitted by the attacker's reader. The attacker's reader can read the tag through the wireless RF signal, resulting in the leakage of personal identity authentication, passwords, etc. carried on the tag. And the embedded object of the tag is carried with you, so the attacker can grasp the geographical location of the carrier at any time.
[0033] (3) Communication security
[0034] Since the sensing nodes of the Internet of Things are easily destroyed, and the wireless channels used by the Internet of Things are open channels, the wireless signals are easily eavesdropped and destroyed during transmission. When the Internet of Things is in the working environment of wireless networks and sensor networks, attackers can invade malicious programs through several entrances. Due to the characteristics of the security protection of the Internet of Things, the access security of its devices can be studied in depth. Blockchain technology, as a distributed shared database, can be used for security protection applications on the basis of data consensus, traceability, and non-tamperability. Blockchain ensures the security and non-tamperability of data by generating public keys and private keys. Device fingerprints are unique identifiers generated based on the characteristics of the device. Usually, the fingerprint generation of the device takes into account the name, model, function and other related characteristics of the device. However, traditional software development kits (SDKs) are easily exposed, and attackers can purchase the same device and crack the device information by reverse engineering. By combining the formal device fingerprint of the blockchain to manage consensus, and using zero-knowledge proof to apply blockchain to enhance data confidentiality.
[0035] See also Figure 1 The Internet of Things system 1 includes an electronic device 700 and multiple second devices 200. The second device 200 can be directly connected to the electronic device 700, or can be connected to the electronic device through other second devices, together forming the Internet of Things system 1. The devices in the Internet of Things system 1 can communicate with each other. When a first device 300 to be connected to the network wants to join the Internet of Things system 1, in order to ensure the security of the data in the Internet of Things system, the first device needs to be verified.
[0036] In view of the above technical problems, the inventor has discovered and proposed a method for device access to the network after long-term research. The execution subject of the method can be an electronic device, wherein the electronic device can be a cloud, a gateway, a computer, or an IoT device in the network. Figure 2 The device network access method may specifically include the following steps:
[0037] Step S110: collecting device information of a first device to be connected to the network, wherein the device information may be of multiple types.
[0038] When the first device sends a network access request to the electronic device, the electronic device collects device information of the first device, wherein the device information of the first device includes at least two of the SDK, the Internet Protocol (IP) address for interconnection between networks, the Ethernet (Media Access Control, MAC) address, the device model, and the coordinates of the location of the device.
[0039] Optionally, the first device information may also include registration information when the first device is registered with the electronic device.
[0040] Step S120: Generate a device fingerprint of the first device as a first device fingerprint according to the device information.
[0041] A device fingerprint of the first device is generated by integrating multiple device information, and the device fingerprint is used as the first device fingerprint. It can be understood that the first device fingerprint is unique and can uniquely represent the first device.
[0042] In one embodiment, Figure 3 As shown, step S120 may include the following sub-steps:
[0043] Sub-step S121: using the Bayesian algorithm to perform feature fusion on multiple types of device information to obtain fused multiple types of device information.
[0044] The features of various equipment information are fused through the Bayesian algorithm to obtain fused various equipment information.
[0045] Sub-step S122: using a hash algorithm to perform hash calculation on the merged multiple device information to obtain a hash value.
[0046] Sub-step S123: determining the hash value as a device fingerprint of the first device and serving as the first device fingerprint.
[0047] As a method, a collision rate is obtained based on multiple device information, wherein the collision rate is used to characterize the probability of repetition of the hash value. If the collision rate is lower than a preset probability, it means that the calculated hash value is not easy to be copied and the possibility of leakage is low, and the hash value is determined as the device fingerprint of the first device; and the device fingerprint of the first device is used as the first device fingerprint.
[0048] Step S130: If the fingerprint verification of the first device is successful, control the first device to access the network.
[0049] In one embodiment, the fingerprint of the first device can be verified according to the fingerprint library. Optionally, the device fingerprint of each second device among the multiple second devices that have been connected to the network is obtained as the second device fingerprint; the fingerprint library is constructed according to the multiple second device fingerprints. The fingerprint of the first device is verified according to the second device fingerprint stored in the pre-established fingerprint library, for example, it is determined whether the first device fingerprint is the same as the multiple second device fingerprints in the fingerprint library. If the first device fingerprint is the same as any one of the multiple second device fingerprints, it means that the second device fingerprint in the fingerprint library may be leaked or regenerated by an attacker. In order to ensure the security of information in the network, the first device fails to access the network; if the first device fingerprint is different from the multiple second device fingerprints in the fingerprint library, it is determined that the first device fingerprint verification is successful, and the first device is controlled to access the network.
[0050] For example, Figure 4 As shown, the first device 300 accesses the network by connecting to an electronic device, or the first device 300 accesses the network by connecting to at least one of a plurality of second devices.
[0051] In the device access method provided in this embodiment, device information of a first device to be connected to the network is collected, wherein the device information may be of multiple types; a device fingerprint of the first device is generated as a first device fingerprint based on the device information; if the first device fingerprint is successfully verified, the first device is controlled to access the network, and the first device is connected to the network after verification, thereby ensuring the security of information in the network.
[0052] Optionally, after the first device joins the network, it can participate in the communication in the network, see Figure 5 The device network access method may specifically include the following steps:
[0053] Step S210: collecting device information of a first device to be connected to the network, wherein the device information may be of multiple types.
[0054] Step S220: Generate a device fingerprint of the first device as a first device fingerprint according to the device information.
[0055] Step S230: If the fingerprint verification of the first device is successful, control the first device to access the network.
[0056] In this embodiment, the specific description of step S210 to step S230 can refer to step S110 to step S130 in the above embodiment, which will not be repeated here.
[0057] Step S240: Send the device identification of the first device and the first device fingerprint to multiple second devices, wherein the multiple second devices and the first device are in the same network.
[0058] All devices in the network store the device identification and device fingerprint of other devices, which facilitates the verification of device identity through the device identification and device fingerprint. Therefore, the electronic device can send the device identification and the first device fingerprint of the first device to multiple second devices in the network through its own communication module. Similarly, the device identification and the corresponding second device fingerprint of multiple second devices in the network are sent to the first device.
[0059] It can be understood that each second device in the network stores the device identification and second device fingerprint of other second devices.
[0060] Step S250: When receiving a communication request sent by a second device, determine the second device that sends the communication request as a target device from the multiple second devices, wherein the communication request is used to request communication with the first device.
[0061] Step S260: If a preset number of second devices among the plurality of second devices successfully verify the identity of the first device, a communication connection is established between the first device and the target device.
[0062] To ensure the security of information, it is necessary to verify the identity of the first device. Each of the multiple second devices compares the device identification and the first device fingerprint of the first device stored in itself with the first device fingerprint sent by the first device. If the two are consistent, it means that the second device has successfully verified the identity of the first device. If a preset number (for example, 2) or a preset proportion (for example, 51%) of second devices among the multiple second devices have successfully verified the identity, it is determined that the identity verification of the first identity is successful, and a communication connection between the first device and the target device is established. The first device can communicate with the target device based on the connection relationship.
[0063] Optionally, the same method may be used to verify the identity of the target device, based on a mutual authentication mechanism between devices, thereby ensuring the security of communication data.
[0064] Optionally, before the devices communicate, a key can be generated for encrypting communication messages. Multiple devices generate public keys and private keys through their own key generation modules, specifically including: constructing a public key-private key seed matrix based on the elliptic curve discrete logarithm problem, performing a hash operation on the device fingerprint, obtaining the hash value of the device fingerprint, obtaining the corresponding line coordinate sequence by calculating the hash value of the device fingerprint using the line mapping algorithm, and extracting the key factors of the public key-private key matrix in the seed according to the row coordinate sequence, performing a combination operation on the key factors, and obtaining the public key and private key of the IoT device. The obtained public key and private key are used to encrypt the communication data, further improving the security of the communication data.
[0065] In this embodiment, after verifying the device identity, a communication connection between at least two devices that need to communicate is established, thereby ensuring the security of communication data.
[0066] Optionally, based on blockchain technology, each device can generate a block based on its own device fingerprint to store work data with a timestamp.
[0067] The recognition capability can learn and identify IoT terminals through active detection and traffic learning, obtain fingerprint information to achieve unique identification of terminal devices, and provide a basis for security capabilities such as terminal authentication and access control. The access control whitelist forms a terminal access control whitelist based on the fingerprint learning results, effectively blocking non-business terminals from accessing the network, and providing effective identity recognition and access control for terminals. Intelligent establishment of behavioral baselines can automatically learn the daily behavior of business terminals, and intelligently generate behavioral baselines for each terminal as a long-term sample reference model to determine whether the terminal is normal. Terminal behavior control can automatically or manually generate behavior control strategies based on the behavior baseline, and standardize terminal behavior according to the strategy to achieve the purpose of shielding abnormal terminal actions, instructions, behaviors, etc., and effectively prevent infected terminals from performing illegal operations.
[0068] (1) Blockchain device fingerprint whitelist control mechanism, usually terminal access is effectively divided into two categories, namely business terminal data and non-business terminal data, and while allowing business data to pass, it effectively blocks non-business data from accessing the user network. Compared with the blacklist mechanism, the whitelist has obvious security advantages. Non-business data has the characteristics of a large range and cannot be accurately predicted. The whitelist only allows legal business to pass, which can effectively block illegal business requests; while the accuracy of the blacklist mechanism relies on the feature library, which is generally imperfect and lagging, and cannot effectively cover security threats, and cannot completely block non-business data access.
[0069] (2) The terminal behavior baseline is self-learning. It can automatically form a terminal behavior baseline by analyzing the daily traffic content flowing through the device. When the terminal encounters attacks, virus infections, illegal control, fingerprint fraud, etc., and cannot be prevented by fingerprint access, it forms a second line of defense. Only operations initiated by the terminal that comply with the behavior baseline are allowed to pass through the device, blocking illegal operations. Even if the intruder controls the terminal device, illegal intrusion operations cannot be performed.
[0070] (3) IoT device access control, based on the authentication mechanism of the device in building the blockchain network, based on the secondary network access requires authentication, and then write the device operation into the alliance chain when starting to build, you can know the device operation, monitor the device operation status, and find abnormalities. The operation can be traced, thereby ensuring the traceability of the device operation information and tracing the device.
[0071] (4) It has the ability to display the terminal security status in depth. It can further integrate the terminal security status data through centralized collection, analyze and display the terminal security status in detail by level, region, from the whole to each terminal, and display it effectively. It has a complete data interface and can seamlessly integrate with various centralized control platforms and situation awareness systems. The method mainly lies in checking the device status information between each generated block, reviewing its log, and checking the voting status of each newly generated block of each block node, so as to check the blocks with abnormal status, so as to help realize the access function.
[0072] To implement the above touch control method, this embodiment provides a device network access device, please refer to Figure 6 The device network access apparatus 400 includes: a collection module 410 , a generation module 420 and a network access module 430 .
[0073] A collection module 410 is used to collect device information of a first device to be connected to the network, wherein the device information is of multiple types;
[0074] A generating module 420, configured to generate a device fingerprint of the first device as a first device fingerprint according to the device information;
[0075] The network access module 430 is used to control the first device to access the network if the fingerprint verification of the first device is successful.
[0076] Optionally, the generating module 420 includes: a fusion module, a calculation module and a determination module.
[0077] A fusion module is used to use the Bayesian algorithm to perform feature fusion on multiple device information to obtain fused multiple device information;
[0078] A calculation module, used for performing hash calculation on the fused multiple device information by using a hash algorithm to obtain a hash value;
[0079] A determination module is used to determine the hash value as a device fingerprint of the first device and use it as the first device fingerprint.
[0080] Optionally, the determination module includes: a collision rate acquisition module, a comparison module and a first device fingerprint acquisition module.
[0081] A collision rate obtaining module, used to obtain a collision rate according to a plurality of device information, wherein the collision rate is used to characterize a repetition probability of the hash value;
[0082] a comparison module, configured to determine the hash value as a device fingerprint of the first device if the collision rate is lower than a preset probability;
[0083] The first device fingerprint acquisition module is used to use the device fingerprint of the first device as the first device fingerprint.
[0084] Optionally, the network access module 430 includes: a verification module.
[0085] The verification module is used to determine that the verification of the first device fingerprint is successful if the first device fingerprint is different from multiple second device fingerprints in the fingerprint library, and control the first device to access the network.
[0086] Optionally, the device network access apparatus 400 further includes: a second device fingerprint acquisition module and a construction module.
[0087] A second device fingerprint acquisition module, used to acquire a device fingerprint of each second device among multiple second devices that have been connected to the network as a second device fingerprint;
[0088] A construction module is used to construct the fingerprint library according to multiple second device fingerprints.
[0089] Optionally, the device network access apparatus 400 further includes: a sending module, a target device acquisition module and a communication establishment module.
[0090] a sending module, configured to send the device identification of the first device and the first device fingerprint to a plurality of second devices, wherein the plurality of second devices and the first device are in the same network;
[0091] a target device acquisition module, configured to, when receiving a communication request sent by a second device, determine the second device sending the communication request from the plurality of second devices as the target device, wherein the communication request is used to request communication with the first device;
[0092] The communication establishing module is used to establish a communication connection between the first device and the target device if a preset number of second devices among the plurality of second devices successfully verify the identity of the first device.
[0093] Optionally, the device information of the first device includes at least two of SDK, IP address, MAC address, device model, and device location coordinates.
[0094] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0095] Figure 7 FIG. 1 is a block diagram of an electronic device according to an exemplary embodiment. Figure 7As shown, the electronic device 700 may include: a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input / output (I / O) interface 704, and a communication component 705.
[0096] The processor 701 is used to control the overall operation of the electronic device 700 to complete all or part of the steps in the above-mentioned device network access method. The memory 702 is used to store various types of data to support the operation of the electronic device 700. For example, these data may include instructions for any application or method used to operate on the electronic device 700, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 702 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read-Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. The multimedia component 703 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 702 or sent through the communication component 705. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 704 provides an interface between the processor 701 and other interface modules, and the other interface modules may be keyboards, mice, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, is not limited here. Therefore, the corresponding communication component 705 may include: Wi-Fi module, Bluetooth module, NFC module, etc.
[0097] In an exemplary embodiment, the electronic device 700 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned device access method.
[0098] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned device network access method are implemented. For example, the computer-readable storage medium may be the above-mentioned memory 702 including program instructions, and the above-mentioned program instructions may be executed by the processor 701 of the electronic device 700 to complete the above-mentioned device network access method.
[0099] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.
[0100] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.
[0101] In addition, various embodiments of the present disclosure may be arbitrarily combined, and as long as they do not violate the concept of the present disclosure, they should also be regarded as the contents disclosed by the present disclosure.
Claims
1. A method for device accessing a network, characterized in that: The method comprises: Collecting device information of a first device to be connected to the network, wherein the device information is of multiple types; Use the Bayesian algorithm to fuse the features of multiple device information to obtain the fused multiple device information; Using a hash algorithm to perform hash calculation on the fused multiple device information to obtain a hash value; Determine the hash value as a device fingerprint of the first device and use it as a first device fingerprint; If the fingerprint verification of the first device is successful, controlling the first device to access the network; If the fingerprint verification of the first device is successful, after controlling the first device to access the network, the method further includes: Sending a device identification of the first device and the first device fingerprint to a plurality of second devices, wherein the plurality of second devices and the first device are in the same network; When receiving a communication request sent by a second device, determining the second device sending the communication request as a target device from the plurality of second devices, wherein the communication request is used to request communication with the first device; If a preset number of second devices among the plurality of second devices successfully verify the identity of the first device, a communication connection is established between the first device and the target device.
2. The method according to claim 1, characterized in that The step of determining the hash value as the device fingerprint of the first device as the first device fingerprint includes: Obtaining a collision rate according to the plurality of device information, wherein the collision rate is used to characterize a probability of repetition of the hash value; If the collision rate is lower than a preset probability, determining the hash value as a device fingerprint of the first device; The device fingerprint of the first device is used as the first device fingerprint.
3. The method according to claim 1, characterized in that If the fingerprint verification of the first device is successful, controlling the first device to access the network includes: If the first device fingerprint is different from the plurality of second device fingerprints in the fingerprint library, it is determined that the first device fingerprint verification is successful, and the first device is controlled to access the network.
4. The method according to claim 3, characterized in that If the first device fingerprint is different from the plurality of second device fingerprints in the fingerprint library, it is determined that the first device fingerprint verification is successful, and before controlling the first device to access the network, the method further includes: Acquire a device fingerprint of each second device among multiple second devices that have accessed the network as a second device fingerprint; The fingerprint library is constructed according to a plurality of second device fingerprints.
5. The method according to any one of claims 1 to 4, characterized in that: The device information of the first device includes at least two of SDK, IP address, MAC address, device model, and device location coordinates.
6. A device for accessing a network, characterized in that: The device comprises: A collection module, used for collecting device information of a first device to be connected to the network, wherein the device information is of multiple types; A fusion module is used to use the Bayesian algorithm to perform feature fusion on multiple device information to obtain fused multiple device information; A calculation module, used for performing hash calculation on the fused multiple device information by using a hash algorithm to obtain a hash value; a determination module, configured to determine the hash value as a device fingerprint of the first device and use it as the first device fingerprint; A network access module, configured to control the first device to access the network if the fingerprint verification of the first device is successful; a sending module, configured to send the device identification of the first device and the first device fingerprint to a plurality of second devices, wherein the plurality of second devices and the first device are in the same network; a target device acquisition module, configured to, when receiving a communication request sent by a second device, determine the second device sending the communication request from the plurality of second devices as the target device, wherein the communication request is used to request communication with the first device; The communication establishing module is used to establish a communication connection between the first device and the target device if a preset number of second devices among the plurality of second devices successfully verify the identity of the first device.
7. An electronic device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 5 are implemented.
