CN116980874A - Local area network bidirectional discovery method - Google Patents

Local area network bidirectional discovery method Download PDF

Info

Publication number
CN116980874A
CN116980874A CN202310691085.1A CN202310691085A CN116980874A CN 116980874 A CN116980874 A CN 116980874A CN 202310691085 A CN202310691085 A CN 202310691085A CN 116980874 A CN116980874 A CN 116980874A
Authority
CN
China
Prior art keywords
equipment
message
discovery
local area
area network
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
CN202310691085.1A
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.)
Shenzhen Wangli Software Co ltd
Original Assignee
Shenzhen Wangli 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 Shenzhen Wangli Software Co ltd filed Critical Shenzhen Wangli Software Co ltd
Priority to CN202310691085.1A priority Critical patent/CN116980874A/en
Publication of CN116980874A publication Critical patent/CN116980874A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

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

Abstract

The invention discloses a local area network bidirectional discovery method, which comprises the steps of discovering AP equipment by using an AC device and discovering the AC equipment by using the AP equipment, wherein the AC equipment discovers the AP equipment and comprises the following steps: s110: the AC equipment broadcasts and sends a ready message to the local area network; s120: after receiving the ready message, the AP equipment responds to the AC equipment to confirm that the connection information is received by the unicast ACK message; s130: the AP equipment establishes service connection with the AC equipment by using the received connection information; the process of the AP device discovering the AC device comprises the following steps: s210: the AP equipment broadcasts a discovery message; s220: after the AC equipment receives the discovery message, confirming that the service expected in the message can be provided; s230: the AP equipment receives the offer message, and the unicast ACK message responds to the AC equipment; s240: and the AP equipment establishes service connection with the AC equipment by using the received connection information. The invention is a simple method for discovering the AC equipment and the AP equipment, and the two equipment can discover each other no matter who starts the equipment first, thereby realizing bidirectional discovery.

Description

Local area network bidirectional discovery method
Technical Field
The invention belongs to the technical field of local area networks, and particularly relates to a bidirectional discovery method of local area network equipment.
Background
With the development of the internet of things, various devices in a local area network environment are more and more in demand scenes for local communication. Such as management, control, reporting requirements between AC (Access Controller) devices and AP (Access Point) devices of the same local area network. The premise of the local communication of the devices is to know each other's existence by a certain probing method and to exchange basic information, such as IP addresses, ports, etc., required for the connection of the connection services by this method.
As disclosed in patent application 201510246968.7, a method, a system and a related device for an Access Point (AP) to discover a wireless controller (AC) are disclosed, in which, the AP sends a discovery request message to a load controller (LB), the LB allocates an AC from a cloud AC cluster to the AP, and returns the address information of the AC to the AP, and the AP requests to establish a connection to the AC according to the address information of the AC.
As another example, patent application 201710779973.3 discloses a wifi networking multi-hotspot control communication method, which includes the following steps: designing and formulating an AP-AC discovery protocol; simultaneously creating TCP and binding ports; establishing UDP and binding ports; creating epoll monitoring trigger event and executing corresponding command operation; establishing a two-dimensional table, wherein related DATA of a mobile phone PING and a DATA protocol comprise all current information of an AP and a PC; the foreground is processed to display the current equipment state information in real time; and changing the issuing configuration and restarting the upgrading function in real time. The invention has the beneficial effects that: the network card is improved, even the network card is completely paralyzed, the router has limited quantity of band, the routers mutually rob channels and the like, so that the AC is uniformly managed, the AP is plug and play, the load is balanced, and the network has the advantages of rapidness, reliability, stability, automatic power and channel adjustment, flexible deployment and the like.
However, the application mode has a certain limitation, and only one-way discovery can be realized, namely, the AP equipment requests to join the AC equipment to manage the AP equipment, and the application mode has a great limitation, and in many cases, the AC equipment is required to reversely discover the AP equipment, so that the communication mode of the AP equipment and the AC equipment is required to be expanded to meet the requirements of other use conditions and environments.
Disclosure of Invention
In order to solve the above problems, a primary object of the present invention is to provide a bidirectional discovery method for a lan, which is a simple method for discovering an AC device and an AP device from each other, and in a lan network environment, any two devices can discover each other by starting them first, so as to realize "bidirectional discovery".
In order to achieve the above object, the technical scheme of the present invention is as follows.
A local area network bidirectional discovery method includes that an AC device discovers an AP device and an AP device discovers the AC device,
wherein the AC device discovering the AP device includes the steps of:
s110: the AC equipment broadcasts and sends a ready message to the local area network, wherein the message carries service connection information;
when the AC equipment is started, continuously sending a ready message for 3 times, wherein each time is 5 seconds;
the connection information carried in the message includes: the message type is ready, service connection IP address, service connection port number, AC product model, AC equipment MAC address.
S120: after receiving the ready message, the AP equipment responds to the AC equipment to confirm that the connection information is received, wherein the message carries the confirmation information;
the confirmation information includes: message type ack, AP product model, AP device MAC address.
S130: the AP equipment establishes service connection with the AC equipment by using the received connection information;
the process of the AP device discovering the AC device comprises the following steps:
s210: the AP equipment broadcasts a discovery message, wherein the message carries the service type to be searched;
when the AP equipment is started, before messages with the types of ready and offer are not received, broadcasting messages with the type of discovery are sent every 5 seconds until the messages with the types of ready and offer are received;
the discovery broadcast message carries information of the request discovery, including: message type discovery, service type, AP product model, AP device MAC address.
S220: after the AC equipment receives the discovery message, confirming that the service expected in the message can be provided, and unicasting the offer message to the AP equipment, wherein the message carries service connection information;
the connection information carried in the message includes: the message type is offer, service connection IP address, service connection port number, product model of AC, equipment MAC address of AC.
S230: the AP equipment receives the offer message, the unicast ACK message responds to the AC equipment, and the message type carries the confirmation information;
the confirmation information includes: message type ack, AP product model, AP device MAC address.
S240: and the AP equipment establishes service connection with the AC equipment by using the received connection information.
Compared with the prior art, the invention has the following beneficial effects;
the invention can realize mutual discovery of the AC equipment and the AP equipment through simple message sending and receiving, is a simple method for mutual discovery between the AC equipment and the AP equipment, and can realize mutual discovery of the two equipment no matter who starts the two equipment in the local area network environment.
Furthermore, the invention realizes the discovery of the AP equipment by the AC equipment through the ready message and the discovery of the AC equipment by the discovery message, has clear discovery channels for different equipment, is convenient for quick identification and discovery, can not cause confusion among the equipment, and is accurate and reliable.
Drawings
FIG. 1 is a flow chart of an implementation of the present invention.
Fig. 2 is a schematic flow chart of an AC device discovery AP device implemented in the present invention.
Fig. 3 is a schematic flow chart of an AP device discovery AC device according to an embodiment of the present invention.
Fig. 4 is a schematic diagram of a hardware deployment structure for discovering both AC devices and AP devices implemented in the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The invention discloses a local area network bidirectional discovery method, which comprises the steps of discovering an AP device by an AC device and discovering the AC device by the AP device, as shown in figure 1. The AC device discovers that the AP device sends a ready message through the broadcasting of the AC device, and the AP device responds by unicasting an ACK message after receiving the ready message. When the AP equipment discovers the AC equipment, the AP equipment broadcasts a discovery message, after the AC equipment receives the discovery message, the AP equipment is unicast with the offer message, and the AP equipment receives the offer message and responds to the AC equipment by unicast with the ACK message.
Fig. 2 is a schematic flow chart of an AC device discovering an AP device, which specifically includes the following steps:
s110: the AC equipment broadcasts and sends a ready message to the local area network, wherein the message carries service connection information;
when the AC equipment is started, continuously sending a ready message for 3 times, wherein each time is 5 seconds;
the connection information carried in the message includes: the message type is ready, service connection IP address, service connection port number, AC product model, AC equipment MAC address.
S120: after receiving the ready message, the AP equipment responds to the AC equipment to confirm that the connection information is received, wherein the message carries the confirmation information;
the confirmation information includes: message type ack, AP product model, AP device MAC address.
S130: and the AP equipment establishes service connection with the AC equipment by using the received connection information.
Referring to fig. 3, a flow chart of an AP device discovery AC device specifically includes the following steps:
s210: the AP equipment broadcasts a discovery message, wherein the message carries the service type to be searched;
when the AP equipment is started, before messages with the types of ready and offer are not received, broadcasting messages with the type of discovery are sent every 5 seconds until the messages with the types of ready and offer are received;
the discovery broadcast message carries information of the request discovery, including: message type discovery, service type, AP product model, AP device MAC address.
S220: after the AC equipment receives the discovery message, confirming that the service expected in the message can be provided, and unicasting the offer message to the AP equipment, wherein the message carries service connection information;
the connection information carried in the message includes: the message type is offer, service connection IP address, service connection port number, product model of AC, equipment MAC address of AC.
S230: the AP equipment receives the offer message, the unicast ACK message responds to the AC equipment, and the message type carries the confirmation information;
the confirmation information includes: message type ack, AP product model, AP device MAC address.
S240: and the AP equipment establishes service connection with the AC equipment by using the received connection information.
The invention realizes the discovery of the AP equipment by the AC equipment through the ready message and the discovery of the AC equipment by the discovery message, has clear discovery channels for different equipment, is convenient for quick identification and discovery, can not cause confusion among the equipment, and is accurate and reliable.
In order to enable mutual discovery between devices, a hardware deployment structure of discovery between an AC device and an AP device is shown in fig. 4, where:
the AC device 301, configured to provide a service layer service after the bidirectional device discovery, may include managing the AP device, controlling the AP device, receiving information reported by the AP device, and so on;
a local area network 302 for providing a network physical environment for local communications;
and the AP equipment 303 is used for establishing service connection with the AC equipment after the bidirectional equipment is found and carrying out management, control, reporting and other services with the AC equipment.
In a word, the invention can realize the mutual discovery of the AC equipment and the AP equipment through simple message sending and receiving, is a simple method for the mutual discovery between the AC equipment and the AP equipment, and can discover each other no matter who starts between the two equipment in the local area network environment so as to realize the bidirectional discovery.
In addition, the invention realizes the discovery of the AP equipment by the AC equipment through the ready message and the discovery of the AC equipment by the discovery message, has clear discovery channels for different equipment, is convenient for quick identification and discovery, can not cause confusion among the equipment, and is accurate and reliable.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.

Claims (7)

1. A local area network bidirectional discovery method is characterized in that the method comprises that an AC device discovers an AP device and an AP device discovers the AC device,
wherein the AC device discovering the AP device includes the steps of:
s110: the AC equipment broadcasts and sends a ready message to the local area network, wherein the message carries service connection information;
s120: after receiving the ready message, the AP equipment responds to the AC equipment to confirm that the connection information is received, wherein the message carries the confirmation information;
s130: the AP equipment establishes service connection with the AC equipment by using the received connection information;
the process of the AP device discovering the AC device comprises the following steps:
s210: the AP equipment broadcasts a discovery message, wherein the message carries the service type to be searched;
s220: after the AC equipment receives the discovery message, confirming that the service expected in the message can be provided, and unicasting the offer message to the AP equipment, wherein the message carries service connection information;
s230: the AP equipment receives the offer message, the unicast ACK message responds to the AC equipment, and the message type carries the confirmation information;
s240: and the AP equipment establishes service connection with the AC equipment by using the received connection information.
2. The method for bidirectional discovery of local area network as set forth in claim 1, wherein in step S110, when the AC device is started, the ready message is sent 3 times continuously, each time at intervals of 5 seconds;
the connection information carried in the message includes: the message type is ready, service connection IP address, service connection port number, AC product model, AC equipment MAC address.
3. The method of bi-directional discovery of a local area network as set forth in claim 1, wherein in step S120, the confirmation information includes: message type ack, AP product model, AP device MAC address.
4. The method of two-way discovery of lan according to claim 1, wherein in step S210, when the AP device starts, before no messages of the type ready and offer are received, broadcast messages of the type discover are sent every 5 seconds until messages of the type ready and offer are received.
5. The method for bidirectional discovery of local area network as set forth in claim 4, wherein the discovery broadcast message carries information requesting discovery, comprising: message type discovery, service type, AP product model, AP device MAC address.
6. The method of bidirectional discovery of local area network as set forth in claim 1, wherein in step S220, the connection information carried in the message includes: the message type is offer, service connection IP address, service connection port number, product model of AC, equipment MAC address of AC.
7. The method for bidirectional discovery of local area network as set forth in claim 1, wherein in step S230, the confirmation information includes: message type ack, AP product model, AP device MAC address.
CN202310691085.1A 2023-06-12 2023-06-12 Local area network bidirectional discovery method Pending CN116980874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310691085.1A CN116980874A (en) 2023-06-12 2023-06-12 Local area network bidirectional discovery method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310691085.1A CN116980874A (en) 2023-06-12 2023-06-12 Local area network bidirectional discovery method

Publications (1)

Publication Number Publication Date
CN116980874A true CN116980874A (en) 2023-10-31

Family

ID=88473879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310691085.1A Pending CN116980874A (en) 2023-06-12 2023-06-12 Local area network bidirectional discovery method

Country Status (1)

Country Link
CN (1) CN116980874A (en)

Similar Documents

Publication Publication Date Title
US7254409B2 (en) Multicast service providing system, multicast service providing method, information distributor, radio terminal, and radio base station
RU2392770C2 (en) Methods and device for managing group membership during group exchange
CN110326345B (en) Method, device and system for configuring network slice
EP3128718B1 (en) Service discovery method and device
EP2871870B1 (en) Device and service discovery method, and device middleware
CN105050033A (en) Piconet networking interconnection method and system based on low-power-dissipation Bluetooth and traditional Bluetooth
CN104539324B (en) Bluetooth low-power-consumption networking interconnecting method and system
CN113596191A (en) Data processing method, network element equipment and readable storage medium
US7739375B2 (en) System and method for UPnP discovery advertisement byebye by proxy
CN102027711A (en) Method and apparatus for multicast group management
CN101340496A (en) Method of distributing geo-localisation information
CN111405492A (en) Method, device, storage medium, and electronic device for connecting to target network
US20050186908A1 (en) Group network system using bluetooth and generating method thereof
CN109361558B (en) Distributed wireless ad hoc network management method based on grid network equipment proxy node
CN104158752A (en) Method and device of processing business flow
CN113207081A (en) Communication method, communication device, electronic equipment and medium
EP3796595B1 (en) Dect network clustering system and clustering method
CN104852835B (en) Smart machine WIFI communication systems and its control method
CN112995038A (en) Access method of PROFINET protocol in industrial SDN
WO2019120188A1 (en) Automatic communication mode switching method, terminal and smart device
CN114615272B (en) Method and system for scheduling media data forwarding server
CN116980874A (en) Local area network bidirectional discovery method
CN113873554B (en) Method and system for synchronous configuration acquisition and transmission of Mesh networking
CN115174528A (en) Equipment address control method, device and system
CN102857953A (en) Self-configuration method and device of base station

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