WO2021057413A1 - 一种角色自选举的方法、装置及计算机可读存储介质 - Google Patents

一种角色自选举的方法、装置及计算机可读存储介质 Download PDF

Info

Publication number
WO2021057413A1
WO2021057413A1 PCT/CN2020/112906 CN2020112906W WO2021057413A1 WO 2021057413 A1 WO2021057413 A1 WO 2021057413A1 CN 2020112906 W CN2020112906 W CN 2020112906W WO 2021057413 A1 WO2021057413 A1 WO 2021057413A1
Authority
WO
WIPO (PCT)
Prior art keywords
access point
role
message
automatic configuration
network
Prior art date
Application number
PCT/CN2020/112906
Other languages
English (en)
French (fr)
Inventor
羊兆磊
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to EP20868846.5A priority Critical patent/EP3993484A4/en
Publication of WO2021057413A1 publication Critical patent/WO2021057413A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • H04L12/282Controlling appliance services of a home automation network by calling their functionalities based on user interaction within the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the embodiment of the present invention relates to, but not limited to, a multi-access point AP network, and more specifically relates to a method, device, and computer-readable storage medium for role self-election.
  • APs Multi Access Points
  • the device In the home gateway multi-AP network networking, the device has two roles, one is as the controller of the control end, and the other is as the agent of the client.
  • the controller controller is the logical control unit of the entire network, used to control the front-end network and back-end links in the multi-AP network; for example, AP, STA (Station, station) in the collection network It can control the roaming strategy, send and synchronize the wireless configuration to the agent, etc.
  • AP Access-end network
  • STA Serving, station
  • Agent It is the logical entity of multi-AP networking.
  • Figure 1 is just an example. There are two agents serving as AP2 and AP3 and two STA sites respectively. In actual networking, one network can have one or more agents.
  • the role of the AP in the multi-AP network is manually configured by the user.
  • the user can set the role as a controller or an agent through a WebUI (Website User Interface) or a mobile phone APP (Application).
  • WebUI Website User Interface
  • APP Application
  • the embodiment of the present invention provides a method for role self-election, which is applied to a multi-access point AP network, including: after the AP in the multi-AP network is started, sending an access point automatic configuration search message; When the AP receives the response message of the automatic configuration search message of the access point within the preset time, it sets its role as the agent agent.
  • the embodiment of the present invention also provides a device for role self-election, which is applied to an AP in a multi-access point AP network, and includes: a sending unit for sending an access point automatic configuration search message after the AP is started; The setting unit is configured to set the role of the AP as a proxy agent when a response message of the automatic configuration search message of the access point is received within a preset time.
  • the embodiment of the present invention also provides a device for self-election of roles, which is applied to an AP in a multi-access point AP network, and includes a memory, a processor, and a computer stored in the memory and running on the processor A program, when the computer program is executed by the processor, realizes the above-mentioned role self-election method.
  • the embodiment of the present invention also provides a computer-readable storage medium having an information processing program stored on the computer-readable storage medium, and when the information processing program is executed by a processor, the steps of the above-mentioned role self-election method are realized.
  • Figure 1 is a schematic diagram of the networking of an existing multi-AP network
  • FIG. 2 is a schematic flowchart of a method for role self-election according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for self-election of roles according to another embodiment of the present invention.
  • FIG. 4 is a schematic diagram of the networking of a multi-AP network in an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of the networking of a multi-AP network in an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a method for self-election of roles according to another embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a device for self-election of roles according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a device for self-election of roles provided by an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method for role self-election according to an embodiment of the present invention. As shown in Figure 2, the method, applied to a multi-access point AP network, includes:
  • Step 201 After the AP in the multi-AP network is started, it sends an access point automatic configuration search message;
  • Step 202 When the AP receives a response message of the access point automatic configuration search message within a preset time, it sets its role as an agent agent;
  • the method also includes:
  • the AP When the AP does not receive the response message of the automatic configuration search message of the access point within the preset time, it sets its role as the controller.
  • the method also includes:
  • the maximum number of repeated transmissions is preset, until the response message of the automatic configuration search message of the access point is received, and the role of oneself is set as the agent agent.
  • the method also includes:
  • the device directly connected to its own WAN interface is a 1905 device, set its role as an agent.
  • the method also includes:
  • the device directly connected to its own WAN interface is not a 1905 device, set its role as the controller.
  • the determining whether the device directly connected to the own WAN interface is a 1905 device includes:
  • the own WAN interface does not receive the topology discovery message, it is determined that the device directly connected to the own WAN interface is not a 1905 device.
  • the method further includes:
  • the AP and the controller device in the multi-AP network perform wireless fidelity technology simple configuration WSC interaction to complete wireless configuration synchronization.
  • FIG. 3 is a schematic flowchart of a method for role self-election according to another embodiment of the present invention.
  • AP1 is connected to PON HGW (Passive Optical Network Home Gateway), and AP2 and AP3 devices are connected to AP1 through wired or wireless connections.
  • PON HGW Passive Optical Network Home Gateway
  • This embodiment can be applied to the multi-AP network networking shown in FIG. 5.
  • AP1 is directly connected to an external WAN (Wide Area Network), and AP2 and AP3 devices are connected to AP1 through wired or wireless connections.
  • WAN Wide Area Network
  • this method applied to a multi-access point AP network, includes:
  • Step 301 After AP1 is started, it sends an access point automatic configuration search message
  • the access point automatic configuration search message may be an AP-autoconfig search message in the existing 1905 protocol, and the AP-autoconfig search message is a layer 2 multicast message.
  • a controller controller device when a controller controller device has been set up in a multi-AP network, after the controller controller receives the AP-autoconfig search message sent by AP1, it will reply to AP1 with an AP-autoconfig search response message.
  • the -autoconfig search response message is a layer 2 unicast message.
  • AP-autoconfig search message sent by AP1 will not receive AP-autoconfig search response message.
  • a preset time can be set in advance. In this way, AP1 can determine whether there is a controller device in the network according to whether it receives the AP-autoconfig search response message within the preset time.
  • step 302 When the AP1 receives the response message of the access point automatic configuration search message within the preset time, step 302 is executed, and when the AP1 does not receive the access point automatic configuration within the preset time When searching for the response message of the message, perform step 303:
  • Step 302 set its own role as an agent
  • Step 303 Set one's own role as the controller.
  • FIG. 6 is a schematic flowchart of a method for role self-election according to another embodiment of the present invention.
  • AP1 is connected to PON HGW (Passive Optical Network Home Gateway), and AP2 and AP3 devices are connected to AP1 through wired or wireless connections.
  • PON HGW Passive Optical Network Home Gateway
  • This embodiment can be applied to the multi-AP network networking shown in FIG. 5.
  • AP1 is directly connected to an external WAN (Wide Area Network), and AP2 and AP3 devices are connected to AP1 through wired or wireless connections.
  • WAN Wide Area Network
  • the WAN interface Wide Area Network port, WAN interface
  • LAN interface Local Area Network port, LAN interface
  • the method, applied to a multi-access point AP network includes:
  • Step 601 After AP2 is started, it sends an access point automatic configuration search message
  • the access point automatic configuration search message may be an AP-autoconfig search message in the existing 1905 protocol, and the AP-autoconfig search message is a layer 2 multicast message.
  • the controller controller When the controller device has been set up in a multi-AP network, after the controller controller receives the AP-autoconfig search message sent by AP2, it will reply to AP2 with an AP-autoconfig search response message, which is AP-autoconfig search response.
  • the message is a layer 2 unicast message.
  • AP-autoconfig search message sent by AP2 it will not receive AP-autoconfig search response message.
  • a preset time can be set in advance. In this way, AP2 can determine whether there is a controller device in the network according to whether it receives the AP-autoconfig search response message.
  • a preset time can be set in advance.
  • the AP-autoconfig search message can be sent repeatedly according to the preset number of repetitions. For example, if the timeout is 60s (the time can be customized), repeat 3 times (the number of times can be customized) to send the AP-autoconfig search message.
  • step 602 When the AP2 receives the response message of the access point automatic configuration search message within the preset time, step 602 is executed, and when the AP2 does not receive the access point automatic configuration within the preset time When searching for the response message of the message, perform step 603:
  • Step 602 set one's own role as an agent
  • the WAN interface of the device AP2 is up, and an AP-autoconfig search message is sent. If you receive the AP_AUTOCONFIGURATION_RESPONSE message, set your role as the agent agent, and end the process. If no AP_AUTOCONFIGURATION_RESPONSE message is received, go to step 603,
  • Step 603 Repeatedly sending the access point automatic configuration search message; and so on, repeat sending up to a preset number of times until a response message of the access point automatic configuration search message is received, then step 604 is executed; When the response message of the automatic configuration search message of the access point is not received, step 605 is executed:
  • Step 604 set its own role as an agent
  • Step 605 Determine whether the device directly connected to its own WAN interface is a 1905 device
  • the determining whether the device directly connected to the own WAN interface is a 1905 device includes:
  • the own WAN interface does not receive the topology discovery message, it is determined that the device directly connected to the own WAN interface is not a 1905 device.
  • AP2 receives the AP-autoconfig search response message, it means that there is already a controller device in this network and set itself as a proxy agent. For example, if the timeout is 60s (the time can be customized), repeat 3 times (the number of times can be customized) Custom), it can be considered that there is no controller device in the network. At this time, check whether the device directly connected to your own WAN interface is a 1905 device.
  • step 606 If it is a 1905 device, it means that it is far away from the network exit and go to step 606. If it is not a 1905 device, it means that it is close to the network exit and go to step 607:
  • Step 606 set one's own role as an agent
  • Step 607 Set one's own role as the controller.
  • the discovery message of the IEEE 1905.1-2013 protocol can be used to determine whether the directly connected device is a 1905 device. For example, if the WAN interface UP of AP2 can receive the TOPOLOGY_DISCOVERY message, it will set itself as a proxy agent.
  • the Wan interface After the Wan interface is up, if it receives Topology discovery, Topology query, Topology notification and other messages, it will set itself as a proxy agent.
  • the method further includes: the proxy agent device can know through AP-autoconfig search response message or topology discovery message The mac address of the controller controller device performs WSC (Wi-Fi Simple Configuration, wireless fidelity technology simple configuration) interaction with the controller controller device to complete wireless configuration synchronization.
  • WSC Wi-Fi Simple Configuration, wireless fidelity technology simple configuration
  • the AP device in the home gateway multi-AP network uses the AP-autoconfiguration of the P1905 protocol (access point automatic The configuration) partly conducts role self-election, which reduces manual intervention and improves the installation ability.
  • FIG. 7 is a schematic structural diagram of a device for self-election of roles provided by an embodiment of the present invention.
  • APs applied to a multi-access point AP network include:
  • the sending unit 71 is configured to send an access point automatic configuration search message after the AP is started;
  • the setting unit 72 is configured to set the role of the AP as a proxy agent when a response message of the automatic configuration search message of the access point is received within a preset time.
  • the setting unit 72 is further configured to set its role as the controller when the AP does not receive a response message of the access point automatic configuration search message within a preset time.
  • the setting unit 72 is further configured to notify the sending unit 71 to repeatedly send the access point when the AP does not receive the response message of the access point automatic configuration search message within a preset time.
  • the entry point automatically configures the search message;
  • the maximum number of repeated transmissions is preset, until the response message of the automatic configuration search message of the access point is received, and the role of oneself is set as the agent agent.
  • the setting unit 72 is further configured to send the access point automatic configuration search message until it repeats the preset number of times, and when the response message of the access point automatic configuration search message is not received, it determines with itself Whether the device directly connected to the WAN interface is a 1905 device;
  • the device directly connected to its own WAN interface is a 1905 device, set its role as an agent.
  • the setting unit 72 is further configured to set its role as the controller if the device directly connected to its own WAN interface is not a 1905 device.
  • the determining whether the device directly connected to the own WAN interface is a 1905 device includes:
  • the own WAN interface does not receive the topology discovery message, it is determined that the device directly connected to the own WAN interface is not a 1905 device.
  • the device also includes:
  • the configuration unit is configured to perform WSC interaction with the controller device in the multi-AP network for simple configuration of wireless fidelity technology after the AP sets its role as an agent agent to complete wireless configuration synchronization.
  • an embodiment of the present invention also provides a device for self-election of roles, which is applied to APs in a multi-access point AP network, including a memory 81, a processor 82, and a memory 81 stored on the memory 81 and available in all locations.
  • the computer program running on the processor 82 wherein the computer program is executed by the processor 82 to implement the role self-election method described in any of the above embodiments.
  • the embodiment of the present invention also provides a computer-readable storage medium having an information processing program stored on the computer-readable storage medium, wherein, when the information processing program is executed by a processor, the role described in any of the above embodiments is realized. Steps of self-election method.
  • the technical solution provided by the embodiment of the present invention can reduce manual intervention and improve the networking and deployment capabilities of a multi-AP network.
  • a person of ordinary skill in the art can understand that all or some of the steps, functional modules/units in the system, and apparatus in the methods disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof.
  • the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may consist of several physical components.
  • the components are executed cooperatively.
  • Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit.
  • Such software may be distributed on a computer-readable medium
  • the computer-readable medium may include a computer storage medium (or non-transitory medium) and a communication medium (or transitory medium).
  • the term computer storage medium includes volatile and non-volatile data implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data).
  • Information such as computer-readable instructions, data structures, program modules, or other data.
  • Computer storage media include but are not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or Any other medium used to store desired information and that can be accessed by a computer.
  • communication media usually contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as carrier waves or other transmission mechanisms, and may include any information delivery media. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种角色自选举的方法、装置及计算机可读存储介质,应用于多接入点AP网络,其中该方法包括:所述多AP网络中的AP启动后,发送接入点自动配置搜索报文(201);当所述AP在预设时间内收到所述接入点自动配置搜索报文的响应报文时,将自己的角色设置为代理agent(202)。

Description

一种角色自选举的方法、装置及计算机可读存储介质
相关申请的交叉引用
本申请基于申请号为201910901553.7、申请日为2019年09月23日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本发明实施例涉及但不限于多接入点AP网络,更具体地涉及一种角色自选举的方法、装置及计算机可读存储介质。
背景技术
随着家庭无线网络的发展,使用多台AP(Multi Access Point,多接入点)扩展无线覆盖网络会越来越多。
在家庭网关多AP网络组网中,设备有两种角色,一种是作为控制端的控制者(controller),另一种是作为客户端的代理(agent)。如图1所示,controller控制者:是整个组网的逻辑控制单元,用于控制多AP组网中的前端网络、后端链路;例如收集组网中的AP、STA(Station,站点)的能力数据,控制漫游策略,将无线的配置下发同步给代理agent等。一个网络中有且只有一个控制者controller。因为控制者controller是网络控制主体,所以一般希望控制者controller位于网络。代理agent:是多AP组网的逻辑实体,主要接受多AP指令,并完成相应的操作,包括接受控制者controller下发的配置同步指令等。图1中只是示例有两个分别作为AP2和AP3的代理(agent)和两个STA站点,实际组网中,一个网络中可以有一个或多个代理agent。
目前,多AP网络中的AP由用户手动配置角色,例如用户可以通过WebUI(网络产品界面,Website User Interface)或者手机APP(Application,应用程序)来设定角色为控制者controller或代理agent。如此,导致多AP组网效率较低。
发明内容
有鉴于此,本发明实施例提供了一种角色自选举的方法,应用于多接入点AP网络,包括:所述多AP网络中的AP启动后,发送接入点自动配置搜索报文;当所述AP在预设时间内收到所述接入点自动配置搜索报文的响应报文时,将自己的角色设置为代理agent。
本发明实施例还提供了一种角色自选举的装置,应用于多接入点AP网络中的AP,包括:发送单元,用于所述AP启动后,发送接入点自动配置搜索报文;设置单元,用于当 在预设时间内收到所述接入点自动配置搜索报文的响应报文时,将所述AP的角色设置为代理agent。
本发明实施例还提供了一种角色自选举的装置,应用于多接入点AP网络中的AP,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述角色自选举的方法。
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有信息处理程序,所述信息处理程序被处理器执行时实现上述角色自选举的方法的步骤。
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
附图说明
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本发明的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。
图1为现有多AP网络的组网示意图;
图2为本发明一实施例提供的一种角色自选举的方法的流程示意图;
图3为本发明另一实施例提供的一种角色自选举的方法的流程示意图;
图4为本发明一实施例中多AP网络的组网示意图;
图5为本发明一实施例中多AP网络的组网示意图;
图6为本发明另一实施例提供的一种角色自选举的方法的流程示意图;
图7为本发明一实施例提供的一种角色自选举的装置的结构示意图;
图8为本发明一实施例提供的一种角色自选举的装置的结构示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
图2为本发明一实施例提供的一种角色自选举的方法的流程示意图。如图2所示,该方法,应用于多接入点AP网络,包括:
步骤201,所述多AP网络中的AP启动后,发送接入点自动配置搜索报文;
步骤202,当所述AP在预设时间内收到所述接入点自动配置搜索报文的响应报文时,将自己的角色设置为代理agent;
其中,该方法还包括:
当所述AP在预设时间内没有收到所述接入点自动配置搜索报文的响应报文时,将自己的角色设置为控制者controller。
其中,该方法还包括:
当所述AP在预设时间内没有收到所述接入点自动配置搜索报文的响应报文时,重复发送所述接入点自动配置搜索报文;
以此类推,最多重复发送预设次数,直至收到所述接入点自动配置搜索报文的响应报文时,将自己的角色设置为代理agent。
其中,该方法还包括:
直至重复预设次数发送所述接入点自动配置搜索报,没有收到所述接入点自动配置搜索报文的响应报文时,确定与自己的广域网(WAN)接口直连的设备是否是1905设备;
如果所述与自己的WAN接口直连的设备是1905设备,则将自己的角色设置为代理agent。
其中,该方法还包括:
如果所述与自己的WAN接口直连的设备不是1905设备,则将自己的角色设置为控制者controller。
其中,所述确定与自己的WAN接口直连的设备是否是1905设备,包括:
确定自己的WAN接口是否收到拓扑发现报文;
当自己的WAN接口收到拓扑发现报文时,确定所述与自己的WAN接口直连的设备是1905设备;
当自己的WAN接口没有收到拓扑发现报文时,确定所述与自己的WAN接口直连的设备不是1905设备。
其中,当所述AP将自己的角色设置为代理agent后,该方法还包括:
所述AP与所述多AP网络中的控制者controller设备进行无线保真技术简单配置WSC交互,完成无线配置同步。
图3为本发明另一实施例提供的一种角色自选举的方法的流程示意图。
本实施例可以应用于图4所示的多AP网络组网。如图4所示,AP1接入到PON HGW(Passive Optical Network Home Gateway,无源光纤网络家庭网关)下,AP2和AP3设备通过有线或者无线接入到AP1中。
本实施例可以应用于图5所示的多AP网络组网。如图5所示,AP1直接接入外部WAN(Wide Area Network,广域网),AP2、AP3设备通过有线或者无线接入到AP1中。
本实施例中,以AP1作为执行主体为例,详细说明本实施例技术方案。
如图3所示,该方法,应用于多接入点AP网络,包括:
步骤301,AP1启动后,发送接入点自动配置搜索报文;
其中,该接入点自动配置搜索报文可以为现有1905协议中的AP-autoconfig search报文,该AP-autoconfig search报文是一种二层组播报文。
具体而言,当多AP网络中,已经设置有控制者controller设备时,控制者controller收到AP1发送的AP-autoconfig search报文后,会向AP1回复一个AP-autoconfig search response报文,该AP-autoconfig search response报文是一种二层单播报文。当多AP网络中,还没有控制者controller设备时,AP1发送的AP-autoconfig search报文后,并不会收到AP-autoconfig search response报文。另外,由于网络传输存在延时,为了提高准确性,可以提前设定一个预设时间。如此,AP1可以根据在预设时间内是否收到AP-autoconfig search response报文来判断网络中是否已经有控制者controller设备。
当所述AP1在预设时间内收到所述接入点自动配置搜索报文的响应报文时,执行步骤302,当所述AP1在预设时间内没有收到所述接入点自动配置搜索报文的响应报文时,执行步骤303:
步骤302,将自己的角色设置为代理agent;
步骤303,将自己的角色设置为控制者controller。
图6为本发明另一实施例提供的一种角色自选举的方法的流程示意图。
本实施例可以应用于图4所示的多AP网络组网。如图4所示,AP1接入到PON HGW(Passive Optical Network Home Gateway,无源光纤网络家庭网关)下,AP2和AP3设备通过有线或者无线接入到AP1中。
本实施例可以应用于图5所示的多AP网络组网。如图5所示,AP1直接接入外部WAN(Wide Area Network,广域网),AP2、AP3设备通过有线或者无线接入到AP1中。
本实施例中,以AP2作为执行主体为例,详细说明本实施例技术方案。其中,AP2的WAN接口(Wide Area Network port,广域网接口)和设备AP1的LAN接口(Local Area Network port,局域网接口)连接。
如图6所示,该方法,应用于多接入点AP网络,包括:
步骤601,AP2启动后,发送接入点自动配置搜索报文;
其中,该接入点自动配置搜索报文可以为现有1905协议中的AP-autoconfig search报 文,该AP-autoconfig search报文是一种二层组播报文。
当多AP网络中,已经设置有控制者controller设备时,控制者controller收到AP2发送的AP-autoconfig search报文后,会向AP2回复一个AP-autoconfig search response报文,该AP-autoconfig search response报文是一种二层单播报文。当多AP网络中,还没有控制者controller设备时,AP2发送的AP-autoconfig search报文后,并不会收到AP-autoconfig search response报文。另外,由于网络传输存在延时,为了提高准确性,可以提前设定一个预设时间。如此,AP2可以根据是否收到AP-autoconfig search response报文来判断网络中是否已经有控制者controller设备。
并且为了避免误差,可以提前设定一个预设时间,当超过预设时间,没有收到响应时,可以根据预设的重复次数重复发送AP-autoconfig search报文。例如,如果超时60s(时间可以自定义),重复3次(次数可以自定义)发送AP-autoconfig search报文。
当所述AP2在预设时间内收到所述接入点自动配置搜索报文的响应报文时,执行步骤602,当所述AP2在预设时间内没有收到所述接入点自动配置搜索报文的响应报文时,执行步骤603:
步骤602,将自己的角色设置为代理agent;
具体而言,设备AP2的WAN接口up,发送AP-autoconfig search报文。若收到AP_AUTOCONFIGURATION_RESPONSE报文,设置自己角色为代理agent,结束流程。若没有收到AP_AUTOCONFIGURATION_RESPONSE报文,则进入步骤603,
步骤603,重复发送所述接入点自动配置搜索报文;以此类推,最多重复发送预设次数,直至收到所述接入点自动配置搜索报文的响应报文时,执行步骤604;没有收到所述接入点自动配置搜索报文的响应报文时,执行步骤605:
例如,重复发送所述接入点自动配置搜索报文后收到响应,则将自己的角色设置为代理agent,否则再次重复发送,收到响应则将自己的角色设置为代理agent,否则再次重复发送,以此类推,如果重复3次发送后都没有收到响应,则查看AP2的WAN接口下是否有1905设备,有则设置AP2角色为代理agent,结束流程,否则设置AP2角色为控制者controller。
步骤604,将自己的角色设置为代理agent;
步骤605,确定与自己的WAN接口直连的设备是否是1905设备;
其中,所述确定与自己的WAN接口直连的设备是否是1905设备,包括:
确定自己的WAN接口是否收到拓扑发现报文;
当自己的WAN接口收到拓扑发现报文时,确定所述与自己的WAN接口直连的设备 是1905设备;
当自己的WAN接口没有收到拓扑发现报文时,确定所述与自己的WAN接口直连的设备不是1905设备。
其中,如果AP2收到AP-autoconfig search response报文,说明在此网络中已经有控制者controller设备,将自己设置为代理agent,例如如果超时60s(时间可以自定义),重复3次(次数可以自定义),可以认为网络中还没有控制者controller设备,这个时候查看和自己的WAN接口直连的设备是否是1905设备。
如果是1905设备,则说明远离网络出口,执行步骤606,如果不是1905设备,则说明靠近网络出口,执行步骤607:
步骤606,将自己的角色设置为代理agent;
步骤607,将自己的角色设置为控制者controller。
具体而言,可以根据IEEE 1905.1-2013协议的discovery报文来确定直连设备是否是1905设备。例如设备AP2的WAN接口UP能够收到TOPOLOGY_DISCOVERY报文,则将自己设置为代理agent。
其中,可以根据IEEE 1905.1topology discovery protocol确定是否是1905设备。例如,Wan接口up后如果收到Topology discovery、Topology query、Topology notification等报文,则将自己设置为代理agent。
本发明的另一实施例中,当AP角色自选举为代理agent后,在上述实施例的基础上,该方法还包括:代理agent设备可以通过AP-autoconfig search response报文或者拓扑发现报文知道控制者controller设备的mac地址,与控制者controller设备进行WSC(Wi-Fi Simple Configuration,无线保真技术简单配置)交互,完成无线配置同步。
上述实施例提供的技术方案,家庭网关多AP组网(P1905协议、Multi-AP(Multi Access Point,多接入点)协议)中的AP设备,利用P1905协议的AP-autoconfiguration(接入点自动配置)部分进行角色自选举,减少了人工干预,提升了放装能力。
图7为本发明一实施例提供的一种角色自选举的装置的结构示意图。如图7所示,应用于多接入点AP网络中的AP,包括:
发送单元71,用于所述AP启动后,发送接入点自动配置搜索报文;
设置单元72,用于当在预设时间内收到所述接入点自动配置搜索报文的响应报文时,将所述AP的角色设置为代理agent。
其中,所述设置单元72,还用于当所述AP在预设时间内没有收到所述接入点自动配置搜索报文的响应报文时,将自己的角色设置为控制者controller。
其中,所述设置单元72,还用于当所述AP在预设时间内没有收到所述接入点自动配置搜索报文的响应报文时,通知所述发送单元71重复发送所述接入点自动配置搜索报文;
以此类推,最多重复发送预设次数,直至收到所述接入点自动配置搜索报文的响应报文时,将自己的角色设置为代理agent。
其中,所述设置单元72,还用于直至重复预设次数发送所述接入点自动配置搜索报文,没有收到所述接入点自动配置搜索报文的响应报文时,确定与自己的WAN接口直连的设备是否是1905设备;
如果所述与自己的WAN接口直连的设备是1905设备,则将自己的角色设置为代理agent。
其中,所述设置单元72,还用于如果所述与自己的WAN接口直连的设备不是1905设备,则将自己的角色设置为控制者controller。
其中,所述确定与自己的WAN接口直连的设备是否是1905设备,包括:
确定自己的WAN接口是否收到拓扑发现报文;
当自己的WAN接口收到拓扑发现报文时,确定所述与自己的WAN接口直连的设备是1905设备;
当自己的WAN接口没有收到拓扑发现报文时,确定所述与自己的WAN接口直连的设备不是1905设备。
其中,该装置还包括:
配置单元,用于当所述AP将自己的角色设置为代理agent后,与所述多AP网络中的控制者controller设备进行无线保真技术简单配置WSC交互,完成无线配置同步。
参照图8,本发明实施例还提供了一种角色自选举的装置,应用于多接入点AP网络中的AP,包括存储器81、处理器82及存储在所述存储器81上并可在所述处理器82上运行的计算机程序,其中,所述计算机程序被所述处理器82执行时实现上述任一实施例所述角色自选举的方法。
本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有信息处理程序,其中,所述信息处理程序被处理器执行时实现上述任一实施例所述角色自选举的方法的步骤。
本发明实施例提供的技术方案,能够减少人工干预,提升多AP网络的组网放装能力。本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理 组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。

Claims (10)

  1. 一种角色自选举的方法,应用于多接入点AP网络,包括:
    所述多AP网络中的AP启动后,发送接入点自动配置搜索报文;
    当所述AP在预设时间内收到所述接入点自动配置搜索报文的响应报文时,将自己的角色设置为代理agent。
  2. 根据权利要求1所述的方法,还包括:
    当所述AP在预设时间内没有收到所述接入点自动配置搜索报文的响应报文时,将自己的角色设置为控制者controller。
  3. 根据权利要求1所述的方法,还包括:
    当所述AP在预设时间内没有收到所述接入点自动配置搜索报文的响应报文时,重复发送所述接入点自动配置搜索报文;
    以此类推,最多重复发送预设次数,直至收到所述接入点自动配置搜索报文的响应报文时,将自己的角色设置为代理agent。
  4. 根据权利要求3所述的方法,还包括:
    直至重复预设次数发送所述接入点自动配置搜索报文,没有收到所述接入点自动配置搜索报文的响应报文时,确定与自己的WAN接口直连的设备是否是1905设备;
    如果所述与自己的WAN接口直连的设备是1905设备,则将自己的角色设置为代理agent。
  5. 根据权利要求4所述的方法,还包括:
    如果所述与自己的WAN接口直连的设备不是1905设备,则将自己的角色设置为控制者controller。
  6. 根据权利要求4所述的方法,其中,所述确定与自己的WAN接口直连的设备是否是1905设备,包括:
    确定自己的WAN接口是否收到拓扑发现报文;
    当自己的WAN接口收到拓扑发现报文时,确定所述与自己的WAN接口直连的设备是1905设备;
    当自己的WAN接口没有收到拓扑发现报文时,确定所述与自己的WAN接口直连的设备不是1905设备。
  7. 根据权利要求1所述的方法,当所述AP将自己的角色设置为代理agent后,还包括:
    所述AP与所述多AP网络中的控制者controller设备进行无线保真技术简单配置WSC交互,完成无线配置同步。
  8. 一种角色自选举的装置,应用于多接入点AP网络中的AP,包括:
    发送单元,用于所述AP启动后,发送接入点自动配置搜索报文;
    设置单元,用于当在预设时间内收到所述接入点自动配置搜索报文的响应报文时,将所述AP的角色设置为代理agent。
  9. 一种角色自选举的装置,应用于多接入点AP网络中的AP,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其中,所述计算机程序被所述处理器执行时实现如权利要求1至7中任一项所述角色自选举的方法。
  10. 一种计算机可读存储介质,存储有信息处理程序,其中,所述信息处理程序被处理器执行时实现如权利要求1至7中任一项所述角色自选举的方法的步骤。
PCT/CN2020/112906 2019-09-23 2020-09-01 一种角色自选举的方法、装置及计算机可读存储介质 WO2021057413A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP20868846.5A EP3993484A4 (en) 2019-09-23 2020-09-01 METHOD AND DEVICE FOR AUTOMATIC ROLE ACCEPTANCE, AND COMPUTER READABLE STORAGE MEDIA

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910901553.7 2019-09-23
CN201910901553.7A CN112543466A (zh) 2019-09-23 2019-09-23 一种角色自选举的方法及装置

Publications (1)

Publication Number Publication Date
WO2021057413A1 true WO2021057413A1 (zh) 2021-04-01

Family

ID=75013244

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/112906 WO2021057413A1 (zh) 2019-09-23 2020-09-01 一种角色自选举的方法、装置及计算机可读存储介质

Country Status (3)

Country Link
EP (1) EP3993484A4 (zh)
CN (1) CN112543466A (zh)
WO (1) WO2021057413A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114786241A (zh) * 2022-01-14 2022-07-22 浙江大华技术股份有限公司 选网方法以及相关装置、网络设备和存储介质

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115529233A (zh) * 2021-06-25 2022-12-27 中兴通讯股份有限公司 设备角色自动确定方法、装置、设备和存储介质
CN113518134B (zh) * 2021-07-09 2022-06-17 烽火通信科技股份有限公司 一种mesh组网下通过域名访问主路由器的方法与装置
TWI788154B (zh) * 2021-12-22 2022-12-21 啟碁科技股份有限公司 網狀網路的拓撲路徑取得方法及其系統
CN114465947B (zh) * 2022-02-15 2024-02-27 青岛海信宽带多媒体技术有限公司 路由器及Mesh组网中路由器的自动角色选择方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557616A (zh) * 2009-05-19 2009-10-14 杭州华三通信技术有限公司 接入点切换备份接入控制器的方法及接入点和接入控制器
CN105307197A (zh) * 2014-06-16 2016-02-03 中兴通讯股份有限公司 一种无线配置同步方法、无线路由器及ap
US20160360407A1 (en) * 2015-06-05 2016-12-08 Qualcomm Incorporated Distributed configurator entity
CN106331175A (zh) * 2016-10-27 2017-01-11 苏州云融信息技术有限公司 一种面向云ap的多控制代理统一管理系统和方法
US20180054845A1 (en) * 2015-03-19 2018-02-22 Samsung Electronics Co., Ltd. Technique for supporting initial setup between connection request device and connection acceptance device
CN107949005A (zh) * 2017-12-12 2018-04-20 深圳市菲菱科思通信技术股份有限公司 一种无线接入设备一键切换胖瘦ap模式方法及设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112017006419T5 (de) * 2016-12-21 2019-08-29 Intel IP Corporation Autokonfiguration eines drahtlosen netzwerkbetriebs mit mehreren zugangspunkten
US20180278625A1 (en) * 2017-03-24 2018-09-27 Qualcomm Incorporated Exchanging message authentication codes for additional security in a communication system
JP7102311B2 (ja) * 2018-09-27 2022-07-19 キヤノン株式会社 通信装置、通信装置の制御方法、およびプログラム

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101557616A (zh) * 2009-05-19 2009-10-14 杭州华三通信技术有限公司 接入点切换备份接入控制器的方法及接入点和接入控制器
CN105307197A (zh) * 2014-06-16 2016-02-03 中兴通讯股份有限公司 一种无线配置同步方法、无线路由器及ap
US20180054845A1 (en) * 2015-03-19 2018-02-22 Samsung Electronics Co., Ltd. Technique for supporting initial setup between connection request device and connection acceptance device
US20160360407A1 (en) * 2015-06-05 2016-12-08 Qualcomm Incorporated Distributed configurator entity
CN106331175A (zh) * 2016-10-27 2017-01-11 苏州云融信息技术有限公司 一种面向云ap的多控制代理统一管理系统和方法
CN107949005A (zh) * 2017-12-12 2018-04-20 深圳市菲菱科思通信技术股份有限公司 一种无线接入设备一键切换胖瘦ap模式方法及设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3993484A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114786241A (zh) * 2022-01-14 2022-07-22 浙江大华技术股份有限公司 选网方法以及相关装置、网络设备和存储介质
CN114786241B (zh) * 2022-01-14 2024-02-20 浙江大华技术股份有限公司 选网方法以及相关装置、网络设备和存储介质

Also Published As

Publication number Publication date
EP3993484A4 (en) 2022-08-03
EP3993484A1 (en) 2022-05-04
CN112543466A (zh) 2021-03-23

Similar Documents

Publication Publication Date Title
WO2021057413A1 (zh) 一种角色自选举的方法、装置及计算机可读存储介质
EP3965440A1 (en) Sidelink communication method and apparatus, and storage medium
US20190069182A1 (en) Systems and Methods for Accessing a Network
EP2862378B1 (en) Method and apparatus for wlan initial link setup
JP2021505023A (ja) 多重接続のための方法およびその装置
US20200169871A1 (en) Method, apparatus, network device, and system for releasing ip address
JP2020504559A (ja) Pduセッション管理
US20170055300A1 (en) Block acknowledgment mechanism
RU2601187C1 (ru) Способ быстрого установления услуги групповой передачи и соответствующие устройство и система
JP2016536903A (ja) 高効率無線通信における適応rts/cts
WO2022135035A1 (en) Method and apparatus for relay selection
JP2016518073A (ja) 近傍アウェアネットワーク中での衝突管理のためのシステムおよび方法
US11206580B2 (en) Communication method and communications apparatus
JP6487878B2 (ja) シグナリングオーバーヘッドを低減するためのシステム及び方法
JP6231201B2 (ja) 高効率ワイヤレスネットワーク中での向上された通信効率のためのシステムおよび方法
JP7228046B2 (ja) 端末デバイス、ネットワークデバイスおよびその方法
WO2020191586A1 (zh) 随机接入方法、装置及存储介质
WO2022017285A1 (zh) 报文转发方法、装置及系统
WO2014183617A1 (zh) 一种中继节点的发现方法及装置
CN113038590B (zh) 时间同步方法、电子设备及存储介质
WO2021047564A1 (zh) 一种数据发送和接收方法、装置和存储介质
US10050735B2 (en) WLAN AP-assisted multi-way coexistence
WO2015143763A1 (zh) 一种负荷信息传递方法、系统、网元及计算机存储介质
KR102026792B1 (ko) D2d 탐색 수행 방법 및 그 방법을 사용하는 단말
US10798054B2 (en) IP address allocation method in D2D communication and user equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20868846

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020868846

Country of ref document: EP

Effective date: 20220127

NENP Non-entry into the national phase

Ref country code: DE