CN113727416A - Method and device for accessing node to network, electronic equipment and storage medium - Google Patents

Method and device for accessing node to network, electronic equipment and storage medium Download PDF

Info

Publication number
CN113727416A
CN113727416A CN202111014123.7A CN202111014123A CN113727416A CN 113727416 A CN113727416 A CN 113727416A CN 202111014123 A CN202111014123 A CN 202111014123A CN 113727416 A CN113727416 A CN 113727416A
Authority
CN
China
Prior art keywords
network
access
preset
node
network node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111014123.7A
Other languages
Chinese (zh)
Inventor
林俊琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202111014123.7A priority Critical patent/CN113727416A/en
Publication of CN113727416A publication Critical patent/CN113727416A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Abstract

The disclosure relates to a method for accessing a node in a network to the network, which is applied to a first device and comprises the following steps: receiving a network access message sent by a controller which has accessed a preset network, wherein the network access message comprises: a network access message of a first network node to be accessed to a preset network; determining whether to allow the first network node to access a preset network based on input operation of a user operation interface; after the first network node is determined to be allowed to access the preset network, a network access authorization instruction is sent to the controller; the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network. Through the input operation of the user operation interface, a user can select whether to enable the first network node to be accessed to the preset network, so that the node accessed to the preset network is ensured to be the node agreed by the user, the condition that the node to be accessed is accessed to the preset network under the condition that the user agrees is avoided, and the risk of leakage of sensitive information and privacy information of passwords and the like of the preset network is reduced.

Description

Method and device for accessing node to network, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of network technologies, and in particular, to a method and an apparatus for accessing a node in a network to the network, an electronic device, and a storage medium.
Background
In some networks, such as wireless Mesh (WiFi Mesh) networks, the network includes a plurality of nodes, which may be interconnected, wherein the nodes may be gateways, routers, and the like. A plurality of nodes in the WiFi Mesh networking can work under the same two-layer network simultaneously, WiFi signal coverage in a large range can be achieved, and terminal equipment accessed to the network can be switched among the nodes seamlessly.
When a new node needs to be accessed into the network, the new node is only required to be connected with one of the nodes which are already accessed into the network, and the new node can be successfully added into the network. For example, a new AP may join a WiFi Mesh network through a variety of media such as network cable, WiFi, power line, and so on. When a new AP joins the WiFi Mesh network, the validity of the new AP needing to be joined is generally not checked. Taking the network cable as an example, as long as the new AP is connected with the router or AP already added to the network through the network cable, the new AP can successfully add to the WiFi Mesh network to become a part of the WiFi Mesh network, so that the method has a greater security risk.
Disclosure of Invention
The disclosure provides a method, a device, an electronic device and a storage medium for accessing a node in a network to the network.
In a first aspect of the embodiments of the present disclosure, a method for a node in a network to access a network is provided, where the method is applied to a first device, and the method includes: receiving a network access message sent by a controller which has accessed a preset network, wherein the network access message comprises: a network access message of a first network node to be accessed to the preset network; determining whether to allow the first network node to access the preset network based on input operation of a user operation interface; after the first network node is determined to be allowed to access the preset network, sending a network access authorization instruction to the controller; the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network.
In one embodiment, the determining whether to allow the first network node to access the preset network based on the operation of the user operation interface includes: outputting prompt information on whether the first network node is allowed to access the preset network or not on the user operation interface according to the network access message; detecting an input operation of the prompt message acting on the user operation interface; when the input operation is detected to be an operation indicating that the first network node is allowed to access the preset network, determining that the first network node is allowed to access the preset network.
In one embodiment, the determining whether to allow the first network node to access the preset network based on the operation of the user operation interface further includes: and when the input operation is detected to be an operation indicating that the first network node is prohibited from accessing the preset network, determining to prohibit the first network node from accessing the preset network.
In one embodiment, the determining whether to allow the first network node to access the preset network based on the input operation of the user operation interface includes: acquiring configuration information determined based on input operation of a user operation interface, wherein the configuration information comprises: a preset MAC address allowing access to the preset network; matching the MAC address of the first network node carried by the network access message with the preset MAC address; when the matching is successful, determining that the first network node is allowed to access the preset network; and when the matching fails, determining to forbid the first network node from accessing the preset network.
In one embodiment, the method further comprises: after determining that the first network node is prohibited from accessing the preset network, sending a network access prohibition instruction to the controller; the network access prohibition instruction is used for prohibiting the first network node from joining the preset network.
In one embodiment, the network access message and the network access authorization command are transmitted between the first device and the controller through a server.
In a second aspect of the embodiments of the present disclosure, a method for a node in a network to access a network is provided, where the method is applied to a controller that has accessed a preset network, and the method includes: receiving a network access message; wherein the network access message comprises: a network access message of a first network node to be accessed to the preset network; sending the network access message to first equipment for determining whether the first network node is allowed to access the preset network; receiving a network access authorization instruction sent by the first equipment; the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network, and is sent by the first device after the first network node is determined to be allowed to access the preset network based on the input operation of the user operation interface; and adding the first network node into the preset network according to the network access authorization instruction.
In one embodiment, the network access message and the network access authorization command are transmitted between the first device and the controller through a server.
In one embodiment, the receiving the network entry message reported by the first network node in the preset network includes: and receiving the network access message reported by a second network node which has accessed the preset network.
In one embodiment, the network entry message is: a broadcast message sent by the first network node containing the first network node's MAC address.
In a third aspect of the embodiments of the present disclosure, an apparatus for accessing a node in a network to a network is provided, where the apparatus is applied to a first device, and the apparatus includes: the network access message first receiving module is used for receiving a network access message sent by a controller which has accessed a preset network; wherein the network access message comprises: a network access message of a first network node to be accessed to the preset network; the network access determining module is used for determining whether the first network node is allowed to access the preset network or not based on the input operation of a user operation interface; the network access authorization instruction sending module is used for sending a network access authorization instruction to the controller after the first network node is determined to be allowed to access the preset network; the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network.
In a fourth aspect of the embodiments of the present disclosure, an apparatus for accessing a node in a network to a network is provided, where the apparatus is applied to a controller that has accessed a preset network, and the apparatus includes: the second receiving module of the network access message is used for receiving the network access message; wherein the network access message comprises: receiving a network access message of a first network node to be accessed to the preset network; the network access message sending module is used for sending the network access message to equipment for determining whether the first network node is allowed to access the preset network or not; the network access authorization instruction receiving module is used for receiving a network access authorization instruction sent by the first equipment; the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network, and is sent by the first device after the first network node is determined to be allowed to access the preset network based on the input operation of the user operation interface; and the network access module is used for adding the first network node into the preset network according to the network access authorization instruction.
In a fifth aspect of the embodiments of the present disclosure, there is provided an electronic device, including: a processor and a memory for storing executable instructions operable on the processor, wherein: when the processor is used for executing the executable instructions, the executable instructions execute the method of any one of the above embodiments.
In a sixth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, in which computer-executable instructions are stored, and when executed by a processor, the computer-executable instructions implement the method according to any of the embodiments.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the method for accessing the node in the network to the network in the embodiment of the disclosure may be applied to a first device, and by receiving a network access message of a first network node to be accessed to a preset network, which is sent by a controller that has been accessed to the preset network, the first network node sends the network access message to the controller, the controller sends the network access message to the first device, and the first device receives the network access message sent by the controller.
The first device may display a user operation interface through which an operation may be performed according to the network access message, that is, whether to allow the first network node to access the preset network may be determined based on an input operation of the user operation interface. The input operation is an operation performed by a user according to the network access message of the first network node, and an operation for allowing the first network node to access the preset network or an operation for forbidding the first network node to access the preset network can be input through the user operation interface. Whether the first network node to be accessed is accessed to the preset network or not can be determined based on user input through operation of user input according to the network access message, so that the node accessed to the preset network is ensured to be a node agreed by a user, and safety verification of the network to be accessed is performed through the user, so that the condition that the node to be accessed is accessed to the preset network under the condition that the node is not agreed by the user is reduced, risks of leakage of sensitive information such as passwords of the preset network and privacy information are reduced, meanwhile, occurrence of user complaints and safety events caused by the risks is reduced, and safety of the preset network is further improved.
After the first network node is determined to be allowed to access the preset network, a network access authorization instruction is sent to the controller, the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network, and the first network node can be successfully accessed to the preset network to perform network communication and provide network service.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic diagram illustrating a node access network in accordance with an exemplary embodiment;
FIG. 2 is a timing diagram illustrating a method of a node in a network accessing the network in accordance with an example embodiment;
fig. 3 is a schematic flow chart illustrating a process of determining whether to allow a first network node to access a predetermined network according to an example embodiment;
fig. 4 is a schematic diagram illustrating another process for determining whether to allow the first network node to access the predetermined network according to an example embodiment;
FIG. 5 is a timing diagram illustrating a method of a node in another network accessing a network in accordance with an exemplary embodiment;
FIG. 6 is a timing diagram illustrating a method for a node in another network to access the network in accordance with an example embodiment
FIG. 7 is a timing diagram illustrating a method of a node in another network accessing a network in accordance with an example embodiment;
fig. 8 is a block diagram illustrating an apparatus for a node in a network to access the network according to an example embodiment;
fig. 9 is a receiving diagram illustrating an apparatus for a node in another network to access a network according to an example embodiment;
FIG. 10 is a timing diagram illustrating a node access network in another network in accordance with an exemplary embodiment;
FIG. 11 is a timing diagram illustrating a node access network in another network in accordance with an exemplary embodiment;
fig. 12 is a block diagram illustrating a terminal device according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Referring to fig. 1, a schematic diagram of a node access network is shown.
In this embodiment, the controller having access to the predetermined network and the second network node are included, and the second network node and the controller form the predetermined network, for example, a Mesh network. The controller is a master router, and the master router is connected with an external network, for example, the master router accesses the internet through a wide area network interface (WAN interface). The controller may be a router, an AP, or the like, in this embodiment, the controller is used as a main router, and is also a control node (controller) of the preset network, and may control other nodes to access the preset network. The second network node (agent) may be an AP or a slave router (denoted as AP1 in the figure), and the second network node is connected to the controller through a local area network interface (LAN interface) of the controller, and forms the preset network with the controller, so as to provide network services for the user terminal together.
When a new node (agent) accesses the preset network, the new node can be connected with the controller through the LAN interface of the controller, so that the preset network can be accessed, and the new node is used as a first network node, for example, a new AP. Of course, the first network node may also be connected to the second network node, and the new AP may successfully access the predetermined network only after being physically connected to any router or AP (the main router or AP1 in fig. 1) in the predetermined network, and may become a part of the predetermined network.
The network access mode has great potential safety hazard, personnel who intentionally acquire the privacy information of the user can easily join the network of the user through the mode, and the network information of the user can be automatically transmitted to nodes used by the personnel, so that the leakage of the user information is easily caused.
Referring to fig. 2, a timing chart of a method for a node in a network to access a network provided in the present technical solution is applied to a first device, and the method includes the following steps:
step S100, receiving a network access message sent by a controller accessed to a preset network, wherein the network access message comprises: and accessing the network to a first network node of a preset network.
Step S200, determining whether to allow the first network node to access a preset network based on the input operation of the user operation interface.
Step S300, after the first network node is determined to be allowed to access the preset network, a network access authorization instruction is sent to the controller; the network access authorization instruction is used for indicating that the first network node is allowed to access a preset network.
The first device may be a user equipment such as a mobile terminal or a fixed terminal. The user equipment can comprise a mobile phone, a tablet personal computer, vehicle-mounted central control equipment, wearable equipment, intelligent equipment and the like, and the intelligent equipment can comprise intelligent office equipment, intelligent household equipment and the like.
In this embodiment, the default network may be a local area network, which includes, but is not limited to, a Mesh (Mesh) network (i.e., a multi-hop network) or a wireless network with multiple stages of devices connected to a central point, and the Mesh network includes a plurality of network nodes that have access to the Mesh network. The Mesh network may comprise a WiFi Mesh network.
The first network node may be a node to be accessed to the predetermined network, and the controller may be a node that has been accessed to the predetermined network.
The plurality of network nodes can select one network node as a controller in a preset time period through a preset selection mechanism, and the controller can also be a fixed network node in nodes accessed to a preset network.
The controller may be a control node that controls the first network node to join the preset network, and in the preset network, the control node may provide a network service by controlling whether a node to be accessed to the network can join the preset network.
The first network node may be a wireless Access Point (AP) or a router to be accessed, and the controller may be a node controlling the wireless Access Point (AP) or the router in a preset network. There may be one controller and at least one second network node in the pre-defined network.
In another embodiment of the present application, the controller may also have the function of the first network node when the controller plays a role of a to-be-accessed preset network. And when the controller is converted from the controller into a first network node to access the preset network, executing the steps required to be executed by the first network node. The first network node may also have the function of a controller when it is in the role of the accessed default network. After the first network node accesses the preset network, the first network node can be used as a controller to execute the steps required to be executed by the controller.
The method of this embodiment is directed to a first device connected to a controller in a preset network, that is, applied to the first device, which serves as an execution subject. The first device may be a device having a user operation interface, and may be capable of connecting with the controller, and whether the controller allows the first network node to access the preset network is controlled by an input operation of the user operation interface.
The user operation interface may be a background control interface of the controller, may be in a page form, that is, an operation interface displayed through a page, or may be a display interface of an application program, that is, an operation interface displayed through an application program, or the like.
For step S100, the controller is a node that has accessed the preset network and is connected to the first device, and the first device may detect and receive an input operation through the user operation interface, where the input operation includes an operation of whether to allow the first network node to access the preset network. When the first network node is accessed to the preset network, the first network node establishes connection with the controller and sends a network access message of the first network node accessed to the preset network to the controller. The network entry message may include various information of the first network node, such as a name and a MAC address, etc., which are required when accessing the predetermined network.
After the first network node sends a network access message to the controller, the controller receives the network access message, the controller sends the network access message to the first device after receiving the network access message, and the first device receives the network access message of the first network node to be accessed to the preset network, which is sent by the controller.
After receiving the network access message, the first device may further display the network access message, so as to receive an input operation through the user operation interface according to the network access message.
For step S200, after the first device receives the network access message sent by the controller, the first device may display the network access message through the user operation interface, so as to determine whether to allow the first network node to access the preset network. After the network access message is displayed, an input operation may be received through the user operation interface, where the input operation may include an operation to allow the first network node to access the preset network and an operation to prohibit the first network node from accessing the preset network. And then determining whether to allow the first network node to access the preset network based on the input operation of the user operation interface.
For example, when the operation received through the user operation interface is to allow the first network node to access the preset network, the first network node is allowed to access the preset network, and the first network node may access the preset network. And when the operation received through the user operation interface is to forbid the first network node from accessing the preset network, the first network node is forbidden to access the preset network, and the first network node cannot access the preset network.
In an embodiment, after receiving the network access message, the first device may further generate, according to the network access message, confirmation information indicating whether the first network node is allowed to access the preset network, and display the confirmation information through the user operation interface. After the user operation interface displays the confirmation information, the displayed content may include: the information of the first network node, an 'allow' operation button for allowing the first network node to access the preset network, a 'forbid' operation button for forbidding the first network node to access the preset network, and the like.
Of course, any other method that can determine whether to allow the first network node to access the preset network according to the input operation of the user operation interface may be adopted, and the method that can determine whether to allow the first network node to access the preset network according to the input operation as long as the input operation can be received through the user operation interface is within the protection scope of the embodiment.
For step S300, after determining that the first network node is allowed to access the preset network according to the input operation of the user operation interface, the first device sends a network access authorization instruction to the controller, where the network access authorization instruction is used to indicate that the first network node is allowed to access the preset network. The network access authorization command can be automatically generated according to the input operation. The controller accesses the first network node to a preset network after receiving the network access authorization instruction, and completes network access of the first network node, so that network service is provided.
In the scheme of this embodiment, the first device may display a user operation interface, and the user operation interface may perform an operation according to the network access message, that is, determine whether to allow the first network node to access the preset network based on an input operation of the user operation interface. The input operation is an operation performed by a user according to the network access message of the first network node, and an operation for allowing the first network node to access the preset network or an operation for forbidding the first network node to access the preset network can be input through the user operation interface.
According to the input operation input by the user according to the network access message, the user can select whether the first network node to be accessed is accessed to the preset network, so that the node accessed to the preset network is the node agreed by the user, and the security verification of the network to be accessed is performed by the user, thereby reducing the condition that the node to be accessed is accessed to the preset network under the condition that the node is not agreed by the user, reducing the risk of leakage of sensitive information such as passwords of the preset network and privacy information, reducing the occurrence of user complaints, security events and the like caused by the risk, and further improving the security of the preset network.
After the first network node is determined to be allowed to access the preset network, a network access authorization instruction is sent to the controller, the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network, and the first network node can be successfully accessed to the preset network to perform network communication and provide network service.
In another embodiment, referring to fig. 3, a flowchart for determining whether to allow the first network node to access the predetermined network is shown. Step S200, determining whether to allow the first network node to access the preset network based on the operation of the user operation interface, including:
step S201, according to the network access message, a prompt message for judging whether the first network node is allowed to access the preset network is output on the user operation interface.
Step S202, detecting the input operation of the prompt information acted on the user operation interface.
In step S203, when the input operation is detected to indicate that the first network node is allowed to access the preset network, it is determined that the first network node is allowed to access the preset network.
For step S201, after the first device receives the network access message sent by the controller, the first device may generate a prompt message indicating whether to allow the first network node to access the preset network according to the network access message, where the prompt message may include information of the first network node, and then output the prompt message on the user operation interface. The format of the prompting message is not limited, and the prompting message may include information such as the name and MAC address of the first network node, and may also include prompting messages such as "allow" and "prohibit" or "yes" and "no" for inputting the input operation.
For step S202, the first device may detect an input operation acting on the prompt information displayed on the user operation interface, for example, information such as a name and a MAC address of the first network node is displayed on the user operation interface, and at the same time, "allow" or "yes" indicating that the first network node is allowed to access the preset network, and "forbid" or "no" indicating that the first network node is not allowed to access the preset network are also displayed.
In step S203, when the input operation is detected as an operation indicating that the first network node is allowed to access the preset network, such as when the input operation is detected to act on "allow" or "yes", it indicates that the first network node is determined to be allowed to access the preset network. When the input operation is detected to be an operation indicating that the first network node is prohibited from accessing the preset network, if the input operation is detected to act on "prohibition" or "no", then the method indicates that the first network node is determined not to be permitted to access the preset network.
The embodiment may prompt a user to confirm that the first network node is accessed to the preset network when the first network node is accessed to the preset network, determine to allow the first network node to access to the preset network when an input operation indicating that the first network node is allowed to access to the preset network is detected, and determine not to allow the first network node to access to the preset network when an input operation indicating that the first network node is not allowed to access to the preset network is detected. Therefore, the first network node is allowed to be accessed to the preset network under the condition of user authorization, the probability of safety problems of the preset network caused by the fact that unknown network nodes or network nodes which are not agreed by the user are accessed to the preset network is reduced, the risk of leakage of preset network information is reduced, and the safety of the preset network information and the safety of user information are improved.
In another embodiment, referring to fig. 4, another flowchart for determining whether to allow the first network node to access the predetermined network is shown. Step S200, determining whether to allow the first network node to access the preset network based on the input operation of the user operation interface, including:
step S204, obtaining configuration information determined based on the input operation of the user operation interface, wherein the configuration information comprises: a preset MAC address allowing access to a preset network.
Step S205, matching the MAC address of the first network node carried in the network access message with a preset MAC address.
Step S206, when the matching is successful, determining that the first network node is allowed to access a preset network; and when the matching fails, determining that the first network node is forbidden to access the preset network.
This embodiment is another method of determining whether to allow a first network node to access a pre-set network. Step S204 to step S206 and step S201 to step S203 have no inevitable precedence relationship.
For step S204, the method obtains configuration information determined based on an input operation of the user operation interface, where the configuration information is used to indicate node information that can access the preset network and/or node information that cannot access the preset network. The configuration information is determined by an input operation through a user operation interface, and the user operation interface can display the configuration information and the configuration interface for configuring the configuration information and can detect a configuration operation acting on the configuration interface. The first device may determine the configuration information based on the configuration operation.
The configuration information includes a preset MAC address allowing access to a preset network, and the preset MAC address may be determined through a configuration interface. The configuration information may be a white list of the first network nodes allowed to access the network, or may be a black list of the first network nodes prohibited from accessing the network.
For example, the MAC address of the first network node carried in the network access message may be added to the configuration information through the configuration interface according to the configuration operation, for example, in a preset MAC address list, where the preset MAC address list is a white list. The first network node in the white list may be determined to be a node that is allowed to enter the network.
And the MAC address of the first network node carried in the network access message can be added to a blacklist through a configuration interface according to configuration operation, and the first network node corresponding to the MAC address in the blacklist is prohibited from accessing the preset network. Or when the matching is unsuccessful, outputting prompt information of unsuccessful matching, and when detecting that the input operation for the prompt information of unsuccessful matching is forbidden network access operation, adding the MAC address into a blacklist.
The first network node in the blacklist is an untrusted node and is not allowed to access the preset network, so that the access of the preset network by the node in the blacklist can be reduced, and risks of stealing and information leakage of the preset network are reduced.
In one embodiment, the configuration information may also be modified through a user operation interface, such as changing the configuration information through a configuration interface.
In step S205, the network access message carries information such as the MAC address of the first network node to be accessed, and after receiving the network access message of the first network node sent by the controller, the MAC address in the network access message is matched with the preset MAC address, and it is determined whether to allow the first network node to access the preset network according to a matching result.
In step S206, when the matching is successful, it is determined that the first network node is allowed to access the preset network; and when the matching fails, determining that the first network node is forbidden to access the preset network.
In the method for determining whether to allow the first network node to access the preset network, whether to allow the first network node to access the preset network may be automatically determined according to the preset configuration information, which reduces the need to detect the input operation input through the user operation interface to determine whether to allow the first network node to access the preset network each time when the first network node needs to access the preset network, and only needs to detect the input operation for changing the configuration information through the user operation interface when the configuration information needs to be changed, thereby reducing the complexity of the determination and improving the confirmation efficiency.
In another embodiment, referring to fig. 5, a timing diagram of a method for a node in another network to access the network is shown. The method further comprises the following steps:
after determining that the first network node is forbidden to access the preset network, sending a network access forbidding instruction to the controller; and the network access prohibition instruction is used for prohibiting the first network node from joining the preset network. The network access prohibition instruction is used for prohibiting the first network node from accessing the preset network by the controller.
In another embodiment, referring to fig. 6, a timing diagram of a method for a node in another network to access the network is shown, and fig. 6 is a schematic diagram of an improvement made on fig. 2.
In this embodiment, a server is further provided between the controller and the first device, and the network access message and the network access authorization instruction are transmitted between the first device and the controller through the server. In this embodiment, the server is an application and a predetermined network server, the controller is connected to the server, and the first device is connected to the server. The controller sends the network access message of the first network node to the first device through the server, namely the network access message is sent to the server, and the server sends the network access message to the first device, or the first device acquires the network access message from the server.
When the first device sends the network access authorization instruction to the controller, the network access authorization instruction is also sent by the server, namely the first device sends the network access authorization instruction to the server, and then the server sends the network access authorization instruction to the controller.
In another embodiment, the network entry prohibition instruction may also be transmitted between the first device and the controller through the server.
In another embodiment, referring to fig. 7, a timing diagram of a method for a node in another network to access a network, the method being applicable to a controller having access to a predetermined network, the method includes:
step S10, receiving a network access message; wherein, the network access message comprises: and accessing the network to a first network node of a preset network.
Step S20, sending the network access message to the first device for determining whether to allow the first network node to access the preset network.
Step S30, receiving a network access authorization instruction sent by the first device; the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network, and is sent by the first device after the first network node is determined to be allowed to access the preset network based on the input operation of the user operation interface.
And step S40, adding the first network node into the preset network according to the network access authorization instruction.
The execution subject of this embodiment is a controller. After the communication connection is established between the first network node and the controller, the controller receives a network access message sent by the first network node, and then sends the network access message to the first device, where the first device may be configured to determine whether to allow the first network node to access a preset network. After the first device determines that the first network node is allowed to access the preset network based on the input operation of the user operation interface, receiving a network access authorization instruction sent by the first device after the first device determines that the first network node is allowed to access the preset network based on the input operation of the user operation interface, wherein the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network.
And after receiving the network access authorization instruction, adding the first network node into the preset network according to the network access authorization instruction, and completing the network access of the first network node. The controller is used as an execution main body for controlling whether the first network node can be accessed to the network, and executes the action of whether the first network node is accessed to the network according to the network access authorization instruction, and the first device is used for sending the network access authorization instruction or the network access prohibition instruction to the controller.
In another embodiment, receiving a network access message reported by a first network node in a predetermined network includes:
and receiving the network access message reported by the first network node through a second network node which has accessed to a preset network. The first network node may send the network access message to the controller through a second network node in the predetermined network, that is, the network access message is transmitted between the first network node and the controller through the second network node.
In another embodiment, after joining the first network node to the predetermined network, the method further includes: and sending a network access notification to the first network node. The network access notification can be used at least for notifying that the first network node has been successfully accessed into the preset network, and can perform network communication and provide network service. The network entry notification may include: a notification message for prompting that the first network node is accessed to the preset network, and/or a network access authorization instruction. The notification message can realize the function of notifying the first network node, and the network access authorization instruction can be used for the first network node to perform other operations and the like.
In another embodiment, referring to fig. 6, the network entry message and the network entry authorization instruction are transmitted between the first device and the controller through the server.
In another embodiment, the network entry prohibition instruction is transmitted between the first device and the controller through the server.
In another embodiment, the network entry message is: a broadcast message sent by the first network node containing the MAC address of the first network node. When the network access message includes the MAC address of the first network node, the first device may determine whether to allow the first network node to access the preset network, specifically refer to step S200.
In another embodiment, in step S40, after the joining the first network node to the preset network according to the network access authorization instruction, the method may further include:
the MAC address of the first network node is stored in the controller, and the first network node can be directly accessed to the preset network when the first network node is accessed to the preset network next time, so that the verification process is reduced, and the network access efficiency is improved.
In another embodiment, referring to fig. 8, a schematic structural diagram of an apparatus for accessing a network by a node in a network is applied to a first device, and the apparatus includes:
the network access message first receiving module 1 is used for receiving a network access message sent by a controller which has accessed a preset network; wherein, the network access message comprises: a network access message of a first network node to be accessed to a preset network;
a network access determining module 2, configured to determine whether to allow the first network node to access the preset network based on an input operation of a user operation interface;
the network access authorization instruction sending module 3 is configured to send a network access authorization instruction to the controller after determining that the first network node is allowed to access the preset network; the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network.
In another embodiment, the network entry determining module 2 includes:
a prompt message output unit, configured to output, according to the network access message, a prompt message indicating whether to allow the first network node to access the preset network on the user operation interface;
an input operation detection unit configured to detect an input operation acting on the prompt information on the user operation interface;
a first network access determining unit, configured to determine that the first network node is allowed to access the preset network when the input operation is detected to be an operation indicating that the first network node is allowed to access the preset network.
In another embodiment, the first network entry determining unit is further configured to:
and when the input operation is detected to be an operation indicating that the first network node is prohibited from accessing the preset network, determining to prohibit the first network node from accessing the preset network.
In another embodiment, the network entry determining module 2 further includes:
a configuration information acquisition unit configured to acquire configuration information determined based on an input operation of a user operation interface, wherein the configuration information includes: a preset MAC address allowing access to the preset network;
a matching unit, configured to match the MAC address of the first network node carried in the network access message with the preset MAC address;
the second network access determining unit is used for determining that the first network node is allowed to access the preset network when the matching is successful; and when the matching fails, determining to forbid the first network node from accessing the preset network.
In another embodiment, the apparatus further comprises:
the network access prohibition instruction sending module is used for sending a network access prohibition instruction to the controller after the first network node is determined to be prohibited from accessing the preset network; the network access prohibition instruction is used for prohibiting the first network node from joining the preset network.
In another embodiment, the network access message and the network access authorization instruction are transmitted between the first device and the controller through a server.
In another embodiment, referring to fig. 9, a schematic diagram of a receiving device for a node in another network to access a network is applied to a controller that has access to a predetermined network, and the device includes:
a second receiving module 4 for network access message, configured to receive the network access message; wherein, the network access message comprises: receiving a network access message of a first network node to be accessed to a preset network;
a network access message sending module 5, configured to send the network access message to a device that is configured to determine whether to allow the first network node to access the preset network;
a network access authorization instruction receiving module 6, configured to receive a network access authorization instruction sent by the first device; the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network, and is sent by the first device after the first network node is determined to be allowed to access the preset network based on the input operation of the user operation interface;
and the network access module is used for adding the first network node into the preset network according to the network access authorization instruction.
In another embodiment, the apparatus further comprises:
the network access notification sending module is used for sending a network access notification to a first network node after the first network node is added to a preset network.
In another embodiment, the network entry notification comprises: a notification message for prompting that the first network node is accessed to the preset network, and/or the network access authorization instruction.
In another embodiment, the network access message and the network access authorization command are transmitted between the first device and the controller through a server.
In another embodiment, receiving an access message includes:
and receiving the network access message reported by a second network node which has accessed the preset network.
In another embodiment, the network entry message is: a broadcast message sent by the first network node containing the first network node's MAC address.
In another embodiment, there is also provided an electronic device including:
a processor and a memory for storing executable instructions operable on the processor, wherein:
when the processor is used for executing the executable instructions, the executable instructions execute the method of any one of the above embodiments.
In another embodiment, a non-transitory computer-readable storage medium is also provided, having stored therein computer-executable instructions that, when executed by a processor, implement the method of any of the above embodiments.
In another embodiment, referring to fig. 10, a timing diagram of a node in another network accessing a network is shown.
The method comprises the following steps:
a. the first network node (such as a new AP) establishes connection with a second network node (such as an existing AP) in a preset network at a physical layer, and the first network node sends a network access message of the first network node to the second network node. This can be achieved through network cable, WiFi, etc.
b. The existing AP in the default network reports an access message to a controller (e.g., a mesh controller), where the access message indicates that a new AP is to access the default network. The network access message comprises the information of the new AP, and the mesh controller records the information of the new AP. At this time, the new AP is in an "unauthorized" state and does not join the pre-set network.
c. The mesh controller sends a prompt message, such as a message of a first network node accessing to the network, to a first device (such as a management background), where the message of the first network node accessing to the network indicates that there is an AP to be authorized, and the message of the first network node accessing to the network may include a network access message.
d. And the management background displays the network access information of the first network node, such as the information of new AP access.
e. And receiving an input operation for indicating whether the first network node is allowed to access the preset network through the user operation interface. And after the user opens the management background, the management background displays prompt information through a user operation interface, and determines to allow or reject the access of the new AP according to the input operation.
f. And when the management background confirms that the new AP can be accessed to the mesh network according to the input operation, sending a network access authorization instruction to the mesh controller, and adding the new AP into a preset network through the network access authorization instruction by the mesh controller. The controller sends a notification message to the first network node to notify the first network node that the first network node has accessed the preset network.
In another embodiment, referring to fig. 11, a timing diagram of a node in another network accessing a network is shown.
The method comprises the following steps:
A. the first network node (such as a new AP) establishes connection with a second network node (such as an existing AP) in a preset network at a physical layer, and the first network node sends a network access message of the first network node to the second network node. This can be achieved through network cable, WiFi, etc.
B. The existing AP in the default network reports an access message to a controller (e.g., a mesh controller), where the access message indicates that a new AP is to access the default network. The network access message comprises the information of the new AP, and the mesh controller records the information of the new AP. At this time, the new AP is in an "unauthorized" state and does not join the pre-set network.
C. And the mesh controller sends a network access message to the server.
D. The server sends a prompt message, such as a message of a first network node accessing the network, to a first device (such as a management APP), where the message of the first network node accessing the network indicates that there is an AP to be authorized, and the message of the first network node accessing the network may include a network access message.
E. And the management background displays a prompt message of the first network node for network access, such as a message of new AP access.
F. And receiving an input operation for indicating whether the first network node is allowed to access the preset network through the user operation interface. After the management APP is opened by the user, the management APP displays prompt information through a user operation interface, and the access of a new AP is determined to be allowed or refused according to input operation.
G. And when the management APP confirms that the new AP can be accessed to the mesh network according to the input operation, a network authorization instruction is sent to the server.
H. And the server sends a network access authorization instruction to the mesh controller, and the mesh controller can add the new AP into the preset network through the network access authorization instruction. The controller sends a notification message to the first network node to notify that the new AP has accessed the preset network.
It should be noted that "first" and "second" in the embodiments of the present disclosure are merely for convenience of description and distinction, and have no other specific meaning.
Fig. 12 is a block diagram illustrating a terminal device according to an example embodiment. For example, the terminal device may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 12, the terminal device may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the terminal device, such as operations associated with presentation, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the terminal device. Examples of such data include instructions for any application or method operating on the terminal device, contact data, phonebook data, messages, pictures, videos, etc. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 806 provides power to various components of the terminal device. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal device.
The multimedia component 808 includes a screen that provides an output interface between the terminal device and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. When the terminal device is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the terminal device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 814 includes one or more sensors for providing various aspects of state assessment for the terminal device. For example, sensor assembly 814 may detect the open/closed status of the terminal device, the relative positioning of components, such as the display and keypad of the terminal device, the change in position of the terminal device or a component of the terminal device, the presence or absence of user contact with the terminal device, the orientation or acceleration/deceleration of the terminal device, and the change in temperature of the terminal device. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the terminal device and other devices in a wired or wireless manner. The terminal device may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, communications component 816 further includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the terminal device may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A method for a node in a network to access the network, the method being applied to a first device and comprising:
receiving a network access message sent by a controller which has accessed a preset network, wherein the network access message comprises: a network access message of a first network node to be accessed to the preset network;
determining whether to allow the first network node to access the preset network based on input operation of a user operation interface;
after the first network node is determined to be allowed to access the preset network, sending a network access authorization instruction to the controller; the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network.
2. The method of claim 1, wherein the determining whether to allow the first network node to access the predetermined network based on the operation of the user interface comprises:
outputting prompt information on whether the first network node is allowed to access the preset network or not on the user operation interface according to the network access message;
detecting an input operation of the prompt message acting on the user operation interface;
when the input operation is detected to be an operation indicating that the first network node is allowed to access the preset network, determining that the first network node is allowed to access the preset network.
3. The method of claim 2, wherein the determining whether to allow the first network node to access the predetermined network based on the operation of the user interface further comprises:
and when the input operation is detected to be an operation indicating that the first network node is prohibited from accessing the preset network, determining to prohibit the first network node from accessing the preset network.
4. The method according to claim 1, wherein the determining whether to allow the first network node to access the preset network based on the input operation of the user operation interface comprises:
acquiring configuration information determined based on input operation of a user operation interface, wherein the configuration information comprises: a preset MAC address allowing access to the preset network;
matching the MAC address of the first network node carried by the network access message with the preset MAC address;
when the matching is successful, determining that the first network node is allowed to access the preset network;
and when the matching fails, determining to forbid the first network node from accessing the preset network.
5. The method of claim 1, further comprising:
after determining that the first network node is prohibited from accessing the preset network, sending a network access prohibition instruction to the controller; the network access prohibition instruction is used for prohibiting the first network node from joining the preset network.
6. The method of claim 1, wherein the network entry message and the network entry authorization command are transmitted between the first device and the controller via a server.
7. A method for a node in a network to access the network is applied to a controller which has accessed a preset network, and the method comprises the following steps:
receiving a network access message; wherein the network access message comprises: a network access message of a first network node to be accessed to the preset network;
sending the network access message to first equipment for determining whether the first network node is allowed to access the preset network;
receiving a network access authorization instruction sent by the first equipment; the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network, and is sent by the first device after the first network node is determined to be allowed to access the preset network based on the input operation of the user operation interface;
and adding the first network node into the preset network according to the network access authorization instruction.
8. The method of claim 7, wherein the network entry message and the network entry authorization command are transmitted between the first device and the controller via a server.
9. The method of claim 7, wherein receiving the network entry message comprises:
and receiving the network access message reported by a second network node which has accessed the preset network.
10. The method of claim 7, wherein the network entry message is: a broadcast message sent by the first network node containing the first network node's MAC address.
11. An apparatus for a node in a network to access the network, the apparatus being applied to a first device and comprising:
the network access message first receiving module is used for receiving a network access message sent by a controller which has accessed a preset network; wherein the network access message comprises: a network access message of a first network node to be accessed to the preset network;
the network access determining module is used for determining whether the first network node is allowed to access the preset network or not based on the input operation of a user operation interface;
the network access authorization instruction sending module is used for sending a network access authorization instruction to the controller after the first network node is determined to be allowed to access the preset network; the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network.
12. An apparatus for a node in a network to access a network, the apparatus being applied to a controller that has accessed a predetermined network, the apparatus comprising:
the second receiving module of the network access message is used for receiving the network access message; wherein the network access message comprises: receiving a network access message of a first network node to be accessed to the preset network;
the network access message sending module is used for sending the network access message to equipment for determining whether the first network node is allowed to access the preset network or not;
the network access authorization instruction receiving module is used for receiving a network access authorization instruction sent by the first equipment; the network access authorization instruction is used for indicating that the first network node is allowed to access the preset network, and is sent by the first device after the first network node is determined to be allowed to access the preset network based on the input operation of the user operation interface;
and the network access module is used for adding the first network node into the preset network according to the network access authorization instruction.
13. An electronic device, comprising:
a processor and a memory for storing executable instructions operable on the processor, wherein:
a processor configured to execute the executable instructions, the executable instructions performing the method of any of claims 1 to 6 or 7 to 10.
14. A non-transitory computer-readable storage medium having stored thereon computer-executable instructions that, when executed by a processor, perform the method of any of claims 1 to 6 or 7 to 10.
CN202111014123.7A 2021-08-31 2021-08-31 Method and device for accessing node to network, electronic equipment and storage medium Pending CN113727416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111014123.7A CN113727416A (en) 2021-08-31 2021-08-31 Method and device for accessing node to network, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111014123.7A CN113727416A (en) 2021-08-31 2021-08-31 Method and device for accessing node to network, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113727416A true CN113727416A (en) 2021-11-30

Family

ID=78679891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111014123.7A Pending CN113727416A (en) 2021-08-31 2021-08-31 Method and device for accessing node to network, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113727416A (en)

Similar Documents

Publication Publication Date Title
US10129044B2 (en) Method and apparatus for controlling smart device
EP3301856B1 (en) Router management method, router and mobile terminal
US9769667B2 (en) Methods for controlling smart device
EP3177077A1 (en) Method and device for network access
US20160295625A1 (en) Method and apparatus for network access
EP3068154A1 (en) Method and apparatus for setting smart device management account
US20160234260A1 (en) Methods and apparaturses for binding with device
EP3128774B1 (en) Methods, devices and system for accessing network
US10291608B2 (en) Method and device for establishing wireless connection
US20170034776A1 (en) Method, apparatus, and system for smart device to access router
EP3249960B1 (en) Method and device for identifying a short message
EP3229136A1 (en) Application calling management method and apparatus
CN109314913B (en) Access control limiting method and device
US20160294805A1 (en) Method and terminal device for accessing network
CN106454998B (en) Wireless local area network access method, device and terminal
EP3226128B1 (en) Method and device for online payment
CN105163290B (en) roaming prompting method and device
EP3407278A1 (en) Method and apparatus for reporting loss of card or device associated with account number or stolen of account number
US20220408238A1 (en) Verification information processing method and apparatus, terminal device and storage medium
WO2019119421A1 (en) Cell access method and device, and storage medium
CN109041145B (en) Communication method, communication device, terminal and storage medium
US9674768B2 (en) Method and device for accessing wireless network
WO2017166461A1 (en) Method and apparatus for managing application program call
CN113727416A (en) Method and device for accessing node to network, electronic equipment and storage medium
CN108696914B (en) Method and device for scanning intelligent equipment and storage medium

Legal Events

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