CN108901082B - Access method and device - Google Patents

Access method and device Download PDF

Info

Publication number
CN108901082B
CN108901082B CN201810636433.4A CN201810636433A CN108901082B CN 108901082 B CN108901082 B CN 108901082B CN 201810636433 A CN201810636433 A CN 201810636433A CN 108901082 B CN108901082 B CN 108901082B
Authority
CN
China
Prior art keywords
address
target
local
central
discovery response
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
CN201810636433.4A
Other languages
Chinese (zh)
Other versions
CN108901082A (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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201810636433.4A priority Critical patent/CN108901082B/en
Publication of CN108901082A publication Critical patent/CN108901082A/en
Application granted granted Critical
Publication of CN108901082B publication Critical patent/CN108901082B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure

Abstract

The embodiment of the application provides an access method and device, relates to the technical field of communication, and when the access method and device are applied to a Central AC, the method comprises the following steps: receiving a discovery request message sent by an AP; judging whether the Local AC is abnormal or not, wherein the target Local AC is as follows: local AC corresponding to AP; if not, sending a discovery response message carrying a target address to the AP so that the AP accesses a target Local AC according to the target address, wherein the target address is as follows: the address of the target Local AC; if so, sending a discovery response message without the target address to the AP, so that the AP is directly accessed to the Central AC. When the access is realized by applying the scheme provided by the embodiment of the application, the access of the AP corresponding to the Local AC with the exception can still be successfully realized.

Description

Access method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to an access method and an access device.
Background
To meet the requirements of a service scenario of headquarters-branch offices, a layered AC (Access Controller) architecture is developed. In the hierarchical AC architecture, an AC of a headquarters is referred to as a Central AC (Central Access Controller), an AC of each branch office is referred to as a Local AC (Local Access Controller), and an AP (Access Point) of each branch office is referred to as an AP corresponding to the Local AC of the branch office.
In the actual working process, the Central AC manages each Local AC, and the AP corresponding to each Local AC is accessed to the Local AC. When the Local AC is abnormal, the Central AC takes over the AP corresponding to the Local AC with the abnormality. When the Central AC is abnormal, each Local AC continues to provide service for the corresponding AP.
Therefore, an access scheme is required to be provided to ensure that when the Local AC is abnormal, the AP corresponding to the Local AC with the abnormality still successfully realizes access.
Disclosure of Invention
An object of the embodiments of the present application is to provide an access method and an access device, so that when a Local AC is abnormal, an AP corresponding to the Local AC with the abnormality can still successfully implement access. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides an access method, which is applied to a Central access controller, Central AC, and the method includes:
receiving a discovery request message sent by an Access Point (AP);
judging whether a Local AC of a target Local access controller is abnormal or not, wherein the Local AC of the target is as follows: local AC corresponding to the AP;
if not, sending a discovery response message carrying a target address to the AP so that the AP accesses the target Local AC according to the target address, wherein the target address is as follows: the address of the target Local AC;
if so, sending a discovery response message which does not carry the target address to the AP, so that the AP is directly accessed to the Central AC.
In a second aspect, an embodiment of the present application provides an access method, which is applied to an AP, and the method includes:
sending a discovery request message to a Central AC;
receiving a discovery response message sent by the Central AC, wherein the discovery response message is: the Central AC generates a response message according to an abnormality judgment result, wherein the abnormality judgment result is as follows: judging whether a target Local AC has an abnormal result, wherein the target Local AC is as follows: local AC corresponding to the AP;
judging whether the discovery response message carries a target address, wherein the target address is as follows: the address of the target Local AC;
if yes, accessing the target Local AC according to the target address;
if not, directly accessing the Central AC.
In a third aspect, an embodiment of the present application provides an access apparatus, which is applied to a Central AC, and the apparatus includes:
the first message receiving module is used for receiving a discovery request message sent by the AP;
the state judgment module is used for judging whether the target Local AC is abnormal or not, if not, the first message sending module is triggered, and if so, the second message sending module is triggered, wherein the target Local AC is: local AC corresponding to the AP;
the first message sending module is configured to send a discovery response message carrying a target address to the AP, so that the AP accesses the target Local AC according to the target address, where the target address is: the address of the target Local AC;
the second message sending module is configured to send a discovery response message that does not carry the target address to the AP, so that the AP directly accesses the Central AC.
In a fourth aspect, an embodiment of the present application provides an access apparatus, which is applied to an AP, and the apparatus includes:
the third message sending module is used for sending a discovery request message to a Central AC;
a second packet receiving module, configured to receive a discovery response packet sent by the Central AC, where the discovery response packet is: the Central AC generates a response message according to an abnormality judgment result, wherein the abnormality judgment result is as follows: judging whether a target Local AC has an abnormal result, wherein the target Local AC is as follows: local AC corresponding to the AP;
an address determination module, configured to determine whether the discovery response packet carries a target address, if yes, trigger a fourth packet sending module, and if not, trigger an AC access module, where the target address is: the address of the target Local AC;
the fourth message sending module is used for accessing the target Local AC according to the target address;
the AC access module is used for directly accessing the Central AC.
In a fifth aspect, embodiments of the present application provide a controller, as a Central AC, including a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the method steps of the first aspect are carried out.
In a sixth aspect, embodiments of the present application provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the method steps of the first aspect are carried out.
In a seventh aspect, an embodiment of the present application provides an access point, including a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the method steps according to the second aspect above are implemented.
In an eighth aspect, embodiments of the present application provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the method steps according to the second aspect above are implemented.
As can be seen from the above, in the solution provided in this embodiment of the application, after receiving the discovery request packet sent by the AP, the Central AC determines whether the target Local AC corresponding to the AP is abnormal. When the target Local AC is not abnormal, sending a discovery response message carrying a target address of the target Local AC to the AP, so that the AP can access the target Local AC according to the target address; and when the target Local AC is abnormal, sending a discovery response message which does not carry a target address to the AP, so that the AP is directly accessed to the Central AC. It can be seen that when the scheme provided by the embodiment of the present application is applied to access, under the condition that the Local AC is abnormal, the AP corresponding to the Local AC with the abnormality can be successfully accessed to the Central AC, so that access can still be successfully achieved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first access method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a second access method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a first access apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a second access apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the layered AC architecture, when it is required to ensure that the Local AC is abnormal, the AP corresponding to the Local AC with the abnormality can still successfully implement access. Therefore, the embodiment of the application provides an access method and device.
In an embodiment of the present application, an access method is provided, where the method is applied to a Central AC, and includes:
receiving a discovery request message sent by an AP;
judging whether the target Local AC is abnormal or not, wherein the target Local AC is as follows: local AC corresponding to the AP;
if not, sending a discovery response message carrying a target address to the AP so that the AP accesses a target Local AC according to the target address, wherein the target address is as follows: the address of the target Local AC;
if so, sending a discovery response message without a target address to the AP, so that the AP is directly accessed to a Central AC.
In another embodiment of the present application, an access method is provided, where the method is applied to an AP, and includes:
sending a discovery request message to a Central AC;
receiving a discovery response message sent by a Central AC, wherein the discovery response message is as follows: the Central AC generates a response message according to the abnormity judgment result, and the abnormity judgment result is as follows: judging whether the target Local AC has an abnormal result, wherein the target Local AC is as follows: local AC corresponding to the AP;
judging whether the response message carries a target address, wherein the target address is as follows: the address of the target Local AC;
if yes, accessing a target Local AC according to the target address;
if not, directly accessing the Central AC.
As can be seen from the above, in the solutions provided in the two embodiments, when there is an abnormality in the Local AC, the AP corresponding to the Local AC with the abnormality can successfully access the Central AC, so that the access can still be successfully achieved.
The access method provided by the embodiment of the present application is described in detail below by using specific embodiments.
Fig. 1 is a schematic flow chart of a first access method provided in an embodiment of the present application, where the method is applied to a Central AC, and includes:
s101: and receiving a discovery request message sent by the AP.
Specifically, an address of a Central AC may be configured in advance for an AP corresponding to each Local AC in the hierarchical AC architecture, so that when the AP discovers the Central AC, the AP may send a discovery request message to the Central AC according to the address of the Central AC.
In an embodiment of the application, the AP may obtain the address of the Central AC through a DHCP (Dynamic Host Configuration Protocol) or a DNS (Domain Name System).
S102: and judging whether the target Local AC is abnormal or not, if not, executing S103, and if so, executing S104.
Wherein, the target Local AC is: and S101, sending the Local AC corresponding to the AP of the discovery request message to the Central AC.
In an embodiment of the present application, when constructing a hierarchical AC framework, a Central AC may configure a name for each Local AC in the framework in advance, so that each Local AC in the framework may be distinguished by the preconfigured name. Based on this, when judging whether the target Local AC is abnormal, the preconfigured name of the target Local AC may be determined first, and then whether the state identifier corresponding to the preconfigured name represents that the target Local AC is in an online state is judged, and if the represented target Local AC is in the online state, it may be judged that the target Local AC is abnormal; and if the characterization target Local AC is not in an online state, judging that the target Local AC is abnormal.
After the names are configured for the Local ACs in advance, a state identifier which represents whether the Local ACs are in an online state or not can be set for each Local AC, and the value of the state identifier changes along with the online and offline of the Local ACs. Therefore, whether the Local AC is in an on-line state can be determined according to the state identifier.
Wherein, the Local AC being in the on-line state can be understood as: and in the state that the connection relationship between the Local AC and the Central AC is established, the Central AC can control the AP corresponding to the Local AC to access the Local AC.
Local AC in down state can be understood as: and in the state that the Local AC does not establish a connection relationship with the Central AC, the Central AC cannot control the AP corresponding to the Local AC to access the Local AC.
S103: and sending a discovery response message carrying a target address to the AP so that the AP accesses a target Local AC according to the target address.
Wherein, the target address is: the address of the target Local AC.
In one implementation, after the Central AC sends a discovery response packet carrying a target address to the AP, the AP may analyze the received response packet, determine whether the discovery response packet carries an address according to an analysis result, if it is determined that the discovery response packet carries an address, use the address as an address of the target Local AC, discover the target Local AC based on the address, and then access the target Local AC.
Specifically, when the target Local AC is found, the AP may send a discovery request packet to the target Local AC based on an address obtained from the analysis result, the target Local AC receives the discovery request packet, generates a discovery response packet, and sends the generated discovery response packet to the AP, the AP receives the discovery response packet, sends an addition request packet to the target Local AC, and then establishes a tunnel with the target Local AC, and the AP successfully accesses the target Local AC. For example, a CAPWAP (Control And Provisioning of Wireless Access Points Protocol) tunnel is established.
In addition, as seen from the foregoing S101 and S103, the AP sends the discovery request packet to the Central AC, and the Central AC sends the discovery response packet carrying the destination address to the AP, so that the operation of discovering the Central AC by the AP is completed, that is, the operation of discovering the AC for the first time is completed. The AP resolves the target address from the discovery request message sent by the Central AC, discovers the target Local AC according to the target address and completes the operation of discovering the AC for the second time. Generally, a discovery request message is sent from the AP to the Central AC to access the target Local AC, and the whole process involves two operations of discovering the AC, that is, the AP accesses the target Local AC by way of secondary discovery.
S104: and sending a discovery response message which does not carry a target address to the AP so that the AP is directly accessed to a Central AC.
After the Central AC sends the discovery response message without the target address to the AP, the AP analyzes the received discovery response message, and determines that the discovery response message does not carry the address according to the analysis result, so that the AP can know that the target Local AC is abnormal without trying to discover the target Local AC. In this case, the AP may directly send an addition request packet to the Central AC, and further establish a tunnel with the Central AC, and the AP successfully accesses the Central AC.
In addition, as can be seen from the foregoing S101, S102, and S104, after the Central AC receives the discovery request packet sent by the AP, if it is determined that the target Local AC is abnormal, it indicates that the target Local AC cannot provide service for the AP, in this case, in the scheme provided in this embodiment of the application, the AP does not try to discover the target Local AC, that is, does not try to access the target Local AC, but directly accesses the Central AC, and the Central AC provides service for the AP. Therefore, the situation that the AP tries to find the target Local AC and then accesses the target Local AC for many times under the condition that the target Local AC is abnormal can be effectively avoided, the speed of accessing the AP to the AC can be greatly improved, and the on-line speed of the AP can be greatly improved.
As can be seen from the above, in the scheme provided in this embodiment, after receiving the discovery request message sent by the AP, the Central AC determines whether the target Local AC corresponding to the AP is abnormal. When the target Local AC is not abnormal, sending a discovery response message carrying a target address of the target Local AC to the AP, so that the AP can access the target Local AC according to the target address; and when the target Local AC is abnormal, sending a discovery response message which does not carry a target address to the AP, so that the AP is directly accessed to the Central AC. It can be seen that when the access is implemented by applying the scheme provided by this embodiment, under the condition that the Local AC is abnormal, the AP corresponding to the Local AC with the abnormality can successfully access the Central AC, so that the access can still be successfully implemented.
The access method provided by the embodiment of the present application is introduced below based on two different application scenarios.
In the first scenario, the address used by the target Local AC to communicate with the Central AC is the same as the address used by the target Local AC to communicate with the AP.
Based on the above situation, in an embodiment of the present application, when sending the discovery response packet carrying the destination address to the AP, the first address may be determined first, then the first address is used as the destination address, the discovery response packet carrying the destination address is generated, and the generated discovery response packet is sent to the AP.
Wherein the first address is: the address used by the target Local AC during communication with the Central AC.
In this embodiment, when the Central AC generates the discovery response packet, the first address is used as the target address, which simplifies the process of obtaining the target address by the Central AC and improves the generation efficiency of the discovery response packet.
In the second scenario, the target Local AC has multiple addresses, and the address used by the target Local AC to communicate with the Central AC is different from the address used by the target Local AC to communicate with the AP.
Based on the above situation, in an embodiment of the present application, when sending a discovery response packet carrying a target address to the AP, the second address may be obtained from a preset corresponding relationship according to a preconfigured name of a target Local AC, and then the second address is used as the target address to generate a discovery response packet carrying the target address, and the generated discovery response packet is sent to the AP.
Wherein, the preset corresponding relation is as follows: the corresponding relationship between the pre-configured name and the second address is as follows: the address used by the target Local AC in communicating with the AP.
Specifically, the preset correspondence may be stored in advance in an AP view of the Central AC.
In this embodiment, the preset correspondence is pre-stored in the Central AC, so that during access, an operator does not need to confirm which Local AC the AP needs to access, and does not need to log in the Local AC to check which address of the Local AC is used for providing access service for the AP.
Corresponding to the access method applied to the Central AC, the embodiment of the present application further provides an access method applied to the AP.
Fig. 2 is a schematic flowchart of a second access method provided in an embodiment of the present application, where the method is applied to an AP, and includes:
s201: and sending a discovery request message to the Central AC.
Specifically, an address of a Central AC may be configured in advance for an AP corresponding to each Local AC in the hierarchical AC architecture, so that when the AP discovers the Central AC, the AP may send a discovery request message to the Central AC according to the address of the Central AC.
In an embodiment of the application, the AP may obtain the address of the Central AC through a DHCP (Dynamic Host Configuration Protocol) or a DNS (Domain Name System).
S202: and receiving a discovery response message sent by the Central AC.
Wherein, the discovery response message is: the Central AC generates a response message according to the abnormity judgment result, and the abnormity judgment result is as follows: judging whether the target Local AC has an abnormal result, wherein the target Local AC is as follows: local AC for the AP.
Specifically, after receiving the discovery request message, the Central AC determines whether the target Local AC is abnormal, and if so, it indicates that the target Local AC cannot provide service for the AP, so that the AP does not need to access the target Local AC, and further generates a discovery response message not carrying a target address; if no abnormity exists, the target Local AC can provide service for the AP, so that the AP can access the target Local AC and further generate a discovery response message carrying a target address.
Wherein, the target address is: the address of the target Local AC.
S203: and judging whether the response message carries the target address or not, if so, executing S204, and if not, executing S205.
After receiving the discovery response message, the AP may analyze the discovery response message, and determine whether the discovery response message carries the target address according to an analysis result.
S204: and accessing the target Local AC according to the target address.
In one implementation, the AP may send a discovery request packet to a target Local AC according to a target address, the target Local AC receives the discovery request packet, generates a discovery response packet, and sends the generated discovery response packet to the AP, the AP sends an addition request packet to the target Local AC after receiving the discovery response packet, and then establishes a tunnel with the target Local AC, and the AP successfully accesses the target Local AC. For example, a CAPWAP tunnel is established.
S205: directly accessing into Central AC.
Specifically, when the access is directly made to the Central AC, the AP may directly send an addition request packet to the Central AC, and further establish a tunnel with the Central AC, so that the AP is successfully made to access the Central AC.
As can be seen from the above, in the scheme provided in this embodiment, after sending the discovery request message to the Central AC, the AP receives the discovery response message fed back by the Central AC, and if it is determined that the discovery response message carries the target address, which indicates that the target Local AC is not abnormal, accesses the target Local AC according to the target address; and if the response message is judged to not carry the target address according to the analysis result, and the target Local AC is abnormal, directly accessing the Central AC. It can be seen that when the access is implemented by applying the scheme provided by this embodiment, under the condition that the Local AC is abnormal, the AP corresponding to the Local AC with the abnormality can successfully access the Central AC, so that the access can still be successfully implemented.
Corresponding to the access method applied to the Central AC, the embodiment of the present application further provides an access apparatus applied to the Central AC.
Fig. 3 is a schematic structural diagram of a first access apparatus according to an embodiment of the present application, where the apparatus is applied to a Central AC, and includes:
a first message receiving module 301, configured to receive a discovery request message sent by an AP;
a state determining module 302, configured to determine whether a target Local AC is abnormal, if not, trigger a first packet sending module 303, and if so, trigger a second packet sending module 304, where the target Local AC is: local AC corresponding to the AP;
the first packet sending module 303 is configured to send a discovery response packet carrying a target address to the AP, so that the AP accesses the target Local AC according to the target address, where the target address is: the address of the target Local AC;
the second packet sending module 304 is configured to send a discovery response packet not carrying the target address to the AP, so that the AP directly accesses the Central AC.
In an embodiment of the present application, the state determining module 302 includes:
a name determining unit for determining a pre-configured name of the target Local AC;
the state judgment unit is used for judging whether the state identifier corresponding to the pre-configuration name represents that the target Local AC is in an online state or not, if so, the first state judgment unit is triggered, and if not, the second state judgment unit is triggered;
the first state determination unit is used for determining that the target Local AC has no abnormity;
the second state determination unit is used for determining that the target Local AC has an abnormality.
In an embodiment of the present application, the first packet sending module 303 includes:
an address determination unit, configured to determine a first address, where the first address is: an address used by the target Local AC during communication with the Central AC;
a first message generating unit, configured to generate a discovery response message carrying a target address by using the first address as the target address;
a first message sending unit, configured to send the generated discovery response message to the AP.
In an embodiment of the present application, the first packet sending module 303 includes:
an address obtaining unit, configured to obtain a second address from a preset corresponding relationship according to the preconfigured name of the target Local AC, where the preset corresponding relationship is: the corresponding relationship between the pre-configured name and a second address is as follows: an address used by the target Local AC in communicating with the AP;
a second message generating unit, configured to generate a discovery response message carrying the target address by using the second address as the target address;
a second message sending unit, configured to send the generated discovery response message to the AP.
As can be seen from the above, in the solutions provided in the above embodiments, after receiving the discovery request message sent by the AP, the Central AC determines whether the target Local AC corresponding to the AP is abnormal. When the target Local AC is not abnormal, sending a discovery response message carrying a target address of the target Local AC to the AP, so that the AP can access the target Local AC according to the target address; and when the target Local AC is abnormal, sending a discovery response message which does not carry a target address to the AP, so that the AP is directly accessed to the Central AC. It can be seen that when the access is implemented by applying the solutions provided in the above embodiments, under the condition that the Local AC is abnormal, the AP corresponding to the Local AC with the abnormality can successfully access the Central AC, so that the access can still be successfully implemented.
Corresponding to the access method applied to the AP, the embodiment of the present application provides an access apparatus applied to the AP.
Fig. 4 is a schematic structural diagram of a second access apparatus according to an embodiment of the present application, where the apparatus is applied to an AP, and includes:
a third message sending module 401, configured to send a discovery request message to a Central AC;
a second packet receiving module 402, configured to receive a discovery response packet sent by the Central AC, where the discovery response packet is: the Central AC generates a response message according to an abnormality judgment result, wherein the abnormality judgment result is as follows: judging whether a target Local AC has an abnormal result, wherein the target Local AC is as follows: local AC corresponding to the AP;
an address determining module 403, configured to determine whether the discovery response packet carries a target address, if so, trigger a fourth packet sending module 404, and if not, trigger an AC access module 405, where the target address is: the address of the target Local AC;
the fourth message sending module 404 is configured to access the target Local AC according to the target address;
the AC access module 405 is configured to directly access the Central AC.
As can be seen from the above, in the scheme provided in this embodiment, after sending the discovery request message to the Central AC, the AP receives the discovery response message fed back by the Central AC, and if it is determined that the discovery response message carries the target address, which indicates that the target Local AC is not abnormal, accesses the target Local AC according to the target address; and if the response message is judged to not carry the target address according to the analysis result, and the target Local AC is abnormal, directly accessing the Central AC. It can be seen that when the access is implemented by applying the scheme provided by this embodiment, under the condition that the Local AC is abnormal, the AP corresponding to the Local AC with the abnormality can successfully access the Central AC, so that the access can still be successfully implemented.
Corresponding to the above access method applied to the Central AC, an embodiment of the present application further provides a controller, where the controller, as the Central AC, includes: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the access method applied to the Central AC provided by the embodiment of the application is realized.
In an embodiment of the present application, an access method is provided, which is applied to a Central AC, and the method includes:
receiving a discovery request message sent by an AP;
judging whether a target Local AC is abnormal or not, wherein the target Local AC is as follows: local AC corresponding to the AP;
if not, sending a discovery response message carrying a target address to the AP so that the AP accesses the target Local AC according to the target address, wherein the target address is as follows: the address of the target Local AC;
if so, sending a discovery response message which does not carry the target address to the AP, so that the AP is directly accessed to the Central AC.
It should be noted that the access method implemented by the processor through machine executable instructions is the same as the access embodiment applied to the Central AC provided in the foregoing method embodiment section, and is not described here again.
As can be seen from the above, in the scheme provided in this embodiment, when there is no abnormality in the target Local AC, a discovery response packet carrying the target address of the target Local AC is sent to the AP, so that the AP can access the target Local AC according to the target address; and when the target Local AC is abnormal, sending a discovery response message which does not carry a target address to the AP, so that the AP is directly accessed to the Central AC. It can be seen that when the access is implemented by applying the scheme provided by this embodiment, under the condition that the Local AC is abnormal, the AP corresponding to the Local AC with the abnormality can successfully access the Central AC, so that the access can still be successfully implemented.
In correspondence with the above access method applied to Central AC, an embodiment of the present application further provides a machine-readable storage medium storing machine-executable instructions, which, when invoked and executed by a processor, cause the processor to: the access method applied to the Central AC provided by the embodiment of the application is realized.
In an embodiment of the present application, an access method is provided, which is applied to a Central AC, and the method includes:
receiving a discovery request message sent by an AP;
judging whether a target Local AC is abnormal or not, wherein the target Local AC is as follows: local AC corresponding to the AP;
if not, sending a discovery response message carrying a target address to the AP so that the AP accesses the target Local AC according to the target address, wherein the target address is as follows: the address of the target Local AC;
if so, sending a discovery response message which does not carry the target address to the AP, so that the AP is directly accessed to the Central AC.
It should be noted that the access method implemented by the processor caused by the machine executable instructions is the same as the access embodiment applied to the Central AC provided in the foregoing method embodiment section, and is not described here again.
As can be seen from the above, in the scheme provided in this embodiment, when there is no abnormality in the target Local AC, a discovery response packet carrying the target address of the target Local AC is sent to the AP, so that the AP can access the target Local AC according to the target address; and when the target Local AC is abnormal, sending a discovery response message which does not carry a target address to the AP, so that the AP is directly accessed to the Central AC. It can be seen that when the access is implemented by applying the scheme provided by this embodiment, under the condition that the Local AC is abnormal, the AP corresponding to the Local AC with the abnormality can successfully access the Central AC, so that the access can still be successfully implemented.
Corresponding to the above access method applied to the AP, an embodiment of the present application further provides an access point, including: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the access method applied to the AP provided by the embodiment of the application is realized.
In an embodiment of the present application, an access method is provided, which is applied to an AP, and the method includes:
sending a discovery request message to a Central AC;
receiving a discovery response message sent by the Central AC, wherein the discovery response message is: the Central AC generates a response message according to an abnormality judgment result, wherein the abnormality judgment result is as follows: judging whether a target Local AC has an abnormal result, wherein the target Local AC is as follows: local AC corresponding to the AP;
judging whether the discovery response message carries a target address, wherein the target address is as follows: the address of the target Local AC;
if yes, accessing the target Local AC according to the target address;
if not, directly accessing the Central AC.
It should be noted that the access method implemented by the processor through machine executable instructions is the same as the access embodiment applied to the AP provided in the foregoing method embodiment section, and is not described here again.
As can be seen from the above, in the scheme provided in this embodiment, after sending the discovery request message to the Central AC, the AP receives the discovery response message fed back by the Central AC, and if it is determined that the discovery response message carries the target address, which indicates that the target Local AC is not abnormal, accesses the target Local AC according to the target address; and if the response message is judged to not carry the target address according to the analysis result, and the target Local AC is abnormal, directly accessing the Central AC. It can be seen that when the access is implemented by applying the scheme provided by this embodiment, under the condition that the Local AC is abnormal, the AP corresponding to the Local AC with the abnormality can successfully access the Central AC, so that the access can still be successfully implemented.
In correspondence with the above access method applied to the AP, embodiments of the present application further provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the access method applied to the AP provided by the embodiment of the application is realized.
In an embodiment of the present application, an access method is provided, which is applied to an AP, and the method includes:
sending a discovery request message to a Central AC;
receiving a discovery response message sent by the Central AC, wherein the discovery response message is: the Central AC generates a response message according to an abnormality judgment result, wherein the abnormality judgment result is as follows: judging whether a target Local AC has an abnormal result, wherein the target Local AC is as follows: local AC corresponding to the AP;
judging whether the discovery response message carries a target address, wherein the target address is as follows: the address of the target Local AC;
if yes, accessing the target Local AC according to the target address;
if not, directly accessing the Central AC.
It should be noted that the access method implemented by the processor caused by the machine executable instructions is the same as the access embodiment applied to the AP provided in the foregoing method embodiment section, and is not described here again.
As can be seen from the above, in the scheme provided in this embodiment, after sending the discovery request message to the Central AC, the AP receives the discovery response message fed back by the Central AC, and if it is determined that the discovery response message carries the target address, which indicates that the target Local AC is not abnormal, accesses the target Local AC according to the target address; and if the response message is judged to not carry the target address according to the analysis result, and the target Local AC is abnormal, directly accessing the Central AC. It can be seen that when the access is implemented by applying the scheme provided by this embodiment, under the condition that the Local AC is abnormal, the AP corresponding to the Local AC with the abnormality can successfully access the Central AC, so that the access can still be successfully implemented.
It should be noted that the machine-readable storage medium in the foregoing embodiments may include a Random Access Memory (RAM), and may also include a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the machine-readable storage medium may be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, controller, access point and machine-readable storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (10)

1. An access method applied to a Central access controller (Central AC), wherein the Central AC is an AC in a hierarchical AC architecture, and the AC hierarchical architecture further includes a Local AC, and the method includes:
receiving a discovery request message sent by an Access Point (AP);
judging whether a Local AC of a target Local access controller is abnormal or not, wherein the Local AC of the target is as follows: local AC corresponding to the AP;
if not, sending a discovery response message carrying a target address to the AP so that the AP accesses the target Local AC according to the target address, wherein the target address is as follows: the address of the target Local AC;
if so, sending a discovery response message which does not carry the target address to the AP, so that the AP is directly accessed to the Central AC;
the sending of the discovery response packet carrying the target address to the AP includes:
determining a first address, wherein the first address is: an address used by the target Local AC during communication with the Central AC;
generating a discovery response message carrying the target address by taking the first address as the target address;
sending the generated discovery response message to the AP;
or
The sending of the discovery response packet carrying the target address to the AP includes:
obtaining a second address from a preset corresponding relation according to the pre-configured name of the target Local AC, wherein the preset corresponding relation is as follows: the corresponding relationship between the pre-configured name and a second address is as follows: an address used by the target Local AC in communicating with the AP;
taking the second address as a target address, and generating a discovery response message carrying the target address;
and sending the generated discovery response message to the AP.
2. The method of claim 1, wherein the determining whether the target Local AC is abnormal comprises:
determining a pre-configured name of a target Local AC;
judging whether the state identification corresponding to the preconfigured name represents that the target Local AC is in an online state or not;
if so, judging that the target Local AC has no abnormality;
if not, judging that the target Local AC is abnormal.
3. An access method applied to an AP, the method comprising:
sending a discovery request message to a Central AC, wherein the Central AC is an AC in a layered AC architecture, and the AC layered architecture further comprises a Local AC;
receiving a discovery response message sent by the Central AC, wherein the discovery response message is: the Central AC generates a response message according to an abnormality judgment result, wherein the abnormality judgment result is as follows: judging whether a target Local AC has an abnormal result, wherein the target Local AC is as follows: local AC corresponding to the AP;
judging whether the discovery response message carries a target address, wherein the target address is as follows: the address of the target Local AC;
if yes, accessing the target Local AC according to the target address;
if not, directly accessing the Central AC;
the target address is: a first address, the first address being: an address used by the target Local AC during communication with the Central AC;
or
The target address is: obtaining a second address from a preset corresponding relation according to the pre-configuration name of the target Local AC, wherein the preset corresponding relation is as follows: the corresponding relationship between the pre-configured name and a second address is as follows: an address used by the target Local AC in communicating with the AP.
4. An access device, applied to a Central AC, wherein the Central AC is an AC in a hierarchical AC architecture, and the AC hierarchical architecture further includes a Local AC, the device comprising:
the first message receiving module is used for receiving a discovery request message sent by the AP;
the state judgment module is used for judging whether the target Local AC is abnormal or not, if not, the first message sending module is triggered, and if so, the second message sending module is triggered, wherein the target Local AC is: local AC corresponding to the AP;
the first message sending module is configured to send a discovery response message carrying a target address to the AP, so that the AP accesses the target Local AC according to the target address, where the target address is: the address of the target Local AC;
the second message sending module is configured to send a discovery response message that does not carry the target address to the AP, so that the AP is directly accessed to the Central AC;
the first message sending module includes:
an address determination unit, configured to determine a first address, where the first address is: an address used by the target Local AC during communication with the Central AC;
a first message generating unit, configured to generate a discovery response message carrying a target address by using the first address as the target address;
a first message sending unit, configured to send the generated discovery response message to the AP;
or
The first message sending module includes:
an address obtaining unit, configured to obtain a second address from a preset corresponding relationship according to the preconfigured name of the target Local AC, where the preset corresponding relationship is: the corresponding relationship between the pre-configured name and a second address is as follows: an address used by the target Local AC in communicating with the AP;
a second message generating unit, configured to generate a discovery response message carrying the target address by using the second address as the target address;
a second message sending unit, configured to send the generated discovery response message to the AP.
5. The apparatus of claim 4, wherein the status determining module comprises:
a name determining unit for determining a pre-configured name of the target Local AC;
the state judgment unit is used for judging whether the state identifier corresponding to the pre-configuration name represents that the target Local AC is in an online state or not, if so, the first state judgment unit is triggered, and if not, the second state judgment unit is triggered;
the first state determination unit is used for determining that the target Local AC has no abnormity;
the second state determination unit is used for determining that the target Local AC has an abnormality.
6. An access device, applied to an AP, the device comprising:
a third message sending module, configured to send a discovery request message to a Central AC, where the Central AC is an AC in a hierarchical AC architecture, and the AC hierarchical architecture further includes a Local AC;
a second packet receiving module, configured to receive a discovery response packet sent by the Central AC, where the discovery response packet is: the Central AC generates a response message according to an abnormality judgment result, wherein the abnormality judgment result is as follows: judging whether a target Local AC has an abnormal result, wherein the target Local AC is as follows: local AC corresponding to the AP;
an address determination module, configured to determine whether the discovery response packet carries a target address, if yes, trigger a fourth packet sending module, and if not, trigger an AC access module, where the target address is: the address of the target Local AC;
the fourth message sending module is used for accessing the target Local AC according to the target address;
the AC access module is used for directly accessing the Central AC;
the target address is: a first address, the first address being: an address used by the target Local AC during communication with the Central AC;
or
The target address is: obtaining a second address from a preset corresponding relation according to the pre-configuration name of the target Local AC, wherein the preset corresponding relation is as follows: the corresponding relationship between the pre-configured name and a second address is as follows: an address used by the target Local AC in communicating with the AP.
7. A controller as a Central AC comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: carrying out the method steps of any one of claims 1-2.
8. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: carrying out the method steps of any one of claims 1-2.
9. An access point comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing the method steps of claim 3.
10. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: implementing the method steps of claim 3.
CN201810636433.4A 2018-06-20 2018-06-20 Access method and device Active CN108901082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810636433.4A CN108901082B (en) 2018-06-20 2018-06-20 Access method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810636433.4A CN108901082B (en) 2018-06-20 2018-06-20 Access method and device

Publications (2)

Publication Number Publication Date
CN108901082A CN108901082A (en) 2018-11-27
CN108901082B true CN108901082B (en) 2020-11-20

Family

ID=64345158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810636433.4A Active CN108901082B (en) 2018-06-20 2018-06-20 Access method and device

Country Status (1)

Country Link
CN (1) CN108901082B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110087333B (en) * 2019-04-26 2020-12-04 新华三技术有限公司 Method, device, equipment and storage medium for preventing service interruption

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100789444B1 (en) * 2006-09-29 2007-12-28 엘에스산전 주식회사 A communication packet processing apparatus and method for ring topology ethernet network capable of preventing permanent packet looping
CN101110784A (en) * 2007-09-05 2008-01-23 杭州华三通信技术有限公司 Method and apparatus for mixed routing in wireless mesh network
CN102752172A (en) * 2012-07-13 2012-10-24 杭州华三通信技术有限公司 Control method and control device for switching AP (Access Point) between hot standby ACs (Access Controllers)
CN103812773A (en) * 2012-11-08 2014-05-21 杭州华三通信技术有限公司 Message forwarding method, HUB-PE, and HUB-CE
CN106332182A (en) * 2016-08-11 2017-01-11 杭州华三通信技术有限公司 Wireless access method and apparatus
CN107659930A (en) * 2016-07-26 2018-02-02 新华三技术有限公司 A kind of AP connection control methods and device
CN108093441A (en) * 2017-12-22 2018-05-29 新华三技术有限公司 The switching method and device of a kind of access controller

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8023443B2 (en) * 2008-06-03 2011-09-20 Simmonds Precision Products, Inc. Wireless sensor system
CN101582891B (en) * 2009-06-19 2012-05-23 杭州华三通信技术有限公司 Wide area network endpoint access domination (EAD) authentication method, system and terminal
CN102316549B (en) * 2011-09-21 2014-06-25 杭州华三通信技术有限公司 Method for accessing access pint (AP) into access controller (AC) in local area network, AC and AP
CN103813340B (en) * 2012-11-06 2018-12-07 中兴通讯股份有限公司 Method for sharing network load, AP and system based on resource pool
US9043492B2 (en) * 2013-02-26 2015-05-26 Dell Products L.P. Method to publish remote management services over link local network for zero-touch discovery, provisioning and management
CA2970920C (en) * 2014-03-19 2021-01-12 Hughes Network Systems, Llc Apparatus and method for efficient handover for low earth orbit (leo) satellite systems
US9386496B2 (en) * 2014-03-27 2016-07-05 Intel IP Corporation Apparatus, system and method of multiband wireless communication
US9538345B2 (en) * 2015-01-28 2017-01-03 Citrix Systems, Inc. Systems and methods for performing load balancing and message routing for short message peer to peer protocol
CN104812021B (en) * 2015-04-01 2018-12-25 新华三技术有限公司 A kind of method and device of AP access AC
US20170325230A1 (en) * 2016-05-09 2017-11-09 Qualcomm Incorporated Frequency band and channel selection for a neighbor awareness network (nan) data link (ndl)
CN106304196B (en) * 2016-08-03 2020-06-09 惠州Tcl移动通信有限公司 FDN-based data flow control method and system
CN107547616A (en) * 2017-05-27 2018-01-05 新华三技术有限公司 AP load-balancing methods and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100789444B1 (en) * 2006-09-29 2007-12-28 엘에스산전 주식회사 A communication packet processing apparatus and method for ring topology ethernet network capable of preventing permanent packet looping
CN101110784A (en) * 2007-09-05 2008-01-23 杭州华三通信技术有限公司 Method and apparatus for mixed routing in wireless mesh network
CN102752172A (en) * 2012-07-13 2012-10-24 杭州华三通信技术有限公司 Control method and control device for switching AP (Access Point) between hot standby ACs (Access Controllers)
CN103812773A (en) * 2012-11-08 2014-05-21 杭州华三通信技术有限公司 Message forwarding method, HUB-PE, and HUB-CE
CN107659930A (en) * 2016-07-26 2018-02-02 新华三技术有限公司 A kind of AP connection control methods and device
CN106332182A (en) * 2016-08-11 2017-01-11 杭州华三通信技术有限公司 Wireless access method and apparatus
CN108093441A (en) * 2017-12-22 2018-05-29 新华三技术有限公司 The switching method and device of a kind of access controller

Also Published As

Publication number Publication date
CN108901082A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
US9847965B2 (en) Asset detection system
EP2837159B1 (en) System asset repository management
EP2837157B1 (en) Network address repository management
CN108886538B (en) Method and apparatus for configuring M2M device
US20120324063A1 (en) Method, network device, and system for automatically configuring network device in ipv6 network
US20200112539A1 (en) Topic handling in mqtt networks
US10965640B2 (en) Configuration of an M2M device
US20120124242A1 (en) Server and method for testing pxe function of network interface card
CN107547665B (en) Method, equipment and system for allocating DHCP (dynamic host configuration protocol) address
WO2018010397A1 (en) Method and equipment for establishing wireless connection through first application on user equipment
CN110995886A (en) Network address management method, device, electronic equipment and medium
CN112449752A (en) IPv6 address configuration method and routing equipment
CN108901082B (en) Access method and device
EP3267633B1 (en) Information processing system, proxy server, address duplication prevention method, and computer-readable recording medium
CN110278558B (en) Message interaction method and WLAN system
CN105530187B (en) Physical address acquisition methods and device
US20160241427A1 (en) Service Sending, Receiving Methods and Devices
US20140136597A1 (en) Relay enabled dynamic virtual private network
WO2016177185A1 (en) Method and apparatus for processing media access control (mac) address
CN113347287B (en) Host discovery and addition method, device, equipment and medium in data center
CN104283982B (en) A kind of method that DMZ host automatically points to, system and gateway
CN111385371B (en) MAC address acquisition method, device and equipment
CN110602268A (en) Tunnel port allocation method and device, electronic equipment and storage medium
CN110769462A (en) Network access control method and device
CN114245405B (en) Equipment network distribution method, electronic 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230627

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.