CN104581747A - Network expansion method and device - Google Patents

Network expansion method and device Download PDF

Info

Publication number
CN104581747A
CN104581747A CN 201510031943 CN201510031943A CN104581747A CN 104581747 A CN104581747 A CN 104581747A CN 201510031943 CN201510031943 CN 201510031943 CN 201510031943 A CN201510031943 A CN 201510031943A CN 104581747 A CN104581747 A CN 104581747A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
router
packet
configuration information
network
module
Prior art date
Application number
CN 201510031943
Other languages
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

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATIONS NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools
    • H04W16/20Network planning tools for indoor coverage or short range network deployment

Abstract

The invention relates to a network expansion method and device. The network expansion method and device are used for a first router and used for helping a user easily and conveniently expand a network. The method includes the steps that a first message is sent to a second router, wherein the first message is used for inquiring configuration information of the second router; whether a second message sent by the second router is received or not is monitored, wherein the second message comprises the configuration information of the second router; when the second message sent by the second router is received, the first router is configured according to the second message. By the adoption of the technical scheme, the first router receives the second message containing the configuration information of the second router, the first router is configured through the configuration information, the first router does not need to be manually configured, the first router can be automatically configured, and the network expansion method and device can easily and conveniently help the user expand the network.

Description

网络扩展方法及装置 Method and apparatus for network expansion

技术领域 FIELD

[0001] 本公开涉及互联网技术领域,尤其涉及网络扩展方法及装置。 [0001] The present disclosure relates to the field of Internet technologies, and particularly to a method and apparatus for network expansion.

背景技术 Background technique

[0002] 随着无线网络的普及,现在几乎每个家庭都缺少不了无线路由器,大家在享受无线网络带来便利的同时,也发现一些问题。 [0002] With the popularity of wireless networks, and now almost every family we can not lack a wireless router, all while enjoying the convenience of a wireless network, but also found some problems. 当居室面积比较大时,往往在一些距离无线路由器较远的地方,信号强度很弱,连接网络会受到影响。 When the room size is relatively large, often in places far away from the wireless router, the signal strength is weak, connect to the network will be affected. 此时就需要在信号薄弱的地方补放无线路由器加强信号覆盖,一些无线网络扩展方法应运而生。 At this point you need to fill in weak signal places to put wireless router strengthen signal coverage, some wireless network extension methods came into being.

[0003] 相关技术中,扩展无线网络的方案有多种,比较常见的是通过网线将主路由器(Rl)的LAN 口连接到次级路由器(R2)的WAN 口。 [0003] In the related art, a variety of wireless networks extended scheme is more common to connect the main router (Rl) to the secondary port of the LAN router (R2) through the WAN port of the network cable. 此时用户在R2上设置有线中继相关配置,并创建一个与Rl相同的无线服务,达到增加覆盖区域的效果。 At this time, the user is provided on the relay R2 wired configuration, and Rl is created with the same wireless service coverage area increase the effect.

[0004] 以上方式需要单布一根网线连接次级路由器,如果环境不允许,用户还可以选择无线中继的模式,也就是在次级路由器配上需要扩展的无线网络SSID、加密方式、无线服务密钥,作为无线客户端接入主路由器,然后再创建一个与之相同的无线服务,达到增加覆盖区域的效果。 [0004] The above method requires a single distribution cable connecting the secondary router, if the environment is not allowed, the user may select a wireless relay mode, which is coupled with the need to expand the wireless network SSID, encryption mode, the wireless router in the secondary service key, the client entered as a wireless router, and then create a service with the same wireless, achieve the effect of increasing the coverage area.

发明内容 SUMMARY

[0005] 为克服相关技术中存在的问题,本公开实施例提供网络扩展方法及装置,用以帮助用户简单、快捷的扩展网络。 [0005] In order to overcome the problems in the related art, embodiments of the present disclosure provide method and apparatus for network expansion, to help the user simple and rapid expansion of the network.

[0006] 根据本公开实施例的第一方面,提供一种网络扩展方法,用于第一路由器,包括: [0006] According to a first aspect of the disclosed embodiment of the present embodiment, there is provided a method of network expansion, for the first router, comprising:

[0007] 向第二路由器发送第一报文;所述第一报文用于查询第二路由器配置信息; [0007] transmitting a first packet to a second router; the first packet router configuration information for the second query;

[0008] 监测是否接收到第二路由器发送的第二报文,所述第二报文包含所述第二路由器的配置信息; [0008] The second monitor whether the received packet sent by a second router, the second message containing configuration information of the second router;

[0009] 当接收到第二路由器发送的第二报文时,根据所述第二报文配置第一路由器。 [0009] When receiving the second message sent by the second router, the first router configuration according to the second packet.

[0010] 在一个实施例中,所述根据所述第二报文配置第一路由器之前,所述方法还包括步骤: Before [0010] In one embodiment, the second configuration according to the first packet router, the method further comprising the step of:

[0011] 当接收到第二路由器发送的第二报文时,对所述第二报文进行解密。 [0011] When receiving the second message sent by the second router, the second message is decrypted.

[0012] 在一个实施例中,所述向第二路由器发送第一报文之前,所述方法还包括步骤: [0012] Before one embodiment, a first transmission packet to the second router, the method further comprising the step of:

[0013] 监测是否有WAN 口或LAN 口连接事件; [0013] or monitoring whether a WAN port LAN port connection event;

[0014] 当监测到有WAN 口或LAN 口连接事件时,执行向第二路由器发送第一报文的步骤。 [0014] When the monitored with a WAN port LAN port or connection event, a first step to the second transmitting packet router.

[0015] 在一个实施例中,所述当接收到第二路由器发送的第二报文时,根据所述第二报文配置第一路由器之后,所述方法还包括: After [0015] In one embodiment, when receiving the second message sent by the second router, the first router configuration according to the second packet, the method further comprising:

[0016] 发出提示,所述提示用于提示用户是否扩展网络; [0016] beep, prompt for prompting the user whether to extend the network;

[0017] 接收输入的确认扩展网络的操作指令; [0017] confirm extended operation instruction input received from a network;

[0018] 根据所述操作指令扩展网络。 [0018] Extended network according to the operation instruction.

[0019] 在一个实施例中,所述根据所述操作指令扩展网络,包括: [0019] In one embodiment, the extended network according to the operation instruction, comprising:

[0020] 监测WAN 口是否正常连接; [0020] Monitoring WAN port is connected normally;

[0021] 当监测到WAN 口未正常连接时,启动客户端模式接入第二路由器的无线网络服务; [0021] When the monitor is not properly connected to the WAN port, the client starts the second mode the access router of wireless network services;

[0022] 当监测到WAN 口正常连接时,启动桥接模式接入第二路由器的有线网络服务。 [0022] When a monitor is connected to the WAN interface is normal, the second access router to enable bridging mode of wired network service.

[0023] 在一个实施例中,所述启动客户端模式接入第二路由器的无线服务的同时、或者所述启动桥接模式接入第二路由器的有线服务的同时,所述方法还包括: [0023] In one embodiment, the starting mode and the client access to the second wireless service router or bridge to start the second access mode and services while a wired router, the method further comprising:

[0024] 开启接入点模式,向终端发送无线网络信号。 [0024] Open access point mode, the wireless network transmits a signal to the terminal.

[0025] 根据本公开实施例的第二方面,提供一种网络扩展方法,用于第二路由器,包括: [0025] According to a second aspect of the disclosed embodiment of the present embodiment, there is provided a method of network expansion, a second router, comprising:

[0026] 接收第一报文,所述第一报文用于查询第二路由器配置信息; [0026] receiving a first packet, the first packet router configuration information for the second query;

[0027] 收集所述配置信息; [0027] collecting the configuration information;

[0028] 将所述配置信息封装成第二报文发送给第一路由器。 [0028] The configuration information into said second packet to the first router.

[0029] 在一个实施例中,所述配置信息可包括: [0029] In one embodiment, the configuration information may include:

[0030] 第二路由器的SSID、加密类型、无线网络密码、管理员秘钥、QoS策略、黑白名单中的至少一项。 [0030] The second router's SSID, encryption type, the wireless network password, administrator keys, QoS policies, at least one of the black and white list.

[0031] 在一个实施例中,所述将所述配置信息封装成第二报文发送给第一路由器,可包括: [0031] In one embodiment, the configuration information into the second message transmitted to the first router, may include:

[0032] 将所述配置信息加密; [0032] The encryption configuration information;

[0033] 将加密后的配置信息封装成第二报文发送给第一路由器。 [0033] The configuration information of the encrypted second encapsulated packet to the first router.

[0034] 根据本公开实施例的第三方面,提供一种网络扩展装置,用于第一路由器,包括: [0034] According to a third aspect of the disclosed embodiment of the present embodiment, a network extension device, a first router, comprising:

[0035] 发送模块,用于向第二路由器发送第一报文;所述第一报文用于查询第二路由器配置信息; [0035] The sending module, configured to send a first message to the second router; the first packet router configuration information for the second query;

[0036] 第一监测模块,用于监测是否接收到第二路由器发送的第二报文,所述第二报文包含所述第二路由器的配置信息; [0036] a first monitoring module for monitoring whether a second message sent by the second router, the second message containing configuration information of the second router;

[0037] 配置模块,用于当接收到第二路由器发送的第二报文时,根据所述第二报文配置第一路由器。 [0037] The configuration module, configured to, when receiving a second message sent by the second router, the first router configuration according to the second packet.

[0038] 在一个实施例中,所述装置还可包括: [0038] In one embodiment, the apparatus further comprising:

[0039] 解密模块,用于当接收到第二路由器发送的第二报文时,对所述第二报文进行解tM [0039] a decryption module configured to, when receiving a second message sent by the second router, said second packet de tM

I_L| O I_L | O

[0040] 在一个实施例中,所述装置还可包括: [0040] In one embodiment, the apparatus further comprising:

[0041] 第二监测模块,用于监测是否有WAN 口或LAN 口连接事件; [0041] The second monitoring module for monitoring whether a LAN or the WAN port connection event;

[0042] 执行模块,用于当监测到有WAN 口或LAN 口连接事件时,执行向第二路由器发送第一报文的步骤。 [0042] The execution module configured to, when there is detected the WAN or LAN port connection event, performing the step of sending a first message to the second router.

[0043] 在一个实施例中,所述装置还可包括: [0043] In one embodiment, the apparatus further comprising:

[0044] 提示模块,用于发出提示,所述提示用于提示用户是否扩展网络; [0044] prompt module configured to alert the prompt to prompt the user to expand the network;

[0045] 接收模块,用于接收输入的确认扩展网络的操作指令; [0045] The receiving module configured to confirm extended operation instruction input received from a network;

[0046] 扩展模块,用于根据所述操作指令扩展网络。 [0046] The expansion module for expanding network according to the operation instruction.

[0047] 在一个实施例中,所述扩展模块,可包括: [0047] In one embodiment, the expansion module comprising:

[0048] 监测子模块,用于监测WAN 口是否正常连接; [0048] The monitoring sub-module, for monitoring the WAN connection is normal;

[0049] 第一启动子模块,用于当监测到WAN 口未正常连接时,启动客户端模式接入第二路由器的无线网络服务; [0049] The first promoter module for, when the monitored WAN port is not connected properly, the client starts the second mode the access router of wireless network services;

[0050] 第二启动子模块,用于当监测到WAN 口正常连接时,启动桥接模式接入第二路由器的有线网络服务。 [0050] The second promoter module, configured to, when the normal monitor port connected to the WAN, to enable bridging mode access router of the second wired network service.

[0051 ] 在一个实施例中,所述装置还可包括: [0051] In one embodiment, the apparatus further comprising:

[0052] 开启及发送模块,用于开启接入点模式,向终端发送无线网络信号。 [0052] Open and transmission means for opening the access point mode, the wireless network transmits a signal to the terminal.

[0053] 根据本公开实施例的第四方面,提供一种网络扩展装置,用于第二路由器,包括: [0053] According to a fourth aspect of the disclosed embodiment of the present embodiment, there is provided a network expansion device, a second router, comprising:

[0054] 接收模块,用于接收第一报文,所述第一报文用于查询第二路由器配置信息; [0054] a receiving module for receiving a first packet, the first packet router configuration information for the second query;

[0055] 收集模块,用于收集所述配置信息; [0055] The collection module, for collecting the configuration information;

[0056] 封装模块,用于将所述配置信息封装成第二报文发送给第一路由器。 [0056] The encapsulation module for encapsulating the configuration information of a second packet to the first router.

[0057] 在一个实施例中,所述封装模块,包括: [0057] In one embodiment, the package module, comprising:

[0058] 加密子模块,用于将所述配置信息加密; [0058] encryption sub-module, configured to encrypt the configuration information;

[0059] 封装子模块,用于将加密后的配置信息封装成第二报文发送给第一路由器。 [0059] The encapsulation submodule, configured to encrypt the configuration information of the second encapsulated packet to the first router.

[0060] 根据本公开实施例的第五方面,提供一种网络扩展装置,用于第一路由器,包括: [0060] According to a fifth aspect of the disclosed embodiment of the present embodiment, a network extension device, a first router, comprising:

[0061] 处理器; [0061] processor;

[0062] 用于存储处理器可执行指令的存储器; [0062] processor-executable instructions for storing a memory;

[0063] 其中,所述处理器被配置为: [0063] wherein the processor is configured to:

[0064] 向第二路由器发送第一报文;所述第一报文用于查询第二路由器配置信息; [0064] transmitting a first packet to a second router; the first packet router configuration information for the second query;

[0065] 监测是否接收到第二路由器发送的第二报文,所述第二报文包含所述第二路由器的配置信息; [0065] monitors whether the second receiving a second packet sent by the router, the second message containing configuration information of the second router;

[0066] 当接收到第二路由器发送的第二报文时,根据所述第二报文配置第一路由器。 [0066] When receiving the second message sent by the second router, the first router configuration according to the second packet.

[0067] 根据本公开实施例的第六方面,提供一种网络扩展装置,用于第二路由器,包括: [0067] According to a sixth aspect of the disclosed embodiment of the present embodiment, there is provided a network expansion device, a second router, comprising:

[0068] 处理器; [0068] processor;

[0069] 用于存储处理器可执行指令的存储器; [0069] processor-executable instructions for storing a memory;

[0070] 其中,所述处理器被配置为: [0070] wherein the processor is configured to:

[0071] 接收第一报文,所述第一报文用于查询第二路由器配置信息; [0071] receiving a first packet, the first packet router configuration information for the second query;

[0072] 收集所述配置信息; [0072] collecting the configuration information;

[0073] 将所述配置信息封装成第二报文发送给第一路由器。 [0073] The configuration information into said second packet to the first router.

[0074] 本公开的实施例提供的技术方案可以包括以下有益效果: [0074] The present embodiment provides a technical solution of the disclosure may comprise the following advantageous effects:

[0075] 本公开实施例提供的技术方案,第一路由器通过接收包含第二路由器配置信息的第二报文,并利用该配置信息配置第一路由器,从而无需手动配置第一路由器,实现了第一路由器的自动配置,简单、方便的帮助用户扩展了网络。 [0075] The embodiments of the present disclosure provide the technical solutions of the embodiments, the first router receiving a second packet comprising a second router configuration information, and using the configuration information of the first router, so that the need for manual configuration of the first router, to achieve the first a router auto-configuration, simple and convenient to help users expand the network.

[0076] 应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。 [0076] It should be understood that both the foregoing general description and the details described hereinafter are merely exemplary and explanatory and are not intended to limit the present disclosure.

附图说明 BRIEF DESCRIPTION

[0077] 此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。 [0077] The accompanying drawings, which are incorporated herein and constitute a part of this specification, illustrate embodiments consistent with the principles of the embodiments of the present disclosure, and together with the description serve to explain the present disclosure.

[0078] 图1是根据一示例性实施例示出的一种网络扩展方法的流程图。 [0078] FIG. 1 is a flowchart of a network illustrating a method for expansion according to an exemplary embodiment.

[0079] 图2是根据一示例性实施例示出的另一种网络扩展方法的流程图。 [0079] FIG 2 is a flowchart of another method of network expansion shown according to an exemplary embodiment.

[0080] 图3是根据一示例性实施例示出的再一种网络扩展方法的流程图。 [0080] FIG. 3 is a flowchart of still another method for network extension according to the illustrated exemplary embodiment.

[0081] 图4是根据一示例性实施例示出的再一种网络扩展方法的流程图。 [0081] FIG. 4 is a flowchart of still another method for network extension according to the illustrated exemplary embodiment.

[0082] 图5是根据一示例性实施例示出的再一种网络扩展方法的流程图。 [0082] FIG. 5 is a flowchart illustrating still another method for network extension according to the illustrated exemplary embodiment.

[0083] 图6是根据一示例性实施例示出的再一种网络扩展方法的流程图。 [0083] FIG. 6 is a flowchart illustrating still another method for network extension according to the illustrated exemplary embodiment.

[0084] 图7是根据一示例性实施例示出的再一种网络扩展方法的流程图。 [0084] FIG. 7 is a flowchart illustrating still another method for network extension according to the illustrated exemplary embodiment.

[0085] 图8是根据一示例性实施例示出的再一种网络扩展方法的流程图。 [0085] FIG 8 is a flowchart illustrating still another method for network extension according to the illustrated exemplary embodiment.

[0086] 图9是根据一示例性实施例示出的一种网络扩展装置的框图。 [0086] FIG. 9 is a block diagram of a network illustrating an embodiment of the extension device according to an exemplary embodiment.

[0087] 图10是根据一示例性实施例示出的另一种网络扩展装置的框图。 [0087] FIG. 10 is a block diagram of another network extension device illustrated in accordance with an exemplary embodiment.

[0088] 图11是根据一示例性实施例示出的再一种网络扩展装置的框图。 [0088] FIG. 11 is a block diagram of yet another network extension device illustrated in accordance with an exemplary embodiment.

[0089] 图12是根据一示例性实施例示出的再一种网络扩展装置的框图。 [0089] FIG. 12 is a block diagram of yet another network extension device illustrated in accordance with an exemplary embodiment.

[0090] 图13是根据一示例性实施例示出的再一种网络扩展装置的框图。 [0090] FIG. 13 is a block diagram of yet another network extension device illustrated in accordance with an exemplary embodiment.

[0091] 图14是根据一示例性实施例示出的再一种网络扩展装置的框图。 [0091] FIG. 14 is a block diagram of yet another network extension device illustrated in accordance with an exemplary embodiment.

[0092] 图15是根据一示例性实施例示出的再一种网络扩展装置的框图。 [0092] FIG. 15 is a block diagram of yet another network extension device illustrated in accordance with an exemplary embodiment.

[0093] 图16是根据一示例性实施例示出的再一种网络扩展装置的框图。 [0093] FIG. 16 is a block diagram of yet another network extension device illustrated in accordance with an exemplary embodiment.

[0094] 图17是根据一示例性实施例示出的一种适用于网络扩展装置的框图。 [0094] FIG. 17 is an exemplary embodiment illustrates a block diagram of a suitable device in network expansion.

具体实施方式 detailed description

[0095] 这里将详细地对示例性实施例进行说明,其示例表示在附图中。 [0095] The exemplary embodiments herein be described in detail embodiments of which are illustrated in the accompanying drawings. 下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。 When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. 以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。 The following exemplary embodiments described in the exemplary embodiments do not represent the disclosed embodiment consistent with all the present embodiment. 相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。 Instead, they are only in the book as detailed in the appended claims, some aspects of the present disclosure examples of apparatus and methods consistent phase.

[0096] 本公开实施例提供了网络扩展方法,该方法涉及第二路由器、第一路由器,二者相互配合完成网络扩展过程。 The disclosed embodiments [0096] The present embodiment provides a network extension method involves a second router, the first router, the two cooperating network expansion process is completed. 下面分别说明在完成网络扩展的过程中,第二路由器、第一路由器各自的操作流程。 The following illustrate the process of completing the network expansion, the second router, the first router of each operation flow.

[0097] 图1是根据一示例性实施例示出的一种网络扩展方法的流程图,用于第一路由器。 [0097] FIG. 1 is a flowchart of a network illustrating a method for expansion according to an exemplary embodiment, for the first router. 如图1所示,该方法包括以下步骤S101-S103: As shown, the method includes the steps of S101-S103:

[0098] 在步骤SlOl中,向第二路由器发送第一报文;第一报文用于查询第二路由器配置信息。 [0098] In step SlOl, the transmitting a first packet to a second router; a first packet router configuration information for the second query.

[0099] 在一个实施例中,第一路由器空配置启动,判断第一路由器的WAN 口或LAN 口是否有UP事件,当WAN 口或LAN 口有UP事件时,从UP的WAN 口或LAN 口向第二路由器发送第——ί艮to [0099] In one embodiment, the first null configuration router, the first router determines whether LAN or WAN port mouth UP event, when the WAN or LAN port event has UP, UP from the WAN port LAN port or sending the first --ί Burgundy to the second router

[0100] 在步骤S102中,监测是否接收到第二路由器发送的第二报文,第二报文包含第二路由器的配置信息。 [0100] In step S102, whether a second monitor packets sent by the second router, the second message containing configuration information of the second router.

[0101] 在一个实施例中,第二路由器接收第一报文后,收集本地配置信息,将本地配置信息封装成第二报文发送给第一路由器,本步骤中,监测是否接收到第二路由器发送的第二报文。 [0101] In one embodiment, the second router after receiving the first packet, collect local configuration information, the local configuration information into a first packet to the second router, in this step, whether the received second monitor the second message sent by the router.

[0102] 在步骤S103中,当接收到第二路由器发送的第二报文时,根据第二报文配置第一路由器。 [0102] In step S103, when receiving the second message sent by the second router, the router according to a second configuration of the first packet.

[0103] 在一个实施例中,当接收到第二路由器发送的第二报文时,由于第二报文包含第二路由器的配置信息。 [0103] In one embodiment, when receiving a second message sent by the second router, the second message containing configuration information of the second router. 空配置启动的第一路由器获得第二路由器的这些配置信息,使用这些配置信息对第一路由器进行自动配置。 The configuration information of the first router null configuration to obtain a second router using the router configuration information for a first automatic configuration.

[0104] 在一个实施例中,如图2所示,在步骤S103之前,上述方法还可包括步骤S104: [0104] In one embodiment, shown in Figure 2, before step S103, the above method may further comprise the step S104:

[0105] 在步骤S104中,当接收到第二路由器发送的第二报文时,对第二报文进行解密。 [0105] In step S104, when receiving the second message sent by the second router, a second message is decrypted.

[0106] 在一个实施例中,用预存的解密算法解析第二报文的数据,解析出第二路由器的配置信息,将该配置信息保存。 [0106] In one embodiment, the decryption algorithm for analyzing the stored second data packet, parses the configuration information of the second router, the configuration information is stored.

[0107] 在一个实施例中,如图3所示,在步骤SlOl之前,上述方法还可包括步骤S105-S106: [0107] In one embodiment, shown in Figure 3, prior to the step of the SLOL, the above-described method may further comprise the step of S105-S106:

[0108] 在步骤S105中,监测是否有WAN 口或LAN 口连接事件。 [0108] In step S105, whether a monitor or the WAN port LAN connection event.

[0109] 在步骤S106中,当监测到有WAN 口或LAN 口连接事件时,执行向第二路由器发送第一报文的步骤。 [0109] In step S106, when it is monitored with a WAN port LAN port or connection event, performing the step of sending a first message to the second router.

[0110] 在一个实施例中,如图4所示,步骤S103之后,上述方法还可包括步骤S107-S109: After [0110] In one embodiment, as shown in FIG step S103 4, the above-described method may further comprise the step of S107-S109:

[0111] 在步骤S107中,发出提示,提示用于提示用户是否扩展网络。 [0111] In step S107, a tone, prompt to prompt the user whether the extended network.

[0112] 在一个实施例中,在步骤S103中配置好第一路由器后,监测是否有用户访问web页面,当有用户访问web页面时,web页面弹框提示用户是否需要扩展当前家庭网络。 After [0112] In one embodiment, in step S103 a first router configured to monitor whether a user accesses the web page, when a user accesses the web page, the web page prompts the user whether to play the frame to extend the current home network.

[0113] 在步骤S108中,接收输入的确认扩展网络的操作指令。 [0113] In step S108, the operation instruction receiving confirmation input network expansion.

[0114] 在一个实施例中,web页面的弹框提示中有“YES”、“NO”两个选项供用户选择,当用户点击“YES”时,表示用户确认扩展网络,此时,接收输入的用户确认扩展网络的操作指令。 [0114] In one embodiment, the frame shells have a web page prompts "YES", two options "NO" for the user to select, when the user clicks "YES", indicating that the user confirm the expansion of the network, time, receiving input the user confirms the operation instruction extended network.

[0115] 在步骤S109中,根据操作指令扩展网络。 [0115] In step S109, an operation instruction extended network.

[0116] 在一个实施例中,当接收到确认扩展网络的操作指令时,对网络进行扩展。 [0116] In one embodiment, when receiving an operation instruction to confirm the expansion of the network, the network expansion.

[0117] 在一个实施例中,如图5所示,步骤S109可实施为如下步骤S501-S503: [0117] In one embodiment, as shown in FIG. 5, step S109 may be implemented as steps S501-S503:

[0118] 在步骤S501中,监测WAN 口是否正常连接。 [0118] In step S501, the monitoring WAN port is connected properly.

[0119] 在步骤S502中,当监测到WAN 口未正常连接时,启动客户端模式接入第二路由器的无线网络服务。 [0119] In step S502, when the monitor is not normally connected to the WAN port, the client starts a second access router mode wireless network services. 当WAN 口未正常连接时,第一路由器工作在无线中继状态,此状态下第一路由器启动客户端模式接入第二路由器的无线。 When not properly connected to the WAN port, the router in the first wireless relay state, this state of the first client mode access router starts a second wireless router.

[0120] 在步骤S503中,当监测到WAN 口正常连接时,启动桥接模式接入第二路由器的有线网络服务。 [0120] In step S503, when the monitor is connected to the WAN interface is normal, the second access router to enable bridging mode of wired network service. 当WAN 口正常连接时,第一路由器工作在有线中继状态,此状态下WAN 口为桥接模式。 When properly connected to the WAN port, the router in the first state the relay cable, the WAN bridge mode in this state.

[0121] 在一个实施例中,如图6所示,执行步骤S502或步骤S503的同时,上述方法还可包括步骤S504: [0121] In one embodiment, shown in Figure 6, while performing step S502 or step S503, the above-described method may further comprise the step S504:

[0122] 在步骤S504中,开启接入点模式,向终端发送无线网络信号。 [0122] In Step S504, the open access point mode, the wireless network transmits a signal to the terminal.

[0123] 在一个实施例中,在执行步骤S502或步骤S503的同时,开启接入点(AccessPoint,AP)模式,连接各种无线终端比如手机、笔记本、台式机等。 [0123] In one embodiment, while performing step S502 or step S503, opening an access point (AccessPoint, AP) mode, the wireless terminal connected to a variety of such cell phones, laptops, desktops, and the like.

[0124] 本公开实施例提供的上述方法,第一路由器通过接收包含第二路由器配置信息的第二报文,并利用该配置信息配置第一路由器,从而无需手动配置第一路由器,实现了第一路由器的自动配置,简单、方便的帮助用户扩展了网络。 According to the method provided by the [0124] embodiment of the present disclosure, the first router by receiving a second packet comprising a second router configuration information, and using the configuration information of the first router, so that the need for manual configuration of the first router, to achieve the first a router auto-configuration, simple and convenient to help users expand the network.

[0125] 图7是根据一示例性实施例示出的一种网络扩展方法的流程图,用于第二路由器。 [0125] FIG. 7 is a flowchart of a method of network extension is shown according to an exemplary embodiment, a second router. 如图7所示,该方法包括以下步骤S701-S703: 7, the method comprising the steps of S701-S703:

[0126] 在步骤S701中,接收第一报文,第一报文用于查询第二路由器配置信息。 [0126] In step S701, receiving a first packet, the first packet router configuration information for the second query.

[0127] 在一个实施例中,当有新的路由器接入网络中,想获取第二路由器的配置信息时,会向第二路由器发送第一报文,第二路由器在LAN 口接收第一报文。 When [0127] In one embodiment, when a new access router in a network, to acquire configuration information of the second router sends the first packet to the second router, a second router receives a first packet in LAN port Wen. 其中,第二路由器为主路由器,也就是家庭中已经正常工作的路由器。 Wherein the second router is the master router, router family is already working.

[0128] 在一个实施例中,上述配置信息可包括: [0128] In one embodiment, the configuration information may include:

[0129] 第二路由器的SSID、加密类型、无线网络密码、管理员秘钥、QoS策略、黑白名单中的至少一项。 [0129] The second router's SSID, encryption type, the wireless network password, administrator keys, QoS policies, at least one of the black and white list.

[0130] 在步骤S702中,收集配置信息。 [0130] In step S702, the configuration information collection.

[0131] 在一个实施例中,第二路由器接收第一报文后,收集上述本地配置信息。 [0131] In one embodiment, the second router after receiving a first packet for collecting said local configuration information. 配置信息包括但不限于以上所述配置信息。 Configuration information includes, but is not limited to the above configuration information.

[0132] 在步骤S703中,将配置信息封装成第二报文发送给第一路由器。 [0132] In step S703, the configuration information into the second packet to the first router.

[0133] 其中第一路由器为次级路由器,也就是新接入家庭网络的路由器。 [0133] wherein the first router as a secondary router, i.e. the new access router of the home network.

[0134] 在一个实施例中,如图8所示,步骤S703可实施为如下步骤S801-S802: [0134] In one embodiment, as shown in FIG. 8, step S703 may be implemented as steps S801-S802:

[0135] 在步骤S801中,将配置信息加密。 [0135] In step S801, the configuration information is encrypted.

[0136] 在一个实施例中,使用厂家预制的加密算法和参数将所有收集的本地配置信息加tM [0136] In one embodiment, the encryption algorithm used and the manufacturers of prefabricated parameters of all the local configuration information collected added tM

I_L| O I_L | O

[0137] 在步骤S802中,将加密后的配置信息封装成第二报文发送给第一路由器。 [0137] In step S802, the encrypted configuration information into a second encapsulated packet to the first router.

[0138] 在一个实施例中,将加密后的配置信息封装成第二报文,从接收第一报文的LAN口将第二报文发送给第一路由器的组播地址。 [0138] In one embodiment, the configuration information is encapsulated into a second encrypted message, the first message received from the LAN port to send the second packet to the multicast address of the first router.

[0139] 图9是根据一示例性实施例示出的一种网络扩展装置的框图,用于第一路由器,如图9所示,该网络扩展装置包括: [0139] FIG. 9 is a block diagram of an exemplary embodiment of a network extension device shown, for the first router, shown in Figure 9, the network extension device comprising:

[0140] 发送模块91,被配置为向第二路由器发送第一报文;第一报文被配置为查询第二路由器配置信息; [0140] The sending module 91, configured to transmit a first packet to a second router; a first packet is configured to query configuration information to the second router;

[0141] 第一监测模块92,被配置为监测是否接收到第二路由器发送的第二报文,第二报文包含第二路由器的配置信息; [0141] The first monitoring module 92 is configured to monitor whether a second message sent by the second router, a second router a second message comprising configuration information;

[0142] 配置模块93,被配置为当接收到第二路由器发送的第二报文时,根据第二报文配置第一路由器。 [0142] The configuration module 93, configured to, when receiving a second message sent by the second router, the router according to a second configuration of the first packet.

[0143] 在一个实施例中,如图10所示,上述装置还可包括: [0143] In one embodiment, shown in Figure 10, the apparatus further comprising:

[0144] 解密模块94,被配置为当接收到第二路由器发送的第二报文时,对第二报文进行解密。 [0144] the decryption module 94, configured to, when receiving a second message sent by the second router, a second message is decrypted.

[0145] 在一个实施例中,如图11所示,上述装置还可包括: [0145] In one embodiment, shown in Figure 11, the apparatus further comprising:

[0146] 第二监测模块95,被配置为监测是否有WAN 口或LAN 口连接事件; [0146] The second monitoring module 95 is configured to monitor whether a LAN or the WAN port connection event;

[0147] 执行模块96,被配置为当监测到有WAN 口或LAN 口连接事件时,执行向第二路由器发送第一报文的步骤。 [0147] The execution module 96, when the monitor is configured to have a step or WAN port LAN port connection event, performing a first transmission packet to the second router.

[0148] 在一个实施例中,如图12所示,上述装置还可包括: [0148] In one embodiment, shown in Figure 12, the apparatus further comprising:

[0149] 提示模块97,被配置为发出提示,提示用于提示用户是否扩展网络; [0149] prompt module 97, configured to issue a cue to prompt the user whether the extended network;

[0150] 接收模块98,被配置为接收输入的确认扩展网络的操作指令; [0150] a receiving module 98, configured to confirm the operation instruction receiving an input of an extended network;

[0151] 扩展模块99,被配置为根据操作指令扩展网络。 [0151] expansion module 99 is configured to expand the network according to the operation instruction.

[0152] 在一个实施例中,如图13所示,扩展模块99,可包括: [0152] In one embodiment, shown in Figure 13, the extension module 99, may include:

[0153] 监测子模块991,被配置为监测WAN 口是否正常连接; [0153] monitoring sub-module 991, configured to monitor the WAN connection is normal;

[0154] 第一启动子模块992,被配置为当监测到WAN 口未正常连接时,启动客户端模式接入第二路由器的无线网络服务; [0154] The first promoter module 992, configured to monitor when the port is not connected properly to the WAN, the client starts a second access router mode of wireless network services;

[0155] 第二启动子模块993,被配置为当监测到WAN 口正常连接时,启动桥接模式接入第二路由器的有线网络服务。 [0155] The second promoter module 993, configured to monitor when normally connected to the WAN port, the second access router to enable bridging mode of the wired network service.

[0156] 在一个实施例中,如图14所示,上述装置还可包括: [0156] In one embodiment, shown in Figure 14, the apparatus further comprising:

[0157] 开启及发送模块100,被配置为开启接入点模式,向终端发送无线网络信号。 [0157] opening 100 and a transmitting module, configured to turn on the access point mode, the wireless network transmits a signal to the terminal.

[0158] 图15是根据一示例性实施例示出的一种网络扩展装置的框图,用于第二路由器,如图15所示,该网络扩展装置包括: [0158] FIG. 15 is a block diagram of an exemplary embodiment of a network extension device shown, a second router, shown in Figure 15, the network expansion apparatus comprising:

[0159] 接收模块151,被配置为接收第一报文,第一报文用于查询第二路由器配置信息; [0159] a receiving module 151, configured to receive a first packet, the first packet router configuration information for the second query;

[0160] 收集模块152,被配置为收集配置信息; [0160] collection module 152, configured to collect configuration information;

[0161] 封装模块153,被配置为将配置信息封装成第二报文发送给第一路由器。 [0161] encapsulation module 153, configured to configure the information into a first packet to the second router.

[0162] 在一个实施例中,如图16所示,封装模块153,可包括: [0162] In one embodiment, shown in Figure 16, the package module 153, may include:

[0163] 加密子模块1531,被配置为将配置信息加密; [0163] encryption sub-module 1531, configured to encrypt the configuration information;

[0164] 封装子模块1532,被配置为将加密后的配置信息封装成第二报文发送给第一路由器。 [0164] encapsulation submodule 1532, configured to package configuration into a second encrypted information packet to the first router.

[0165] 本公开实施例提供的上述装置,第一路由器通过接收包含第二路由器配置信息的第二报文,并利用该配置信息配置第一路由器,从而无需手动配置第一路由器,实现了第一路由器的自动配置,简单、方便的帮助用户扩展了网络。 [0165] The present embodiment provides the above-described apparatus disclosed embodiment, the first router by receiving a second packet comprising a second router configuration information, and using the configuration information of the first router, so that the need for manual configuration of the first router, to achieve the first a router auto-configuration, simple and convenient to help users expand the network.

[0166] 图17是根据一示例性实施例示出的一种用于网络扩展装置700的框图,该装置适用于终端设备。 [0166] FIG. 17 is a block diagram illustrating an apparatus 700 for network extension according to an exemplary embodiment, the apparatus is suitable for the terminal device. 例如,装置700可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。 For example, device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, medical equipment, fitness equipment, personal digital assistant.

[0167] 参照图17,装置600可以包括以下一个或多个组件:处理组件602,存储器604,电源组件606,多媒体组件608,音频组件610,输入/输出(I/O)的接口612,传感器组件614,以及通信组件616。 [0167] Referring to Figure 17, apparatus 600 may include one or more components: a processing component 602, memory 604, power module 606, the multimedia component 608, audio components 610, input / output (I / O) interface 612, a sensor assembly 614, and a communication component 616.

[0168] 处理组件602通常控制装置600的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。 [0168] Processing component 602 generally controls the overall operation of device 600, such as a display, a telephone call, a data communication operation, camera operations and recording operations associated. 处理元件602可以包括一个或多个处理器620来执行指令,以完成上述的方法的全部或部分步骤。 Processing element 602 may include one or more processors 620 to execute instructions, to perform all or part of the steps of the method described above. 此外,处理组件602可以包括一个或多个模块,便于处理组件602和其他组件之间的交互。 Moreover, processing component 602 may include one or more modules, facilitates the interaction between the processing component 602 and other components. 例如,处理部件602可以包括多媒体模块,以方便多媒体组件608和处理组件602之间的交互。 For example, processing component 602 may include a multimedia module to facilitate interaction between the component 608 and the multimedia component 602 process.

[0169] 存储器604被配置为存储各种类型的数据以支持在设备600的操作。 [0169] The memory 604 is configured to store various types of data to support the operation of the device 600. 这些数据的示例包括用于在装置600上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。 The example of the data comprising any application instructions on the device or method of operation of a 600, contact data, phonebook data, messages, pictures, videos and the like. 存储器604可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。 The memory 604 may be implemented by any type of volatile or non-volatile storage devices, or combinations thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable Read Only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.

[0170] 电力组件606为装置600的各种组件提供电力。 [0170] Power assembly 606 provides power to the various components of device 600. 电力组件606可以包括电源管理系统,一个或多个电源,及其他与为装置600生成、管理和分配电力相关联的组件。 Power assembly 606 may include a power management system, one or more power sources, and the other is generating apparatus 600, management and distribution of components associated with the power.

[0171] 多媒体组件608包括在装置600和用户之间的提供一个输出接口的屏幕。 [0171] Display assembly 608 includes means 600 provided between a screen and the user output interface. 在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。 In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). 如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。 If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. 触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。 The touch panel includes one or more touch sensors to sense touch, a gesture on the touch panel and sliding. 触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。 The touch sensor may sense not only a touch or sliding motion of the boundary, but also detecting a sliding operation associated with the touch or pressure and duration. 在一些实施例中,多媒体组件608包括一个前置摄像头和/或后置摄像头。 In some embodiments, the multimedia component 608 includes a front camera and / or the rear camera. 当设备600处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。 When the device 600 is in operation mode, such as a shooting mode or video mode, front camera and / or the rear camera may receive an external multimedia data. 每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。 Each of the front camera and the rear camera may be a fixed optical system or a lens having a focal length and optical zoom capability.

[0172] 音频组件610被配置为输出和/或输入音频信号。 [0172] Audio component 610 is configured to output and / or input audio signal. 例如,音频组件610包括一个麦克风(MIC),当装置600处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。 For example, an audio component 610 includes a microphone (the MIC), when the device 600 is in operating mode, such as a call mode, recording mode and voice recognition mode, the microphone configured to receive an external audio signal. 所接收的音频信号可以被进一步存储在存储器604或经由通信组件616发送。 The received audio signal may be transmitted further or stored in the memory 604 via the communications component 616. 在一些实施例中,音频组件610还包括一个扬声器,用于输出音频信号。 In some embodiments, an audio component 610 further includes a speaker for outputting an audio signal.

[0173] I/O接口612为处理组件602和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。 [0173] I / O interface 612 for the assembly process between the peripheral interface module 602 and provides an interface, said peripheral interface module may be a keyboard, a click wheel, buttons and the like. 这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。 These buttons may include, but are not limited to: home button, volume button, start button and the lock button.

[0174] 传感器组件614包括一个或多个传感器,用于为装置600提供各个方面的状态评估。 [0174] The sensor assembly 614 includes one or more sensors for providing the status of various aspects of the evaluation device 600. 例如,传感器组件614可以检测到设备600的打开/关闭状态,组件的相对定位,例如组件为装置600的显示器和小键盘,传感器组件614还可以检测装置600或装置600 —个组件的位置改变,用户与装置600接触的存在或不存在,装置600方位或加速/减速和装置600的温度变化。 For example, the sensor assembly 614 may detect the device 600 of the open / close state, the relative positioning of components, such as components of apparatus 600 of a display and a keypad, the sensor assembly 614 may also be 600 means 600 or means for detecting - a change in position components of absence of user contact with the device 600 or not present, the temperature change 600 orientation or acceleration / deceleration device 600 and device. 传感器组件614可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。 The sensor assembly 614 may include a proximity sensor, configured to in the absence of any physical contact to detect the presence of nearby objects. 传感器组件614还可以包括光传感器,如CMOS或CXD图像传感器,用于在成像应用中使用。 The sensor assembly 614 may further include a light sensor, such as a CMOS image sensor or CXD, for use in imaging applications. 在一些实施例中,该传感器组件614还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 In some embodiments, the sensor assembly 614 may further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

[0175] 通信组件616被配置为便于装置600和其他设备之间有线或无线方式的通信。 [0175] Communication component 616 is configured to communicate between the device 600 and other devices facilitate wired or wireless manner. 装置600可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。 Device 600 may access the wireless network-based communications standards, such as WiFi, 2G or 3G, or combinations thereof. 在一个示例性实施例中,通信部件616经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。 In one exemplary embodiment, the communication section 616 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. 在一个示例性实施例中,通信部件616还包括近场通信(NFC)模块,以促进短程通信。 In one exemplary embodiment, the communication member 616 further includes a near field communication (NFC) module to facilitate short-range communications. 例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。 For example, the NFC module can be based on radio frequency identification (RFID) technology, infrared data association (IrDA), ultra wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0176] 在示例性实施例中,装置600可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSH))、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。 [0176] In an exemplary embodiment, the apparatus 600 may be substituted with one or more application specific integrated circuits (ASIC), a digital signal processor (DSP), digital signal processing devices (the DSH)), programmable logic devices (PLD) , field programmable gate arrays (the FPGA), a controller, a microcontroller, a microprocessor, or other electronic components to achieve, for performing the above method.

[0177] 在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器604,上述指令可由装置600的处理器820执行以完成上述方法。 [0177] In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium comprising instructions, the instructions, memory 604 includes, for example, by means of the command processor 820 to perform the above method 600. 例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。 For example, non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), CD-ROM, magnetic tapes, floppy disks, and optical data storage devices.

[0178] 一种网络扩展装置,用于第二路由器,包括: [0178] A network extension device, a second router, comprising:

[0179] 处理器; [0179] processor;

[0180] 用于存储处理器可执行指令的存储器; [0180] processor-executable instructions for storing a memory;

[0181] 其中,所述处理器被配置为: [0181] wherein the processor is configured to:

[0182] 接收第一报文,所述第一报文用于查询第二路由器配置信息; [0182] receiving a first packet, the first packet router configuration information for the second query;

[0183] 收集所述配置信息; [0183] collecting the configuration information;

[0184] 将所述配置信息封装成第二报文发送给第一路由器。 [0184] The configuration information into said second packet to the first router.

[0185] 该处理器还被配置为:第二路由器的SSID、加密类型、无线网络密码、管理员秘钥、QoS策略、黑白名单中的至少一项。 [0185] The processor is further configured to: SSID second router, encryption type, the wireless network password, administrator keys, QoS policies, at least one of the black and white list.

[0186] 该处理器还被配置为:将所述配置信息加密; [0186] The processor is further configured to: encrypt the configuration information;

[0187] 将加密后的配置信息封装成第二报文发送给第一路由器。 [0187] The configuration information of the encrypted second encapsulated packet to the first router.

[0188] 一种网络扩展装置,用于第一路由器,包括: [0188] A network extension device, a first router, comprising:

[0189] 处理器; [0189] processor;

[0190] 用于存储处理器可执行指令的存储器; [0190] processor-executable instructions for storing a memory;

[0191] 其中,所述处理器被配置为: [0191] wherein the processor is configured to:

[0192] 向第二路由器发送第一报文;所述第一报文用于查询第二路由器配置信息; [0192] transmitting a first packet to a second router; the first packet router configuration information for the second query;

[0193] 监测是否接收到第二路由器发送的第二报文,所述第二报文包含所述第二路由器的配置信息; [0193] monitors whether it has received the second message sent by the second router, the second message containing configuration information of the second router;

[0194] 当接收到第二路由器发送的第二报文时,根据所述第二报文配置第一路由器。 [0194] When receiving the second message sent by the second router, the first router configuration according to the second packet.

[0195] 该处理器还被配置为:当接收到第二路由器发送的第二报文时,对所述第二报文进行解密。 [0195] The processor is further configured to: when receiving a second message sent by the second router, the second message is decrypted.

[0196] 该处理器还被配置为:监测是否有WAN 口或LAN 口连接事件; [0196] The processor is further configured to: monitor whether a LAN or the WAN port connection event;

[0197] 当监测到有WAN 口或LAN 口连接事件时,执行向第二路由器发送第一报文的步骤。 [0197] When the monitored with a WAN port LAN port or connection event, a first step to the second transmitting packet router.

[0198] 该处理器还被配置为:发出提示,所述提示用于提示用户是否扩展网络; [0198] The processor is further configured to: alert, prompt for prompting the user whether to extend the network;

[0199] 接收输入的确认扩展网络的操作指令; [0199] order to confirm the operation of receiving an input of an extended network;

[0200] 根据所述操作指令扩展网络。 [0200] Extended network according to the operation instruction.

[0201] 该处理器还被配置为:监测WAN 口是否正常连接; [0201] The processor is further configured to: monitor connected to the WAN port is normal;

[0202] 当监测到WAN 口正常连接时,启动客户端模式接入第二路由器的无线网络服务; [0202] When a monitor is connected to the WAN interface is normal, the client starts the second mode of wireless network access service router;

[0203] 当监测到WAN 口未正常连接时,启动桥接模式接入第二路由器的有线网络服务。 [0203] When port monitoring is not normally connected to the WAN, to enable bridging mode access router of the second wired network service.

[0204] 该处理器还被配置为:开启接入点模式,向终端发送无线网络信号。 [0204] The processor is further configured to: turn on the access point mode, the wireless network transmits a signal to the terminal.

[0205] —种非临时性计算机可读存储介质,当存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种网络扩展方法,用于第二路由器,包括: [0205] - species of non-transitory computer-readable storage medium, when the storage medium is executed by a processor of the mobile terminal, enables the mobile terminal to perform a network expansion method, for the second router, comprising:

[0206] 接收第一报文,所述第一报文用于查询第二路由器配置信息; [0206] receiving a first packet, the first packet router configuration information for the second query;

[0207] 收集所述配置信息; [0207] collecting the configuration information;

[0208] 将所述配置信息封装成第二报文发送给第一路由器。 [0208] The configuration information into said second packet to the first router.

[0209] 在一个实施例中,所述配置信息可包括: [0209] In one embodiment, the configuration information may include:

[0210] 第二路由器的SSID、加密类型、无线网络密码、管理员秘钥、QoS策略、黑白名单中的至少一项。 [0210] The second router's SSID, encryption type, the wireless network password, administrator keys, QoS policies, at least one of the black and white list.

[0211] 在一个实施例中,所述将所述配置信息封装成第二报文发送给第一路由器,可包括: [0211] In one embodiment, the configuration information into the second message transmitted to the first router, may include:

[0212] 将所述配置信息加密; [0212] The encryption configuration information;

[0213] 将加密后的配置信息封装成第二报文发送给第一路由器。 [0213] The configuration information of the encrypted second encapsulated packet to the first router.

[0214] 一种非临时性计算机可读存储介质,当存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种网络扩展方法,用于第一路由器,包括: [0214] A non-transitory computer-readable storage medium, when the storage medium is executed by a processor of the mobile terminal, enables the mobile terminal to perform a network expansion method, for the first router, comprising:

[0215] 向第二路由器发送第一报文;所述第一报文用于查询第二路由器配置信息; [0215] transmitting a first packet to a second router; the first packet router configuration information for the second query;

[0216] 监测是否接收到第二路由器发送的第二报文,所述第二报文包含所述第二路由器的配置信息; [0216] monitors whether it has received the second message sent by the second router, the second message containing configuration information of the second router;

[0217] 当接收到第二路由器发送的第二报文时,根据所述第二报文配置第一路由器。 [0217] When receiving the second message sent by the second router, the first router configuration according to the second packet.

[0218] 在一个实施例中,所述根据所述第二报文配置第一路由器之前,所述方法还包括步骤: Before [0218] In one embodiment, the second configuration according to the first packet router, the method further comprising the step of:

[0219] 当接收到第二路由器发送的第二报文时,对所述第二报文进行解密。 [0219] When receiving the second message sent by the second router, the second message is decrypted.

[0220] 在一个实施例中,所述向第二路由器发送第一报文之前,所述方法还包括步骤: [0220] Before one embodiment, a first transmission packet to the second router, the method further comprising the step of:

[0221] 监测是否有WAN 口或LAN 口连接事件; [0221] or monitoring whether a WAN port LAN port connection event;

[0222] 当监测到有WAN 口或LAN 口连接事件时,执行向第二路由器发送第一报文的步骤。 [0222] When the monitored with a WAN port LAN port or connection event, a first step to the second transmitting packet router.

[0223] 在一个实施例中,所述当接收到第二路由器发送的第二报文时,根据所述第二报文配置第一路由器之后,所述方法还包括: After [0223] In one embodiment, when receiving the second message sent by the second router, the first router configuration according to the second packet, the method further comprising:

[0224] 发出提示,所述提示用于提示用户是否扩展网络; [0224] beep, prompt for prompting the user whether to extend the network;

[0225] 接收输入的确认扩展网络的操作指令; [0225] order to confirm the operation of receiving an input of an extended network;

[0226] 根据所述操作指令扩展网络。 [0226] Extended network according to the operation instruction.

[0227] 在一个实施例中,所述根据所述操作指令扩展网络,包括: [0227] In one embodiment, the extended network according to the operation instruction, comprising:

[0228] 监测WAN 口是否正常连接; [0228] Monitoring WAN port is connected normally;

[0229] 当监测到WAN 口正常连接时,启动客户端模式接入第二路由器的无线网络服务; [0229] When a monitor is connected to the WAN interface is normal, the client starts a second access router mode of wireless network services;

[0230] 当监测到WAN 口未正常连接时,启动桥接模式接入第二路由器的有线网络服务。 [0230] When port monitoring is not normally connected to the WAN, to enable bridging mode access router of the second wired network service.

[0231] 在一个实施例中,所述启动客户端模式接入第二路由器的无线服务的同时、或者所述启动桥接模式接入第二路由器的有线服务的同时,所述方法还包括: [0231] In one embodiment, the starting mode and the client access to the second wireless service router or bridge to start the second access mode and services while a wired router, the method further comprising:

[0232] 开启接入点模式,向终端发送无线网络信号。 [0232] Open access point mode, the wireless network transmits a signal to the terminal.

[0233] 本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。 [0233] Those skilled in the art upon consideration of the specification and practice of the disclosure disclosed herein, will readily appreciate other embodiments of the present disclosure. 本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。 This application is intended to cover any variations, uses, or adaptations of the present disclosure, these variations, uses, or adaptations following the general principles of the present disclosure and include the common general knowledge in the art of the present disclosure is not disclosed in the conventional techniques or . 说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。 The specification and examples be considered as exemplary only, the true scope and spirit of the present disclosure being indicated by the following claims.

[0234] 应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。 [0234] It should be understood that the present disclosure is not limited to the above has been described and illustrated in the drawings precise structure, and may be departing from its scope various modifications and changes do not. 本公开的范围仅由所附的权利要求来限制。 The scope of the present disclosure is limited only by the appended claims.

Claims (19)

  1. 1.一种网络扩展方法,用于第一路由器,其特征在于,包括: 向第二路由器发送第一报文;所述第一报文用于查询第二路由器配置信息; 监测是否接收到第二路由器发送的第二报文,所述第二报文包含所述第二路由器的配置信息; 当接收到第二路由器发送的第二报文时,根据所述第二报文配置第一路由器。 CLAIMS 1. A method for network expansion, for the first router, characterized by comprising: transmitting a first packet to the second router; the first packet router configuration information for the second query; monitoring whether the received first two second message sent by the router, the second message containing configuration information of the second router; when receiving the second message sent by the second router, the first router configuration according to the second packet .
  2. 2.如权利要求1所述的方法,其特征在于,所述根据所述第二报文配置第一路由器之前,所述方法还包括步骤: 当接收到第二路由器发送的第二报文时,对所述第二报文进行解密。 When receiving the second message sent by the second router: 2. The method according to claim 1, wherein said packet before said second configuration according to the first router, the method further comprises the step of , the second packet is decrypted.
  3. 3.如权利要求1所述的方法,其特征在于,所述向第二路由器发送第一报文之前,所述方法还包括步骤: 监测是否有WAN 口或LAN 口连接事件; 当监测到有WAN 口或LAN 口连接事件时,执行向第二路由器发送第一报文的步骤。 3. The method according to claim 1, wherein the second router prior to sending the first message, said method further comprising the step of: monitoring whether there is the WAN or LAN port connection event; when there is monitored WAN port LAN port or connection event, a first step the transmission packet to the second router.
  4. 4.如权利要求1所述的方法,其特征在于,所述当接收到第二路由器发送的第二报文时,根据所述第二报文配置第一路由器之后,所述方法还包括: 发出提示,所述提示用于提示用户是否扩展网络; 接收输入的确认扩展网络的操作指令; 根据所述操作指令扩展网络。 4. The method according to claim 1, wherein, when receiving the second message sent by the second router, after the second packet according to the configuration of the first router, the method further comprising: alert, prompt for prompting the user whether to extend the network; confirm extended operation instruction input received from a network; extended network according to the operation instruction.
  5. 5.如权利要求4所述的方法,其特征在于,所述根据所述操作指令扩展网络,包括: 监测WAN 口是否正常连接; 当监测到WAN 口未正常连接时,启动客户端模式接入第二路由器的无线网络服务; 当监测到WAN 口正常连接时,启动桥接模式接入第二路由器的有线网络服务。 5. The method according to claim 4, wherein said extended operation instruction in accordance with the network, comprising: monitoring whether WAN connection is normal; when port monitoring is not normally connected to the WAN, the client starts the access mode second router wireless network services; WAN port when it is monitored properly connected, the second access router to enable bridging mode of the wired network service.
  6. 6.如权利要求5所述的方法,其特征在于,所述启动客户端模式接入第二路由器的无线服务的同时、或者所述启动桥接模式接入第二路由器的有线服务的同时,所述方法还包括: 开启接入点模式,向终端发送无线网络信号。 While at the same time The method according to claim 5, wherein said initiating wireless client mode service access to the second router or bridge to start the second access router mode wired services, the said method further comprising: opening an access point mode, the wireless network transmits a signal to the terminal.
  7. 7.—种网络扩展方法,用于第二路由器,其特征在于,包括: 接收第一报文,所述第一报文用于查询第二路由器配置信息; 收集所述配置信息; 将所述配置信息封装成第二报文发送给第一路由器。 7.- kinds of network expansion method, a second router, characterized by comprising: receiving a first packet, the first packet router configuration information for the second query; collecting the configuration information; the configuration information into the second packet to the first router.
  8. 8.如权利要求7所述的方法,其特征在于,所述配置信息包括: 第二路由器的SSID、加密类型、无线网络密码、管理员秘钥、QoS策略、黑白名单中的至少一项。 8. The method according to claim 7, wherein the configuration information comprises: at least one second router SSID, encryption type, wireless network password, secret key administrator, QoS policy, in white and black lists.
  9. 9.如权利要求7所述的方法,其特征在于,所述将所述配置信息封装成第二报文发送给第一路由器,包括: 将所述配置信息加密; 将加密后的配置信息封装成第二报文发送给第一路由器。 9. The method according to claim 7, wherein said configuration information into said second packet to the first router, comprising: encrypting the configuration information; configuration after packaging the encrypted information a second packet to the first router.
  10. 10.一种网络扩展装置,用于第一路由器,其特征在于,包括: 发送模块,用于向第二路由器发送第一报文;所述第一报文用于查询第二路由器配置信息; 第一监测模块,用于监测是否接收到第二路由器发送的第二报文,所述第二报文包含所述第二路由器的配置信息; 配置模块,用于当接收到第二路由器发送的第二报文时,根据所述第二报文配置第一路由器。 10. A network extension device, a first router, characterized by comprising: a sending module, configured to send a first message to the second router; the first packet router configuration information for the second query; a first monitoring module for monitoring whether a second message sent by the second router, the second message containing configuration information of the second router; configuration module, configured to, when receiving a second transmission of a router when the second packet, the first router configuration according to the second packet.
  11. 11.如权利要求10所述的装置,其特征在于,所述装置还包括: 解密模块,用于当接收到第二路由器发送的第二报文时,对所述第二报文进行解密。 11. The apparatus according to claim 10, wherein said apparatus further comprises: a decryption module configured to, when receiving a second message sent by the second router, the second message is decrypted.
  12. 12.如权利要求10所述的装置,其特征在于,所述装置还包括: 第二监测模块,用于监测是否有WAN 口或LAN 口连接事件; 执行模块,用于当监测到有WAN 口或LAN 口连接事件时,执行向第二路由器发送第一报文的步骤。 Execution module when detecting that there WAN port; a second monitoring module configured to monitor whether there is connected to the WAN or LAN port events: 12. The apparatus according to claim 10, wherein said apparatus further comprises event or LAN connection port, a first packet transmitting step to the second router.
  13. 13.如权利要求10所述的装置,其特征在于,所述装置还包括: 提示模块,用于发出提示,所述提示用于提示用户是否扩展网络; 接收模块,用于接收输入的确认扩展网络的操作指令; 扩展模块,用于根据所述操作指令扩展网络。 13. The apparatus according to claim 10, characterized in that said apparatus further comprising: a prompt module configured to alert the prompt to prompt the user whether the extended network; receiving means for receiving extended acknowledgment input network operation instruction; expansion means for expansion of the network according to the operation instruction.
  14. 14.如权利要求13所述的装置,其特征在于,所述扩展模块,包括: 监测子模块,用于监测WAN 口是否正常连接; 第一启动子模块,用于当监测到WAN 口未正常连接时,启动客户端模式接入第二路由器的无线网络服务; 第二启动子模块,用于当监测到WAN 口正常连接时,启动桥接模式接入第二路由器的有线网络服务。 14. The apparatus according to claim 13, characterized in that the expansion module, comprising: a monitoring sub-module configured to monitor whether the WAN connection is normal; first promoter module, configured to monitor the WAN not normally when connected, the client starts the second mode the access router of wireless network services; second promoter module, configured to monitor the wired network service when properly connected to the WAN port, the second start mode access router bridge.
  15. 15.如权利要求14所述的装置,其特征在于,所述装置还包括: 开启及发送模块,用于开启接入点模式,向终端发送无线网络信号。 15. The apparatus according to claim 14, wherein said apparatus further comprises: a sending module opening and for opening the access point mode, the wireless network transmits a signal to the terminal.
  16. 16.一种网络扩展装置,用于第二路由器,其特征在于,包括: 接收模块,用于接收第一报文,所述第一报文用于查询第二路由器配置信息; 收集模块,用于收集所述配置信息; 封装模块,用于将所述配置信息封装成第二报文发送给第一路由器。 16. A network expansion device, a second router, characterized by comprising: a receiving module, configured to receive a first packet, the first packet router configuration information for the second query; collection module, with collecting the configuration information; encapsulation module for encapsulating the configuration information of a second packet to the first router.
  17. 17.如权利要求16所述的装置,其特征在于,所述封装模块,包括: 加密子模块,用于将所述配置信息加密; 封装子模块,用于将加密后的配置信息封装成第二报文发送给第一路由器。 17. The apparatus according to claim 16, wherein said module package, comprising: an encryption sub-module, configured to encrypt the configuration information; encapsulation sub-module, configured to encrypt the configuration information into a first package two messages sent to the first router.
  18. 18.—种网络扩展装置,用于第一路由器,其特征在于,包括: 处理器; 用于存储处理器可执行指令的存储器; 其中,所述处理器被配置为: 向第二路由器发送第一报文;所述第一报文用于查询第二路由器配置信息; 监测是否接收到第二路由器发送的第二报文,所述第二报文包含所述第二路由器的配置信息; 当接收到第二路由器发送的第二报文时,根据所述第二报文配置第一路由器。 18.- kinds of network expansion means for the first router, wherein, comprising: a processor; processor-executable instructions for storing a memory; wherein the processor is configured to: send a first to a second router a message; the first packet router configuration information for the second query; monitoring whether to receive the second message sent by the second router, the second message containing configuration information of the second router; when upon receiving the second message sent by the second router, the first router configuration according to the second packet.
  19. 19.一种网络扩展装置,用于第二路由器,其特征在于,包括: 处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为:接收第一报文,所述第一报文用于查询第二路由器配置信息;收集所述配置信息;将所述配置信息封装成第二报文发送给第一路由器。 19. A network expansion device, a second router, wherein, comprising: a processor; processor-executable instructions for storing a memory; wherein the processor is configured to: receive a first packet, the first message is used to query the configuration information of the second router; collecting the configuration information; encapsulating the configuration information of a second packet to the first router.
CN 201510031943 2015-01-22 2015-01-22 Network expansion method and device CN104581747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510031943 CN104581747A (en) 2015-01-22 2015-01-22 Network expansion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201510031943 CN104581747A (en) 2015-01-22 2015-01-22 Network expansion method and device

Publications (1)

Publication Number Publication Date
CN104581747A true true CN104581747A (en) 2015-04-29

Family

ID=53096731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201510031943 CN104581747A (en) 2015-01-22 2015-01-22 Network expansion method and device

Country Status (1)

Country Link
CN (1) CN104581747A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1357187A (en) * 1999-06-18 2002-07-03 艾利森电话股份有限公司 Method and system for communication
CN101834741A (en) * 2010-04-23 2010-09-15 中兴通讯股份有限公司 Method and device for adjusting configuration of equipment under bridge port of home gateway
CN102387144A (en) * 2011-10-21 2012-03-21 华为技术有限公司 Configuration method and network equipment for internet access protocol
CN104009925A (en) * 2014-05-19 2014-08-27 百度在线网络技术(北京)有限公司 Method and device for establishing bridge connection with router and router
CN104243213A (en) * 2014-09-28 2014-12-24 北京奇虎科技有限公司 Method, device and system for acquiring configuration information of routers
CN104301141A (en) * 2014-10-10 2015-01-21 华为技术有限公司 Method, device and system for storing configuration information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1357187A (en) * 1999-06-18 2002-07-03 艾利森电话股份有限公司 Method and system for communication
CN101834741A (en) * 2010-04-23 2010-09-15 中兴通讯股份有限公司 Method and device for adjusting configuration of equipment under bridge port of home gateway
CN102387144A (en) * 2011-10-21 2012-03-21 华为技术有限公司 Configuration method and network equipment for internet access protocol
CN104009925A (en) * 2014-05-19 2014-08-27 百度在线网络技术(北京)有限公司 Method and device for establishing bridge connection with router and router
CN104243213A (en) * 2014-09-28 2014-12-24 北京奇虎科技有限公司 Method, device and system for acquiring configuration information of routers
CN104301141A (en) * 2014-10-10 2015-01-21 华为技术有限公司 Method, device and system for storing configuration information

Similar Documents

Publication Publication Date Title
CN104468837A (en) Intelligent device binding method and device
CN104540184A (en) Equipment networking method and device
CN104159255A (en) Method of sharing network among terminals and device
CN104302014A (en) Method and device for connecting terminal with Wi-Fi hotspot
CN104159218A (en) Network connection establishment method and device
CN104378801A (en) Method and device for having access to wireless network
CN104683938A (en) Configuration method and device for intelligent equipment
CN104580401A (en) Connecting method and device
CN104936304A (en) Intelligent equipment binding method, intelligent equipment, and server
CN104735057A (en) Sharing device control right method and device
CN103888614A (en) Method and device for call forwarding
CN104618783A (en) Remote control method and device
CN105208110A (en) Resource control method and device
CN103888290A (en) Configuration information recovery method and device
CN103413091A (en) Method and device for monitoring malicious behaviors
CN103986821A (en) Method, equipment and system for carrying out parameter adjustment
CN103997669A (en) Equipment control method, equipment control device and equipment control system
CN104639549A (en) Equipment binding method and equipment binding device
CN104735813A (en) Network connection establishment method and device
CN104993981A (en) Method and apparatus for controlling access of device
CN104219038A (en) Method and device for synchronizing data
CN104657099A (en) Method, device and system for screen projection
CN104091376A (en) Intelligent lock control method and apparatus thereof
CN104464238A (en) Method and device for controlling operation between mobile terminals
CN104318741A (en) Bluetooth device control method and device

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination