CN113395173A - Information interaction method, information interaction device, terminal and storage medium - Google Patents

Information interaction method, information interaction device, terminal and storage medium Download PDF

Info

Publication number
CN113395173A
CN113395173A CN202110583760.XA CN202110583760A CN113395173A CN 113395173 A CN113395173 A CN 113395173A CN 202110583760 A CN202110583760 A CN 202110583760A CN 113395173 A CN113395173 A CN 113395173A
Authority
CN
China
Prior art keywords
node
topology
information
topological
connection
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
CN202110583760.XA
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 CN202110583760.XA priority Critical patent/CN113395173A/en
Publication of CN113395173A publication Critical patent/CN113395173A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure relates to an information interaction method, an information interaction device, a terminal and a storage medium. The information interaction method is applied to a first node in a preset network and comprises the steps of receiving topology information sent by at least one second node when the topology connection of any node in the preset network changes; updating the topological structure of the preset network based on the received topological information; and distributing topology information corresponding to the updated network topology to each second node in the preset network according to the updated network topology. When the topology of any node changes, the first node collects the changed topology information, performs topology updating on the whole preset network, and distributes the updated topology information of the whole preset network to each second node, so that each second node device has the updated complete topology information, and the distance between each candidate connection device and a network outlet is calculated according to the complete topology information when the roaming effect of the terminal device is evaluated.

Description

Information interaction method, information interaction device, terminal and storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to an information interaction method, an information interaction apparatus, a terminal, and a storage medium.
Background
Topology describes the positional relationship between objects. The network topology describes the location relationship or connection relationship between network devices. Complete topology information can show accurate connection between devices for users on one hand; on the other hand, the distance between each candidate connecting device and the network exit can be calculated according to the complete topology information, and the distance can be used as a judgment factor selected by an optimal candidate BSS (Basic Service Set). It is important to be able to obtain complete topology information.
Disclosure of Invention
The disclosure provides an information interaction method, an information interaction device, equipment and a storage medium.
In a first aspect of the embodiments of the present disclosure, an information interaction method is provided, which is applied to a first node, and includes:
receiving topology information sent by at least one second node in the preset network, wherein the topology information is sent to the first node by the second node when the topology connection of any node in the preset network changes;
updating the topological structure of the preset network based on the received topological information;
and distributing the topology information corresponding to the updated topology structure to each second node in the preset network.
In some embodiments, before receiving topology information sent by at least one second node in the predetermined network, the method includes:
receiving a topology identifier generated by the second node based on the changed topology connection; wherein, different topological labels correspond to different topological connections;
and after determining that the topological connection of the second node changes based on the topological identification, issuing a topological information collection instruction to the second node, wherein the topological information collection instruction is used for instructing the second node to report the topological information of the second node to the first node.
In some embodiments, before receiving topology information sent by at least one second node in the predetermined network, the method includes:
monitoring whether the topological connection of the first node is changed;
and when determining that the topological connection of the first node changes, sending a topological information collection instruction to the at least one second node, wherein the topological information collection instruction is used for instructing the second node to report the topological information of the second node to the first node.
In some embodiments, the monitoring whether the topological connection of the first node changes includes:
monitoring a topology identification of the first node;
and when the topology identification of the first node is determined to be changed, determining that the topology connection of the first node is changed.
In some embodiments, the determining that the topological connection of the second node changes based on the topology identification includes:
comparing the received topology identifier generated by the second node with a pre-stored topology identifier;
determining that the topology identifier generated by the second node is different from the pre-stored topology identifier.
In some embodiments, the method further comprises:
updating the topology identification based on the updated topology information corresponding to the preset network;
and sending the updated topology identifier to each second node.
In some embodiments, the topology information includes at least one of:
a device type of the second node;
the connection mode of the second node and the upper connection equipment;
the mac address of the device of the second node;
ip address of the device of the second node.
In a second aspect of the embodiments of the present disclosure, another information interaction method is further provided, which is applied to a second node, and includes:
receiving a topology information collection instruction issued by a first node, wherein the topology information collection instruction is used for instructing the second node to report topology information of the second node to the first node;
sending the topology information to the first node based on the topology information collection instruction, wherein the topology information is used for the first node to update a topology structure of a preset network according to the topology information;
and receiving topology information corresponding to the updated topology structure of the preset network, which is issued by the first node.
In some embodiments, before receiving the topology information collection instruction issued by the first node, the method includes:
monitoring whether the topological connection of the second node is changed;
when the topological connection of the second node is determined to be changed, generating topological identifications based on the changed topological connection, wherein different topological identifications correspond to different topological connections;
and sending the topology identification generated by the second node to the first node.
In some embodiments, the topological connection changes, including:
the number of the second nodes connected within the preset network is changed;
and/or the presence of a gas in the gas,
the connection mode of the second node accessing the preset network is changed;
and/or the presence of a gas in the gas,
and the connection position of the second node accessing the preset network is changed.
In some embodiments, the generating a topology identification based on the changed topological connection includes:
when the number of the second nodes is increased, generating a first topology identifier;
generating a second topology identifier when the connection mode of the second node is changed;
generating a third topology identifier when the connection position of the second node is changed; wherein the first topology identifier, the second topology identifier and the third topology identifier are different from each other.
In some embodiments, the method further comprises:
and receiving a topology identifier issued by the first node, wherein the topology identifier issued by the first node is generated by the first node based on updated topology information corresponding to a preset network.
In some embodiments, the topology information includes at least one of:
a device type of the second node;
the connection mode of the second node and the upper connection equipment;
the mac address of the device of the second node;
ip address of the device of the second node.
In a third aspect of the embodiments of the present disclosure, an information interaction apparatus is provided, which is applied to a first node, and includes:
the first processing unit is used for receiving topology information sent by at least one second node in the preset network, wherein the topology information is sent to the first node by the second node when the topology connection of any node in the preset network changes;
the second processing unit is used for updating the topological structure of the preset network based on the received topological information;
and the third processing unit is used for distributing the topology information corresponding to the updated topology structure to each second node in the preset network.
In some embodiments, before receiving topology information sent by at least one second node in the predetermined network,
the first processing unit is used for receiving a topology identifier generated by the second node based on the changed topology connection; wherein, different topological labels correspond to different topological connections;
and after determining that the topological connection of the second node changes based on the topological identification, issuing a topological information collection instruction to the second node, wherein the topological information collection instruction is used for instructing the second node to report the topological information of the second node to the first node.
In some embodiments, before receiving topology information sent by at least one second node in the preset network, the first processing unit is further configured to monitor whether a topology connection of the first node changes;
and when determining that the topological connection of the first node changes, sending a topological information collection instruction to the at least one second node, wherein the topological information collection instruction is used for instructing the second node to report the topological information of the second node to the first node.
In some embodiments, the first processing unit is specifically configured to monitor a topology identifier of the first node;
and when the topology identification of the first node is determined to be changed, determining that the topology connection of the first node is changed.
In some embodiments, the first processing unit is further configured to compare the received topology identifier generated by the second node with a pre-stored topology identifier;
determining that the topology identifier generated by the second node is different from the pre-stored topology identifier.
In some embodiments, the third processing unit is further configured to update the topology identifier based on updated topology information corresponding to the preset network;
and sending the updated topology identifier to each second node.
In some embodiments, the topology information includes at least one of:
a device type of the second node;
the connection mode of the second node and the upper connection equipment;
the mac address of the device of the second node;
ip address of the device of the second node.
In a fourth aspect of the embodiments of the present disclosure, another information interaction apparatus is further provided, which is applied to a second node, and includes:
the first processing unit is configured to receive a topology information collection instruction issued by a first node, where the topology information collection instruction is used to instruct the second node to report topology information of the second node to the first node;
the second processing unit is configured to send the topology information to the first node based on the topology information collection instruction, where the topology information is used for the first node to update a topology structure of a preset network according to the topology information;
and the third processing unit is used for receiving the topology information corresponding to the updated topology structure of the preset network, which is sent by the first node.
In some embodiments, before receiving a topology information collection instruction sent by a first node, the first processing unit is configured to monitor whether a topology connection of the second node changes;
when the topological connection of the second node is determined to be changed, generating topological identifications based on the changed topological connection, wherein different topological identifications correspond to different topological connections;
and sending the topology identification generated by the second node to the first node.
In some embodiments, the topological connection changes, including:
the number of the second nodes connected within the preset network is changed;
and/or the presence of a gas in the gas,
the connection mode of the second node accessing the preset network is changed;
and/or the presence of a gas in the gas,
and the connection position of the second node accessing the preset network is changed.
In some embodiments, the first processing unit is specifically configured to generate a first topology identifier when the number of nodes of the second node increases;
generating a second topology identifier when the connection mode of the second node is changed;
generating a third topology identifier when the connection position of the second node is changed; wherein the first topology identifier, the second topology identifier and the third topology identifier are different from each other.
In some embodiments, the third processing unit is further configured to receive a topology identifier issued by the first node, where the topology identifier issued by the first node is generated by the first node based on updated topology information corresponding to a preset network.
In some embodiments, the topology information includes at least one of:
a device type of the second node;
the connection mode of the second node and the upper connection equipment;
the mac address of the device of the second node;
ip address of the device of the second node.
In a fifth aspect of the embodiments of the present disclosure, an information interaction device is provided, including: a processor and a memory for storing a computer program operable on the processor, wherein the processor is configured to perform the steps of the method of the first and second aspects of the embodiments when executing the computer program.
A sixth aspect of the embodiments of the present disclosure provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the method according to the first aspect and the second aspect of the above embodiments.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the information interaction method provided by the embodiment of the disclosure is applied to a first node, and comprises the following steps: receiving topology information sent by at least one second node when the topology connection of any node in the preset network changes; updating the topological structure of the preset network based on the received topological information; and distributing topology information corresponding to the updated network topology to each second node in the preset network according to the updated network topology. There may be one first node and a plurality of second nodes in the network structure. When the topological connection of the nodes in the preset network changes, the first node collects the changed topological information, carries out topological update on the preset network, and distributes the updated topological information of the whole preset network to each second node, so that each second node device has the updated complete topological information, and the distance between each candidate connection device and a network outlet is calculated according to the complete topological information when the roaming effect of the terminal device is evaluated.
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 invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a first flowchart illustrating an information interaction method according to an example embodiment.
Fig. 2 is a flow chart ii illustrating an information interaction method according to an exemplary embodiment.
Fig. 3 is a first schematic structural diagram of an information interaction device according to an exemplary embodiment.
Fig. 4 is a schematic structural diagram of an information interaction apparatus according to an exemplary embodiment.
Fig. 5 is a schematic diagram illustrating a Mesh network structure according to an exemplary embodiment.
FIG. 6 is a diagram illustrating an information interaction system architecture, according to an example embodiment.
Fig. 7 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 embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Topology describes the positional relationship between objects. The network topology describes the location relationship between network devices. Complete topology information can show accurate connection modes between the devices for users on one hand; on the other hand, in the wireless Mesh network, if each device can take complete topology information, when a roaming target is evaluated, the distance between each candidate connection device and the network exit can be calculated according to the complete topology information, and the distance can be used as a judgment factor for selecting the optimal candidate BSS. It is critical to be able to obtain complete topology information.
The present disclosure provides an information interaction method. Fig. 1 is a first flowchart illustrating an information interaction method according to an example embodiment. As shown in fig. 1, the information interaction method is applied to a first node, and includes:
step 10, receiving topology information sent by at least one second node in the preset network, wherein the topology information is sent to the first node by the second node when the topology connection of any node in the preset network changes;
step 11, updating the topological structure of the preset network based on the received topological information;
and 12, distributing the topology information corresponding to the updated topology structure to each second node in the preset network.
In the embodiment of the present disclosure, the first node may be a control node, and the second node may be a proxy node. The control node and the proxy node may both be routers. In a network, a control node may collect topology information of proxy nodes by controlling the proxy nodes. There may be one first node and a plurality of second nodes in the network structure. When the topology connection of any node in the preset network changes, the first node collects the changed topology information.
In the embodiment of the present disclosure, the topology information includes: node device information and a connection relationship associated with the node device.
The node device information includes at least one of:
node device type, node device related settings (including mac address, ip address, etc.).
The connection relation related to the node device at least includes: the connection mode (including wireless connection, wired connection, etc.) and the connection position relationship (i.e., the uplink device is a or B, etc.) of the connection with the uplink device.
In the embodiment of the present disclosure, the predetermined network may be any local area network, including but not limited to a wireless Mesh (Mesh) network (i.e., a multi-hop network), a wireless network with multiple stages of devices connected to a central point, and the like.
In this embodiment of the present disclosure, the updating a topology structure of a preset network based on the received topology information includes: and reconstructing the topological structure of the preset network based on the received topological information sent by the second node with the changed topological connection and the received topological information sent by the second node with the unchanged topological connection.
For example, the first node already knows the topology structure of the preset network at the t-th time, and at the t + 1-th time, the connection related to the second node with the changed topology in the topology structure at the t-th time may be updated according to the topology information sent by the second node with the changed topology connection. In the present application, the topology of the default network refers to the overall connection form between nodes in the default network.
In the information interaction method in the embodiment of the present disclosure, topology information sent by at least one second node when the topology connection of any node in the preset network changes is received; updating the topological structure of the preset network based on the received topological information; and distributing topology information corresponding to the updated network topology to each second node in the preset network according to the updated network topology. There may be one first node and a plurality of second nodes in the network structure. When the topological connection of the nodes in the preset network changes, the first node collects the changed topological information, carries out topological update on the preset network, and distributes the updated topological information of the whole preset network to each second node, so that each second node device has the updated complete topological information, and the distance between each candidate connection device and a network outlet is calculated according to the complete topological information when the roaming effect of the terminal device is evaluated.
In the embodiment of the present disclosure, the distance between each candidate connection device and the network exit may be used as a judgment factor for selecting an optimal BSS (Basic Service Set).
In some embodiments, before receiving topology information sent when a topology of at least one second node in the preset network changes, the method includes:
receiving a topology identifier generated by the second node based on the changed topology connection; wherein different topology identifications correspond to different topologies;
and after determining that the topological connection of the second node changes based on the topological identification, issuing a topological information collection instruction to the second node, wherein the topological information collection instruction is used for instructing the second node to report the topological information of the second node to the first node.
In the embodiment of the present disclosure, the topology identifier is used to identify different topology connections. The topology identifier may be a customized special identifier associated with the topology connection, or may be an identifier generated according to topology information, such as an MD5 value. When the custom identifier is established, corresponding different topology identifiers can be established according to different topology connection conditions. For example, when node a is connected to node B, the topology identifier is established as number 0; when the node a disconnects from the node B and establishes a connection with the node C, the topology identifier is established as data 1. At this time, the topology identifier generated by the node a of the second node changes, the first node receives the change of the topology identifier sent by the second node a, determines that the associated topology of the node a changes (that is, the topology information changes), and then issues an instruction for instructing the second node to report the topology information to the second node, so as to prompt the second node to report the topology information. When the second node sends the topology identifier to the first node, the established topology identifier and the own IP address can be sent together, so that the first node can identify which specific second node's topology information changes. For example, the topology information of the second node a changes, and the second node a may send its IP address to the first node together with the topology identifier, so that the first node may recognize that the topology information of the second node a changes.
In some embodiments, before receiving topology information sent when a topology of at least one second node in the preset network changes, the method further includes:
monitoring whether the topological connection of the first node is changed;
and when determining that the topological connection of the first node changes, sending a topological information collection instruction to the at least one second node, wherein the topological information collection instruction is used for instructing the second node to report the topological information of the second node to the first node.
In the embodiment of the present disclosure, the condition when the first node issues the topology information collection instruction to the second node may be to determine that the topology connection of the first node changes, in addition to determining that the topology connection of the second node changes. When the topology connection of the first node changes, the first node may also issue a topology information collection instruction to the second node to instruct the second node to report the topology information of the second node to the first node.
In some embodiments, the monitoring whether the topological connection of the first node changes includes:
monitoring a topology identification of the first node;
and when the topology identification of the first node is determined to be changed, determining that the topology connection of the first node is changed.
In the embodiment of the present disclosure, a change in the topology identifier of the first node may indicate a change in the topology connection of the first node. When the topology connection of the first node changes, an instruction indicating that the second node reports topology information can be issued to the second node. The topological connection of the first node at least comprises the change of the connection mode of the first node accessing the preset network. For example, a limited connection is changed to a wireless connection, etc.
The determining that the topology identification of the first node changes comprises determining that the topology identification of the first node changes to a specific identification. The specific identifier of the first node is used for indicating that the self-configuration information of the first node is changed. The configuration information of the first node at least includes a node device type of the first node, a mac address of the node device, an ip address of the node device, and the like. When the topology identifier of the first node is monitored to be changed into the specific identifier, an instruction for instructing the second node to report the topology information may also be issued to the second node.
In some embodiments, the determining that the topological connection of the second node changes based on the topology identification includes:
comparing the received topology identifier generated by the second node with a pre-stored topology identifier;
determining that the topology identifier generated by the second node is different from the pre-stored topology identifier.
In the embodiment of the present disclosure, it may be determined whether the topological connection of the second node changes by determining whether the topology identifier sent by the second node to the first node changes. When the received topology identification generated by the second node by the first node is different from the pre-stored topology identification, the change of the topology connection of the second node can be determined. At this time, the first node may issue an instruction to the second node to instruct the second node to report the topology information.
In some embodiments, the method further comprises:
updating the topology identification based on the updated topology information corresponding to the preset network;
and sending the updated topology identifier to each second node.
In the embodiment of the present disclosure, after the topology of the second node changes, the first node may obtain topology information reported by all the second nodes, and update the topology information of the entire network of the preset network. And generating corresponding topology identification according to the updated topology information corresponding to the preset network, and sending the topology identification to each second node so that each second node can obtain the topology identification corresponding to the whole network topology in the preset network. The topology identifier includes, but is not limited to, summary information of description information of the corresponding node at a corresponding position in the topology structure after the preset network update. The summary information may be generated using various summary algorithms, for example, including but not limited to: MD5 algorithm, the topology identification includes but is not limited to MD5 value.
In an embodiment of the present disclosure, the topology information of the second node at least includes one of the following information:
a device type of the second node;
the connection mode of the second node and the upper connection equipment;
the mac address of the device of the second node;
ip address of the device of the second node.
The present disclosure also provides another information interaction method. Fig. 2 is a flow chart ii illustrating an information interaction method according to an exemplary embodiment. As shown in fig. 2, the information interaction method applied to the second node includes:
step 20, receiving a topology information collection instruction issued by a first node, wherein the topology information collection instruction is used for instructing the second node to report topology information of the second node to the first node;
step 21, sending the topology information to the first node based on the topology information collection instruction, wherein the topology information is used for the first node to update a topology structure of a preset network according to the topology information;
and step 22, receiving the topology information corresponding to the updated topology structure of the preset network, which is sent by the first node.
In the embodiment of the present disclosure, the first node may be a control node, and the second node may be a proxy node. In a network, a control node may collect topology information of proxy nodes by controlling the proxy nodes. There may be one first node and a plurality of second nodes in the network structure. When the topology of the second node (a second node or a plurality of second nodes) changes, the first node collects the changed topology information.
In the embodiment of the present disclosure, the topology information includes: node device information and a connection relationship associated with the node device.
The node device information includes at least one of:
node device type, node device related settings (including mac address, ip address, etc.).
The connection relation related to the node device at least includes: the connection mode (including wireless connection, wired connection, etc.) and the connection position relationship (i.e., the uplink device is a or B, etc.) of the connection with the uplink device.
In the embodiment of the present disclosure, the predetermined network may be any local area network, including but not limited to a wireless Mesh (Mesh) network (i.e., a multi-hop network), a wireless network with multiple stages of devices connected to a central point, and the like.
In an embodiment of the present disclosure, the updating, by the first node, the topology structure of the preset network according to the topology information includes: and the first node reconstructs the topological structure of the preset network according to the received topological information sent by the second node with changed topological connection and the received topological information sent by the second node with unchanged topological connection. For example, the first node already knows the topology structure of the preset network at the t-th time, and at the t + 1-th time, the connection related to the second node with the changed topology connection in the topology structure at the t-th time may be updated according to the topology information sent by the second node with the changed topology connection.
In the information interaction method in the embodiment of the disclosure, after receiving a topology information collection instruction issued by a first node, the topology information is sent to the first node, so that the first node updates a topology structure of a preset network according to the topology information. And then the second node receives the topology information which is sent by the first node and corresponds to the updated topology structure of the preset network. Therefore, the first node can update the topological structure of the preset network according to the topological information reported by the second nodes, and each second node receives the topological information corresponding to the updated topological structure of the preset network, so that the distance between each candidate connecting device and the network outlet can be calculated according to the complete topological information when the roaming effect of the terminal device is evaluated.
In the embodiment of the present disclosure, the distance between each candidate connection device and the network exit may be used as a judgment factor for selecting an optimal BSS (Basic Service Set).
In some embodiments, before receiving the topology information collection instruction issued by the first node, the method includes:
monitoring whether the topological connection of the second node is changed;
when the topological connection of the second node is determined to be changed, generating topological identifications based on the changed topological connection, wherein different topological identifications correspond to different topological connections;
and sending the topology identification generated by the second node to the first node.
In the embodiment of the present disclosure, the topology identifier is used to identify different topology connections. The topology identifier may be a customized special identifier associated with the topology connection, or may be an identifier generated according to topology information, such as an MD5 value. When the custom identifier is established, corresponding different topology identifiers can be established according to different topology connection conditions. For example, when node a is connected to node B, the topology identifier is established as number 0; when node a is no longer connected to node B and a connection is established to node C, the topology identification is established as data 1. In the process, the second node may periodically send the generated topology identifier to the first node for the first node to identify. When the topology of the second node changes, the generated topology identification changes correspondingly. At this time, the second node generates the latest topology identifier based on the changed topology connection, and transmits the latest topology identifier to the first node. When the first node receives the latest topology identification sent by the second node A, and after determining that the associated topology connection of the node A changes (namely, the topology information changes), the first node issues an instruction for indicating the second node to report the topology information to the second node, so that the second node is prompted to report the topology information.
In some embodiments, the topological connection changes, including:
the number of the second nodes connected within the preset network is changed;
and/or the presence of a gas in the gas,
the connection mode of the second node accessing the preset network is changed;
and/or the presence of a gas in the gas,
and the connection position of the second node accessing the preset network is changed.
In the embodiment of the present disclosure, the change in the number of topological connections includes an increase or decrease in the number of second nodes connected in the network topology. I.e. adding one second node or subtracting one second node in the network topology. For example, any second node may detect a change in the devices connected to itself, i.e., detect whether a new device is connected or whether a disconnection from an old device is detected. For example, a new device is connected to the second node a, an old device is disconnected from the second node B, and the number of the topological connections changes.
The connection mode of the topological connection is changed, and the connection mode of the second node accessing the network is changed from wired connection to wireless connection or from wireless connection to wired connection.
The changing of the connection position of the second node includes: the second node a disconnects from the direct connection with the second node B and instead connects directly with the second node C. I.e. from one connection location to another. Any one of the conditions meets the condition that the topology information changes, and the second node is prompted to report the topology information to the first node.
In some embodiments, the generating a topology identification based on the changed topology includes:
when the number of the second nodes is increased, generating a first topology identifier;
generating a second topology identifier when the connection mode between the second nodes is changed; the second topology identification is different from the first topology identification;
generating a third topology identifier when the connection position of the second node is changed; wherein the first topology identifier, the second topology identifier and the third topology identifier are different from each other.
In the embodiment of the present disclosure, since the change of the number of nodes of the second node is different from the change of the connection manner between the second nodes in form, when the topology identifier is generated, the types of the topology identifier may be distinguished. For example, when the number of nodes of the second node increases, the first topology identifier is generated, and the first topology identifier may be a letter. When the connection mode between the second nodes is changed, a second topology identifier is generated, and the second topology identifier may be a number. And when the first node receives the topology identification, the change mode of the topology change can be determined according to the type of the topology identification. And generating a third topology identification when the connection position of the second node is changed. The third topology identification may be a special symbol. When the first node receives the topology identifier, the first node is favorable for determining the change mode of the topology change according to the type of the topology identifier.
In some embodiments, the method further comprises:
and receiving a topology identifier issued by the first node, wherein the topology identifier issued by the first node is generated by the first node based on updated topology information corresponding to a preset network.
In the embodiment of the present disclosure, after the topology of the second node changes, the first node may obtain topology information reported by all the second nodes, and update the topology information of the entire network of the preset network. And generating corresponding topology identification according to the updated topology information corresponding to the preset network, and sending the topology identification to each second node. And the second node receives a topology identifier corresponding to the overall network topology in the latest preset network. The topology identification may be an MD5 value corresponding to the generated topology information, or the like.
The disclosure also provides an information interaction device applied to the first node. Fig. 3 is a first schematic structural diagram of an information interaction device according to an exemplary embodiment. As shown in fig. 3, the information interaction apparatus includes:
the first processing unit 31 is configured to receive topology information sent by at least one second node in the preset network, where the topology information is sent to the first node by any one node in the preset network when a topology connection of the second node changes;
a second processing unit 32, configured to update a topology structure of the preset network based on the received topology information;
a third processing unit 33, configured to distribute, in the preset network, topology information corresponding to the updated topology structure to each second node.
In the embodiment of the present disclosure, the first node may be a control node, and the second node may be a proxy node. The control node and the proxy node may both be routers. In a network, a control node may collect topology information of proxy nodes by controlling the proxy nodes. There may be one first node and a plurality of second nodes in the network structure. When the topology connection of any node in the preset network changes, the first node collects the changed topology information.
In the embodiment of the present disclosure, the topology information includes: node device information and a connection relationship associated with the node device.
The node device information includes at least one of:
node device type, node device related settings (including mac address, ip address, etc.).
The connection relation related to the node device at least includes: the connection mode (including wireless connection, wired connection, etc.) and the connection position relationship (i.e., the uplink device is a or B, etc.) of the connection with the uplink device.
In the embodiment of the present disclosure, the predetermined network may be any local area network, including but not limited to a wireless Mesh (Mesh) network (i.e., a multi-hop network), a wireless network with multiple stages of devices connected to a central point, and the like.
In this embodiment of the present disclosure, the updating a topology structure of a preset network based on the received topology information includes: and reconstructing the topological structure of the preset network based on the received topological information sent by the second node with the changed topological connection and the received topological information sent by the second node with the unchanged topological connection.
For example, the first node already knows the topology structure of the preset network at the t-th time, and at the t + 1-th time, the connection related to the second node with the changed topology in the topology structure at the t-th time may be updated according to the topology information sent by the second node with the changed topology connection. In the present application, the topology of the default network refers to the overall connection form between nodes in the default network.
The information interaction device in the embodiment of the disclosure receives topology information sent by at least one second node when the topology connection of any node in the preset network changes; updating the topological structure of the preset network based on the received topological information; and distributing topology information corresponding to the updated network topology to each second node in the preset network according to the updated network topology. There may be one first node and a plurality of second nodes in the network structure. When the topological connection of the nodes in the preset network changes, the first node collects the changed topological information, carries out topological update on the preset network, and distributes the updated topological information of the whole preset network to each second node, so that each second node device has the updated complete topological information, and the distance between each candidate connection device and a network outlet is calculated according to the complete topological information when the roaming effect of the terminal device is evaluated.
In the embodiment of the present disclosure, the distance between each candidate connection device and the network exit may be used as a judgment factor for selecting an optimal BSS (Basic Service Set).
In some embodiments, before receiving topology information sent when the topology of at least one second node in the predetermined network changes,
the first processing unit is used for receiving a topology identifier generated by the second node based on the changed topology connection; wherein, different topological labels correspond to different topological connections;
and after determining that the topological connection of the second node changes based on the topological identification, issuing a topological information collection instruction to the second node, wherein the topological information collection instruction is used for instructing the second node to report the topological information of the second node to the first node.
In the embodiment of the present disclosure, the topology identifier is used to identify different topology connections. The topology identifier may be a customized special identifier associated with the topology connection, or may be an identifier generated according to topology information, such as an MD5 value. When the custom identifier is established, corresponding different topology identifiers can be established according to different topology connection conditions. For example, when node a is connected to node B, the topology identifier is established as number 0; when the node a disconnects from the node B and establishes a connection with the node C, the topology identifier is established as data 1. At this time, the topology identifier generated by the node a of the second node changes, the first node receives the change of the topology identifier sent by the second node a, determines that the associated topology of the node a changes (that is, the topology information changes), and then issues an instruction for instructing the second node to report the topology information to the second node, so as to prompt the second node to report the topology information. When the second node sends the topology identifier to the first node, the established topology identifier and the own IP address can be sent together, so that the first node can identify which specific second node's topology information changes. For example, the topology information of the second node a changes, and the second node a may send its IP address to the first node together with the topology identifier, so that the first node may recognize that the topology information of the second node a changes.
In some embodiments, before receiving topology information sent by at least one second node in the preset network, the first processing unit is further configured to monitor whether a topology connection of the first node changes;
and when determining that the topological connection of the first node changes, sending a topological information collection instruction to the at least one second node, wherein the topological information collection instruction is used for instructing the second node to report the topological information of the second node to the first node.
In the embodiment of the present disclosure, the condition when the first node issues the topology information collection instruction to the second node may be to determine that the topology connection of the first node changes, in addition to determining that the topology connection of the second node changes. When the topology connection of the first node changes, the first node may also issue a topology information collection instruction to the second node to instruct the second node to report the topology information of the second node to the first node.
In some embodiments, the first processing unit is specifically configured to monitor a topology identifier of the first node;
and when the topology identification of the first node is determined to be changed, determining that the topology connection of the first node is changed.
In the embodiment of the present disclosure, a change in the topology identifier of the first node may indicate a change in the topology connection of the first node. When the topology connection of the first node changes, an instruction indicating that the second node reports topology information can be issued to the second node. The topological connection of the first node at least comprises the change of the connection mode of the first node accessing the preset network. For example, a limited connection is changed to a wireless connection, etc.
The determining that the topology identification of the first node changes comprises determining that the topology identification of the first node changes to a specific identification. The specific identifier of the first node is used for indicating that the self-configuration information of the first node is changed. The configuration information of the first node at least includes a node device type of the first node, a mac address of the node device, an ip address of the node device, and the like. When the topology identifier of the first node is monitored to be changed into the specific identifier, an instruction for instructing the second node to report the topology information may also be issued to the second node.
In some embodiments, the first processing unit is further configured to compare the received topology identifier generated by the second node with a pre-stored topology identifier;
determining that the topology identifier generated by the second node is different from the pre-stored topology identifier.
In the embodiment of the present disclosure, it may be determined whether the topological connection of the second node changes by determining whether the topology identifier sent by the second node to the first node changes. When the received topology identification generated by the second node by the first node is different from the pre-stored topology identification, the change of the topology connection of the second node can be determined. At this time, the first node may issue an instruction to the second node to instruct the second node to report the topology information.
In some embodiments, the third processing unit is further configured to update the topology identifier based on updated topology information corresponding to the preset network;
and sending the updated topology identifier to each second node.
In the embodiment of the present disclosure, after the topology of the second node changes, the first node may obtain topology information reported by all the second nodes, and update the topology information of the entire network of the preset network. And generating corresponding topology identification according to the updated topology information corresponding to the preset network, and sending the corresponding topology identification to each second node so that each second node can acquire the latest topology identification corresponding to the whole network topology in the preset network. The topology identifier includes, but is not limited to, summary information of description information of the corresponding node at a corresponding position in the topology structure after the preset network update. The summary information may be generated using various summary algorithms, for example, including but not limited to: MD5 algorithm, the topology identification includes but is not limited to MD5 value.
In an embodiment of the present disclosure, the topology information of the second node at least includes one of the following information:
a device type of the second node;
the connection mode of the second node and the upper connection equipment;
the mac address of the device of the second node;
ip address of the device of the second node.
The disclosure also provides another information interaction device applied to the second node. Fig. 4 is a schematic structural diagram of an information interaction apparatus according to an exemplary embodiment. As shown in fig. 4, the information interaction apparatus includes:
a first processing unit 41, configured to receive a topology information collection instruction issued by a first node, where the topology information collection instruction is used to instruct the second node to report topology information of the second node to the first node;
a second processing unit 42, configured to send the topology information to the first node based on the topology information collection instruction, where the topology information is used for the first node to update a topology structure of a preset network according to the topology information;
a third processing unit 43, configured to receive topology information corresponding to the updated topology structure of the preset network, where the topology information is sent by the first node.
In the embodiment of the present disclosure, the first node may be a control node, and the second node may be a proxy node. In a network, a control node may collect topology information of proxy nodes by controlling the proxy nodes. There may be one first node and a plurality of second nodes in the network structure. When the topology of the second node (a second node or a plurality of second nodes) changes, the first node collects the changed topology information.
In the embodiment of the present disclosure, the topology information includes: node device information and a connection relationship associated with the node device.
The node device information includes at least one of:
node device type, node device related settings (including mac address, ip address, etc.).
The connection relation related to the node device at least includes: the connection mode (including wireless connection, wired connection, etc.) and the connection position relationship (i.e., the uplink device is a or B, etc.) of the connection with the uplink device.
In the embodiment of the present disclosure, the predetermined network may be any local area network, including but not limited to a wireless Mesh (Mesh) network (i.e., a multi-hop network), a wireless network with multiple stages of devices connected to a central point, and the like.
In an embodiment of the present disclosure, the updating, by the first node, the topology structure of the preset network according to the topology information includes: and the first node reconstructs the topological structure of the preset network according to the received topological information sent by the second node with changed topological connection and the received topological information sent by the second node with unchanged topological connection. For example, the first node already knows the topology structure of the preset network at the t-th time, and at the t + 1-th time, the connection related to the second node with the changed topology connection in the topology structure at the t-th time may be updated according to the topology information sent by the second node with the changed topology connection.
The information interaction device in the embodiment of the disclosure sends the topology information to the first node after receiving the topology information collection instruction issued by the first node, so that the first node can update the topology structure of the preset network according to the topology information. And then the second node receives the topology information which is sent by the first node and corresponds to the updated topology structure of the preset network. Therefore, the first node can update the topological structure of the preset network according to the topological information reported by the second nodes, and each second node receives the topological information corresponding to the updated topological structure of the preset network, so that the distance between each candidate connecting device and the network outlet can be calculated according to the complete topological information when the roaming effect of the terminal device is evaluated.
In the embodiment of the present disclosure, the distance between each candidate connection device and the network exit may be used as a judgment factor for selecting an optimal BSS (Basic Service Set).
In some embodiments, before receiving a topology information collection instruction sent by a first node, the first processing unit is configured to monitor whether a topology connection of the second node changes;
when the topological connection of the second node is determined to be changed, generating topological identifications based on the changed topological connection, wherein different topological identifications correspond to different topological connections;
and sending the topology identification generated by the second node to the first node.
In the embodiment of the present disclosure, the topology identifier is used to identify different topology connections. The topology identifier may be a customized special identifier associated with the topology connection, or may be an identifier generated according to topology information, such as an MD5 value. When the custom identifier is established, corresponding different topology identifiers can be established according to different topology connection conditions. For example, when node a is connected to node B, the topology identifier is established as number 0; when node a is no longer connected to node B and a connection is established to node C, the topology identification is established as data 1. In the process, the second node may periodically send the generated topology identifier to the first node for the first node to identify. When the topology of the second node changes, the generated topology identification changes correspondingly. At this time, the second node generates the latest topology identifier based on the changed topology connection, and transmits the latest topology identifier to the first node. When the first node receives the latest topology identification sent by the second node A, and after determining that the associated topology connection of the node A changes (namely, the topology information changes), the first node issues an instruction for indicating the second node to report the topology information to the second node, so that the second node is prompted to report the topology information.
In some embodiments, the topological connection changes, including:
the number of the second nodes connected within the preset network is changed;
and/or the presence of a gas in the gas,
the connection mode of the second node accessing the preset network is changed;
and/or the presence of a gas in the gas,
and the connection position of the second node accessing the preset network is changed.
In the embodiment of the present disclosure, the change in the number of topological connections includes an increase or decrease in the number of second nodes connected in the network topology. I.e. adding one second node or subtracting one second node in the network topology. For example, any second node may detect a change in the devices connected to itself, i.e., detect whether a new device is connected or whether a disconnection from an old device is detected. For example, a new device is connected to the second node a, an old device is disconnected from the second node B, and the number of the topological connections changes.
The connection mode of the topological connection is changed, and the connection mode of the second node accessing the network is changed from wired connection to wireless connection or from wireless connection to wired connection.
The changing of the connection position of the second node includes: the second node a disconnects from the direct connection with the second node B and instead connects directly with the second node C. I.e. from one connection location to another. Any one of the conditions meets the condition that the topology information changes, and the second node is prompted to report the topology information to the first node.
In some embodiments, the first processing unit is specifically configured to generate a first topology identifier when the number of nodes of the second node increases;
generating a second topology identifier when the connection mode of the second node is changed;
generating a third topology identifier when the connection position of the second node is changed; wherein the first topology identifier, the second topology identifier and the third topology identifier are different from each other.
In the embodiment of the present disclosure, since the change of the number of nodes of the second node is different from the change of the connection manner between the second nodes in form, when the topology identifier is generated, the types of the topology identifier may be distinguished. For example, when the number of nodes of the second node increases, the first topology identifier is generated, and the first topology identifier may be a letter. When the connection mode between the second nodes is changed, a second topology identifier is generated, and the second topology identifier may be a number. And when the first node receives the topology identification, the change mode of the topology change can be determined according to the type of the topology identification. And generating a third topology identification when the connection position of the second node is changed. The third topology identification may be a special symbol. When the first node receives the topology identifier, the first node is favorable for determining the change mode of the topology change according to the type of the topology identifier.
In some embodiments, the third processing unit is further configured to receive a topology identifier issued by the first node, where the topology identifier issued by the first node is generated by the first node based on updated topology information corresponding to a preset network.
In the embodiment of the present disclosure, after the topology of the second node changes, the first node may obtain topology information reported by all the second nodes, and update the topology information of the entire network of the preset network. And generating corresponding topology identification according to the updated topology information corresponding to the preset network, and sending the topology identification to each second node. And the second node receives a topology identifier corresponding to the overall network topology in the latest preset network. The topology identification may be an MD5 value corresponding to the generated topology information, or the like.
Fig. 5 is a schematic diagram illustrating a Mesh network structure according to an exemplary embodiment. The information interaction method provided by the present disclosure may be applied to the Mesh network shown in fig. 5, and the steps include:
1) selecting a unique control node Controller (a first node) in the Mesh network, wherein the rest are Agent nodes (second nodes), and establishing a secure communication connection between the Agent nodes and the Controller;
2) the Controller and the Agent can use a special identifier (simply called a topology identifier) to identify own topology information, such as an MD5 value of the topology information;
3) the Agent periodically reports the self topology identification to the Controller, and when the connection mode of the self and the neighbor equipment is changed, the self topology identification is set as a specific identification;
4) each Agent and Controller runs a monitoring module which monitors the connection mode (wired or wireless) of the current equipment and the uplink equipment and the detected information of the uplink equipment, detects new uplink equipment when the connection mode changes, and sets a self topology identifier as a specific identifier;
5) when the Controller detects that the self topology identification is the special identification or the topology identification reported by the Agent is the special identification, the Controller broadcasts a reporting command of the connected equipment to all the agents;
6) after receiving a reporting command of the uplink equipment, the Agent reports equipment information of the Agent, the uplink equipment detected by the Agent and a connection mode between the Agent and the uplink equipment to a Controller;
7) and after the Controller collects the neighbor information reported by all the agents, the topology structure of the whole network and the connection mode among the network devices are reconstructed according to the neighbor relation of the devices, and the Controller generates a new topology identifier for the new topology information and broadcasts the newly generated topology information to all the agents.
One preferred method of reconstructing the topology is: starting from the Controller, firstly searching whether the uplink equipment reported by the Agent is the Controller, if so, judging that the corresponding Agent is the first-stage downlink equipment of the Controller, and after all the first-stage downlink equipment is searched, searching the next-stage equipment of all the first-stage downlink equipment until all the equipment is reconstructed.
8) And after receiving the topology information update, the Agent updates the self topology identification, stores the new topology information and carries the new topology identification when reporting the topology identification periodically.
FIG. 6 is a diagram illustrating an information interaction system architecture, according to an example embodiment. As shown in fig. 6, the present disclosure further provides an information interaction system, which includes a Controller end and an Agent end.
The Controller end comprises a topology information reconstruction module, a first communication module and a database.
A first communication module: the system is in charge of communicating with all agents in the Mesh network, storing the topological identification of the agents and collecting the topological information of the agents into a database;
when receiving the topology identifier of the Agent as a preset special identifier, sending an uplink device report command to all the agents, and notifying a topology information reconstruction module to calculate the network topology after receiving the uplink device report information of all the agents;
and updating the topology information of all the agents after receiving the topology updating command.
A topology information reconstruction module: and calculating the topology information of the whole network according to the collected topology information, and calling the communication module to update the topology information to all the agents after the calculation is finished.
A database: and storing the topology identification of each Agent and calculating the latest topology information.
The Agent end comprises a second communication module, an uplink device detection module and a database.
A second communication module: the device is in charge of communicating with the Controller, acquiring the information of the uplink device from the database and replying to the Controller when receiving a command of reporting the uplink device, extracting the current topology identifier of the device from the database and sending the current topology identifier to the Controller when reporting the topology identifier of the device periodically each time, and storing the topology information into the database when receiving the updated topology information;
the upper connection equipment detection module: detecting information and a connection mode of the uplink equipment, and storing the detected information in a database; if the connection mode is detected to be changed or the uplink equipment is detected to be changed, setting the topology identifier as a preset specific identifier;
a database: and storing the topology identification of the current device, the information of the uplink device and the topology information updated by the Controller.
An embodiment of the present disclosure further provides a terminal, including: a processor and a memory for storing a computer program operable on the processor, wherein the processor is configured to perform the steps of the method of the above embodiment when executing the computer program.
The embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of the method in the above-mentioned embodiment.
Fig. 7 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. 7, 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 display, 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 a 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 invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention 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 invention is limited only by the appended claims.

Claims (17)

1. An information interaction method is applied to a first node in a preset network, and comprises the following steps:
receiving topology information sent by at least one second node in the preset network, wherein the topology information is sent to the first node by the second node when the topology connection of any node in the preset network changes;
updating the topological structure of the preset network based on the received topological information;
and distributing the topology information corresponding to the updated topology structure to each second node in the preset network.
2. The information interaction method according to claim 1, wherein before receiving topology information sent by at least one second node in the predetermined network, the method comprises:
receiving a topology identifier generated by the second node based on the changed topology connection; wherein, different topological labels correspond to different topological connections;
and after determining that the topological connection of the second node changes based on the topological identification, issuing a topological information collection instruction to the second node, wherein the topological information collection instruction is used for instructing the second node to report the topological information of the second node to the first node.
3. The information interaction method according to claim 1, wherein before receiving topology information sent by at least one second node in the predetermined network, the method comprises:
monitoring whether the topological connection of the first node is changed;
and when determining that the topological connection of the first node changes, sending a topological information collection instruction to the at least one second node, wherein the topological information collection instruction is used for instructing the second node to report the topological information of the second node to the first node.
4. The information interaction method of claim 3, wherein the monitoring whether the topological connection of the first node changes comprises:
monitoring a topology identification of the first node;
and when the topology identification of the first node is determined to be changed, determining that the topology connection of the first node is changed.
5. The information interaction method according to claim 1, wherein the determining that the topological connection of the second node changes based on the topological identification comprises:
comparing the received topology identifier generated by the second node with a pre-stored topology identifier;
determining that the topology identifier generated by the second node is different from the pre-stored topology identifier.
6. The information interaction method of claim 1, wherein the method further comprises:
updating the topology identification based on the updated topology information corresponding to the preset network;
and sending the updated topology identifier to each second node.
7. The information interaction method according to any one of claims 1 to 6, wherein the topology information includes at least one of the following information:
a device type of the second node;
the connection mode of the second node and the upper connection equipment;
the mac address of the device of the second node;
ip address of the device of the second node.
8. An information interaction method applied to a second node includes:
receiving a topology information collection instruction issued by a first node, wherein the topology information collection instruction is used for instructing the second node to report topology information of the second node to the first node;
sending the topology information to the first node based on the topology information collection instruction, wherein the topology information is used for the first node to update a topology structure of a preset network according to the topology information;
and receiving topology information corresponding to the updated topology structure of the preset network, which is issued by the first node.
9. The information interaction method according to claim 8, wherein before receiving the topology information collection instruction issued by the first node, the method comprises:
monitoring whether the topological connection of the second node is changed;
when the topological connection of the second node is determined to be changed, generating topological identifications based on the changed topological connection, wherein different topological identifications correspond to different topological connections;
and sending the topology identification generated by the second node to the first node.
10. The information interaction method according to claim 9, wherein the topological connection changes, and comprises:
the number of the second nodes connected within the preset network is changed;
and/or the presence of a gas in the gas,
the connection mode of the second node accessing the preset network is changed;
and/or the presence of a gas in the gas,
and the connection position of the second node accessing the preset network is changed.
11. The information interaction method according to claim 9, wherein the generating a topology identifier based on the changed topology connection comprises:
when the number of the second nodes is increased, generating a first topology identifier;
generating a second topology identifier when the connection mode of the second node is changed;
generating a third topology identifier when the connection position of the second node is changed; wherein the first topology identifier, the second topology identifier and the third topology identifier are different from each other.
12. The information interaction method of claim 8, wherein the method further comprises:
and receiving a topology identifier issued by the first node, wherein the topology identifier issued by the first node is generated by the first node based on updated topology information corresponding to a preset network.
13. The information interaction method according to any one of claims 8 to 12, wherein the topology information includes at least one of the following information:
a device type of the second node;
the connection mode of the second node and the upper connection equipment;
the mac address of the device of the second node;
ip address of the device of the second node.
14. An information interaction device, applied to a first node, includes:
the first processing unit is used for receiving topology information sent by at least one second node in the preset network, wherein the topology information is sent to the first node by the second node when the topology connection of any node in the preset network changes;
the second processing unit is used for updating the topological structure of the preset network based on the received topological information;
and the third processing unit is used for distributing the topology information corresponding to the updated topology structure to each second node in the preset network.
15. An information interaction device, applied to a second node, includes:
the first processing unit is configured to receive a topology information collection instruction issued by a first node, where the topology information collection instruction is used to instruct the second node to report topology information of the second node to the first node;
the second processing unit is configured to send the topology information to the first node based on the topology information collection instruction, where the topology information is used for the first node to update a topology structure of a preset network according to the topology information;
and the third processing unit is used for receiving the topology information corresponding to the updated topology structure of the preset network, which is sent by the first node.
16. A terminal, comprising: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of any of claims 1 to 13 when the computer program is executed.
17. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 13.
CN202110583760.XA 2021-05-27 2021-05-27 Information interaction method, information interaction device, terminal and storage medium Pending CN113395173A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110583760.XA CN113395173A (en) 2021-05-27 2021-05-27 Information interaction method, information interaction device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110583760.XA CN113395173A (en) 2021-05-27 2021-05-27 Information interaction method, information interaction device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113395173A true CN113395173A (en) 2021-09-14

Family

ID=77619166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110583760.XA Pending CN113395173A (en) 2021-05-27 2021-05-27 Information interaction method, information interaction device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113395173A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113872805A (en) * 2021-09-24 2021-12-31 希诺麦田技术(深圳)有限公司 Network topology information visualization method, device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6625124B1 (en) * 2000-03-03 2003-09-23 Luminous Networks, Inc. Automatic reconfiguration of short addresses for devices in a network due to change in network topology
US20130103739A1 (en) * 2011-10-21 2013-04-25 Cisco Technology, Inc. Obtaining Dynamic Connected-Network Topology Via any Node in Network
CN105007220A (en) * 2015-04-20 2015-10-28 中国电信股份有限公司 Inter-domain route management system, inter-domain route management method, domain adapters and transmission network
US20200053148A1 (en) * 2017-01-31 2020-02-13 nChain Holdings Limited Computer-implemented system and method for updating a network's knowledge of the network's topology
US10802868B1 (en) * 2020-01-02 2020-10-13 International Business Machines Corporation Management of transactions from a source node to a target node through intermediary nodes in a replication environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6625124B1 (en) * 2000-03-03 2003-09-23 Luminous Networks, Inc. Automatic reconfiguration of short addresses for devices in a network due to change in network topology
US20130103739A1 (en) * 2011-10-21 2013-04-25 Cisco Technology, Inc. Obtaining Dynamic Connected-Network Topology Via any Node in Network
CN105007220A (en) * 2015-04-20 2015-10-28 中国电信股份有限公司 Inter-domain route management system, inter-domain route management method, domain adapters and transmission network
US20200053148A1 (en) * 2017-01-31 2020-02-13 nChain Holdings Limited Computer-implemented system and method for updating a network's knowledge of the network's topology
US10802868B1 (en) * 2020-01-02 2020-10-13 International Business Machines Corporation Management of transactions from a source node to a target node through intermediary nodes in a replication environment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113872805A (en) * 2021-09-24 2021-12-31 希诺麦田技术(深圳)有限公司 Network topology information visualization method, device and medium
CN113872805B (en) * 2021-09-24 2023-11-07 希诺麦田技术(深圳)有限公司 Network topology information visualization method, device and medium

Similar Documents

Publication Publication Date Title
CN108564947B (en) Method, apparatus and storage medium for far-field voice wake-up
CN104683248B (en) The method and apparatus of switching working mode
CN108810866B (en) Method and device for connecting intelligent equipment and storage medium
CN105049416A (en) Method and apparatus for accessing to wifi network
CN106385351B (en) Control method and device of intelligent household equipment
US20210360489A1 (en) Methods and devices for reducing temperature for user equipment
CN105094321A (en) Method and apparatus for controlling intelligent device
CN110383891B (en) Network switching resource determining method and network switching resource configuration method
CN104917895A (en) Positioning system selection method and device and terminal
CN113055966B (en) Frequency band switching method, frequency band switching device and storage medium
CN107423394A (en) Page display method and device
CN112770341A (en) Calling method and device
CN105636149A (en) Relay method and device and system
CN113329474B (en) Method for accessing node to Mesh network, information interaction device, terminal and storage medium
CN113395745B (en) Method, device, terminal and storage medium for accessing Mesh network
CN109040651B (en) Video communication method and device
CN113395173A (en) Information interaction method, information interaction device, terminal and storage medium
CN113727462A (en) Wireless connection establishing method and device, electronic equipment and storage medium
CN106550482B (en) Communication connection establishing method and device and electronic equipment
CN106658412B (en) Positioning method and device
CN106506808B (en) Method and device for prompting communication message
CN113163467B (en) Node hop count updating method, device, terminal and storage medium in Mesh network
CN107039054B (en) The way of recording and device
CN111064669B (en) Route storage method, device, equipment and storage medium
CN114710815A (en) Cell residence method and device, terminal and computer readable 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210914

RJ01 Rejection of invention patent application after publication