Disclosure of Invention
To solve the above problems, the present invention provides a socket system using password to control network connection.
A socket system for controlling a network connection using a password, comprising an ethernet port for a user network port connection, a network connection terminal for connection with an ethernet switch, and further comprising:
the password input module is used for inputting passwords;
the port control module is used for controlling the connection or disconnection of the Ethernet port and the network connection terminal;
and the processing module is used for controlling the connection state between the Ethernet port and the network connection terminal according to the input password.
Preferably, the processing module comprises a password storage module for storing the password and a password judgment module for judging whether the password is correct or not,
when the input password is the same as the stored password, the judgment module judges that the input password is correct and outputs an instruction to the port control module to connect the Ethernet port with the network connection terminal;
when the input password is different from the stored password, the judgment module judges that the input password is wrong and prompts to input the password again.
Preferably, the port control module includes:
the first physical layer chip module is connected with the Ethernet port and used for monitoring the state of the Ethernet port;
the second physical layer chip module is connected with the network connecting terminal and is used for monitoring the state of the network connecting terminal;
and the switch module is connected with the first physical layer chip module and the second physical layer chip module and is used for controlling the connection or disconnection of the Ethernet port and the network connection terminal.
Preferably, when the first physical layer chip module detects that an open circuit exists between the user network port and the ethernet port and the signal line has no signal, the first physical layer chip module controls disconnection between the ethernet port and the network connection terminal.
Preferably, when the first physical layer chip module detects that there is no open circuit between the user network port and the ethernet port and there is no signal in the signal line, the first physical layer chip module controls the ethernet port to be disconnected from the network connection terminal.
Preferably, when the second physical layer chip module monitors that an open circuit exists between the network connection terminal and the ethernet switch and the signal line has no signal, the second physical layer chip module controls the ethernet port to be disconnected from the network connection terminal.
Preferably, when the second physical layer chip module monitors that the network connection terminal and the ethernet switch are not open-circuited and the signal line has no signal, the second physical layer chip module controls the ethernet port and the network connection terminal to be disconnected.
Preferably, the method further comprises the following steps:
and the POE power supply module is connected with the port control module and is used for supplying power.
Preferably, the port control module further comprises:
the first transformer module is connected with the Ethernet port and the first physical layer chip module and used for voltage conversion;
and the second transformer module is connected with the network connecting terminal, the second physical layer chip module and the POE power supply module and is used for voltage conversion.
Preferably, the method further comprises the following steps:
and the display module is connected with the processing module and is used for providing a human-computer interaction interface.
By using the present invention, the following effects can be achieved:
1. and (4) carrying out identity verification by using the password, if the password is wrong, the switch module in the Ethernet socket system is disconnected, and the user side cannot be connected with the network through the socket system. If the password is correct, the switch module inside the Ethernet socket system is connected, and the user side can be connected with the network through the socket system. The password is used for control, so that the use is simple and convenient, and the confidentiality is strong;
2. and the POE technology is adopted to provide power for the socket system. The POE power supply module is used for providing direct current power supply for the equipment while transmitting data signals for the network-based terminal under the condition that the existing Ethernet wiring infrastructure is not changed. Therefore, a power line does not need to be laid independently, system wiring is simplified, and construction cost of network infrastructure is reduced.
Detailed Description
The technical solutions of the present invention will be further described below with reference to the accompanying drawings, but the present invention is not limited to these embodiments.
The invention provides a socket system for controlling network connection by using passwords, wherein an Ethernet port of the socket system is switched on only after a user inputs a correct password, so that the user without the password is prevented from using the network interface.
Based on the above idea, an embodiment of the present invention provides a socket system for controlling network connection by using a password, as shown in fig. 1, including an ethernet port for connecting a user network port, and a network connection terminal for connecting with an ethernet switch, further including: the password input module is used for inputting passwords; the port control module is used for controlling the connection or disconnection of the Ethernet port and the network connection terminal; and the processing module is used for controlling the connection state between the Ethernet port and the network connection terminal according to the input password.
The connection state between the Ethernet port and the network connection terminal is controlled according to the input password, the connection is only carried out after the user inputs the correct password, the password is used for control, the use is simple and convenient, and the confidentiality is high.
The password input module can be composed of 10 number keys of 0-9 plus two control keys of 'confirm' and 'clear'. The password may be constructed using a combination of digits from 6 to 12. Note that the present embodiment does not limit the form of password input.
As shown in fig. 2, the processing module includes a password storage module for storing the password and a password determination module for determining whether the password is correct. When the input password is the same as the stored password, the judgment module judges that the input password is correct and outputs an instruction to the port control module to connect the Ethernet port with the network connection terminal; when the input password is different from the stored password, the judgment module judges that the input password is wrong and prompts to input the password again.
In this embodiment, the processing module determines whether the user has the right to connect to the network by comparing the input password with the stored password, and when the input password is the same as the stored password, the determining module determines that the input password is correct and outputs an instruction to the port control module to connect the ethernet port and the network connection terminal, so that the user can use the network. If the number of times of re-inputting the password by the user is greater than the set threshold value, generally 3 times, the user is not allowed to re-input the password within the set time.
The processing module has many choices and has no special requirement, for example, 51 series 8 single-chip microcomputers can meet the requirement.
As shown in fig. 3, the port control module includes: the first physical layer chip module is connected with the Ethernet port and used for monitoring the state of the Ethernet port; the second physical layer chip module is connected with the network connecting terminal and is used for monitoring the state of the network connecting terminal; and the switch module is connected with the first physical layer chip module and the second physical layer chip module and is used for controlling the connection or disconnection of the Ethernet port and the network connection terminal.
The port control module has a Time Domain Reflectometer (TDR) function and can judge whether the port is open-circuited or short-circuited and the distance of a fault. Meanwhile, the port control module has an energy detection function and can detect whether the signal line receives a signal. Therefore, whether the network connection is normal or not can be judged according to the judgment, and the detected state is sent to the processing module.
And when the first physical layer chip module monitors that an open circuit exists between the user network port and the Ethernet port and the signal line has no signal, the first physical layer chip module controls the Ethernet port to be disconnected from the network connection terminal.
In this case, it is determined that the user network port is not connected to the ethernet port, thereby disconnecting the connection between the ethernet port and the network connection terminal, preventing an illegal user from connecting to the network through the port, and thus ensuring that the network is not illegally accessed.
And when the first physical layer chip module monitors that the open circuit between the user network port and the Ethernet port is not detected and the signal line has no signal, the first physical layer chip module controls the Ethernet port and the network connection terminal to be disconnected.
Under the condition, the user network terminal is judged to be in a shutdown state or a standby state, so that the connection between the Ethernet port and the network connection terminal is disconnected, an illegal user is prevented from connecting into the network through the port, and the network is prevented from being illegally accessed.
And when the second physical layer chip module monitors that an open circuit exists between the network connecting terminal and the Ethernet switch and the signal line has no signal, the disconnection between the Ethernet port and the network connecting terminal is controlled.
Under the condition, the network connection terminal is judged to be disconnected with the Ethernet switch, so that the connection between the Ethernet port and the network connection terminal is disconnected, an illegal user is prevented from connecting into the network through the port, and the network is prevented from being illegally accessed.
And when the second physical layer chip module monitors that the network connecting terminal and the Ethernet switch are not in an open circuit and the signal line has no signal, the second physical layer chip module controls the Ethernet port and the network connecting terminal to be disconnected.
Under the condition, the Ethernet switch is judged to have a fault or no network, so that the connection between the Ethernet port and the network connection terminal is disconnected, an illegal user is prevented from connecting into the network through the port, and the network is prevented from being illegally accessed.
It can be understood that when the user reboots, wakes up or reconnects the network, the user needs to re-input the correct password to access the network, thereby ensuring that the network is not illegally accessed.
In some embodiments, as shown in fig. 4, the socket system further includes a POE power supply module connected to the port control module for supplying power.
The invention adopts POE technology to provide power for the socket system. The POE power supply module is used for providing direct current power supply for the equipment while transmitting data signals for the network-based terminal under the condition that the existing Ethernet wiring infrastructure is not changed. Therefore, a power line does not need to be laid independently, system wiring is simplified, and construction cost of network infrastructure is reduced.
The socket system of the invention needs to be connected with an Ethernet switch which supports the POE function as PSE equipment, and provides direct current power supply required by the work for the device.
In some embodiments, as shown in fig. 5, the port control module further comprises: the first transformer module is connected with the Ethernet port and the first physical layer chip module and used for voltage conversion; and the second transformer module is connected with the network connecting terminal, the second physical layer chip module and the POE power supply module and is used for voltage conversion.
The voltage input by the POE power supply module is converted into the voltage required by each module in the socket system through the first transformer module and the second transformer module.
In some embodiments, as shown in fig. 6, the outlet system further comprises: and the display module is connected with the processing module and is used for providing a human-computer interaction interface. The display module can adopt an LED or LCD display screen for displaying whether the password input is correct or not.
As shown in fig. 7, the process of the user accessing the ethernet switch through the present socket system is as follows:
s101: the user network port is connected with the Ethernet port;
s102: the user inputs a password;
s103: the processing module verifies whether the password is correct;
s104: if the password is correct, the switch module is closed to connect the Ethernet port with the network connection terminal, and the user side can use the current network;
s105: if the password is incorrect, the user is prompted that the password is wrong and needs to be input again.
The invention utilizes the password to carry out identity verification, if the password is wrong, the switch module in the Ethernet socket system is disconnected, and the user terminal can not be connected with the network through the socket system. If the password is correct, the switch module inside the Ethernet socket system is connected, and the user side can be connected with the network through the socket system. The password is used for control, so that the use is simple and convenient, and the confidentiality is strong.
Various modifications or additions may be made to the described embodiments or alternatives may be employed by those skilled in the art without departing from the spirit or ambit of the invention as defined in the appended claims.