WiFi access position signal consensus system and method based on block chain
Technical Field
The invention relates to the field of block chains, in particular to a WiFi access position signal consensus system and method based on the block chains.
Background
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm.
The block chain is an important concept of the bitcoin, is essentially a decentralized database, and is used as a bottom-layer technology of the bitcoin, namely a series of data blocks which are generated by correlation by using a cryptographic method, wherein each data block contains information of a batch of bitcoin network transactions for verifying the validity (anti-counterfeiting) of the information and generating a next block.
The blockchain technology is a brand new distributed infrastructure and computing mode that uses blockchain data structures to verify and store data, uses distributed node consensus algorithms to generate and update data, uses cryptography to secure data transmission and access, and uses intelligent contracts composed of automated script codes to program and manipulate data.
Wi-Fi is a technology that allows an electronic device to connect to a Wireless Local Area Network (WLAN), typically using the 2.4GUHF or 5G SHF ISM radio frequency bands. Connecting to a wireless local area network is typically password protected; but may be open, allowing any device within range of the WLAN to connect. Wi-Fi is a brand of wireless networking technology held by the Wi-Fi alliance. The object is to improve the interoperability between wireless network products based on the IEEE 802.11 standard. Local area networks using the IEEE 802.11 family of protocols are known as wireless fidelity.
At present, when a user is connected with a wireless network, networking is carried out through subjective judgment of the user, and the method can cause a lot of connections to risk networks, so that personal information and property of the user are stolen.
Disclosure of Invention
The invention aims to provide a WiFi access position signal consensus system and a WiFi access position signal consensus method based on a block chain, and aims to solve the problems in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme:
a WiFi access position signal consensus system based on a block chain comprises a smart phone terminal, a WiFi network security judgment module, a WiFi network access position positioning module, a WiFi network access request module, a data transmission speed detection module and a WiFi network signal sharing module, wherein the WiFi network security judgment module, the WiFi network access position positioning module, the WIFI network access request module, the data transmission speed detection module and the WiFi network signal sharing module are sequentially connected through a WiFi network;
the intelligent mobile phone terminal is used for accessing a WIFI network, the WIFI network access request module is used for enabling the WIFI network to send a WIFI network access request to the intelligent mobile phone terminal within a set range, and the WiFi network access position positioning module is used for positioning the intelligent mobile phone terminal trying to access the WIFI network and judging the distance between the intelligent mobile phone terminal and the router; the WiFi network safety judgment module is used for enabling the smart phone terminal to judge the safety of the WIFI network of the smart phone terminal, the data transmission speed detection module is used for detecting the transmission speed of the current WiFi network, and the WiFi network signal sharing module is used for sharing different position signals.
According to the technical scheme, the security level comprises the steps of carrying out security inspection on communication network equipment and network communication, establishing an attacker network model, extracting attacker actions and state information corresponding to the attacker, wherein the attacker actions comprise improper authority setting or unauthorized operation and hacking when the network is connected, establishing a defense model according to the attacker actions, and the defense model is used for inspecting the attacker actions and judging the network security level according to different attack results, wherein the security level 1-2 is attack diffusion, the security level 3-5 is nonspecific perception, and the security level 6-7 is normal work.
According to the technical scheme, the defense model is used for stopping and marking the wireless network receiving the attack, the interior of the defense model is used for calculating the probability of attack success, the WiFi access time is set to be T1, T2, T3, T4, the WiFi access time is set to be T4, T-1 and Tn, the attack probability detected by the defense model is S1, S2, S3, S4, the attack probability detected by the defense model is Sn-1 and Sn when S1 is greater than 30% and Sn-Sn-1 is greater than 20%, the attack probability detected by the defense model is high, and the defense model stops and marks the wireless network.
By adopting the technical scheme: the WiFi network safety judgment module is internally provided with a WiFi network collection submodule, the WiFi network collection submodule is used for collecting the connectable WiFi networks in the limited range to form a connectable network list, judging whether the WiFi networks in the list need keys or not, screening out the personal networks needing the keys, carrying out safety evaluation on the remaining WiFi networks without the keys, marking the WiFi networks in the list from low to high 1-7 according to the safety level, screening out the WiFi networks with the safety level lower than 3, and sending the WiFi networks in the list to the smart phone terminal for networking selection.
By adopting the technical scheme: the WiFi network access position positioning module comprises a networking point positioning submodule and a distance calculation submodule, when a user selects a WiFi network needing to be accessed, the networking point positioning submodule positions a smart phone terminal which is being networked, the distance calculation submodule is used for calculating the straight-line distance between a positioned networking point and a WiFi network router, the straight-line distance between the positioned networking point and the WiFi network router is set to be L, the current network delay rate is set to be Km/s, when L and K meet the condition that L is more than 10m and Km/s is less than 100m/s, the current network is judged to be connectable, and when L and K do not meet the condition that L is more than 10m and Km/s is less than 100m/s, the next network in the list is switched and screened.
By adopting the technical scheme: the WIFI network access request module is used for sending an access request command to a WIFI network meeting the distance calculation submodule so as to connect the smart phone terminal with the adaptive WIFI network, and comprises a current network marking submodule which is used for marking the security level and the network delay rate of the WIFI network connected with the smart phone terminal, so that secondary connection steps are reduced.
By adopting the technical scheme: the data transmission speed detection module comprises a WIFI network router performance detection submodule and a theoretical data detection submodule, the WIFI network router performance detection submodule is used for detecting the performance and the wireless bandwidth of the connected WIFI network router and judging whether the router belongs to a single-frequency router, a double-frequency router or a three-frequency router, and the theoretical data detection submodule is used for calculating the data transmission speed of the router according to theoretical values on the router so as to estimate the actual data transmission speed of the router.
By adopting the technical scheme: the WiFi network signal sharing module is used for disclosing linear distances between all smart phone terminals connected to the same WiFi network and the WiFi network router, a network speed detection submodule is arranged inside the WiFi network signal sharing module and is in wireless connection with the data transmission speed detection module, and the network speed detection submodule is used for acquiring the networking network speed and the data transmission speed of all the smart phone terminals connected to the same WiFi network in real time.
A WiFi access position signal consensus method based on block chains comprises the following steps:
s1: the method comprises the steps that a WiFi network security judgment module is utilized to enable a smart phone terminal to judge the security of a WiFi network of the smart phone terminal, a WiFi network collection submodule collects the connectable WiFi networks within a limited range to form a connectable network list, judges whether the WiFi networks in the list need keys or not, screens out personal networks needing the keys, carries out security evaluation on the remaining WiFi networks without the keys, marks the WiFi networks in the list from low to high 1-7 according to security levels, screens out the WiFi networks with the security levels lower than 3, and sends the WiFi networks in the list to the smart phone terminal for networking selection;
s2: positioning a smart phone terminal trying to access the WIFI network by using a WiFi network access position positioning module, judging the distance between the smart phone terminal and a router, when a user selects the WiFi network to be accessed, positioning the smart phone terminal which is networking by using a networking point positioning sub-module, calculating the linear distance between the positioned networking point and the WiFi network router by using a distance calculation sub-module, setting the linear distance between the positioned networking point and the WiFi network router to be L, setting the current network delay rate to be Km/s, when L and K meet L >10m and Km/s <100m/s, judging that the current network can be connected, and when L and K do not meet L >10m and Km/s <100m/s, switching and screening the next network in a list;
s3: the WIFI network access request module is used for sending an access request command to a WIFI network meeting the distance calculation sub-module, so that the smart phone terminal is connected with the adaptive WIFI network, the current network marking sub-module is used for marking the security level and the network delay rate of the WIFI network connected with the smart phone terminal, and secondary connection steps are reduced;
s4: detecting the transmission speed of the current WiFi network by using a data transmission speed detection module; s5: the WiFi network signal sharing module is used for sharing signals at different positions, linear distances between all smart phone terminals connected to the same WiFi network and the WiFi network router are disclosed, the network speed detection submodule acquires the networking network speed and the data transmission speed of all the smart phone terminals connected to the same WiFi network in real time, when the network speed and the data transmission speed are the fastest, the linear distance between the smart phone terminals and the WiFi network router is judged, and the distance is shared for all the smart phone terminals connected to the same WiFi network to be checked.
By adopting the technical scheme: in step S4, the method for detecting the transmission speed of the current WiFi network by using the data transmission speed detection module further includes the following steps:
a1: detecting the performance and the wireless bandwidth of the connected WIFI network router by using a WIFI network router performance detection submodule;
a2: judging whether the router belongs to a single-frequency router, a double-frequency router or a triple-frequency router;
a3: and the theoretical data detection submodule calculates the data transmission speed of the router according to the theoretical value on the router, so that the actual data transmission speed of the router is estimated.
By adopting the technical scheme: in step a3, the theoretical data detection submodule calculates the data transmission speed of the router according to the theoretical value on the router, so as to estimate the actual data transmission speed of the router, and further includes the following steps:
the router is detected to be a single-frequency router, the wireless bandwidth of the single-frequency router is set to be BMbps at most, the control signal interference is set to be C, the theoretical transmission speed is set to be V, and according to a formula:
V=B*1024/8*C
the router is detected to be a double-frequency router, the wireless bandwidth of the double-frequency router is set to be B1Mbps and B2Mbps at most, and according to a formula:
V=(B1+B2)*1024/8*C
the router is detected to be a three-frequency router, the wireless bandwidth of the three-frequency router is set to be B1Mbps, B2Mbps and B3Mbps at most, and according to a formula:
V=(B1+B2+B3)*1024/8*C
in practical situations, the actual transmission speed of the wlan can only reach half of the theoretical maximum transmission speed, and the actual propagation speed is set to
And the data transmission speed detection module sends the detected actual data transmission speed to the smart phone terminal and the WiFi network signal sharing module for sharing.
Compared with the prior art, the invention has the beneficial effects that: the method and the device can screen the security and the network speed of the connectable wireless network, facilitate the user to better connect the network which is safe and has high network speed, mark the connected network and facilitate the secondary connection of the user and other people;
the method comprises the steps that a smart phone terminal is used for accessing a WIFI network, a WIFI network access request module is used for enabling the WIFI network to send a WIFI network access request to the smart phone terminal within a set range, and a WiFi network access position locating module is used for locating the smart phone terminal trying to access the WIFI network and judging the distance between the smart phone terminal and a router; the WiFi network safety judgment module is used for enabling the smart phone terminal to judge the safety of the WIFI network of the smart phone terminal, the data transmission speed detection module is used for detecting the transmission speed of the current WiFi network, and the WiFi network signal sharing module is used for sharing different position signals.
Drawings
In order that the present invention may be more readily and clearly understood, a more particular description of the invention briefly described above will be rendered by reference to specific embodiments that are illustrated in the appended drawings.
Fig. 1 is a schematic block diagram of a WiFi access location signal consensus system based on a block chain according to the present invention;
fig. 2 is a schematic diagram illustrating steps of a WiFi access location signal consensus method based on a block chain according to the present invention;
fig. 3 is a schematic diagram illustrating a specific step of step S4 of the WiFi access location signal consensus method based on block chains according to the present invention;
fig. 4 is a schematic diagram of a specific implementation method of a WiFi access location signal consensus method based on a block chain according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Referring to fig. 1 to 4, in the embodiment of the present invention, a WiFi access position signal consensus system and method based on a block chain are provided, where the system includes a smartphone terminal, a WiFi network security determination module, a WiFi network access position location module, a WiFi network access request module, a data transmission speed detection module, and a WiFi network signal sharing module, where the WiFi network security determination module, the WiFi network access position location module, the WiFi network access request module, the data transmission speed detection module, and the WiFi network signal sharing module are sequentially connected through a WiFi network, and the WiFi network access request module, the WiFi network access position location module, the WiFi network security determination module, the data transmission speed detection module, and the WiFi network signal sharing module are respectively connected to the smartphone terminal through a WiFi network;
the intelligent mobile phone terminal is used for accessing a WIFI network, the WIFI network access request module is used for enabling the WIFI network to send a WIFI network access request to the intelligent mobile phone terminal within a set range, and the WiFi network access position positioning module is used for positioning the intelligent mobile phone terminal trying to access the WIFI network and judging the distance between the intelligent mobile phone terminal and the router; the WiFi network safety judgment module is used for enabling the smart phone terminal to judge the safety of the WIFI network of the smart phone terminal, the data transmission speed detection module is used for detecting the transmission speed of the current WiFi network, and the WiFi network signal sharing module is used for sharing different position signals.
By adopting the technical scheme: the WiFi network safety judgment module is internally provided with a WiFi network collection submodule, the WiFi network collection submodule is used for collecting the connectable WiFi networks in the limited range to form a connectable network list, judging whether the WiFi networks in the list need keys or not, screening out the personal networks needing the keys, carrying out safety evaluation on the remaining WiFi networks without the keys, marking the WiFi networks in the list from low to high 1-7 according to the safety level, screening out the WiFi networks with the safety level lower than 3, and sending the WiFi networks in the list to the smart phone terminal for networking selection.
According to the technical scheme, the security level comprises the steps of carrying out security inspection on communication network equipment and network communication, establishing an attacker network model, extracting attacker actions and state information corresponding to the attacker, wherein the attacker actions comprise improper authority setting or unauthorized operation and hacking when the network is connected, establishing a defense model according to the attacker actions, and the defense model is used for inspecting the attacker actions and judging the network security level according to different attack results, wherein the security level 1-2 is attack diffusion, the security level 3-5 is nonspecific perception, and the security level 6-7 is normal work.
According to the technical scheme, the defense model is used for stopping and marking the wireless network receiving the attack, the interior of the defense model is used for calculating the probability of attack success, the WiFi access time is set to be T1, T2, T3, T4, the WiFi access time is set to be T4, T-1 and Tn, the attack probability detected by the defense model is S1, S2, S3, S4, the attack probability detected by the defense model is Sn-1 and Sn when S1 is greater than 30% and Sn-Sn-1 is greater than 20%, the attack probability detected by the defense model is high, and the defense model stops and marks the wireless network.
By adopting the technical scheme: the WiFi network access position positioning module comprises a networking point positioning submodule and a distance calculation submodule, when a user selects a WiFi network needing to be accessed, the networking point positioning submodule positions a smart phone terminal which is being networked, the distance calculation submodule is used for calculating the straight-line distance between a positioned networking point and a WiFi network router, the straight-line distance between the positioned networking point and the WiFi network router is set to be L, the current network delay rate is set to be Km/s, when L and K meet the condition that L is more than 10m and Km/s is less than 100m/s, the current network is judged to be connectable, and when L and K do not meet the condition that L is more than 10m and Km/s is less than 100m/s, the next network in the list is switched and screened.
By adopting the technical scheme: the WIFI network access request module is used for sending an access request command to a WIFI network meeting the distance calculation submodule so as to connect the smart phone terminal with the adaptive WIFI network, and comprises a current network marking submodule which is used for marking the security level and the network delay rate of the WIFI network connected with the smart phone terminal, so that secondary connection steps are reduced.
By adopting the technical scheme: the data transmission speed detection module comprises a WIFI network router performance detection submodule and a theoretical data detection submodule, the WIFI network router performance detection submodule is used for detecting the performance and the wireless bandwidth of the connected WIFI network router and judging whether the router belongs to a single-frequency router, a double-frequency router or a three-frequency router, and the theoretical data detection submodule is used for calculating the data transmission speed of the router according to theoretical values on the router so as to estimate the actual data transmission speed of the router.
By adopting the technical scheme: the WiFi network signal sharing module is used for disclosing linear distances between all smart phone terminals connected to the same WiFi network and the WiFi network router, a network speed detection submodule is arranged inside the WiFi network signal sharing module and is in wireless connection with the data transmission speed detection module, and the network speed detection submodule is used for acquiring the networking network speed and the data transmission speed of all the smart phone terminals connected to the same WiFi network in real time.
A WiFi access position signal consensus method based on block chains comprises the following steps:
s1: the method comprises the steps that a WiFi network security judgment module is utilized to enable a smart phone terminal to judge the security of a WiFi network of the smart phone terminal, a WiFi network collection submodule collects the connectable WiFi networks within a limited range to form a connectable network list, judges whether the WiFi networks in the list need keys or not, screens out personal networks needing the keys, carries out security evaluation on the remaining WiFi networks without the keys, marks the WiFi networks in the list from low to high 1-7 according to security levels, screens out the WiFi networks with the security levels lower than 3, and sends the WiFi networks in the list to the smart phone terminal for networking selection;
s2: positioning a smart phone terminal trying to access the WIFI network by using a WiFi network access position positioning module, judging the distance between the smart phone terminal and a router, when a user selects the WiFi network to be accessed, positioning the smart phone terminal which is networking by using a networking point positioning sub-module, calculating the linear distance between the positioned networking point and the WiFi network router by using a distance calculation sub-module, setting the linear distance between the positioned networking point and the WiFi network router to be L, setting the current network delay rate to be Km/s, when L and K meet L >10m and Km/s <100m/s, judging that the current network can be connected, and when L and K do not meet L >10m and Km/s <100m/s, switching and screening the next network in a list;
s3: the WIFI network access request module is used for sending an access request command to a WIFI network meeting the distance calculation sub-module, so that the smart phone terminal is connected with the adaptive WIFI network, the current network marking sub-module is used for marking the security level and the network delay rate of the WIFI network connected with the smart phone terminal, and secondary connection steps are reduced;
s4: detecting the transmission speed of the current WiFi network by using a data transmission speed detection module; s5: the WiFi network signal sharing module is used for sharing signals at different positions, linear distances between all smart phone terminals connected to the same WiFi network and the WiFi network router are disclosed, the network speed detection submodule acquires the networking network speed and the data transmission speed of all the smart phone terminals connected to the same WiFi network in real time, when the network speed and the data transmission speed are the fastest, the linear distance between the smart phone terminals and the WiFi network router is judged, and the distance is shared for all the smart phone terminals connected to the same WiFi network to be checked.
By adopting the technical scheme: in step S4, the method for detecting the transmission speed of the current WiFi network by using the data transmission speed detection module further includes the following steps:
a1: detecting the performance and the wireless bandwidth of the connected WIFI network router by using a WIFI network router performance detection submodule;
a2: judging whether the router belongs to a single-frequency router, a double-frequency router or a triple-frequency router;
a3: and the theoretical data detection submodule calculates the data transmission speed of the router according to the theoretical value on the router, so that the actual data transmission speed of the router is estimated.
By adopting the technical scheme: in step a3, the theoretical data detection submodule calculates the data transmission speed of the router according to the theoretical value on the router, so as to estimate the actual data transmission speed of the router, and further includes the following steps:
the router is detected to be a single-frequency router, the wireless bandwidth of the single-frequency router is set to be BMbps at most, the control signal interference is set to be C, the theoretical transmission speed is set to be V, and according to a formula:
V=B*1024/8*C
the router is detected to be a double-frequency router, the wireless bandwidth of the double-frequency router is set to be B1Mbps and B2Mbps at most, and according to a formula:
V=(B1+B2)*1024/8*C
the router is detected to be a three-frequency router, the wireless bandwidth of the three-frequency router is set to be B1Mbps, B2Mbps and B3Mbps at most, and according to a formula:
V=(B1+B2+B3)*1024/8*C
in practical situations, the actual transmission speed of the wlan can only reach half of the theoretical maximum transmission speed, and the actual propagation speed is set to
And the data transmission speed detection module sends the detected actual data transmission speed to the smart phone terminal and the WiFi network signal sharing module for sharing.
Example 1: the limiting conditions are as follows: detecting the router as a single-frequency router, setting the maximum wireless bandwidth of the single-frequency router to be 600Mbps, setting the interference of a control signal to be 12%, setting the theoretical transmission speed to be V, and according to a formula:
V=B*1024/8*C
calculating to obtain: v =600 × 1024/8 × 12% =9216KB/s, and in actual cases, the actual transmission speed of the wireless lan can only reach half of the theoretical maximum transmission speed, and the theoretical transmission speed is set to be
=4068KB/s;
Example 2: the limiting conditions are as follows: detecting that the router is a double-frequency router, setting the wireless bandwidth of the double-frequency router to be 600Mbps and 1300Mbps at most, setting the interference of a control signal to be 12 percent, setting the theoretical transmission speed to be V, and according to a formula:
V=(B1+B2)*1024/8*C
computingTo obtain: v = (600 + 1300) × 1024/8 = 12% =29184KB/s, and in actual cases, the actual transmission speed of the wireless lan can only reach half of the theoretical maximum transmission speed, and the theoretical transmission speed is set to be
=14592KB/s;
Example 3: the limiting conditions are as follows: detecting the router as a three-frequency router, setting the wireless bandwidth of the three-frequency router to be 600Mbps, 1300Mbps and 1300Mbps at most, setting the interference of the control signal to be 12 percent, setting the theoretical transmission speed to be V, and according to a formula:
V=(B1+B2+B3)*1024/8*C
calculating to obtain: v = (600 +1300+ 1300) × 1024/8 × 12% =49152KB/s, and in actual cases, the actual transmission rate of the wireless lan can only reach half of the theoretical maximum transmission rate, and the theoretical transmission rate is set to be
=24576KB/s;
Example 4: the limiting conditions are as follows: detecting the router as a three-frequency router, setting the wireless bandwidth of the three-frequency router to be 600Mbps, 1300Mbps and 1300Mbps at most, setting the interference of the control signal to be 25 percent, setting the theoretical transmission speed to be V, and according to a formula:
V=(B1+B2+B3)*1024/8*C
calculating to obtain: v = (600 +1300+ 1300) × 1024/8 × 25% =102400KB/s, and in actual cases, the actual transmission rate of the wireless lan can only reach half of the theoretical maximum transmission rate, and the theoretical transmission rate is set to be
=51200KB/s。
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.