WO2016192427A1 - Method and device for restoring interface configuration of access point, and home gate way - Google Patents

Method and device for restoring interface configuration of access point, and home gate way Download PDF

Info

Publication number
WO2016192427A1
WO2016192427A1 PCT/CN2016/075814 CN2016075814W WO2016192427A1 WO 2016192427 A1 WO2016192427 A1 WO 2016192427A1 CN 2016075814 W CN2016075814 W CN 2016075814W WO 2016192427 A1 WO2016192427 A1 WO 2016192427A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
virtual
interface configuration
home gateway
preset
Prior art date
Application number
PCT/CN2016/075814
Other languages
French (fr)
Chinese (zh)
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 中兴通讯股份有限公司
Publication of WO2016192427A1 publication Critical patent/WO2016192427A1/en

Links

Images

Classifications

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

Definitions

  • the present invention relates to the field of communications, and in particular, to an access point interface configuration recovery method, apparatus, and home gateway.
  • An important networking form of a wireless local area network is an access point (AP), and a wireless terminal (ie, a wireless client) accesses the AP to implement interconnection.
  • AP access point
  • a wireless terminal ie, a wireless client
  • an AP is usually integrated into a Home Gate Way (HGW) device to enable the home internal terminal to share the Internet (Internet, also known as the Internet), and provide wireless interworking services for home users. platform.
  • HGW Home Gate Way
  • a plurality of virtual APs may be configured on the wireless interface of the home gateway device, including one primary virtual AP and multiple secondary virtual APs, and each virtual AP corresponds to a Service Set Identifier (SSID).
  • the SSID is a unique ID code broadcast by the AP to identify the AP, which is simply the name of a wireless network.
  • the wireless LAN separation can be achieved by configuring different information such as SSID name, encryption method, and key value for each virtual AP.
  • the primary virtual AP acts as a private virtual AP to construct a private wireless network, allowing the accessed wireless terminals to directly share the Internet network, while other secondary virtual APs can define different service networks according to requirements, such as allowing only access to Internet television ( IPTV) system.
  • IPTV Internet television
  • FIG. 1 is a schematic diagram of a method for restoring the primary virtual AP configuration according to the related art. As shown in FIG. 1, the following technologies may be adopted in the related art. Three ways:
  • Method 1 the login web page (web) management page is used to restore the factory settings.
  • the so-called web management page refers to an operation page provided by the home gateway for implementing configuration management.
  • a button for restoring the factory is usually preset, and the user can perform a whole operation of restoring the factory to the home gateway by clicking this button, which includes restoring all the virtual AP related configurations to the factory state.
  • the device After the device performs the factory reset operation, it will restart.
  • the restart time varies depending on the device.
  • Method 2 Use the unified reset button to restore the factory configuration to the factory.
  • the Reset button is a button for setting an entity outside the home gateway device.
  • the user can restore the home gateway device to the factory state by pressing the physical button, which includes restoring all virtual AP related configurations to the factory state. After the device performs the factory reset operation, it will restart. The restart time varies depending on the device.
  • the third method is to use the remote management device to perform a complete machine resetting of the home gateway.
  • the remote management device can remotely manage the home gateway through the TR069 protocol.
  • TR098 also specifies a remote recovery factory remote procedure call (RPC) method, in which the home gateway device can be restored. It is the factory state, which includes restoring all virtual AP related configurations to the factory state. After the device performs the factory reset operation, it will restart. The restart time varies depending on the device.
  • RPC remote recovery factory remote procedure call
  • the factory configuration of the AP interface that cannot be redirected can only restore the factory state of the AP interface while the whole machine is restored to the factory.
  • the present invention provides a method, an apparatus, and a home gateway for recovering an access point interface.
  • an AP interface configuration recovery method is provided, which is applied to a home gateway that is configured with a primary virtual AP and a secondary virtual AP, including: obtaining an interface configuration recovery request by using the slave virtual AP, where The interface configuration recovery request carries the authentication information of the primary virtual AP, and the authentication information is verified. If the authentication information is valid, the interface configuration of the primary virtual AP is restored as a preset. Interface configuration.
  • the obtaining the interface configuration recovery request by the slave virtual AP comprises: receiving an HTTP access request by using the slave virtual AP; redirecting the access page of the HTTP access request to a preset page; and receiving the user by using the preset
  • the interface input by the page configures a recovery request.
  • the method further includes: returning the authentication failure information, and recording the number of times the authentication fails; if the number of authentication failures exceeds a preset value, Before the preset time arrives, the legality verification of the authentication information is no longer performed.
  • the method before acquiring the interface configuration restoration request by the slave virtual AP, the method further includes: receiving an access request that the wireless client that sends the interface configuration restoration request accesses the slave virtual AP; Assigning an IP address to the wireless client that automatically obtains an IP address by using a DHCP method; or determining whether the IP address of the wireless client that manually sets the IP address is an IP address in a preset address pool of the home gateway; For automatic acquisition of IP ground The wireless client of the address assigns an IP address; or determines that the IP address of the wireless client that manually sets the IP address is an IP address in the preset address pool of the home gateway, and the wireless client manually sets The wireless client accesses the slave virtual AP if the IP address does not conflict with the IP address of another device accessing the home gateway.
  • the authentication information includes: a PPPoE dialing account required by the home gateway to access the Internet, and a preset key value of the primary virtual AP.
  • an AP interface configuration recovery apparatus is further provided, which is applied to a home gateway provided with a primary virtual AP and a secondary virtual AP, and includes: an obtaining module, configured to obtain by using the secondary virtual AP The interface configuration recovery request, wherein the interface configuration recovery request carries the authentication information of the primary virtual AP; the verification module is configured to verify whether the authentication information is legal; and the recovery module is configured to verify in the verification module If the authentication information is valid, the interface of the primary virtual AP is restored to a preset interface configuration.
  • the obtaining module includes: a first receiving unit configured to receive an HTTP access request by the slave virtual AP; and a redirecting unit configured to redirect the access page of the HTTP access request to a preset page; And a receiving unit configured to receive the interface configuration recovery request input by the user through the preset page.
  • the device further includes: a first processing module, configured to: when the verification module verifies that the authentication information is invalid, return authentication failure information, record the number of authentication failures; and authenticate If the number of failures exceeds the preset value, the validity of the authentication information is no longer verified before the preset time arrives.
  • a first processing module configured to: when the verification module verifies that the authentication information is invalid, return authentication failure information, record the number of authentication failures; and authenticate If the number of failures exceeds the preset value, the validity of the authentication information is no longer verified before the preset time arrives.
  • the device further includes: a receiving module, configured to receive an access request that the wireless client that sends the interface configuration recovery request is accessed by the virtual AP; and the second processing module is configured to The wireless client that automatically obtains the IP address assigns an IP address; or determines whether the IP address of the wireless client that manually sets the IP address is an IP address in the preset address pool of the home gateway; the access module is set to Assigning an IP address to the wireless client that successfully obtains an IP address automatically; or determining that the IP address of the wireless client that manually sets the IP address is an IP address in a preset address pool of the home gateway, and The wireless client accesses the slave virtual AP if the IP address manually set by the wireless client does not conflict with the IP address of other devices accessing the home gateway.
  • a receiving module configured to receive an access request that the wireless client that sends the interface configuration recovery request is accessed by the virtual AP
  • the second processing module is configured to The wireless client that automatically obtains the IP address assigns an IP address; or determines whether the IP address
  • the authentication information includes: a PPPoE dialing account required by the home gateway to access the Internet, and a preset key value of the primary virtual AP.
  • a home gateway including: the foregoing AP interface configuration restoring device.
  • the configuration request is obtained by acquiring an interface configuration from the virtual AP, where the interface configuration recovery request carries the authentication information of the primary virtual AP; the authentication information is verified; if the authentication information is valid, the restoration is performed.
  • the interface of the primary virtual AP is configured as a preset interface. This solves the problem of poor user experience caused by the recovery of the AP interface configuration through the configuration and recovery scheme of the home gateway in the related art, and improves the user experience.
  • FIG. 1 is a schematic diagram of a method of restoring a primary virtual AP configuration according to the related art
  • FIG. 2 is a flowchart of an AP interface configuration recovery method according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of an AP interface configuration restoring apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a primary virtual AP configuration recovery method according to a preferred embodiment of the present invention.
  • Figure 5 is a schematic illustration of an authentication page in accordance with a preferred embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for restoring an AP interface according to an embodiment of the present invention, as shown in FIG. 2 . As shown, the process includes the following steps:
  • Step S202 Acquire an interface configuration recovery request from the virtual AP, where the interface configuration recovery request carries the authentication information of the primary virtual AP.
  • Step S204 verifying whether the authentication information is legal
  • Step S206 In the case that the authentication information is valid, the interface of the primary virtual AP is restored to the preset interface configuration.
  • the configuration of the interface of the primary virtual AP is restored to the default interface configuration by using the interface that is configured with the authentication information of the primary active AP, and the AP interface configuration recovery method is provided.
  • the method of restoring the configuration of the home gateway is required, and the other configuration of the home gateway can be retained in this manner, and the complicated configuration process of other configurations is avoided. It can be seen that, through the foregoing steps, the problem of poor user experience caused by the recovery of the AP interface configuration by the configuration and recovery scheme of the home gateway in the related art is solved, and the user experience is improved.
  • the home gateway can obtain an interface configuration restoration request through the RPC mode, or can be obtained in other manners.
  • the home gateway can receive an HTTP access request that has been accessed from a wireless client in the virtual AP by receiving from the virtual AP, wherein the HTTP access request is used. Requesting a preset page; then the home gateway can obtain the interface configuration recovery request input by the user through the preset page indicated by the HTTP access request. In this manner, the user is required to memorize the page address of the preset page, and in case the wireless client accesses the virtual AP, send an HTTP access request to the home gateway to access the page address of the preset page.
  • HTTP Hypertext Transfer Protocol
  • the home gateway may forcibly redirect the access page of the HTTP access request to the preset page regardless of the page of the access address carried in the HTTP access request.
  • the user can implement the configuration of the interface configuration recovery request by using a text input or a button operation on the preset page, so that the home gateway receives the interface configuration recovery request input by the user through the preset page. In this way, the user no longer needs to memorize the page address of the preset page, which further enhances the user experience.
  • the slave virtual AP in this embodiment may be any ordinary slave virtual AP.
  • the AP can support the HTTP protocol.
  • a dedicated slave AP can be used for interface configuration recovery of the primary virtual AP.
  • the dedicated slave virtual AP is an open AP, and any dedicated wireless device can access the dedicated slave virtual AP as long as its IP address assignment meets the requirements.
  • a public key can be set from the virtual AP, and can be directly accessed without key authentication.
  • the wireless devices of the access-dedicated slave virtual APs may be set to be mutually inaccessible.
  • the home gateway may return the authentication failure information from the virtual AP, and record the number of authentication failures in a certain period of time; the authentication fails in the certain period of time. If the number of times exceeds the preset value, a timer can be started. Before the preset time arrives (that is, before the timer expires), the validity of the authentication information is no longer verified.
  • the method of verifying the validity of the interface configuration includes: closing the relevant interface/interface for obtaining the interface configuration recovery request, or directly discarding the interface configuration recovery request received before the preset time arrives.
  • a method for the wireless client to access the slave virtual AP is further provided, for example, the home gateway receives the access request of the wireless client that sends the interface configuration recovery request to access the virtual AP;
  • the Dynamic Host Configuration Protocol (DHCP) mode assigns an IP address to a wireless client that automatically obtains an IP address. If an IP address is successfully assigned to a wireless client that automatically obtains an IP address, the unlimited client is accessed from the virtual AP.
  • DHCP Dynamic Host Configuration Protocol
  • the home gateway receives the access request of the wireless client that sends the interface configuration recovery request to access the virtual AP; and determines whether the IP address of the wireless client that manually sets the IP address is the IP address in the preset address pool of the home gateway; The IP address of the wireless client that determines that the IP address is manually set is the IP address in the preset address pool of the home gateway, and the IP address manually set by the wireless client does not conflict with the IP address of other devices accessing the home gateway.
  • the wireless client is accessed from the virtual AP.
  • the foregoing authentication information includes: an Ethernet Point-to-Point Protocol (PPPoE) dialing account required for the home gateway to access the Internet, and a preset key value of the primary virtual AP.
  • PPPoE Point-to-Point Protocol
  • the default key value of the primary virtual AP can generally be obtained from the home network. Obtained on the closed casing.
  • an AP interface configuration and recovery device is also provided, which is applied to a home gateway that is configured with a primary virtual AP and a secondary virtual AP, and is used to implement the foregoing embodiments and preferred embodiments.
  • the module involved in the device will be described below.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • FIG. 3 is a schematic structural diagram of an AP interface configuration restoring apparatus according to an embodiment of the present invention.
  • the apparatus includes: an obtaining module 32, a verifying module 34, and a restoring module 36, wherein the obtaining module 32 is configured to pass
  • the virtual AP obtains the interface configuration recovery request, where the interface configuration recovery request carries the authentication information of the primary virtual AP;
  • the verification module 34 is coupled to the obtaining module 32, and is configured to verify whether the authentication information is legal;
  • the recovery module 36 is coupled to the verification module.
  • the interface configured to restore the primary virtual AP is configured as a preset interface configuration when the verification module 34 verifies that the authentication information is valid.
  • the obtaining module 22 comprises: a first receiving unit configured to receive an HTTP access request from the virtual AP; a redirecting unit coupled to the first receiving unit, configured to redirect the access page of the HTTP access request to the preset page
  • the second receiving unit is configured to receive an interface configuration recovery request input by the user through the preset page.
  • the apparatus further includes: a first processing module coupled to the verification module 34, configured to return the authentication failure information and record the number of authentication failures if the verification module 34 verifies that the authentication information is invalid; and If the number of authentication failures exceeds the preset value, the validity of the authentication information is no longer verified before the preset time is reached.
  • a first processing module coupled to the verification module 34, configured to return the authentication failure information and record the number of authentication failures if the verification module 34 verifies that the authentication information is invalid; and If the number of authentication failures exceeds the preset value, the validity of the authentication information is no longer verified before the preset time is reached.
  • the device further includes: a receiving module, configured to receive an access request of the wireless client that sends the interface configuration recovery request to access the virtual AP; the second processing module is coupled to the receiving module, and is configured to be automatically
  • the wireless client that obtains the IP address assigns an IP address; or determines whether the IP address of the wireless client that manually sets the IP address is an IP address in the preset address pool of the home gateway; the access module is coupled to the second processing module, and is set to Assign an IP address to the wireless client that successfully obtains the IP address automatically; or determine that the IP address of the wireless client that manually sets the IP address is the IP address in the preset address pool of the home gateway, and the IP address manually set by the wireless client
  • the wireless client is accessed from the virtual AP if the IP address of the other device accessing the home gateway does not conflict.
  • the foregoing authentication information includes: a PPPoE dialing account required for the home gateway to access the Internet, and a preset key value of the primary virtual AP.
  • the embodiment further provides a home gateway, including: the foregoing AP interface configuration restoring device.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the preferred embodiment provides a method for recovering a home gateway AP interface configuration to overcome the existing technology. It is not possible to redirect the issue of a particular virtual AP configuration.
  • a method for implementing configuration recovery of a primary virtual AP by using a virtual AP as an access point is provided.
  • Step 1 The physical AP interface of the home gateway needs to open at least one slave virtual AP in addition to the primary virtual AP. From the virtual AP as an open access point, no encryption is configured, and any wireless client can associate with the virtual AP;
  • Step 2 When the wireless client associates with the virtual AP and performs HTTP service access, the home gateway redirects the HTTP access page to the home gateway (preset fixed page, this page contains the authentication necessary to restore the primary virtual AP to the factory state) Information input box and action execution button;
  • Step 3 The user enters the correct authentication information and submits the information in the redirect page. After the home gateway performs authentication, the primary virtual AP can be redirected to the factory state. The entire process does not affect other modules and applications, and the home gateway does not restart;
  • Step 4 After detecting the incorrect authentication information, the home gateway returns a message indicating that the authentication fails, and allows the user to perform the authentication again.
  • Step 5 The home gateway limits the number of times of the authentication failure retry. After the number of authentication failures reaches the upper limit, the authentication condition input box and the recovery button of the redirect page are grayed out, and the user is no longer allowed to perform the recovery operation. Set the recovery time for the release of the restriction.
  • the SSID name of the slave virtual AP is preset and can correspond to the name of the primary virtual AP.
  • the wireless client can search for the associated AP in the wireless coverage of the home gateway, and the home gateway allocates an IP address to the wireless client through DHCP. For example, if the IP address of the wireless client is manually configured, the address must be the same as the address of the preset address pool of the home gateway. Otherwise, no response is made;
  • the wireless client associated with the virtual AP is not allowed to access other services than HTTP, and is redirected to the specified page during HTTP service access.
  • the virtual AP is isolated from other LAN-side interfaces (including wired interfaces and other virtual AP interfaces).
  • any form of communication between the wireless clients associated with the slave virtual AP is also not possible.
  • the authentication information in the redirect page includes the PPPoE dial-up account required for the home gateway to access the Internet and the default factory key value of the primary virtual AP.
  • the home gateway stores the authentication information in the database and the configuration file. After the user inputs the authentication information, the home gateway compares the input value with the stored authentication information, and the authentication succeeds, and the operation of restoring the default configuration of the primary virtual AP can be further performed. As described in step 3; if not, an error message is sent to inform the user of the cause of the failure, as described in step 4.
  • the prompt information here can be displayed on the current authentication page, or a new prompt page can be popped up. It is better to specify the reason for the failure in the failure information, so that the user can accurately correct the input information.
  • the home gateway limits the number of authentication failures, and the home gateway sets a counter and a timer, and can preset the upper limit of the counter and the timer timeout period.
  • the counter is incremented by one.
  • FIG. 4 is a schematic flowchart of a primary virtual AP configuration recovery method according to a preferred embodiment of the present invention. As shown in FIG. 4, the process includes the following steps:
  • the home gateway detects that there is a wireless client access from the virtual AP access point.
  • the slave virtual AP is an open access point, and no encryption is configured, and the name of the slave virtual AP is associated with the name of the primary virtual AP, so that when there are multiple slave virtual APs, fast distinction can be performed.
  • the primary virtual AP name is SSID1
  • the name of the secondary virtual AP is SSID1-HELP.
  • the wireless client is installed with a browser and supports HTTP access. After the wireless client accesses the virtual AP, it can automatically obtain the private IP address assigned by the home gateway, or manually set the IP address that is consistent with the home gateway address pool, but cannot access all services except HTTP, and cannot interface with other LANs. Including the wired interface and other virtual AP interfaces to communicate, that is, the slave virtual AP is isolated from other LAN-side interfaces.
  • FIG. 5 is a schematic diagram of an authentication page according to a preferred embodiment of the present invention. As shown in FIG. 5, the page includes an authentication information input box, related prompt information, and an action button.
  • the home gateway receives the authentication information submitted by the user, and includes the dialing account of the current PPPoE connection of the home gateway and the key of the default primary virtual AP.
  • the default primary virtual AP's key is available on the Home Gateway Shell tab. Since the key of the default primary virtual AP of each home gateway is unique, and the PPPoE dialing account of each user is unique, this can be used as the authentication condition to ensure the security of the information.
  • the home gateway starts the counter immediately after receiving the authentication information, and compares the PPPoE dialing account and the key of the primary virtual AP stored in the database and the default configuration file. If the data is consistent, the authentication passes, and the configuration of the primary virtual AP is performed. If the data is inconsistent, the authentication fails, and the authentication fails (such as the PPPoE account error, the default AP key error, etc.) is restored to the factory default state. At the same time, the counter is increased by one.
  • the home gateway determines the counter value in the above. If the number of times exceeds the limit (for example, three times), the page prompts that the number of authentication limits has been exceeded, and the authentication information input box and the recovery button are grayed out to prevent the user from repeatedly operating. At the same time, the timer is started, and the gray state is maintained until the timer expires. After the timer expires, the user automatically removes the graying, allowing the user to re-enter the authentication information and operate the recovery button, that is, restarting the home gateway to receive the authentication information input by the user and the following If the number of times is not exceeded, the home gateway is allowed to continue to receive the authentication information input by the user and the following process.
  • the limit for example, three times
  • the manner of restoring the configuration of the primary virtual AP from the virtual AP is utilized, and not only the configuration of the primary virtual AP is restored, but also the configuration of the primary virtual AP is restored.
  • Pass page authentication The operation security is fully guaranteed, and the whole machine is not restarted, and the user experience is obviously improved.
  • a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the interface configuration recovery request is obtained by acquiring an interface from the virtual AP, where the interface configuration recovery request carries the authentication information of the primary virtual AP; the authentication information is verified; if the authentication information is valid, the restoration is performed.
  • the interface of the primary virtual AP is configured as a preset interface. This solves the problem of poor user experience caused by the recovery of the AP interface configuration through the configuration and recovery scheme of the home gateway in the related art, and improves the user experience.

Abstract

Provided are a method and device for restoring an interface configuration of an access point, and home gate way (HGW). The method comprises: acquiring an interface configuration restoration request via a slave virtual AP, wherein the interface configuration restoration request carries authentication information of a master virtual AP; authenticating whether the authentication information is valid; and if so, then restoring an interface configuration of the master virtual AP to a default interface configuration. The present invention addresses the problem in the related art of poor user experience caused by restoring the AP interface configuration via a configuration restoration solution of an HGW, thus improving the user experience.

Description

接入点接口配置恢复方法、装置及家庭网关Access point interface configuration recovery method, device and home gateway 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种接入点接口配置恢复方法、装置及家庭网关。The present invention relates to the field of communications, and in particular, to an access point interface configuration recovery method, apparatus, and home gateway.
背景技术Background technique
无线局域网(Wireless Local Area Networks,简称为WLAN)的一种重要的组网形式是以接入点(Access Point,简称为AP)为中心设备,无线终端(即无线客户端)接入AP实现互联。在家庭网络中,通常将AP集成到家庭网关(Home Gate Way,简称为HGW)设备上,实现家庭内部终端共享互联网(Internet,又称英特网)的同时,为家庭用户提供无线互通的服务平台。An important networking form of a wireless local area network (WLAN) is an access point (AP), and a wireless terminal (ie, a wireless client) accesses the AP to implement interconnection. . In a home network, an AP is usually integrated into a Home Gate Way (HGW) device to enable the home internal terminal to share the Internet (Internet, also known as the Internet), and provide wireless interworking services for home users. platform.
家庭网关设备的无线接口上可以设置多个虚拟AP,包括一个主虚拟AP和多个从虚拟AP,每个虚拟AP对应一个服务集标识(Service Set Identifier,简称为SSID)。SSID是AP广播出来的用来标识AP的唯一ID码,简单来说就是一个无线网络的名称。通过为每个虚拟AP配置不同的SSID名称、加密方式及密钥值等信息,可以实现无线局域网的分隔。一般主虚拟AP作为私有虚拟AP,用以构建私有无线网络,允许接入的无线终端直接共享Internet网络,而其他从虚拟AP则可以根据需求定义不同的业务网络,如仅允许接入互联网电视(IPTV)系统。A plurality of virtual APs may be configured on the wireless interface of the home gateway device, including one primary virtual AP and multiple secondary virtual APs, and each virtual AP corresponds to a Service Set Identifier (SSID). The SSID is a unique ID code broadcast by the AP to identify the AP, which is simply the name of a wireless network. The wireless LAN separation can be achieved by configuring different information such as SSID name, encryption method, and key value for each virtual AP. Generally, the primary virtual AP acts as a private virtual AP to construct a private wireless network, allowing the accessed wireless terminals to directly share the Internet network, while other secondary virtual APs can define different service networks according to requirements, such as allowing only access to Internet television ( IPTV) system.
每台家庭网关在出厂的时候,都会预置主虚拟AP的初始配置,并将初始配置信息标识在家庭网关设备表面上,方便用户查看使用,用户也可以修改相应的SSID名称、加密方式、密钥值等信息。当用户改变了初始配置的情况下,想要恢复主虚拟AP为初始配置,图1是根据相关技术的恢复主虚拟AP配置的方法的示意图,如图1所示,在相关技术中可以采用下列三种方式:When the home gateway is shipped from the factory, the initial configuration of the primary virtual AP is preset, and the initial configuration information is identified on the surface of the home gateway device, which is convenient for the user to view and use. The user can also modify the corresponding SSID name, encryption mode, and secret. Information such as key values. When the user changes the initial configuration, and wants to restore the primary virtual AP to the initial configuration, FIG. 1 is a schematic diagram of a method for restoring the primary virtual AP configuration according to the related art. As shown in FIG. 1, the following technologies may be adopted in the related art. Three ways:
方式一,登陆网页(web)管理页面进行整机恢复出厂设置的方法。Method 1, the login web page (web) management page is used to restore the factory settings.
所谓web管理页面是指家庭网关为实现配置管理为用户提供的操作页面。家庭网关的web管理方式下,通常预置一个恢复出厂的按钮,用户可以通过点击此按钮对家庭网关进行整机恢复出厂的操作,其中包含了将所有虚拟AP相关配置恢复为出厂状态。设备执行完恢复出厂的操作后会进行重启的操作,重启时间视不同设备长短不一。The so-called web management page refers to an operation page provided by the home gateway for implementing configuration management. In the web management mode of the home gateway, a button for restoring the factory is usually preset, and the user can perform a whole operation of restoring the factory to the home gateway by clicking this button, which includes restoring all the virtual AP related configurations to the factory state. After the device performs the factory reset operation, it will restart. The restart time varies depending on the device.
方式二,使用统一的重置(reset)按键进行整机恢复出厂配置的方法。Method 2: Use the unified reset button to restore the factory configuration to the factory.
Reset按键是在家庭网关设备外部设置一个实体的按键,用户可通过按此实体按键将家庭网关设备恢复为出厂状态,其中包含了将所有虚拟AP相关配置恢复为出厂状态。设备执行完恢复出厂的操作后会进行重启的操作,重启时间视不同设备长短不一。 The Reset button is a button for setting an entity outside the home gateway device. The user can restore the home gateway device to the factory state by pressing the physical button, which includes restoring all virtual AP related configurations to the factory state. After the device performs the factory reset operation, it will restart. The restart time varies depending on the device.
方式三,使用远程管理装置对家庭网关进行整机恢复出厂配置的方法。The third method is to use the remote management device to perform a complete machine resetting of the home gateway.
除上述描述的两种方式以外,远程管理装置可通过TR069协议对家庭网关进行远程管理,TR098也规定了一种远程恢复出厂的远程过程调用(RPC)方法,通过此方式可以将家庭网关设备恢复为出厂状态,其中包含了将所有虚拟AP相关配置恢复为出厂状态。设备执行完恢复出厂的操作后会进行重启的操作,重启时间视不同设备长短不一。In addition to the two methods described above, the remote management device can remotely manage the home gateway through the TR069 protocol. TR098 also specifies a remote recovery factory remote procedure call (RPC) method, in which the home gateway device can be restored. It is the factory state, which includes restoring all virtual AP related configurations to the factory state. After the device performs the factory reset operation, it will restart. The restart time varies depending on the device.
由此可见,相关技术中提供的恢复AP初始配置的方式都是采用对家庭网关整机进行配置恢复的方式。发明人在研究过程中发现,相关技术中提供的上述方式至少存在下列的缺点:It can be seen that the manner of restoring the initial configuration of the AP provided in the related art adopts a configuration for restoring the configuration of the home gateway. The inventors discovered during the research that the above-mentioned methods provided in the related art have at least the following disadvantages:
1、不能定向的恢复AP接口的出厂配置,只能在整机恢复出厂的同时顺带恢复AP接口的出厂状态;1. The factory configuration of the AP interface that cannot be redirected can only restore the factory state of the AP interface while the whole machine is restored to the factory.
2、恢复出厂配置后会将会整机重启,影响用户体验;2. After the factory configuration is restored, the whole machine will be restarted, which will affect the user experience;
3、恢复出厂配置后,家庭网关的所有配置都需要进行重新配置,进一步影响了用户体验。3. After the factory configuration is restored, all configurations of the home gateway need to be reconfigured, further affecting the user experience.
针对相关技术中通过家庭网关的配置恢复方案对AP接口配置进行恢复导致的用户体验差的问题,目前尚未提出有效的解决方案。The problem of poor user experience caused by the recovery of the AP interface configuration by the configuration and recovery scheme of the home gateway in the related art has not yet been proposed.
发明内容Summary of the invention
为了解决上述技术问题,本发明提供了一种接入点接口配置恢复方法、装置及家庭网关。In order to solve the above technical problem, the present invention provides a method, an apparatus, and a home gateway for recovering an access point interface.
根据本发明实施例的一个方面,提供了一种AP接口配置恢复方法,应用于设置有主虚拟AP和从虚拟AP的家庭网关,包括:通过所述从虚拟AP获取接口配置恢复请求,其中,所述接口配置恢复请求中携带有所述主虚拟AP的认证信息;验证所述认证信息是否合法;在验证到所述认证信息合法的情况下,恢复所述主虚拟AP的接口配置为预设接口配置。According to an aspect of the embodiments of the present invention, an AP interface configuration recovery method is provided, which is applied to a home gateway that is configured with a primary virtual AP and a secondary virtual AP, including: obtaining an interface configuration recovery request by using the slave virtual AP, where The interface configuration recovery request carries the authentication information of the primary virtual AP, and the authentication information is verified. If the authentication information is valid, the interface configuration of the primary virtual AP is restored as a preset. Interface configuration.
优选地,通过所述从虚拟AP获取接口配置恢复请求包括:通过所述从虚拟AP接收HTTP访问请求;将所述HTTP访问请求的访问页面重定向至预设页面;接收用户通过所述预设页面输入的所述接口配置恢复请求。Preferably, the obtaining the interface configuration recovery request by the slave virtual AP comprises: receiving an HTTP access request by using the slave virtual AP; redirecting the access page of the HTTP access request to a preset page; and receiving the user by using the preset The interface input by the page configures a recovery request.
优选地,在验证到所述认证信息不合法的情况下,所述方法还包括:返回认证失败信息,并对认证失败的次数进行记录;在认证失败的次数超过预设值的情况下,在预设时间到达前,不再进行认证信息的合法性验证。Preferably, in the case that the authentication information is invalid, the method further includes: returning the authentication failure information, and recording the number of times the authentication fails; if the number of authentication failures exceeds a preset value, Before the preset time arrives, the legality verification of the authentication information is no longer performed.
优选地,在通过所述从虚拟AP获取所述接口配置恢复请求之前,所述方法还包括:接收将发送所述接口配置恢复请求的无线客户端接入所述从虚拟AP的接入请求;通过DHCP方式为自动获取IP地址的所述无线客户端分配IP地址;或者判断手动设置IP地址的所述无线客户端的IP地址是否为所述家庭网关的预置地址池中的IP地址;在成功为自动获取IP地 址的所述无线客户端分配IP地址;或者判断到手动设置IP地址的所述无线客户端的IP地址是所述家庭网关的预置地址池中的IP地址,且所述无线客户端手动设置的IP地址与接入所述家庭网关的其他设备的IP地址不冲突的情况下,将所述无线客户端接入所述从虚拟AP。Preferably, before acquiring the interface configuration restoration request by the slave virtual AP, the method further includes: receiving an access request that the wireless client that sends the interface configuration restoration request accesses the slave virtual AP; Assigning an IP address to the wireless client that automatically obtains an IP address by using a DHCP method; or determining whether the IP address of the wireless client that manually sets the IP address is an IP address in a preset address pool of the home gateway; For automatic acquisition of IP ground The wireless client of the address assigns an IP address; or determines that the IP address of the wireless client that manually sets the IP address is an IP address in the preset address pool of the home gateway, and the wireless client manually sets The wireless client accesses the slave virtual AP if the IP address does not conflict with the IP address of another device accessing the home gateway.
优选地,所述认证信息包括:所述家庭网关接入互联网所需的PPPoE拨号账号,以及所述主虚拟AP的预设密钥值。Preferably, the authentication information includes: a PPPoE dialing account required by the home gateway to access the Internet, and a preset key value of the primary virtual AP.
根据本发明实施例的另一个方面,还提供了一种AP接口配置恢复装置,应用于设置有主虚拟AP和从虚拟AP的家庭网关,包括:获取模块,设置为通过所述从虚拟AP获取接口配置恢复请求,其中,所述接口配置恢复请求中携带有所述主虚拟AP的认证信息;验证模块,设置为验证所述认证信息是否合法;恢复模块,设置为在所述验证模块验证到所述认证信息合法的情况下,恢复所述主虚拟AP的接口配置为预设接口配置。According to another aspect of the present invention, an AP interface configuration recovery apparatus is further provided, which is applied to a home gateway provided with a primary virtual AP and a secondary virtual AP, and includes: an obtaining module, configured to obtain by using the secondary virtual AP The interface configuration recovery request, wherein the interface configuration recovery request carries the authentication information of the primary virtual AP; the verification module is configured to verify whether the authentication information is legal; and the recovery module is configured to verify in the verification module If the authentication information is valid, the interface of the primary virtual AP is restored to a preset interface configuration.
优选地,所述获取模块包括:第一接收单元,设置为通过所述从虚拟AP接收HTTP访问请求;重定向单元,设置为将所述HTTP访问请求的访问页面重定向至预设页面;第二接收单元,设置为接收用户通过所述预设页面输入的所述接口配置恢复请求。Preferably, the obtaining module includes: a first receiving unit configured to receive an HTTP access request by the slave virtual AP; and a redirecting unit configured to redirect the access page of the HTTP access request to a preset page; And a receiving unit configured to receive the interface configuration recovery request input by the user through the preset page.
优选地,所述装置还包括:第一处理模块,设置为在所述验证模块验证到所述认证信息不合法的情况下,返回认证失败信息,并对认证失败的次数进行记录;以及在认证失败的次数超过预设值的情况下,在预设时间到达前,不再进行认证信息的合法性验证。Preferably, the device further includes: a first processing module, configured to: when the verification module verifies that the authentication information is invalid, return authentication failure information, record the number of authentication failures; and authenticate If the number of failures exceeds the preset value, the validity of the authentication information is no longer verified before the preset time arrives.
优选地,所述装置还包括:接收模块,设置为接收将发送所述接口配置恢复请求的无线客户端接入所述从虚拟AP的接入请求;第二处理模块,设置为通过DHCP方式为自动获取IP地址的所述无线客户端分配IP地址;或者判断手动设置IP地址的所述无线客户端的IP地址是否为所述家庭网关的预置地址池中的IP地址;接入模块,设置为在成功为自动获取IP地址的所述无线客户端分配IP地址;或者判断到手动设置IP地址的所述无线客户端的IP地址是所述家庭网关的预置地址池中的IP地址,且所述无线客户端手动设置的IP地址与接入所述家庭网关的其他设备的IP地址不冲突的情况下,将所述无线客户端接入所述从虚拟AP。Preferably, the device further includes: a receiving module, configured to receive an access request that the wireless client that sends the interface configuration recovery request is accessed by the virtual AP; and the second processing module is configured to The wireless client that automatically obtains the IP address assigns an IP address; or determines whether the IP address of the wireless client that manually sets the IP address is an IP address in the preset address pool of the home gateway; the access module is set to Assigning an IP address to the wireless client that successfully obtains an IP address automatically; or determining that the IP address of the wireless client that manually sets the IP address is an IP address in a preset address pool of the home gateway, and The wireless client accesses the slave virtual AP if the IP address manually set by the wireless client does not conflict with the IP address of other devices accessing the home gateway.
优选地,所述认证信息包括:所述家庭网关接入互联网所需的PPPoE拨号账号,以及所述主虚拟AP的预设密钥值。Preferably, the authentication information includes: a PPPoE dialing account required by the home gateway to access the Internet, and a preset key value of the primary virtual AP.
根据本发明实施例的另一个方面,还提供了一种家庭网关,包括:上述的AP接口配置恢复装置。According to another aspect of the embodiments of the present invention, a home gateway is further provided, including: the foregoing AP interface configuration restoring device.
通过本发明实施例,采用通过从虚拟AP获取接口配置恢复请求,其中,接口配置恢复请求中携带有主虚拟AP的认证信息;验证认证信息是否合法;在验证到认证信息合法的情况下,恢复主虚拟AP的接口配置为预设接口配置的方式,解决了相关技术中通过家庭网关的配置恢复方案对AP接口配置进行恢复导致的用户体验差的问题,提升了用户体验。According to the embodiment of the present invention, the configuration request is obtained by acquiring an interface configuration from the virtual AP, where the interface configuration recovery request carries the authentication information of the primary virtual AP; the authentication information is verified; if the authentication information is valid, the restoration is performed. The interface of the primary virtual AP is configured as a preset interface. This solves the problem of poor user experience caused by the recovery of the AP interface configuration through the configuration and recovery scheme of the home gateway in the related art, and improves the user experience.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示 意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are provided to provide a further understanding of the invention, which form a part of this application, The illustrative embodiments and the description thereof are illustrative of the invention and are not to be construed as limiting the invention. In the drawing:
图1是根据相关技术的恢复主虚拟AP配置的方法的示意图;1 is a schematic diagram of a method of restoring a primary virtual AP configuration according to the related art;
图2是根据本发明实施例的AP接口配置恢复方法的流程图;2 is a flowchart of an AP interface configuration recovery method according to an embodiment of the present invention;
图3是根据本发明实施例的AP接口配置恢复装置的结构示意图;FIG. 3 is a schematic structural diagram of an AP interface configuration restoring apparatus according to an embodiment of the present invention; FIG.
图4是根据本发明优选实施例的主虚拟AP配置恢复方法的流程示意图;4 is a schematic flowchart of a primary virtual AP configuration recovery method according to a preferred embodiment of the present invention;
图5是根据本发明优选实施例的认证页面的示意图。Figure 5 is a schematic illustration of an authentication page in accordance with a preferred embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of the invention will be set forth in the description which follows, The objectives and other advantages of the invention may be realized and obtained by means of the structure particularly pointed in the appended claims.
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is an embodiment of the invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
本发明实施例提供了一种AP接口配置恢复方法,应用于设置有主虚拟AP和从虚拟AP的家庭网关,图2是根据本发明实施例的AP接口配置恢复方法的流程图,如图2所示,该流程包括如下步骤:The embodiment of the present invention provides a method for restoring an AP interface configuration, which is applied to a home gateway with a primary virtual AP and a secondary virtual AP. FIG. 2 is a flowchart of a method for restoring an AP interface according to an embodiment of the present invention, as shown in FIG. 2 . As shown, the process includes the following steps:
步骤S202,通过从虚拟AP获取接口配置恢复请求,其中,接口配置恢复请求中携带有主虚拟AP的认证信息;Step S202: Acquire an interface configuration recovery request from the virtual AP, where the interface configuration recovery request carries the authentication information of the primary virtual AP.
步骤S204,验证认证信息是否合法;Step S204, verifying whether the authentication information is legal;
步骤S206,在验证到认证信息合法的情况下,恢复主虚拟AP的接口配置为预设接口配置。Step S206: In the case that the authentication information is valid, the interface of the primary virtual AP is restored to the preset interface configuration.
通过上述步骤,根据携带有合法的主虚拟AP的认证信息的接口配置恢复请求,对该主虚拟AP的接口配置恢复为预设接口配置,从而提供了一种AP接口配置恢复的方法。相对于相关技术中需要进行家庭网关的整机配置恢复的方式,采用该方式可以保留家庭网关的其他配置,而避免了繁琐的其他配置的配置过程。可见,通过上述步骤,解决了相关技术中通过家庭网关的配置恢复方案对AP接口配置进行恢复导致的用户体验差的问题,提升了用户体验。 The configuration of the interface of the primary virtual AP is restored to the default interface configuration by using the interface that is configured with the authentication information of the primary active AP, and the AP interface configuration recovery method is provided. Compared with the related art, the method of restoring the configuration of the home gateway is required, and the other configuration of the home gateway can be retained in this manner, and the complicated configuration process of other configurations is avoided. It can be seen that, through the foregoing steps, the problem of poor user experience caused by the recovery of the AP interface configuration by the configuration and recovery scheme of the home gateway in the related art is solved, and the user experience is improved.
优选地,家庭网关可以通过RPC方式获取接口配置恢复请求,也可以采用其他方式获取。Preferably, the home gateway can obtain an interface configuration restoration request through the RPC mode, or can be obtained in other manners.
例如,对于支持超文本传输协议(HTTP)的无线客户端而言,家庭网关可以通过从虚拟AP接收已经接入到从虚拟AP中的无线客户端发送的HTTP访问请求,其中,HTTP访问请求用于请求一个预设的页面;然后家庭网关可以通过HTTP访问请求所指示的预设的页面,获取用户输入的接口配置恢复请求。采用该方式要求用户记忆该预设的页面的页面地址,并在无线客户端接入从虚拟AP的情况下,向家庭网关发送访问该预设的页面的页面地址的HTTP访问请求。For example, for a wireless client supporting Hypertext Transfer Protocol (HTTP), the home gateway can receive an HTTP access request that has been accessed from a wireless client in the virtual AP by receiving from the virtual AP, wherein the HTTP access request is used. Requesting a preset page; then the home gateway can obtain the interface configuration recovery request input by the user through the preset page indicated by the HTTP access request. In this manner, the user is required to memorize the page address of the preset page, and in case the wireless client accesses the virtual AP, send an HTTP access request to the home gateway to access the page address of the preset page.
又例如,家庭网关还可以在收到无线客户端发送的HTTP访问请求之后,无论该HTTP访问请求中携带的访问地址是哪个页面,都强制性将HTTP访问请求的访问页面重定向至预设页面;使得用户可以在预设页面上通过文字输入或者按钮操作等实现接口配置恢复请求的生成,从而家庭网关接收用户通过预设页面输入的接口配置恢复请求。采用该方式不再需要用户记忆预设页面的页面地址,进一步提升了用户的体验。For another example, after receiving the HTTP access request sent by the wireless client, the home gateway may forcibly redirect the access page of the HTTP access request to the preset page regardless of the page of the access address carried in the HTTP access request. The user can implement the configuration of the interface configuration recovery request by using a text input or a button operation on the preset page, so that the home gateway receives the interface configuration recovery request input by the user through the preset page. In this way, the user no longer needs to memorize the page address of the preset page, which further enhances the user experience.
在此需要说明的是,在本实施例中的从虚拟AP可以是任一普通的从虚拟AP,较优的,该AP可以支持HTTP协议。为了充分利用从虚拟AP根据业务进行隔离的特点,可以采用专用的从虚拟AP来用于主虚拟AP的接口配置恢复。例如,该专用的从虚拟AP是开放的AP,对于任意的无线设备而言,只要其IP地址分配满足要求,都可以接入该专用的从虚拟AP。从虚拟AP可以设置公用的密钥,甚至可以没有密钥验证而直接接入。另外,为了保障接入该装用的从虚拟AP的无线设备的安全性,可以设置接入专用的从虚拟AP的无线设备之间不能相互访问。It should be noted that the slave virtual AP in this embodiment may be any ordinary slave virtual AP. Preferably, the AP can support the HTTP protocol. In order to fully utilize the feature of isolation from the virtual AP according to the service, a dedicated slave AP can be used for interface configuration recovery of the primary virtual AP. For example, the dedicated slave virtual AP is an open AP, and any dedicated wireless device can access the dedicated slave virtual AP as long as its IP address assignment meets the requirements. A public key can be set from the virtual AP, and can be directly accessed without key authentication. In addition, in order to ensure the security of accessing the installed wireless device from the virtual AP, the wireless devices of the access-dedicated slave virtual APs may be set to be mutually inaccessible.
优选地,在验证到认证信息不合法的情况下,家庭网关可以通过从虚拟AP返回认证失败信息,并对一定的时间段内认证失败的次数进行记录;在这一定的时间段内认证失败的次数超过预设值的情况下,可以启动一个定时器,在预设时间到达前(即定时器超时前),不再进行认证信息的合法性验证。不进行合法性验证的方式包括:关闭获取接口配置恢复请求的相关接口/界面,或者,直接丢弃在预设时间到达前所接收到得接口配置恢复请求。Preferably, in the case that the authentication information is invalid, the home gateway may return the authentication failure information from the virtual AP, and record the number of authentication failures in a certain period of time; the authentication fails in the certain period of time. If the number of times exceeds the preset value, a timer can be started. Before the preset time arrives (that is, before the timer expires), the validity of the authentication information is no longer verified. The method of verifying the validity of the interface configuration includes: closing the relevant interface/interface for obtaining the interface configuration recovery request, or directly discarding the interface configuration recovery request received before the preset time arrives.
优选地,在本实施例中还提供了无线客户端接入从虚拟AP的一种方式,例如,家庭网关接收将发送接口配置恢复请求的无线客户端接入从虚拟AP的接入请求;通过动态主机配置协议(DHCP)方式为自动获取IP地址的无线客户端分配IP地址;在成功为自动获取IP地址的无线客户端分配IP地址的情况下,将无限客户端接入从虚拟AP。或者,家庭网关接收将发送接口配置恢复请求的无线客户端接入从虚拟AP的接入请求;判断手动设置IP地址的无线客户端的IP地址是否为家庭网关的预置地址池中的IP地址;在判断到手动设置IP地址的无线客户端的IP地址是家庭网关的预置地址池中的IP地址,且无线客户端手动设置的IP地址与接入家庭网关的其他设备的IP地址不冲突的情况下,将无线客户端接入从虚拟AP。Preferably, in this embodiment, a method for the wireless client to access the slave virtual AP is further provided, for example, the home gateway receives the access request of the wireless client that sends the interface configuration recovery request to access the virtual AP; The Dynamic Host Configuration Protocol (DHCP) mode assigns an IP address to a wireless client that automatically obtains an IP address. If an IP address is successfully assigned to a wireless client that automatically obtains an IP address, the unlimited client is accessed from the virtual AP. Alternatively, the home gateway receives the access request of the wireless client that sends the interface configuration recovery request to access the virtual AP; and determines whether the IP address of the wireless client that manually sets the IP address is the IP address in the preset address pool of the home gateway; The IP address of the wireless client that determines that the IP address is manually set is the IP address in the preset address pool of the home gateway, and the IP address manually set by the wireless client does not conflict with the IP address of other devices accessing the home gateway. Next, the wireless client is accessed from the virtual AP.
优选地,上述的认证信息包括:家庭网关接入互联网所需的以太网点到点协议(PPPoE)拨号账号,以及主虚拟AP的预设密钥值。其中,主虚拟AP的预设密钥值一般可以从家庭网 关的外壳上获得。Preferably, the foregoing authentication information includes: an Ethernet Point-to-Point Protocol (PPPoE) dialing account required for the home gateway to access the Internet, and a preset key value of the primary virtual AP. The default key value of the primary virtual AP can generally be obtained from the home network. Obtained on the closed casing.
在本实施例中还提供了一种AP接口配置恢复装置,应用于设置有主虚拟AP和从虚拟AP的家庭网关,用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述,下面对该装置中涉及到的模块进行说明。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, an AP interface configuration and recovery device is also provided, which is applied to a home gateway that is configured with a primary virtual AP and a secondary virtual AP, and is used to implement the foregoing embodiments and preferred embodiments. The module involved in the device will be described below. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图3是根据本发明实施例的AP接口配置恢复装置的结构示意图,如图3所示,该装置包括:获取模块32、验证模块34和恢复模块36,其中,获取模块32,设置为通过从虚拟AP获取接口配置恢复请求,其中,接口配置恢复请求中携带有主虚拟AP的认证信息;验证模块34,耦合至获取模块32,设置为验证认证信息是否合法;恢复模块36,耦合至验证模块34,设置为在验证模块34验证到认证信息合法的情况下,恢复主虚拟AP的接口配置为预设接口配置。FIG. 3 is a schematic structural diagram of an AP interface configuration restoring apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes: an obtaining module 32, a verifying module 34, and a restoring module 36, wherein the obtaining module 32 is configured to pass The virtual AP obtains the interface configuration recovery request, where the interface configuration recovery request carries the authentication information of the primary virtual AP; the verification module 34 is coupled to the obtaining module 32, and is configured to verify whether the authentication information is legal; the recovery module 36 is coupled to the verification module. 34. The interface configured to restore the primary virtual AP is configured as a preset interface configuration when the verification module 34 verifies that the authentication information is valid.
优选地,获取模块22包括:第一接收单元,设置为通过从虚拟AP接收HTTP访问请求;重定向单元,耦合至第一接收单元,设置为将HTTP访问请求的访问页面重定向至预设页面;第二接收单元,设置为接收用户通过预设页面输入的接口配置恢复请求。Preferably, the obtaining module 22 comprises: a first receiving unit configured to receive an HTTP access request from the virtual AP; a redirecting unit coupled to the first receiving unit, configured to redirect the access page of the HTTP access request to the preset page The second receiving unit is configured to receive an interface configuration recovery request input by the user through the preset page.
优选地,装置还包括:第一处理模块,耦合至验证模块34,设置为在验证模块34验证到认证信息不合法的情况下,返回认证失败信息,并对认证失败的次数进行记录;以及在认证失败的次数超过预设值的情况下,在预设时间到达前,不再进行认证信息的合法性验证。Preferably, the apparatus further includes: a first processing module coupled to the verification module 34, configured to return the authentication failure information and record the number of authentication failures if the verification module 34 verifies that the authentication information is invalid; and If the number of authentication failures exceeds the preset value, the validity of the authentication information is no longer verified before the preset time is reached.
优选地,装置还包括:接收模块,设置为接收将发送接口配置恢复请求的无线客户端接入从虚拟AP的接入请求;第二处理模块,耦合至接收模块,设置为通过DHCP方式为自动获取IP地址的无线客户端分配IP地址;或者判断手动设置IP地址的无线客户端的IP地址是否为家庭网关的预置地址池中的IP地址;接入模块,耦合至第二处理模块,设置为在成功为自动获取IP地址的无线客户端分配IP地址;或者判断到手动设置IP地址的无线客户端的IP地址是家庭网关的预置地址池中的IP地址,且无线客户端手动设置的IP地址与接入家庭网关的其他设备的IP地址不冲突的情况下,将无线客户端接入从虚拟AP。Preferably, the device further includes: a receiving module, configured to receive an access request of the wireless client that sends the interface configuration recovery request to access the virtual AP; the second processing module is coupled to the receiving module, and is configured to be automatically The wireless client that obtains the IP address assigns an IP address; or determines whether the IP address of the wireless client that manually sets the IP address is an IP address in the preset address pool of the home gateway; the access module is coupled to the second processing module, and is set to Assign an IP address to the wireless client that successfully obtains the IP address automatically; or determine that the IP address of the wireless client that manually sets the IP address is the IP address in the preset address pool of the home gateway, and the IP address manually set by the wireless client The wireless client is accessed from the virtual AP if the IP address of the other device accessing the home gateway does not conflict.
优选地,上述的认证信息包括:家庭网关接入互联网所需的PPPoE拨号账号,以及主虚拟AP的预设密钥值。Preferably, the foregoing authentication information includes: a PPPoE dialing account required for the home gateway to access the Internet, and a preset key value of the primary virtual AP.
本实施例还提供了一种家庭网关,包括:上述的AP接口配置恢复装置。The embodiment further provides a home gateway, including: the foregoing AP interface configuration restoring device.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
为了使本发明实施例的描述更加清楚,下面结合优选实施例进行描述和说明。In order to make the description of the embodiments of the present invention more clear, the following description and description are given in conjunction with the preferred embodiments.
本优选实施例提供了一种家庭网关AP接口配置恢复的方法,以克服现有技术中存在的 不能定向恢复某个特定虚拟AP配置的问题。在本优选实施例中提供了一种利用从虚拟AP作为接入点,来实现对主虚拟AP进行配置恢复的方法。The preferred embodiment provides a method for recovering a home gateway AP interface configuration to overcome the existing technology. It is not possible to redirect the issue of a particular virtual AP configuration. In the preferred embodiment, a method for implementing configuration recovery of a primary virtual AP by using a virtual AP as an access point is provided.
本优选实施例提供的利用从虚拟AP来恢复主虚拟AP的方法,包括如下步骤:The method for recovering a primary virtual AP from a virtual AP provided by the preferred embodiment includes the following steps:
步骤1,家庭网关的物理AP接口除默认开启主虚拟AP外,至少需要开启一个从虚拟AP。从虚拟AP作为开放的接入点,不配置加密,任何无线客户端均可以关联从虚拟AP;Step 1: The physical AP interface of the home gateway needs to open at least one slave virtual AP in addition to the primary virtual AP. From the virtual AP as an open access point, no encryption is configured, and any wireless client can associate with the virtual AP;
步骤2,无线客户端关联从虚拟AP,并进行HTTP业务访问时,家庭网关将HTTP访问页面重定向到家庭网关(预置的固定页面上,此页面包含将主虚拟AP恢复出厂状态必须的认证信息输入框及动作执行按钮;Step 2: When the wireless client associates with the virtual AP and performs HTTP service access, the home gateway redirects the HTTP access page to the home gateway (preset fixed page, this page contains the authentication necessary to restore the primary virtual AP to the factory state) Information input box and action execution button;
步骤3,用户在重定向页面中输入正确的认证信息并提交,家庭网关进行认证通过后可定向地将主虚拟AP恢复为出厂状态。其中,整个过程不会影响其他模块和应用,同时家庭网关不会重启;Step 3: The user enters the correct authentication information and submits the information in the redirect page. After the home gateway performs authentication, the primary virtual AP can be redirected to the factory state. The entire process does not affect other modules and applications, and the home gateway does not restart;
步骤4,家庭网关检测到错误的认证信息后,通过页面返回认证失败的信息提示,并允许用户重新进行认证;Step 4: After detecting the incorrect authentication information, the home gateway returns a message indicating that the authentication fails, and allows the user to perform the authentication again.
步骤5,家庭网关对认证失败重试的次数进行限制,认证失败次数达到上限后,会将重定向页面的认证条件输入框及恢复按钮灰化,不再允许用户进行恢复的操作,同时家庭网关规定解除限制的恢复时间。Step 5: The home gateway limits the number of times of the authentication failure retry. After the number of authentication failures reaches the upper limit, the authentication condition input box and the recovery button of the redirect page are grayed out, and the user is no longer allowed to perform the recovery operation. Set the recovery time for the release of the restriction.
优选地,在步骤1中,从虚拟AP的SSID名称已预置,并可以与主虚拟AP的名称进行对应。无线客户端在家庭网关无线覆盖范围内可搜索关联AP,同时家庭网关通过DHCP方式为无线客户端分配IP地址,如手动配置无线客户端的IP地址,则必须与家庭网关预置地址池的地址一致,否则不进行任何响应;Preferably, in step 1, the SSID name of the slave virtual AP is preset and can correspond to the name of the primary virtual AP. The wireless client can search for the associated AP in the wireless coverage of the home gateway, and the home gateway allocates an IP address to the wireless client through DHCP. For example, if the IP address of the wireless client is manually configured, the address must be the same as the address of the preset address pool of the home gateway. Otherwise, no response is made;
优选地,在步骤2中,关联从虚拟AP的无线客户端,不允许访问HTTP以外的其他业务,而且在HTTP业务访问时会被重定向到指定的页面。另外,从虚拟AP与其他LAN侧接口隔离(包括有线接口和其他虚拟AP接口)。优选地,关联此从虚拟AP的无线客户端之间也不能进行任何形式的通信。Preferably, in step 2, the wireless client associated with the virtual AP is not allowed to access other services than HTTP, and is redirected to the specified page during HTTP service access. In addition, the virtual AP is isolated from other LAN-side interfaces (including wired interfaces and other virtual AP interfaces). Preferably, any form of communication between the wireless clients associated with the slave virtual AP is also not possible.
在步骤2和步骤3中,重定向页面中的认证信息包括家庭网关接入Internet所需的PPPoE拨号账号以及主虚拟AP默认的出厂密钥值。家庭网关将认证信息存储在数据库和配置文件中,用户输入认证信息后,家庭网关会将输入值与存储的认证信息进行对比,一致则认证通过,可进一步执行恢复主虚拟AP默认配置的操作,如步骤3所述;不一致则提示错误信息,告知用户失败的原因,如步骤4所述。此处的提示信息可以在当前的认证页面中显示,也可以弹出新的提示页面,失败信息中最好明确失败的原因,以便用户准确修正输入信息。In steps 2 and 3, the authentication information in the redirect page includes the PPPoE dial-up account required for the home gateway to access the Internet and the default factory key value of the primary virtual AP. The home gateway stores the authentication information in the database and the configuration file. After the user inputs the authentication information, the home gateway compares the input value with the stored authentication information, and the authentication succeeds, and the operation of restoring the default configuration of the primary virtual AP can be further performed. As described in step 3; if not, an error message is sent to inform the user of the cause of the failure, as described in step 4. The prompt information here can be displayed on the current authentication page, or a new prompt page can be popped up. It is better to specify the reason for the failure in the failure information, so that the user can accurately correct the input information.
在步骤5中,家庭网关对认证失败的次数进行限制,家庭网关设置一个计数器及一个定时器,并可预置计数器的上限值及定时器超时时间。每次认证失败,计数器累计加一,同时判断计数器当前累计值是否达到上限值,如未达到上限值,则通过页面提示用户认证失败的 原因,并允许用户重新输入认证信息,如步骤5所述;如累计值已达到上限值,则通知用户已达最大认证次数,同时将认证信息输入框及恢复按钮灰化,并启动定时器,待定时器达到超时时间后才允许重新输入认证信息,并进行恢复的操作。In step 5, the home gateway limits the number of authentication failures, and the home gateway sets a counter and a timer, and can preset the upper limit of the counter and the timer timeout period. Each time the authentication fails, the counter is incremented by one. At the same time, it is judged whether the current accumulated value of the counter reaches the upper limit. If the upper limit is not reached, the user is prompted to fail the authentication through the page. The reason is that the user is allowed to re-enter the authentication information, as described in step 5; if the accumulated value has reached the upper limit, the user is notified that the maximum number of authentications has been reached, and the authentication information input box and the recovery button are grayed out, and the timer is started. After the timer reaches the timeout period, the authentication information is allowed to be re-entered and the recovery operation is performed.
下面结合附图对本发明优选实施例进行描述和说明。DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described and illustrated with reference to the accompanying drawings.
图4是根据本发明优选实施例的主虚拟AP配置恢复方法的流程示意图,如图4所示,该流程包括如下步骤:FIG. 4 is a schematic flowchart of a primary virtual AP configuration recovery method according to a preferred embodiment of the present invention. As shown in FIG. 4, the process includes the following steps:
首先,家庭网关检测到有无线客户端接入从虚拟AP接入点。一般该从虚拟AP为开放接入点,不配置加密,且该从虚拟AP的名称与主虚拟AP的名称具有关联性,这样当存在多个从虚拟AP时,可以进行快速区分。例如主虚拟AP名称为SSID1,则从虚拟AP的名称为SSID1-HELP。另外无线客户端安装有浏览器,支持HTTP访问功能。无线客户端接入从虚拟AP后可以自动获取家庭网关分配的私有IP地址,或者手动设置与家庭网关地址池一致的IP地址,但是无法访问HTTP以外的所有业务,也无法与其他LAN侧接口(包括有线接口和其他虚拟AP接口)进行通信,即该从虚拟AP与其他LAN侧接口进行隔离。First, the home gateway detects that there is a wireless client access from the virtual AP access point. Generally, the slave virtual AP is an open access point, and no encryption is configured, and the name of the slave virtual AP is associated with the name of the primary virtual AP, so that when there are multiple slave virtual APs, fast distinction can be performed. For example, if the primary virtual AP name is SSID1, the name of the secondary virtual AP is SSID1-HELP. In addition, the wireless client is installed with a browser and supports HTTP access. After the wireless client accesses the virtual AP, it can automatically obtain the private IP address assigned by the home gateway, or manually set the IP address that is consistent with the home gateway address pool, but cannot access all services except HTTP, and cannot interface with other LANs. Including the wired interface and other virtual AP interfaces to communicate, that is, the slave virtual AP is isolated from other LAN-side interfaces.
然后,无线客户端进行HTTP业务访问时,家庭网关不按正常流程进行业务转发,而是强制推送到一认证页面。例如无线客户端访“www.xxx.com”时,家庭网关会将访问页面强制导向到指定的认证页面。图5是根据本发明优选实施例的认证页面的示意图,如图5所示,该页面包含认证信息输入框,相关的提示信息,以及动作按钮。Then, when the wireless client performs HTTP service access, the home gateway does not forward the service according to the normal process, but forces it to be pushed to an authentication page. For example, when a wireless client visits "www.xxx.com", the home gateway will force the access page to the specified authentication page. FIG. 5 is a schematic diagram of an authentication page according to a preferred embodiment of the present invention. As shown in FIG. 5, the page includes an authentication information input box, related prompt information, and an action button.
其次,家庭网关接收用户提交的认证信息,包含家庭网关当前PPPoE连接的拨号帐号和默认的主虚拟AP的密钥。默认的主虚拟AP的密钥可在家庭网关外壳标签上获取。由于每台家庭网关的默认主虚拟AP的密钥具有唯一性,而且每个用户的PPPoE拨号帐号也具有唯一性,所以以此作为认证条件,可以充分保证信息的安全性。Secondly, the home gateway receives the authentication information submitted by the user, and includes the dialing account of the current PPPoE connection of the home gateway and the key of the default primary virtual AP. The default primary virtual AP's key is available on the Home Gateway Shell tab. Since the key of the default primary virtual AP of each home gateway is unique, and the PPPoE dialing account of each user is unique, this can be used as the authentication condition to ensure the security of the information.
紧接着,家庭网关接收到认证信息后立即启动计数器,并对比数据库和默认配置文件中存储的PPPoE拨号帐号和主虚拟AP的密钥,如果数据一致,则认证通过,并将主虚拟AP的配置恢复到出厂默认状态,同时保持其他用户配置不变,其他业务不受影响;如果数据不一致,则认证失败,并通过页面提示认证失败的原因(如PPPoE帐号错误、默认的AP密钥错误等),同时计数器加一。Then, the home gateway starts the counter immediately after receiving the authentication information, and compares the PPPoE dialing account and the key of the primary virtual AP stored in the database and the default configuration file. If the data is consistent, the authentication passes, and the configuration of the primary virtual AP is performed. If the data is inconsistent, the authentication fails, and the authentication fails (such as the PPPoE account error, the default AP key error, etc.) is restored to the factory default state. At the same time, the counter is increased by one.
最后,家庭网关对上述中的计数器数值进行判断,如果超过限制次数(如三次),则通过页面提示已超过认证限制次数,并将认证信息输入框及恢复按钮灰化,阻止用户反复操作。同时启动定时器,在定时器超时前一直保持灰化状态,定时器超时后自动解除灰化,允许用户重新输入认证信息并操作恢复按钮,即重新开始家庭网关接收用户输入的认证信息及以下的流程;如果未超过限制次数,则允许继续家庭网关接收用户输入的认证信息及以下的流程。Finally, the home gateway determines the counter value in the above. If the number of times exceeds the limit (for example, three times), the page prompts that the number of authentication limits has been exceeded, and the authentication information input box and the recovery button are grayed out to prevent the user from repeatedly operating. At the same time, the timer is started, and the gray state is maintained until the timer expires. After the timer expires, the user automatically removes the graying, allowing the user to re-enter the authentication information and operate the recovery button, that is, restarting the home gateway to receive the authentication information input by the user and the following If the number of times is not exceeded, the home gateway is allowed to continue to receive the authentication information input by the user and the following process.
综上所述,通过本发明的上述实施例和优选实施例,利用从虚拟AP来恢复主虚拟AP的配置的方式,与现有技术相比,不仅实现了定向恢复主虚拟AP的配置,而且通过页面认证 充分保证了操作的安全性,也不会引起整机重启,用户体验效果明显得到提升。In summary, with the foregoing embodiments and preferred embodiments of the present invention, the manner of restoring the configuration of the primary virtual AP from the virtual AP is utilized, and not only the configuration of the primary virtual AP is restored, but also the configuration of the primary virtual AP is restored. Pass page authentication The operation security is fully guaranteed, and the whole machine is not restarted, and the user experience is obviously improved.
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。In another embodiment, software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments.
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。In another embodiment, a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的对象在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order. It is to be understood that the objects so used are interchangeable, where appropriate, so that the embodiments of the invention described herein can be carried out in a sequence other than those illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
过本发明实施例,采用通过从虚拟AP获取接口配置恢复请求,其中,接口配置恢复请求中携带有主虚拟AP的认证信息;验证认证信息是否合法;在验证到认证信息合法的情况下,恢复主虚拟AP的接口配置为预设接口配置的方式,解决了相关技术中通过家庭网关的配置恢复方案对AP接口配置进行恢复导致的用户体验差的问题,提升了用户体验。 In the embodiment of the present invention, the interface configuration recovery request is obtained by acquiring an interface from the virtual AP, where the interface configuration recovery request carries the authentication information of the primary virtual AP; the authentication information is verified; if the authentication information is valid, the restoration is performed. The interface of the primary virtual AP is configured as a preset interface. This solves the problem of poor user experience caused by the recovery of the AP interface configuration through the configuration and recovery scheme of the home gateway in the related art, and improves the user experience.

Claims (11)

  1. 一种接入点AP接口配置恢复方法,应用于设置有主虚拟AP和从虚拟AP的家庭网关,包括:An access point AP interface configuration recovery method is applied to a home gateway configured with a primary virtual AP and a secondary virtual AP, including:
    通过所述从虚拟AP获取接口配置恢复请求,其中,所述接口配置恢复请求中携带有所述主虚拟AP的认证信息;Obtaining, by the virtual AP, an interface configuration recovery request, where the interface configuration recovery request carries the authentication information of the primary virtual AP;
    验证所述认证信息是否合法;Verify that the authentication information is legal;
    在验证到所述认证信息合法的情况下,恢复所述主虚拟AP的接口配置为预设接口配置。The interface configuration of the primary virtual AP is restored to a preset interface configuration when the authentication information is verified to be valid.
  2. 根据权利要求1所述的方法,其中,通过所述从虚拟AP获取接口配置恢复请求包括:The method of claim 1, wherein the obtaining an interface configuration recovery request by the slave virtual AP comprises:
    通过所述从虚拟AP接收HTTP访问请求;Receiving an HTTP access request by the slave virtual AP;
    将所述HTTP访问请求的访问页面重定向至预设页面;Redirecting the access page of the HTTP access request to a preset page;
    接收用户通过所述预设页面输入的所述接口配置恢复请求。Receiving the interface configuration recovery request input by the user through the preset page.
  3. 根据权利要求1所述的方法,其中,在验证到所述认证信息不合法的情况下,所述方法还包括:The method of claim 1, wherein, in the case of verifying that the authentication information is not legal, the method further comprises:
    返回认证失败信息,并对认证失败的次数进行记录;Returns the authentication failure information and records the number of authentication failures;
    在认证失败的次数超过预设值的情况下,在预设时间到达前,不再进行认证信息的合法性验证。If the number of authentication failures exceeds the preset value, the validity of the authentication information is no longer verified before the preset time arrives.
  4. 根据权利要求1所述的方法,其中,在通过所述从虚拟AP获取所述接口配置恢复请求之前,所述方法还包括:The method of claim 1, wherein the method further comprises: before acquiring the interface configuration recovery request by the slave virtual AP, the method further comprising:
    接收将发送所述接口配置恢复请求的无线客户端接入所述从虚拟AP的接入请求;Receiving, by the wireless client that sends the interface configuration recovery request, an access request of the slave virtual AP;
    通过DHCP方式为自动获取IP地址的所述无线客户端分配IP地址;或者判断手动设置IP地址的所述无线客户端的IP地址是否为所述家庭网关的预置地址池中的IP地址;Assigning, by the DHCP method, the IP address of the wireless client that automatically obtains the IP address; or determining whether the IP address of the wireless client that manually sets the IP address is an IP address in the preset address pool of the home gateway;
    在成功为自动获取IP地址的所述无线客户端分配IP地址;或者判断到手动设置IP地址的所述无线客户端的IP地址是所述家庭网关的预置地址池中的IP地址,且所述无线客户端手动设置的IP地址与接入所述家庭网关的其他设备的IP地址不冲突的情况下,将所述无线客户端接入所述从虚拟AP。Assigning an IP address to the wireless client that successfully obtains an IP address automatically; or determining that the IP address of the wireless client that manually sets the IP address is an IP address in a preset address pool of the home gateway, and The wireless client accesses the slave virtual AP if the IP address manually set by the wireless client does not conflict with the IP address of other devices accessing the home gateway.
  5. 根据权利要求1至4中任一项所述的方法,其中,所述认证信息包括:所述家庭网关接入互联网所需的PPPoE拨号账号,以及所述主虚拟AP的预设密钥值。The method according to any one of claims 1 to 4, wherein the authentication information comprises: a PPPoE dialing account required by the home gateway to access the Internet, and a preset key value of the primary virtual AP.
  6. 一种接入点AP接口配置恢复装置,应用于设置有主虚拟AP和从虚拟AP的家庭网关,包括:An access point AP interface configuration and recovery device is applied to a home gateway provided with a primary virtual AP and a secondary virtual AP, including:
    获取模块,设置为通过所述从虚拟AP获取接口配置恢复请求,其中,所述接口配置 恢复请求中携带有所述主虚拟AP的认证信息;Obtaining a module, configured to acquire an interface configuration recovery request by using the slave virtual AP, where the interface configuration The authentication request carries the authentication information of the primary virtual AP.
    验证模块,设置为验证所述认证信息是否合法;a verification module, configured to verify whether the authentication information is legal;
    恢复模块,设置为在所述验证模块验证到所述认证信息合法的情况下,恢复所述主虚拟AP的接口配置为预设接口配置。And the recovery module is configured to restore the interface configuration of the primary virtual AP to a preset interface configuration if the verification module verifies that the authentication information is valid.
  7. 根据权利要求6所述的装置,其中,所述获取模块包括:The apparatus of claim 6, wherein the obtaining module comprises:
    第一接收单元,设置为通过所述从虚拟AP接收HTTP访问请求;a first receiving unit, configured to receive an HTTP access request by using the slave virtual AP;
    重定向单元,设置为将所述HTTP访问请求的访问页面重定向至预设页面;a redirecting unit, configured to redirect the access page of the HTTP access request to a preset page;
    第二接收单元,设置为接收用户通过所述预设页面输入的所述接口配置恢复请求。The second receiving unit is configured to receive the interface configuration recovery request input by the user through the preset page.
  8. 根据权利要求6所述的装置,其中,所述装置还包括:The apparatus of claim 6 wherein said apparatus further comprises:
    第一处理模块,设置为在所述验证模块验证到所述认证信息不合法的情况下,返回认证失败信息,并对认证失败的次数进行记录;以及在认证失败的次数超过预设值的情况下,在预设时间到达前,不再进行认证信息的合法性验证。a first processing module, configured to: when the verification module verifies that the authentication information is invalid, return an authentication failure information, and record the number of times the authentication fails; and if the number of authentication failures exceeds a preset value Next, the legality verification of the authentication information is no longer performed before the preset time arrives.
  9. 根据权利要求6所述的装置,其中,所述装置还包括:The apparatus of claim 6 wherein said apparatus further comprises:
    接收模块,设置为接收将发送所述接口配置恢复请求的无线客户端接入所述从虚拟AP的接入请求;a receiving module, configured to receive, by the wireless client that sends the interface configuration recovery request, an access request of the slave virtual AP;
    第二处理模块,设置为通过DHCP方式为自动获取IP地址的所述无线客户端分配IP地址;或者判断手动设置IP地址的所述无线客户端的IP地址是否为所述家庭网关的预置地址池中的IP地址;The second processing module is configured to allocate an IP address to the wireless client that automatically obtains an IP address by using a DHCP method, or determine whether the IP address of the wireless client that manually sets the IP address is a preset address pool of the home gateway. IP address in ;
    接入模块,设置为在成功为自动获取IP地址的所述无线客户端分配IP地址;或者判断到手动设置IP地址的所述无线客户端的IP地址是所述家庭网关的预置地址池中的IP地址,且所述无线客户端手动设置的IP地址与接入所述家庭网关的其他设备的IP地址不冲突的情况下,将所述无线客户端接入所述从虚拟AP。An access module, configured to: assign an IP address to the wireless client that successfully obtains an IP address automatically; or determine that an IP address of the wireless client that manually sets an IP address is in a preset address pool of the home gateway. The wireless client accesses the slave virtual AP if the IP address manually set by the wireless client does not conflict with the IP address of another device accessing the home gateway.
  10. 根据权利要求6至9中任一项所述的装置,其中,所述认证信息包括:所述家庭网关接入互联网所需的PPPoE拨号账号,以及所述主虚拟AP的预设密钥值。The device according to any one of claims 6 to 9, wherein the authentication information comprises: a PPPoE dialing account required by the home gateway to access the Internet, and a preset key value of the primary virtual AP.
  11. 一种家庭网关,包括:如权利要求6至10中任一项所述的接入点AP接口配置恢复装置。 A home gateway comprising: the access point AP interface configuration restoring device according to any one of claims 6 to 10.
PCT/CN2016/075814 2015-06-01 2016-03-07 Method and device for restoring interface configuration of access point, and home gate way WO2016192427A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510293492.2A CN106301847B (en) 2015-06-01 2015-06-01 Access point interface configuration recovery method and device and home gateway
CN201510293492.2 2015-06-01

Publications (1)

Publication Number Publication Date
WO2016192427A1 true WO2016192427A1 (en) 2016-12-08

Family

ID=57440103

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/075814 WO2016192427A1 (en) 2015-06-01 2016-03-07 Method and device for restoring interface configuration of access point, and home gate way

Country Status (2)

Country Link
CN (1) CN106301847B (en)
WO (1) WO2016192427A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451484A (en) * 2019-01-03 2019-03-08 中国联合网络通信集团有限公司 A kind of APN method of automatic configuration and system
CN110301125A (en) * 2016-12-22 2019-10-01 Nicira股份有限公司 The logic port of virtual machine authenticates
CN113965444A (en) * 2020-07-01 2022-01-21 中国联合网络通信集团有限公司 Remote recovery method and device for home gateway

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107612711B (en) * 2017-08-15 2020-12-25 何雄英 Method and system for guiding connection of wireless equipment to be configured based on Chinese SSID
CN108012308B (en) * 2017-11-27 2020-03-17 Oppo广东移动通信有限公司 Network connection method, mobile terminal and computer readable storage medium
CN110233746B (en) * 2019-06-19 2021-05-14 烽火通信科技股份有限公司 Home networking method and home networking AP

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820403A (en) * 2010-05-12 2010-09-01 中兴通讯股份有限公司 Home gateway and application method thereof
US20130343304A1 (en) * 2012-06-22 2013-12-26 Futurewei Technologies, Inc. System and Method for Configuring Multiple IP Connections
CN103619032A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Wireless routing equipment optimizing method and device
CN103716911A (en) * 2014-01-02 2014-04-09 福建星网锐捷通讯股份有限公司 Method, device and system for configuring wireless terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820403A (en) * 2010-05-12 2010-09-01 中兴通讯股份有限公司 Home gateway and application method thereof
US20130343304A1 (en) * 2012-06-22 2013-12-26 Futurewei Technologies, Inc. System and Method for Configuring Multiple IP Connections
CN103619032A (en) * 2013-11-22 2014-03-05 北京奇虎科技有限公司 Wireless routing equipment optimizing method and device
CN103716911A (en) * 2014-01-02 2014-04-09 福建星网锐捷通讯股份有限公司 Method, device and system for configuring wireless terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110301125A (en) * 2016-12-22 2019-10-01 Nicira股份有限公司 The logic port of virtual machine authenticates
CN109451484A (en) * 2019-01-03 2019-03-08 中国联合网络通信集团有限公司 A kind of APN method of automatic configuration and system
CN113965444A (en) * 2020-07-01 2022-01-21 中国联合网络通信集团有限公司 Remote recovery method and device for home gateway

Also Published As

Publication number Publication date
CN106301847B (en) 2020-01-17
CN106301847A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
WO2016192427A1 (en) Method and device for restoring interface configuration of access point, and home gate way
TWI274491B (en) Network interconnection apparatus, network interconnection method, name resolution apparatus and computer program
US10491583B2 (en) Provisioning remote access points
US8447843B2 (en) System, method and computer program product for identifying, configuring and accessing a device on a network
KR101019974B1 (en) Apparatus authentication device, apparatus authentication method, information processing device, information processing method, and a computer-readable medium
US9549318B2 (en) System and method for delayed device registration on a network
WO2017148308A1 (en) Method, apparatus and system for accessing network by internet-of-things device
JP4592342B2 (en) COMMUNICATION DEVICE AND COMMUNICATION DEVICE SETTING METHOD
US20140281478A1 (en) Configuring secure wireless networks
US20080134315A1 (en) Gateway, Network Configuration, And Method For Conrtolling Access To Web Server
WO2017215492A1 (en) Device detection method and apparatus
WO2004105333A1 (en) Safe virtual private network
WO2017008047A1 (en) Authentication method, apparatus, and system
CN109218115B (en) Customer Premise Equipment (CPE) management method, device and system
TW201127098A (en) User-based authentication for realtime communications
WO2014110984A1 (en) Authentication method and apparatus for accessing network by user terminal
WO2009079895A1 (en) Method for allocating a secondary ip address based on dhcp access authentication
WO2010000157A1 (en) Configuration method, device and system for access device
WO2018095200A1 (en) Method and device for managing user equipment
WO2015184853A1 (en) Authentication method and apparatus for ipv6 stateless auto-configuration
JP2009123207A (en) Method and device for accessing network
CN111492358B (en) Device authentication
WO2016078291A1 (en) Method, apparatus and system for accessing file sharing server
JP5029994B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, ADDRESS ALLOCATION DEVICE, COMMUNICATION CONTROL METHOD, AND COMMUNICATION CONTROL PROGRAM
Cisco Configuring the System

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: 16802350

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16802350

Country of ref document: EP

Kind code of ref document: A1