CN113179529B - Information processing method and device, network equipment and storage medium - Google Patents

Information processing method and device, network equipment and storage medium Download PDF

Info

Publication number
CN113179529B
CN113179529B CN202110506671.5A CN202110506671A CN113179529B CN 113179529 B CN113179529 B CN 113179529B CN 202110506671 A CN202110506671 A CN 202110506671A CN 113179529 B CN113179529 B CN 113179529B
Authority
CN
China
Prior art keywords
network device
probe
network
information
management frame
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.)
Active
Application number
CN202110506671.5A
Other languages
Chinese (zh)
Other versions
CN113179529A (en
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 CN202110506671.5A priority Critical patent/CN113179529B/en
Publication of CN113179529A publication Critical patent/CN113179529A/en
Application granted granted Critical
Publication of CN113179529B publication Critical patent/CN113179529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

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 processing method and device, a network device and a storage medium. The method is applied to first network equipment and comprises the following steps: when a first management frame sent by second network equipment is detected, probe request information is extracted from the first management frame; generating probe response information corresponding to the second network device based on the probe request information; inserting the probe response information into a second management frame of the wireless network communication; and sending the second management frame carrying the detection response information to the second network equipment. Therefore, the association process defined by the protocol that the wireless network connection must follow is fully utilized, the detection request information is inserted into the first management frame, and the detection response information is inserted into the second management frame, so that the two ends (namely, the first network device and the second network device) of the wireless network connection can mutually detect the neighbor information of the other end, the detection process is simple, and no additional protocol support is needed.

Description

Information processing method and device, network equipment and storage medium
Technical Field
The present disclosure relates to the field of technologies of internet of things, and in particular, to an information processing method and apparatus, a network device, and a storage medium.
Background
The Internet of things is an important component of a new generation of information technology and is also an important development stage of the 'informatization' era. As the name implies, the Internet of things is the Internet connected with objects. Based on the development of the internet of things technology, various network devices, such as a doorbell with a networking function, a video cat eye, a remote controller, a switch and the like, are developed, and after the network devices join a wireless network, the network devices can communicate with other devices.
In the related art, in various networks (e.g., wireless Mesh networks (Mesh networks)), the neighbor information detection between network devices may be used as a means for collecting neighbor information tables or a method for collecting topology information, and may also be used in aspects such as topology presentation. At present, the neighbor information detection of the Link Layer needs to be implemented by various protocols (e.g., IEEE1905 Protocol, link Layer Discovery Protocol (LLDP)), and the like. At present, in most use scenes, devices need to be connected through a wireless network, and no simple method can be used for detecting the neighbor information between network devices in the wireless network.
Disclosure of Invention
The disclosure provides an information processing method and apparatus, a network device, and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an information processing method, applied to a first network device, including:
when a first management frame sent by second network equipment is detected, probe request information is extracted from the first management frame;
generating probe response information corresponding to the second network device based on the probe request information;
inserting the probe response information into a second management frame of a wireless network communication;
and sending the second management frame carrying the detection response information to the second network equipment.
Optionally, the probe request information includes: a first probe identity of the second network device, the first probe identity: for identifying a network in which the second network device is currently located;
the generating of probe response information corresponding to the second network device based on the probe request information comprises:
determining whether the first network device and the second network device match based on the first probe identity and a second probe identity of the first network device; wherein the second detection flag: for identifying a network in which the first network device is currently located;
generating the probe response information based on the second probe identification and the first device identification of the first network device if the first network device matches the second network device.
Optionally, the determining whether the first network device and the second network device are matched based on the first probe identity and the second probe identity of the first network device includes:
and if the first detection identifier is the same as the second detection identifier, determining that the first network equipment is matched with the second network equipment.
Optionally, the probe request information further includes: a second device identification of the second network device; the method further comprises the following steps:
and if the first network equipment is matched with the second network equipment, adding the second equipment identification of the second network equipment as the detected neighbor information to a neighbor information table of the first network equipment.
Optionally, the first management frame includes: an association request frame; the second management frame includes: and associating the response frame.
According to a second aspect of the embodiments of the present disclosure, there is provided an information processing method, applied to a second network device, including:
when a connection request is detected, inserting the probe request information of the second network equipment into a first management frame of wireless network communication;
sending the first management frame carrying the detection request information to a first network device;
and receiving a second management frame which is returned by the first network equipment and carries the detection response information.
Optionally, the method further includes:
extracting the probe response information from the second management frame;
determining whether the probe response information contains a second probe identification; wherein the second detection flag: for identifying a network in which the first network device is currently located;
and when the detection response information contains the second detection identification, adding the first equipment identification of the first network equipment as the detected neighbor information to a neighbor information table of the second network equipment.
Optionally, when the probe response information includes the second probe identity, adding the first device identity of the first network device as the detected neighbor information to a neighbor information table of the second network device, where the adding includes:
when the probe response information contains the second probe identification, determining whether the first network equipment is matched with the second network equipment or not based on the second probe identification and the first probe identification of the second network equipment; wherein the first probe identity: for identifying a network in which the second network device is currently located;
and if the first network equipment is matched with the second network equipment, adding the first equipment identifier of the first network equipment as the detected neighbor information to a neighbor information table of the second network equipment.
According to a third aspect of the embodiments of the present disclosure, there is provided an information processing apparatus applied to a first network device, including:
the device comprises a first extraction module, a second extraction module and a third extraction module, wherein the first extraction module is configured to extract probe request information from a first management frame when the first management frame sent by a second network device is detected;
a generation module configured to generate probe response information corresponding to the second network device based on the probe request information;
a first insertion module configured to insert the probe response information into a second management frame of a wireless network communication;
and the first sending module is configured to send the second management frame carrying the probe response information to the second network device.
Optionally, the probe request information includes: a first probe identity of the second network device, the first probe identity: for identifying a network in which the second network device is currently located;
the generation module is further configured to:
determining whether the first network device and the second network device match based on the first probe identity and a second probe identity of the first network device; wherein the second detection flag: for identifying a network in which the first network device is currently located;
generating the probe response information based on the second probe identification and the first device identification of the first network device if the first network device matches the second network device.
Optionally, the generating module is further configured to:
and if the first detection identifier is the same as the second detection identifier, determining that the first network equipment is matched with the second network equipment.
Optionally, the probe request information further includes: a second device identification of the second network device; the device further comprises:
a first adding module configured to add the second device identifier of the second network device to a neighbor information table of the first network device as the detected neighbor information if the first network device matches the second network device.
Optionally, the first management frame includes: an association request frame; the second management frame includes: and associating the response frame.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an information processing apparatus applied to a second network device, including:
a second insertion module configured to insert probe request information of the second network device into a first management frame of a wireless network communication when a connection request is detected;
a second sending module, configured to send the first management frame carrying the probe request information to a first network device;
and the receiving module is configured to receive a second management frame which is returned by the first network device and carries the probe response information.
Optionally, the apparatus further comprises:
a second extraction module configured to extract the probe response information from the second management frame;
a determination module configured to determine whether the probe response information contains a second probe identity; wherein the second detection flag: for identifying a network in which the first network device is currently located;
a second adding module, configured to add the first device identifier of the first network device to a neighbor information table of the second network device as the detected neighbor information when the probe response information includes the second probe identifier.
Optionally, the second adding module is further configured to:
when the probe response information contains the second probe identification, determining whether the first network equipment is matched with the second network equipment or not based on the second probe identification and the first probe identification of the second network equipment; wherein the first probe identity: for identifying a network in which the second network device is currently located;
and if the first network equipment is matched with the second network equipment, adding the first equipment identifier of the first network equipment as the detected neighbor information to a neighbor information table of the second network equipment.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a network device, including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the information processing method according to any one of the first or second aspects.
According to a sixth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a network device, enable the network device to perform the information processing method according to any one of the first aspects; or, the instructions in the storage medium, when executed by a processor of a network device, enable the network device to perform the information processing method as described in the second aspect above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
as can be seen from the foregoing embodiment, the first network device inserts the probe request information into the first management frame, so that the probe request information is carried when performing wireless network communication, and after receiving the first management frame, the second network device can directly extract the probe request information from the first management frame, so that the second network device generates probe response information corresponding to the second network device according to the probe request information, and after generating the probe response information, the second network device can insert the probe response information into the second management frame of the wireless network communication and send the probe response information to the second network device.
Compared with the method that after the communication connection between the first network device and the second network device is established, the probe request information and the probe response information are sent, the interaction process of the network connection can be omitted, the time consumed in the networking process is reduced, the correlation process defined by the protocol that the wireless network connection must follow is fully utilized, the probe request information is inserted into the first management frame, and the probe response information is inserted into the second management frame, so that the two ends (namely, the first network device and the second network device) of the wireless network connection can mutually detect the neighbor information of the other end, the detection process is simple, and no additional protocol support is needed.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a first flowchart illustrating an information processing method according to an embodiment of the present disclosure.
Fig. 2 is a schematic flow chart of an information processing method according to an embodiment of the present disclosure.
Fig. 3 is a flowchart illustrating an information processing method according to an embodiment of the present disclosure.
Fig. 4 is a first interaction diagram of a network device according to an embodiment of the present disclosure.
Fig. 5 is an interaction diagram of a network device shown in an embodiment of the present disclosure.
Fig. 6 is a block diagram of an information processing apparatus shown in accordance with an example embodiment.
FIG. 7 is a block diagram of an information processing apparatus shown in accordance with an example embodiment.
Fig. 8 is a block diagram one of an information processing apparatus shown according to an exemplary embodiment.
Fig. 9 is a block diagram two of an information processing apparatus shown according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a schematic flow chart of an information processing method shown in an embodiment of the present disclosure, and is applied to a first network device, and as shown in fig. 1, the information processing method applied to the first network device includes the following steps:
in step 101, when a first management frame sent by a second network device is detected, probe request information is extracted from the first management frame;
generating probe response information corresponding to the second network device based on the probe request information in step 102;
inserting the probe response information into a second management frame of the wireless network communication in step 103;
in step 104, a second management frame carrying the probe response information is sent to the second network device.
In an embodiment of the present disclosure, the first network device and the second network device are network devices that can perform information interaction with other network devices, and include smart home devices that can automatically move or cannot automatically move, for example: doorbell, video cat eye, remote controller, switch, robot of sweeping the floor, intelligent audio amplifier or intelligent TV.
In the embodiment of the present disclosure, the first network device and the second network device have Access Points (APs) for establishing network connections with other network devices. Taking the example that the first network device and the second network device include a Wireless Fidelity (Wi-Fi) module, the first network device may perform information interaction with other network devices based on the Wi-Fi module. After joining the network supported by the wireless access point, the first network device may implement information interaction with other network devices in the local area network, for example, the first network device may implement information interaction with the second network device.
In some embodiments, the first network device may be a network device that provides network distribution services, such as a router, a smart speaker, and the like.
In the embodiment of the disclosure, when the first network device starts the wireless neighbor discovery function, the first network device can provide wireless access for other network devices. In some embodiments, when the first network device detects the first management frame sent by the second network device, the probe request information can be extracted from the first management frame.
In some embodiments, the probe request information may be a field generated by the second network device based on the trigger event, for example, binary data or characters, as long as the data can be inserted into the first management frame.
In the disclosed embodiments, after generating the probe request information, the probe request information may be inserted into a first management frame of the wireless network communication. The first network device inserts the detection request information into the first management frame, so that the detection request information is carried during wireless network communication, and after the second network device receives the first management frame, the detection request information can be directly extracted from the first management frame.
In some embodiments, the first management frame comprises: an association request frame; the second management frame includes: and associating the response frame.
Here, the first management frame is mainly used to assist management of the data frame, and may include: beacon (beacon) frame, association Request (Associate Request) frame, etc.
In the embodiment of the present disclosure, after the first network device extracts the probe request information, the probe response information corresponding to the second network device may be generated based on the probe request information, the probe response information is inserted into a second management frame of the wireless network communication, and the second management frame carrying the probe response information is sent to the second network device.
Here, the second management frame is mainly used to assist management of the data frame, and may include: beacon (beacon) frame, association Response (association Response) frame, etc.
Here, the beacon frame, the association request frame, and the association response frame belong to management frames specified in the Wi-Fi 802.11 standard, and in the implementation, a custom field (e.g., vendor Specific element) may be defined in the beacon frame, the association request frame, and/or the association response frame, and the Vendor custom element may be used to carry Vendor custom data.
In an implementation, vendor Specific elements (Vendor Specific elements) may be defined in the beacon frame, association request frame and/or association response frame, which may be used to carry Vendor Specific data. In the embodiment of the disclosure, the detection request information and the detection response information can be inserted into the vendor-defined element, and the vendor-defined element carries the detection request information and the detection response information, so that the detection request information and the detection response information are transmitted in the local area network.
For example, vendor Specific elements (Vendor Specific elements) may include: the length of the custom Identifier (Organization Identifier) is 4 bytes, and the custom Identifier may be a vendor Identifier. The vendor custom elements may also include: a data field (Vendor Specific content), which can carry the probe request information and the probe response information in the present disclosure.
In the embodiment of the disclosure, the first network device inserts the probe request information into the first management frame, so that the probe request information is carried when performing wireless network communication, after the second network device receives the first management frame, the probe request information can be directly extracted from the first management frame, so that the second network device generates probe response information corresponding to the second network device according to the probe request information, and after the second network device generates the probe response information, the second network device inserts the probe response information into the second management frame of the wireless network communication and sends the probe response information to the second network device.
Compared with the method that after the communication connection between the first network device and the second network device is established, the probe request information and the probe response information are sent, the interaction process of the network connection can be omitted, the time consumed in the networking process is reduced, the correlation process defined by the protocol that the wireless network connection must follow is fully utilized, the probe request information is inserted into the first management frame, and the probe response information is inserted into the second management frame, so that the two ends (namely, the first network device and the second network device) of the wireless network connection can mutually detect the neighbor information of the other end, the detection process is simple, and no additional protocol support is needed.
In some embodiments, the probe request information comprises: a first probe identity of the second network device, the first probe identity: for identifying a network in which the second network device is currently located;
the generating, based on the probe request information, probe response information corresponding to the second network device includes:
determining whether the first network device and the second network device match based on the first probe identity and a second probe identity of the first network device; wherein the second detection flag: for identifying a network in which the first network device is currently located;
generating the probe response information based on the second probe identification and the first device identification of the first network device if the first network device matches the second network device.
Here, the first detection identifier is used to identify a network where the second network device is currently located, and the second detection identifier is used to identify a network where the first network device is currently located.
Taking the example that the first detection identifier and the second detection identifier are both represented by numbers, in the judgment process, it can be determined whether the number of the same numbers in the first detection identifier and the second detection identifier is greater than a set number threshold, and if the number of the same numbers in the first detection identifier and the second detection identifier is greater than the set number threshold, it can be determined that the first network device and the second network device are matched. Of course, when the first probe identity and the second probe identity are represented in other forms, it may also be determined whether the first network device and the second network device are matched in other ways, for example, whether numbers or letters located at set positions in the first probe identity and the second probe identity are the same, if the numbers or letters are the same, it may be determined that the first network device and the second network device are matched, and the like, and the specific limitation is not limited herein.
In some embodiments, the first device identification comprises: the Media Access Control Address (MAC) or other unique identifier of the first network device is not limited in detail herein as long as it can be used for identifying the first network device.
In some embodiments, the matching of the first network device and the second network device comprises at least: the first network equipment and the second network equipment are positioned in the same local area network; the distance between the first network device and the second network device is less than the set distance, and the like.
In the embodiment of the disclosure, whether the first network device is matched with the second network device may be determined based on the first detection identifier and the second detection identifier of the first network device, and under the condition that the first network device is matched with the second network device, the detection response information may be generated based on the second detection identifier and the first device identifier of the first network device.
In some embodiments, the determining whether the first network device and the second network device match based on the first probe identification and the second probe identification of the first network device comprises:
and if the first detection identifier is the same as the second detection identifier, determining that the first network equipment is matched with the second network equipment.
For example, when the first detection identifier and the second detection identifier are the same, it indicates that the first network device and the second network device are located in the same local area network, and at this time, it may be determined that the first network device and the second network device are matched, and further it is determined that the first network device and the second network device are neighbors to each other, and further accuracy of the finally determined neighbor information can be improved.
In some embodiments, the probe request information further comprises: a second device identification of the second network device; the method further comprises the following steps:
and if the first network equipment is matched with the second network equipment, adding the second equipment identification of the second network equipment as the detected neighbor information to a neighbor information table of the first network equipment.
For example, in case it is determined that the first probe identity is the same as said second probe identity, the second device identity of the second network device is added to the neighbor information table of the first network device as detected neighbor information.
In the embodiment of the disclosure, under the condition that the first network device and the second network device are determined to be matched, the first network device and the second network device are determined to be adjacent network devices, so that the accuracy of the determined neighbor information can be improved.
Fig. 2 is a schematic flow chart of an information processing method shown in the embodiment of the present disclosure, and as shown in fig. 2, the information processing method applied to the second network device includes the following steps:
in step 201, inserting probe request information of the second network device into a first management frame of wireless network communication when a connection request is detected;
in step 202, sending the first management frame carrying the probe request information to a first network device;
in step 203, a second management frame carrying probe response information returned by the first network device is received.
In some embodiments, the probe request information may be a field generated by the second network device based on the connection request, for example, binary data or characters may be used as long as the data can be inserted into the first management frame.
In the embodiment of the present disclosure, after the probe request information is extracted by the first network device, the probe response information corresponding to the second network device may be generated based on the probe request information, the probe response information is inserted into the second management frame of the wireless network communication, and the second management frame carrying the probe response information is sent to the second network device.
In the embodiment of the disclosure, the first network device inserts the probe request information into the first management frame, so that the probe request information is carried when performing wireless network communication, after the second network device receives the first management frame, the probe request information can be directly extracted from the first management frame, so that the second network device generates probe response information corresponding to the second network device according to the probe request information, and after the second network device generates the probe response information, the probe response information can be inserted into a second management frame of the wireless network communication and sent to the second network device.
Compared with the method that after the communication connection between the first network device and the second network device is established, the probe request information and the probe response information are sent, the interaction process of the network connection can be omitted, the time consumed in the networking process is reduced, the correlation process defined by the protocol that the wireless network connection must follow is fully utilized, the probe request information is inserted into the first management frame, and the probe response information is inserted into the second management frame, so that the two ends (namely, the first network device and the second network device) of the wireless network connection can mutually detect the neighbor information of the other end, the detection process is simple, and no additional protocol support is needed.
In some embodiments, the method further comprises:
extracting the probe response information from the second management frame;
determining whether the probe response information contains a second probe identification; wherein the second detection flag: for identifying a network in which the first network device is currently located;
and when the detection response information contains the second detection identification, adding the first equipment identification of the first network equipment as the detected neighbor information to a neighbor information table of the second network equipment.
In this embodiment of the disclosure, after receiving a second management frame sent by a first network device, a second network device may extract probe response information from the second management frame, determine whether the probe response information includes a second probe identifier, and add a first device identifier of the first network device as detected neighbor information to a neighbor information table of the second network device when the probe response information includes the second probe identifier.
When the first network device determines that the first network device is matched with the second network device, the first network device generates detection response information based on the second detection identifier and the first device identifier, and when the detection response information contains the second detection identifier, the first network device end determines that the first network device is matched with the second network device, at this time, the first device identifier of the first network device can be directly used as detected neighbor information and added to a neighbor information table of the second network device, so that the accuracy of the neighbor information table can be improved.
In some embodiments, the adding the first device identifier of the first network device as the detected neighbor information to the neighbor information table of the second network device when the probe response information includes the second probe identifier includes:
when the probe response information contains the second probe identification, determining whether the first network equipment is matched with the second network equipment or not based on the second probe identification and the first probe identification of the second network equipment; wherein the first detection identifier: for identifying a network in which the second network device is currently located;
and if the first network equipment is matched with the second network equipment, adding the first equipment identifier of the first network equipment as the detected neighbor information to a neighbor information table of the second network equipment.
Although the first network device side has already determined that the first network device and the second network device are matched, there is also a possibility of erroneous determination, in this embodiment of the present disclosure, when the probe response information includes the second probe identifier, it is further determined whether the first network device and the second network device are matched based on the second probe identifier and the first probe identifier of the second network device, and after it is determined that the first network device and the second network device are matched, the first device identifier of the first network device is added to the neighbor information table of the second network device as the detected neighbor information.
In some embodiments, the matching of the first network device and the second network device comprises at least: the first network equipment and the second network equipment are positioned in the same local area network; the distance between the first network device and the second network device is less than the set distance, and the like.
In some embodiments, the first network device matches the second network device, including: the first and second probe identities are identical. For example, in case it is determined that the first probe identity is the same as said second probe identity, the second device identity of the second network device is added to the neighbor information table of the first network device as detected neighbor information.
In the embodiment of the disclosure, when it is determined that the first network device and the second network device are matched, the first network device and the second network device are determined as adjacent network devices, so that the accuracy of the determined neighbor information can be improved.
For example, under the condition that the first detection identifier and the second detection identifier are the same, it indicates that the first network device and the second network device are located in the same local area network, and at this time, it may be determined that the first network device and the second network device are matched, and then it is determined that the first network device and the second network device are neighbors of each other, and thus accuracy of finally determined neighbor information can be improved.
Fig. 3 is a flowchart of an information processing method shown in an embodiment of the present disclosure, and as shown in fig. 3, the information processing method is applied to a first network device and a second network device, and includes the following steps:
in step 301, when detecting a connection request, a second network device inserts probe request information of the second network device into a first management frame of wireless network communication;
in step 302, the second network device sends the first management frame carrying the probe request information to the first network device;
in step 303, when detecting a first management frame sent by a second network device, a first network device extracts probe request information from the first management frame;
in step 304, the first network device generates probe response information corresponding to the second network device based on the probe request information;
in step 305, the first network device inserts the probe response information into a second management frame of the wireless network communication;
in step 306, the first network device sends a second management frame carrying the probe response information to the second network device.
In this embodiment of the disclosure, when the second network device starts the wireless neighbor discovery function, if the second network device needs to be connected to the first network device through a wireless network, a custom field (e.g., a Vendor Specific element) may be added to the first management frame (association Request), the first probe identifier and the first device identifier are added to the custom field, and the first management frame carrying the first probe identifier and the first device identifier is sent to the first network device.
Fig. 4 is a first interaction diagram of a network device according to an embodiment of the present disclosure, and as shown in fig. 4, a network device 1 has an AP interface, a network device 2 has an AP interface and an STA (Station) interface, and a network device 3 has an STA interface. In the implementation process, the network device may extract the device identifier in the management frame as the neighbor information through the AP interface and/or the STA interface, respectively.
Fig. 5 is a second interaction diagram of a network device according to an embodiment of the present disclosure, as shown in fig. 5, if the first network device can provide a distribution network service (for example, provide a distribution network service for the second network device) when the first network device turns on the wireless neighbor discovery function. The method comprises the steps that after a first management frame (association Request frame) is received by a first network device in an AP interface process for providing wireless connection for a second network device, whether a matched detection identifier (first detection identifier) exists in a custom field (Vendor IE) of the first management frame is detected, if the first detection identifier exists and the first detection identifier is matched with the second detection identifier, a second device identifier carried in the first management frame is extracted, the second device identifier is used as detected neighbor information, the custom field (Vendor IE) is added in the second management frame (association Response frame), and the second detection identifier and the first device identifier of the first network device are placed in the custom field.
If the first management frame does not have the first probe identifier or the first probe identifier is not matched with the second probe identifier, the second probe identifier and the first device identifier are not carried in the second acknowledged management frame (association Response).
In the embodiment of the disclosure, the second device identifier is inserted into the association request frame, and the first device identifier is inserted into the custom field in the association response frame; the AP interface end extracts a second equipment identifier in the association request frame as detected neighbor information; the STA interface terminal extracts a first equipment identifier in the association response frame as the detected neighbor information;
compared with the method and the device for sending the probe request information and the probe response information after the communication connection between the first network device and the second network device is established, the method and the device for sending the probe request information and the probe response information can save the interaction process of the network connection, reduce the time consumed in the networking process, fully utilize the association process defined by the protocol that the wireless network connection must follow, insert the probe request information into the first management frame, and insert the probe response information into the second management frame, so that the two ends (namely, the first network device and the second network device) of the wireless network connection can mutually detect the neighbor information of the other end, and the probe process is simple and does not need additional protocol support.
Fig. 6 is a block diagram of an information processing apparatus shown in accordance with an example embodiment. As shown in fig. 6, the information processing apparatus 600 is applied to a first network device, and includes:
a first extraction module 601, configured to, when a first management frame sent by a second network device is detected, extract probe request information from the first management frame;
a generating module 602 configured to generate probe response information corresponding to the second network device based on the probe request information;
a first inserting module 603 configured to insert the probe response information into a second management frame of a wireless network communication;
a first sending module 604, configured to send a second management frame carrying the probe response information to the second network device.
In some embodiments, the probe request information comprises: a first probe identity of the second network device, the first probe identity: for identifying a network in which the second network device is currently located;
the generating module 602 is further configured to:
determining whether the first network device and the second network device match based on the first probe identity and a second probe identity of the first network device; wherein the second detection flag: for identifying a network in which the first network device is currently located;
generating the probe response information based on the second probe identification and the first device identification of the first network device if the first network device matches the second network device.
In some embodiments, the generating module 602 is further configured to:
and if the first detection identifier is the same as the second detection identifier, determining that the first network equipment is matched with the second network equipment.
In some embodiments, the probe request information further comprises: a second device identification of the second network device; the apparatus 600 further comprises:
a first adding module configured to add the second device identification of the second network device to a neighbor information table of the first network device as the detected neighbor information if the first network device matches the second network device.
In some embodiments, the first management frame comprises: an association request frame; the second management frame includes: and associating the response frame.
Fig. 7 is a block diagram of an information processing apparatus shown in accordance with an exemplary embodiment. As shown in fig. 7, the information processing apparatus 700 is applied to a second network device, and mainly includes:
a second inserting module 701, configured to insert probe request information of the second network device into a first management frame of wireless network communication when a connection request is detected;
a second sending module 702, configured to send the first management frame carrying the probe request information to a first network device;
a receiving module 703 configured to receive a second management frame carrying probe response information and returned by the first network device.
In some embodiments, the apparatus 700 further comprises:
a second extraction module configured to extract the probe response information from the second management frame;
a determination module configured to determine whether the probe response information contains a second probe identification; wherein the second detection flag: for identifying a network in which the first network device is currently located;
a second adding module, configured to add the first device identifier of the first network device as the detected neighbor information to a neighbor information table of the second network device when the probe response information includes the second probe identifier.
In some embodiments, the second adding module is further configured to:
when the probe response information contains the second probe identification, determining whether the first network equipment is matched with the second network equipment or not based on the second probe identification and the first probe identification of the second network equipment; wherein the first detection identifier: for identifying a network in which the second network device is currently located;
and if the first network equipment is matched with the second network equipment, adding the first equipment identifier of the first network equipment as the detected neighbor information to a neighbor information table of the second network equipment.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a block diagram one illustrating an information processing apparatus 800 according to an example embodiment. For example, the device 800 may be a mobile phone, a mobile computer, etc.
Referring to fig. 8, the apparatus 800 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 device 800, 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 operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. 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.
Power component 806 provides power to the various components of device 800. 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 device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a 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. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. 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, audio component 810 includes a Microphone (MIC) configured to receive external audio signals when apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal 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 assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. 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 communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as Wi-Fi,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, the communication component 816 further includes a Near Field Communication (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 apparatus 800 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.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of a first network device, enable the first network device to perform an information processing method, the method comprising:
when a first management frame sent by second network equipment is detected, probe request information is extracted from the first management frame;
generating probe response information corresponding to the second network device based on the probe request information;
inserting the probe response information into a second management frame of a wireless network communication;
and sending the second management frame carrying the detection response information to the second network equipment. Alternatively, the first and second electrodes may be,
the instructions in the storage medium, when executed by a processor of a second network device, enable the second network device to perform an information processing method, the method comprising:
when a connection request is detected, inserting the probe request information of the second network equipment into a first management frame of wireless network communication;
sending the first management frame carrying the detection request information to a first network device;
and receiving a second management frame which is returned by the first network equipment and carries the detection response information.
Fig. 9 is a block diagram two illustrating an information processing apparatus 900 according to an example embodiment. Referring to fig. 9, the apparatus 900 includes a processing component 922, which further includes one or more processors and memory resources, represented by memory 932, for storing instructions, such as applications, that may be executed by the processing component 922. The application programs stored in the memory 932 may include one or more modules that each correspond to a set of instructions. Further, the processing component 922 is configured to execute instructions to perform the information processing method described above.
The device 900 may also include a power component 926 configured to perform power management of the device 900, a wired or wireless network interface 950 configured to connect the device 900 to a network, and an input output (I/O) interface 958. The apparatus 900 may operate based on an operating system stored in the memory 932, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided that includes instructions, such as the memory 932 that includes instructions, that are executable by the processing component 922 of the apparatus 900 to perform the above-described method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of a first network device, enable the first network device to perform an information processing method, the method comprising:
when a first management frame sent by second network equipment is detected, probe request information is extracted from the first management frame;
generating probe response information corresponding to the second network device based on the probe request information;
inserting the probe response information into a second management frame of wireless network communication;
and sending the second management frame carrying the detection response information to the second network equipment. Alternatively, the first and second electrodes may be,
the instructions in the storage medium, when executed by a processor of a second network device, enable the second network device to perform an information processing method, the method comprising:
when a connection request is detected, inserting the probe request information of the second network equipment into a first management frame of wireless network communication;
sending the first management frame carrying the detection request information to a first network device;
and receiving a second management frame which is returned by the first network equipment and carries the detection response information.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. An information processing method applied to a first network device includes:
when a first management frame sent by second network equipment is detected, extracting probe request information from the first management frame; the probe request information includes: a first probe identity of the second network device, the first probe identity: for identifying a network in which the second network device is currently located;
determining whether the first network device and the second network device match based on the first probe identity and a second probe identity of the first network device; wherein the second detection flag: for identifying a network in which the first network device is currently located; generating probe response information based on the second probe identification and a first device identification of the first network device if the first network device matches the second network device;
inserting the probe response information into a second management frame of a wireless network communication;
and sending the second management frame carrying the detection response information to the second network equipment.
2. The method of claim 1, wherein determining whether the first network device and the second network device match based on the first probe identity and a second probe identity of the first network device comprises:
and if the first detection identifier is the same as the second detection identifier, determining that the first network equipment is matched with the second network equipment.
3. The method of claim 1, wherein the probe request information further comprises: a second device identification of the second network device; the method further comprises the following steps:
and if the first network equipment is matched with the second network equipment, adding the second equipment identification of the second network equipment as the detected neighbor information to a neighbor information table of the first network equipment.
4. The method of any of claims 1 to 3, wherein the first management frame comprises: an association request frame; the second management frame includes: and associating the response frame.
5. An information processing method applied to a second network device includes:
when a connection request is detected, inserting the probe request information of the second network equipment into a first management frame of wireless network communication;
sending the first management frame carrying the detection request information to a first network device;
receiving a second management frame which is returned by the first network equipment and carries the detection response information;
extracting the probe response information from the second management frame;
determining whether the probe response information contains a second probe identification; wherein the second detection flag: for identifying a network in which the first network device is currently located;
when the probe response information contains the second probe identification, determining whether the first network equipment is matched with the second network equipment or not based on the second probe identification and the first probe identification of the second network equipment; wherein the first detection identifier: for identifying a network in which the second network device is currently located; and if the first network equipment is matched with the second network equipment, adding the first equipment identifier of the first network equipment as the detected neighbor information to a neighbor information table of the second network equipment.
6. An information processing apparatus, applied to a first network device, comprising:
the device comprises a first extraction module, a second extraction module and a third extraction module, wherein the first extraction module is configured to extract probe request information from a first management frame when the first management frame sent by a second network device is detected; the probe request information includes: a first probe identity of the second network device, the first probe identity: for identifying a network in which the second network device is currently located;
a generation module configured to determine whether the first network device matches the second network device based on the first probe identity and a second probe identity of the first network device; wherein the second detection flag: for identifying a network in which the first network device is currently located; further configured to generate probe response information based on the second probe identification and a first device identification of the first network device if the first network device matches the second network device;
a first insertion module configured to insert the probe response information into a second management frame of a wireless network communication;
a first sending module, configured to send a second management frame carrying the probe response information to the second network device.
7. The apparatus of claim 6, wherein the generation module is further configured to:
and if the first detection identifier is the same as the second detection identifier, determining that the first network equipment is matched with the second network equipment.
8. The apparatus of claim 6, wherein the probe request information further comprises: a second device identification of the second network device; the device further comprises:
a first adding module configured to add the second device identifier of the second network device to a neighbor information table of the first network device as the detected neighbor information if the first network device matches the second network device.
9. The apparatus of any of claims 6 to 8, wherein the first management frame comprises: an association request frame; the second management frame includes: and associating the response frame.
10. An information processing apparatus, applied to a second network device, comprising:
a second insertion module configured to insert probe request information of the second network device into a first management frame of a wireless network communication when a connection request is detected;
a second sending module, configured to send the first management frame carrying the probe request information to a first network device;
a receiving module configured to receive a second management frame carrying probe response information returned by the first network device;
a second extraction module configured to extract the probe response information from the second management frame;
a determination module configured to determine whether the probe response information contains a second probe identification; wherein the second detection flag: for identifying a network in which the first network device is currently located;
a second adding module, configured to determine whether the first network device matches the second network device based on the second probe identifier and a first probe identifier of the second network device when the probe response information includes the second probe identifier; wherein the first probe identity: for identifying a network in which the second network device is currently located; and further configured to add a first device identification of the first network device as the detected neighbor information to a neighbor information table of the second network device if the first network device matches the second network device.
11. A network device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to execute the information processing method according to any one of claims 1 to 4; or configured to perform the information processing method as claimed in claim 5.
12. A non-transitory computer-readable storage medium in which instructions, when executed by a processor of a network device, enable the network device to perform the information processing method of any one of claims 1 to 4; or, when the instructions in the storage medium are executed by a processor of a network device, the network device is enabled to execute the information processing method as claimed in claim 5.
CN202110506671.5A 2021-05-10 2021-05-10 Information processing method and device, network equipment and storage medium Active CN113179529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110506671.5A CN113179529B (en) 2021-05-10 2021-05-10 Information processing method and device, network equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110506671.5A CN113179529B (en) 2021-05-10 2021-05-10 Information processing method and device, network equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113179529A CN113179529A (en) 2021-07-27
CN113179529B true CN113179529B (en) 2023-02-28

Family

ID=76928791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110506671.5A Active CN113179529B (en) 2021-05-10 2021-05-10 Information processing method and device, network equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113179529B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103906263A (en) * 2012-12-26 2014-07-02 华为终端有限公司 Connection establishment method, device and system
CN110995665A (en) * 2019-11-15 2020-04-10 北京小米移动软件有限公司 Network distribution method and device, electronic equipment and storage medium
CN112512097A (en) * 2020-11-18 2021-03-16 北京小米移动软件有限公司 Information processing method and device, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9723538B2 (en) * 2011-06-20 2017-08-01 Cisco Technology, Inc. Systematic neighbor detection in shared media computer networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103906263A (en) * 2012-12-26 2014-07-02 华为终端有限公司 Connection establishment method, device and system
CN110995665A (en) * 2019-11-15 2020-04-10 北京小米移动软件有限公司 Network distribution method and device, electronic equipment and storage medium
CN112512097A (en) * 2020-11-18 2021-03-16 北京小米移动软件有限公司 Information processing method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113179529A (en) 2021-07-27

Similar Documents

Publication Publication Date Title
CN110389738B (en) Screen projection method, device, terminal and storage medium
US10237901B2 (en) Method and apparatus for connecting with controlled smart device, and storage medium
US10608988B2 (en) Method and apparatus for bluetooth-based identity recognition
CN105472771B (en) Wireless connection method and device
CN107204883B (en) Network fault processing method and device
CN109005096B (en) Application interaction method and device
CN104580637A (en) Telephone number marking method, terminal and cloud server
CN108810866B (en) Method and device for connecting intelligent equipment and storage medium
CN109496439A (en) Based on the direct-connected method and device for establishing unicast connection of object object
US20220256497A1 (en) Methods and apparatuses for receiving paging signaling, and methods and apparatuses for transmitting paging signaling
CN111031002B (en) Broadcast discovery method, broadcast discovery device, and storage medium
CN111277984A (en) Wireless local area network access method and device
CN107070707B (en) Method and device for determining initialization mode of router
CN106506808B (en) Method and device for prompting communication message
CN105100352A (en) Method and device for acquiring contact information
CN112039604A (en) Equipment rapid networking technology based on intelligent home scene
CN113179529B (en) Information processing method and device, network equipment and storage medium
CN107105005B (en) Method and device for synchronizing data
CN106550482B (en) Communication connection establishing method and device and electronic equipment
CN106792570B (en) Positioning method and device
CN107039054B (en) The way of recording and device
CN104994211A (en) Incoming call prompting method, device and system
CN109151829B (en) Pseudo base station identification method and device
CN110337823B (en) Information configuration method and device, service processing method and device and base station
CN108696914B (en) Method and device for scanning intelligent equipment and storage medium

Legal Events

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