WO2015058511A1 - 一种设置网络连接参数的方法和装置 - Google Patents

一种设置网络连接参数的方法和装置 Download PDF

Info

Publication number
WO2015058511A1
WO2015058511A1 PCT/CN2014/077002 CN2014077002W WO2015058511A1 WO 2015058511 A1 WO2015058511 A1 WO 2015058511A1 CN 2014077002 W CN2014077002 W CN 2014077002W WO 2015058511 A1 WO2015058511 A1 WO 2015058511A1
Authority
WO
WIPO (PCT)
Prior art keywords
network connection
network
connection mode
currently accessed
supported
Prior art date
Application number
PCT/CN2014/077002
Other languages
English (en)
French (fr)
Inventor
张鹏飞
屈恒
王益冬
夏勇峰
尹家进
Original Assignee
小米科技有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Priority to JP2015543309A priority Critical patent/JP2016502338A/ja
Priority to MX2014008740A priority patent/MX346699B/es
Priority to KR1020147021410A priority patent/KR101610568B1/ko
Priority to RU2015125022A priority patent/RU2616535C2/ru
Priority to BR112014017722A priority patent/BR112014017722A8/pt
Priority to US14/330,001 priority patent/US9686139B2/en
Publication of WO2015058511A1 publication Critical patent/WO2015058511A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/407Bus networks with decentralised control
    • H04L12/413Bus networks with decentralised control with random access, e.g. carrier-sense multiple-access with collision detection [CSMA-CD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/24Negotiation of communication capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access

Definitions

  • the present invention is based on a Chinese patent application with the application number 201310511978.X and the application date being 2013/10/25, and claims the priority of the Chinese patent application, the entire Chinese patent application The contents are incorporated herein by reference.
  • the present disclosure relates to the field of Internet technologies, and in particular, to a method and apparatus for setting network connection parameters. Background technique
  • routers have become a major network device in the Internet, and have also been rapidly developed and widely used.
  • the router is the hub of data transmission in the Internet. It can select the best channel for data transmission according to the condition of the channel.
  • a general router will provide a setup page for setting various parameters.
  • a terminal such as a computer
  • the terminal can log in to the router's setting page, and in the setting page, the network connection parameter (or external network connection parameter) is initially set, and then the terminal is You can connect to the Internet via a router for data transfer.
  • PPOE Point-to-Point Protocol Over Ethernet
  • the user can log in through the terminal.
  • embodiments of the present disclosure provide a method and apparatus for setting network connection parameters.
  • a method for setting network connection parameters including: acquiring a network connection mode supported by a network currently accessed;
  • the obtaining a network connection manner supported by the currently accessed network includes:
  • the network connection mode of receiving the corresponding response message is determined as the network connection mode supported by the currently accessed network.
  • the at least one preset network connection manner corresponding to the discovery report is broadcasted in the currently accessed network.
  • Text including:
  • the discovery packet corresponding to the Ethernet peer-to-peer protocol PPPOE network connection mode and the dynamic host configuration protocol DHCP network connection mode are respectively broadcasted in the currently accessed network.
  • the obtaining a network connection manner supported by the currently accessed network includes:
  • the discovery packet corresponding to the second network connection mode is broadcasted in the currently accessed network, and when the second network connection mode is received, When the message is acknowledged, it is determined that the network connection mode supported by the currently accessed network is the second network connection mode.
  • the obtaining a network connection manner supported by the currently accessed network includes:
  • the network connection mode supported by the currently accessed network is obtained.
  • the determining, according to the network connection mode supported by the currently accessed network, determining a network connection mode to be used including:
  • the determining, according to the network connection mode supported by the currently accessed network, determining a network connection mode to be used including:
  • the obtained network connection mode is determined as the network connection mode to be used.
  • the determining, according to the network connection mode supported by the currently accessed network, determining a network connection mode to be used including:
  • the default network connection mode is determined as the network connection mode to be used.
  • the setting by using the network connection mode to be used, automatically setting network connection parameters, including: if the network connection mode to be used is a PPPOE network connection mode, obtaining an account used for PPPOE login Password; set the parameter value of the connection mode parameter item in the network connection parameter to PPPOE, and set the parameter value corresponding to the PPPOE account and the PPPOE password parameter item to the obtained account and password respectively;
  • the network connection mode to be used is the DHCP network connection mode
  • set the parameter value of the connection mode parameter item in the network connection parameter to DHCP.
  • an apparatus for setting a network connection parameter comprising: an obtaining module, configured to acquire a network connection mode supported by a currently accessed network; a determining module, configured to determine, according to a network connection manner supported by the currently accessed network, a network connection manner to be used;
  • the setting module is configured to automatically set the network connection parameter by using the network connection mode to be used.
  • the acquiring module is configured to: broadcast, in the currently accessed network, at least one type of the discovery packet corresponding to the preset network connection mode; and determine, by using the network connection mode that the corresponding response message is received, The network connection mode supported by the currently accessed network; or
  • the device is configured to broadcast the discovery packet corresponding to the Ethernet point-to-point protocol PPPOE network connection mode and the dynamic host configuration protocol DHCP network connection mode in the currently accessed network, and determine the network connection mode of the corresponding response message.
  • the method is configured to: broadcast, in the currently accessed network, a discovery packet corresponding to the first network connection mode; if the response packet corresponding to the first network connection mode is received, determine the network connection supported by the currently accessed network The mode is the first network connection mode. If the response packet corresponding to the first network connection mode is not received, the discovery packet corresponding to the second network connection mode is broadcasted in the currently accessed network, and is received. Determining, by the second network connection mode, that the network connection mode supported by the currently accessed network is the second network connection mode; or
  • the network connection mode supported by the currently accessed network is obtained.
  • the determining module is configured to:
  • the reply message that is sent by the terminal and that carries the selected network connection mode; the selected network connection mode carried in the reply message is determined as the network connection mode to be used; or
  • the obtained network connection mode is determined as the network connection mode to be used.
  • the default network connection mode is determined as the network connection mode to be used.
  • the setting module is configured to: if the network connection mode to be used is a PPPOE network connection mode, obtain an account and a password for the PPPOE login; and set a parameter value of the connection mode parameter item in the network connection parameter Set to PPPOE, and set the parameter values corresponding to the PPPOE account and the PPPOE password parameter items to the obtained account and password respectively; or
  • the network connection mode to be used is a DHCP network connection mode
  • set the parameter value of the connection mode parameter item in the network connection parameter to DHCP.
  • a network device including a memory, and one or more programs, wherein one or more programs are stored in a memory and configured to be processed by one or more Executing the one or more programs includes instructions for performing the following operations: Obtain the network connection mode supported by the currently connected network;
  • the network connection mode supported by the currently accessed network is obtained, and the network connection mode to be used is determined according to the network connection mode supported by the currently accessed network, and the network connection parameter is determined according to the network connection mode to be used.
  • Set the settings so that you can set the network connection parameters according to the network connection modes supported in the currently connected network without clicking the multi-level option in the setup page. This can improve the efficiency of setting network connection parameters. .
  • FIG. 1 is an exemplary flowchart of a method of setting network connection parameters, according to an exemplary embodiment
  • FIG. 2 is a schematic diagram of a terminal display according to an exemplary embodiment
  • FIG. 3 is an exemplary structural diagram of an apparatus for setting network connection parameters, according to an exemplary embodiment
  • FIG. 4 is an exemplary structural diagram of a network device according to an exemplary embodiment.
  • Embodiments of the present disclosure provide a method and apparatus for setting network connection parameters, which will be described in detail below with reference to the accompanying drawings.
  • An embodiment of the present disclosure provides a method for setting a network connection parameter.
  • the method may be applied to a network device. As shown in FIG. 1, the method may include the following steps:
  • step 101 the network connection mode supported by the currently accessed network is obtained.
  • step 102 the network connection mode to be used is determined according to the network connection mode supported by the currently accessed network.
  • the network connection parameters are automatically set by using the network connection mode to be used.
  • the network connection mode supported by the currently accessed network is obtained, and the network connection mode to be used is determined according to the network connection mode supported by the currently accessed network, and the network connection parameter is determined according to the network connection mode to be used.
  • Set the settings so that you can set the network connection parameters according to the network connection modes supported in the currently connected network without clicking the multi-level option in the setup page. This can improve the efficiency of setting network connection parameters. .
  • the embodiment of the present disclosure provides a method for setting a network connection parameter, and the execution body of the method may be any network device, such as a router, etc.
  • the execution body of the method may be any network device, such as a router, etc.
  • a detailed description of the solution is performed by using an execution host as a router.
  • the processing of other network devices is similar to that of the router, and is not described in the embodiment of the present disclosure.
  • step 101 the network connection mode supported by the network currently accessed is obtained, and the method in this embodiment may be used in the router.
  • the currently accessed network may be the network to which the WAN (Wide Area Network) port of the device (router) is connected.
  • the network connection mode is a method in which a terminal or a router accesses the Internet, and may include a DHCP (Dynamic Host Configuration Protocol) network connection method and a PPPOE network connection method.
  • the DHCP network connection mode is a network connection mode in which the terminal can be assigned a ⁇ > address by the DHCP server in the network, so that the terminal can access the Internet through the IP address.
  • the PPPOE network connection mode is that the PPPOE access server authenticates the terminal, and after the verification is passed, the terminal is assigned a ⁇ >address, so that the terminal can access the Internet connection mode through the ⁇ > address.
  • the network connection mode supported by the network is the way the terminal or router can access the Internet in the network.
  • the user can input the intranet ⁇ > address (such as 192.168.1.1) of the router in the address bar of the browser of the terminal (such as a computer), so that the terminal sends a setup page request to the router (for request display). Router settings page).
  • the router After receiving the request for the setup page, the router authenticates the terminal (such as router account password verification), and sends the data of the setup page to the terminal after the verification is passed.
  • the network connection mode supported by the currently accessed network is obtained, that is, the processing flow of the embodiment is started.
  • the network connection mode supported by the network may be determined by whether the network corresponding to the network connection mode exists in the currently accessed network.
  • At least one preset discovery message corresponding to the network connection mode is broadcasted in the currently accessed network.
  • the preset network connection mode may be any network connection manner, such as a PPPOE network connection method and a DHCP network connection method.
  • the discovery packet corresponding to the network connection mode may be a discovery packet of a network protocol (such as PPPOE or DHCP) on which the network connection mode is based.
  • the discovery message is used to start the grip under the corresponding network protocol. Hand process to establish a network connection message.
  • one or more network connection modes may be preset, and when the step 1 is performed, the discovery message corresponding to each preset network connection mode is broadcasted through the WAN port.
  • the preset network connection manner may include a PPPOE network connection mode and a DHCP network connection mode.
  • the processing of the first step may be: respectively, respectively, the PPPOE network connection mode and the DHCP network connection mode are respectively discovered in the currently accessed network. Message. That is, in the network that the router is currently accessing, the PPPOE discovery message and the DHCP discovery message are respectively broadcast.
  • step 2 the network connection mode of receiving the corresponding response message is determined as the network connection mode supported by the currently accessed network.
  • the corresponding server after the router broadcasts the discovery packet, the corresponding server returns a response packet of the corresponding network protocol to the router when receiving the discovery packet. For example, after receiving the DHCP discovery packet broadcast by the router, the DHCP server sends the packet to the router. The DHCP reply packet is returned. After receiving the PPPOE discovery packet broadcast by the router, the PPPOE access server returns a PPPOE response packet to the router. After receiving the response packet, the router determines the network connection mode corresponding to each response packet, that is, the network connection mode of the network protocol on which the response packet is based. The determined network connection mode is used as the network connection mode supported by the network currently connected by the router. If no response message is received within the predetermined duration, it can be considered that there is no supported network connection mode in the currently accessed network.
  • the router may not perform a subsequent handshake process and does not reply to the response packet.
  • the discovery packet corresponding to the first network connection mode is broadcasted in the currently accessed network.
  • step 2 if the response packet corresponding to the first network connection mode is received, it is determined that the network connection mode supported by the currently accessed network is the first network connection mode.
  • the discovery packet corresponding to the second network connection mode is broadcasted in the currently accessed network, and the second network connection mode is received.
  • the response message is received, it is determined that the network connection mode supported by the currently accessed network is the second network connection mode.
  • the first network connection mode is a preferential network connection mode
  • the second network connection mode is a backup network connection mode.
  • the first network connection mode and the second network connection mode may be any network connection manner, and may be arbitrarily set according to actual needs.
  • the first network connection mode may be a PPPOE network connection mode
  • the second network connection mode may be a DHCP network connection mode, that is, the PPPOE network connection mode is preferentially used.
  • the second mode only the network connection mode supported by the currently accessed network is obtained. If the currently accessed network supports the first network connection mode, the first network connection mode is obtained. If the first network connection mode is not supported and the second network connection mode is supported, the second network connection mode is obtained.
  • the network connection mode to be used is determined according to the network connection mode supported by the currently accessed network, and the method in this embodiment can be used in the router.
  • the router may be connected to the network supported by the currently accessed network according to a preset selection mechanism.
  • the network connection mode to be used is automatically selected, for example, the priority of each network connection mode is set in advance, and the network connection mode with the highest priority among the network connection modes supported by the currently accessed network is set as the network to be used. Connection method.
  • the network connection mode to be used can also be selected by the user, and the processing procedure can be as follows:
  • the network selection request is sent to the terminal that requests the display of the setting page, and the network selection request carries the network connection modes supported by the currently accessed network, so that the terminal displays the network connections carried in the network selection request.
  • Way options are provided.
  • the network selection request is used to select a network connection mode to be used by the user.
  • the router after the terminal requests the display setting page from the router, after the identity verification, the router sends the data of the setting page to the terminal, and performs the processing of the process in this embodiment, and proceeds to step 102.
  • the network selection request may be sent to the terminal that displays the router setting page, and the obtained network connection manner supported by the currently accessed network is carried in the network selection request.
  • the terminal After receiving the network selection request, the terminal may display a selection window, and display the options of each network connection method carried in the network selection request in the selection window.
  • each network connection mode supported by the currently accessed network includes a PPPOE network connection mode and a DHCP network connection mode
  • the router can record the PPPOE network connection mode and the DHCP network connection mode in the network selection request, and the terminal receives the network selection request after receiving the network selection request.
  • the selection window the options for the PPPOE network connection method and the DHCP network connection method are displayed.
  • step 2 the receiving terminal sends a reply message carrying the selected network connection mode.
  • the reply message is a reply message to the network selection request.
  • the user can select a network connection mode in the network connection mode displayed in the selection window, that is, the selected network connection mode, in which case the terminal generates a reply message, carries the selected network connection mode therein, and Send a reply message to the router.
  • step 3 the selected network connection mode carried in the reply message is determined as the network connection mode to be used.
  • the router can parse the reply message, obtain the network connection mode selected by the user carried therein, and then use the selected network connection mode as the network connection mode to be used.
  • the obtained network connection mode may be directly determined as the network connection to be used. the way.
  • the router determines the DHCP network connection mode as the network connection mode to be used.
  • the default network connection mode is determined as the network connection mode to be used.
  • the default network connection mode can be set arbitrarily according to actual needs.
  • the default network connection mode can be set to the DHCP network connection mode.
  • the DHCP network connection method is determined as the network connection method to be used.
  • step 103 the network connection parameter is automatically set by using the network connection mode to be used, and the method in this embodiment can be used in the router.
  • the network connection parameter may be a control parameter for the device to communicate with the external network, and may be referred to as an external network connection parameter or a WAN port parameter.
  • step 103 For different network connection modes to be used, different settings can be made when the network connection parameters are automatically set.
  • processing of step 103 can be as follows:
  • step 1 if the network connection mode to be used is PPPOE network connection mode, obtain the account and password for PPPOE login.
  • the router may send a PPPOE authentication information request to the terminal that requests the display page to be displayed.
  • the terminal displays a PPPOE authentication information input window, as shown in FIG. 2, the user may be in the window.
  • Enter the account and password used for PPPOE login that is, the broadband account and broadband password in the figure.
  • This account and password can be registered by the network operator in advance. For example, the account and password of the Great Wall Broadband registered by the user can be used. Log in to the PPPOE access server of Great Wall Broadband.
  • step 2 the parameter value of the connection mode parameter item in the network connection parameter is set to PPPOE, and the parameter values corresponding to the parameter items of the PPPOE account and the PPPOE password are respectively set to the obtained account number and password.
  • the setting page of the router may include a setting interface of the network connection parameter, where the connection interface parameter may be included, and the parameter item may include various optional parameter values, such as PPPOE, DHCP. Etc., different parameter items correspond to different network connection modes.
  • the network connection of the corresponding network connection mode is automatically established according to the parameter value of the parameter item.
  • the parameter value of the connection mode parameter item is set to PPPOE
  • the PPPOE network connection is automatically established when the router starts up.
  • the parameter value corresponding to the parameter of the corresponding PPPOE account and the PPPOE password can also be obtained, used for PPPOE login. In this case, the account and password carried in the reply message can be obtained.
  • the network connection method to be used is DHCP network connection mode
  • set the parameter value of the connection mode parameter in the network connection parameter to DHCP.
  • the setting page of the router may include a setting interface of the network connection parameter, where the connection interface parameter may be included, and the parameter item may include various optional parameter values, such as PPPOE, DHCP. Etc., different parameter items correspond to different network connection modes.
  • the network connection of the corresponding network connection mode is automatically established according to the parameter value of the parameter item.
  • the parameter value of the connection mode parameter item is set to DHCP
  • the DHCP network connection is automatically established when the router starts.
  • the parameter value of the connection mode parameter item can be automatically set by the router, and the router can establish a network connection according to the corresponding parameter value, so that the user does not need to click the level one level option in the router setting page. To complete the corresponding settings, you can effectively improve the efficiency of setting network connection parameters.
  • the network connection mode supported by the currently accessed network is obtained, and the network connection mode to be used is determined according to the network connection mode supported by the currently accessed network, and the network connection parameter is determined according to the network connection mode to be used.
  • Set the settings so that you can set the network connection parameters according to the network connection modes supported in the currently connected network without clicking the multi-level option in the setup page. This can improve the efficiency of setting network connection parameters. .
  • an embodiment of the present disclosure provides an apparatus for setting network connection parameters. As shown in FIG. 3, the apparatus includes:
  • the obtaining module 310 is configured to obtain a network connection manner supported by the currently accessed network.
  • the determining module 320 is configured to determine, according to the network connection manner supported by the currently accessed network, a network connection mode to be used;
  • the setting module 330 is configured to automatically set network connection parameters by using the network connection mode to be used.
  • the acquiring module 310 is configured to: broadcast, in the currently accessed network, at least one type of the discovery packet corresponding to the preset network connection mode; and determine the network connection mode of the corresponding response message to be determined. a network connection mode supported by the currently accessed network; or
  • the device is configured to broadcast the discovery packet corresponding to the Ethernet point-to-point protocol PPPOE network connection mode and the dynamic host configuration protocol DHCP network connection mode in the currently accessed network, and determine the network connection mode of the corresponding response message.
  • the method is configured to: broadcast, in the currently accessed network, a discovery packet corresponding to the first network connection mode; if the response packet corresponding to the first network connection mode is received, determine the network connection supported by the currently accessed network The mode is the first network connection mode. If the response packet corresponding to the first network connection mode is not received, the discovery packet corresponding to the second network connection mode is broadcasted in the currently accessed network, and is received. Determining, by the second network connection mode, that the network connection mode supported by the currently accessed network is the second network connection mode; or
  • the network connection mode supported by the currently accessed network is obtained.
  • the determining module 320 is configured to:
  • the reply message that is sent by the terminal and that carries the selected network connection mode; the selected network connection mode carried in the reply message is determined as the network connection mode to be used; or If the network connection mode supported by the currently accessed network is only one type, the obtained network connection mode is determined as the network connection mode to be used; or
  • the default network connection mode is determined as the network connection mode to be used.
  • the setting module 330 is configured to:
  • the network connection mode to be used is the PPPOE network connection mode
  • obtain the account and password for the PPPOE login ; set the parameter value of the connection mode parameter item in the network connection parameter to PPPOE, and set the PPPOE account and the PPPOE password.
  • the parameter values corresponding to the parameter items are respectively set to the obtained account number and password; or
  • the network connection mode to be used is a DHCP network connection mode
  • set the parameter value of the connection mode parameter item in the network connection parameter to DHCP.
  • the network connection mode supported by the currently accessed network is obtained, and the network connection mode to be used is determined according to the network connection mode supported by the currently accessed network, and the network connection parameter is determined according to the network connection mode to be used.
  • Set the settings so that you can set the network connection parameters according to the network connection modes supported in the currently connected network without clicking the multi-level option in the setup page. This can improve the efficiency of setting network connection parameters. .
  • the network device 1000 can vary considerably depending on configuration or performance, and can include one or more central processing units (CPUs) 1922 (eg, one or more processors) and memory 1932, one or More than one storage medium 1930 storing data 1942 or data 1944 (eg, one or one storage device in Shanghai).
  • CPUs central processing units
  • the memory 1932 and the storage medium 1930 may be short-term storage or persistent storage.
  • the program stored on storage medium 1930 may include one or more modules (not shown), each of which may include a series of instruction operations on the network device.
  • central processor 1922 can be arranged to communicate with storage medium 1930, executing a series of instruction operations in storage medium 1930 on network device 1900.
  • Network device 1000 may also include one or more power sources 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems. 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • Network device 1000 which may be a network device such as a router, including a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to execute the one by one or more processors Or more than one program contains instructions for doing the following:
  • the obtaining a network connection manner supported by the currently accessed network includes:
  • the network connection mode of receiving the corresponding response message is determined as the network connection mode supported by the currently accessed network.
  • the broadcasting the discovery message corresponding to the at least one preset network connection mode in the currently accessed network includes:
  • the discovery packet corresponding to the Ethernet peer-to-peer protocol PPPOE network connection mode and the dynamic host configuration protocol DHCP network connection mode are respectively broadcasted in the currently accessed network.
  • the obtaining a network connection manner supported by the currently accessed network includes:
  • the discovery packet corresponding to the second network connection mode is broadcasted in the currently accessed network, and when the second network connection mode is received, When the message is acknowledged, it is determined that the network connection mode supported by the currently accessed network is the second network connection mode.
  • the obtaining a network connection manner supported by the currently accessed network includes:
  • the network connection mode supported by the currently accessed network is obtained.
  • the determining, according to the network connection mode supported by the currently accessed network, determining a network connection mode to be used including:
  • the determining, according to the network connection mode supported by the currently accessed network, determining a network connection mode to be used including:
  • the obtained network connection mode is determined as the network connection mode to be used.
  • the determining, according to the network connection mode supported by the currently accessed network, determining a network connection mode to be used including:
  • the default network connection mode is determined as the network connection mode to be used.
  • the setting by using the network connection mode to be used, automatically setting network connection parameters, including: if the network connection mode to be used is a PPPOE network connection mode, obtaining an account used for PPPOE login Password; set the parameter value of the connection mode parameter item in the network connection parameter to PPPOE, and the PPPOE account The parameter value corresponding to the parameter item of the PPPOE password is set to the obtained account number and password respectively. If the network connection mode to be used is the DHCP network connection mode, the parameter value of the connection mode parameter item in the network connection parameter is set. Set to DHCP.
  • the network connection mode supported by the currently accessed network is obtained, and the network connection mode to be used is determined according to the network connection mode supported by the currently accessed network, and the network connection parameter is determined according to the network connection mode to be used.
  • Set the settings so that you can set the network connection parameters according to the network connection modes supported in the currently connected network without clicking the multi-level option in the setup page. This can improve the efficiency of setting network connection parameters.
  • the mobile terminal of the present disclosure may be a variety of handheld terminal devices, such as mobile phones, personal digital assistants (PDAs), etc., and thus the scope of protection of the present disclosure should not be limited to a particular type of mobile terminal.
  • the method according to the present disclosure may also be implemented as a computer program executed by a CPU.
  • the computer program is executed by the CPU, the above-described functions defined in the method of the present disclosure are performed.
  • the above method steps and system elements can also be implemented with a controller and a computer readable storage device for storing a computer program that causes the controller to implement the above described steps or unit functions.
  • non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash.
  • ROM read only memory
  • PROM programmable ROM
  • EPROM electrically programmable ROM
  • EEPROM electrically erasable programmable ROM
  • flash flash.
  • Volatile memory can include random access memory (RAM), which can act as external cache memory.
  • RAM can be obtained in a variety of forms, such as synchronous RAM (DRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM) and direct Rambus RAM (DRRAM).
  • DRAM synchronous RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM Synchronous Link DRAM
  • DRRAM direct Rambus RAM
  • Storage devices of the disclosed aspects are intended to comprise, without being limited to, these and other suitable types of memory.
  • DSP digital signal processor
  • ASIC dedicated Integrated circuit
  • FPGA field programmable gate array
  • a general purpose processor may be a microprocessor, but in the alternative, the processor may be any conventional processor, controller, microcontroller or state machine.
  • the processor can also be implemented It is now a combination of computing devices, such as a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration.
  • the software module can reside in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor, such that the processor can read information from or write information to the storage medium.
  • the storage medium can be integrated with the processor.
  • the processor and storage media can reside in an ASIC.
  • the ASIC can reside in the user terminal.
  • the processor and the storage medium may reside as discrete components in the user terminal.
  • the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted as one or more instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.
  • the computer readable medium may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage device, disk storage device or other magnetic storage device, or may be used for carrying or storing a form of instructions Or the required program code of the data structure and any other medium that can be accessed by a general purpose or special purpose computer or a general purpose or special purpose processor. Also, any connection is properly termed a computer-readable medium.
  • a magnetic disk and an optical disk include a compact disk (CD), a laser disk, an optical disk, a digital versatile disk (DVD), a floppy disk, a Blu-ray disk, wherein the disk generally reproduces data magnetically, and the optical disk optically reproduces data using a laser . Combinations of the above should also be included within the scope of computer readable media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)
  • Communication Control (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明提供了一种设置网络连接参数的方法和装置,涉及互联网技术领域。所述方法包括:获取当前接入的网络支持的网络连接方式(101);根据所述当前接入的网络支持的网络连接方式,确定待使用的网络连接方式(102);采用所述待使用的网络连接方式,自动对网络连接参数进行设置(103)。采用本发明的方法和装置,可以提高对网络连接参数进行设置的效率。

Description

一种设置网络连接参数的方法和装置 本申请基于申请号为 201310511978.X、 申请日为 2013/10/25 的中国专利申请提出, 并要求该中国专利申请的优先权, 该中国专利申请的全部内容在此引入本申请作为参考。 技术领域
本公开涉及互联网技术领域, 特别涉及一种设置网络连接参数的方法和装置。 背景技术
随着互联网的飞速发展, 路由器作为互联网中的一种重要网络设备, 也得到了快速的 发展和广泛的应用。 路由器是互联网中数据传输的枢纽, 可以根据信道的状况, 选择最佳 的信道进行数据传输。
一般路由器会提供有设置页面, 用于对其各种参数进行设置。 用户想要使用终端(如 计算机)通过路由器访问互联网时,可以通过终端登录路由器的设置页面,在设置页面中, 对网络连接参数(或称外网连接参数)进行初始的设置, 然后该终端即可以通过路由器连 接到互联网进行数据传输。 例如, 用户通过 PPPOE (Point-to-Point Protocol Over Ethernet, 以太网点对点协议)方式(一种通过接入服务器对用户接入网络进行控制和计费的网络连 接方式) 上网的话, 可以通过终端登录路由器的设置页面, 并点击打开相应的设置选项, 填写在相应的网络运营商 (如长城宽带) 处注册的账号和密码。
在实现本公开的过程中, 发明人发现相关技术至少存在以下问题:
用户在进行网络连接参数的设置时, 需要点击多级选项, 才能够最终打开需要设置的 选项, 并进行相应的参数设置, 这导致对网络连接参数进行设置的效率过低。 发明内容
为了解决相关技术的问题, 本公开实施例提供了一种设置网络连接参数的方法和装 置。
根据本公开实施例的第一方面, 提供了一种设置网络连接参数的方法, 包括: 获取当前接入的网络支持的网络连接方式;
根据所述当前接入的网络支持的网络连接方式, 确定待使用的网络连接方式; 采用所述待使用的网络连接方式, 自动对网络连接参数进行设置。
可选的, 所述获取当前接入的网络支持的网络连接方式, 包括:
在当前接入的网络中广播至少一种预设的网络连接方式对应的发现报文;
将接收到对应的应答报文的网络连接方式,确定为所述当前接入的网络支持的网络连 接方式。
可选的, 所述在当前接入的网络中广播至少一种预设的网络连接方式对应的发现报 文, 包括:
在当前接入的网络中分别广播以太网点对点协议 PPPOE网络连接方式和动态主机配 置协议 DHCP网络连接方式对应的发现报文。
可选的, 所述获取当前接入的网络支持的网络连接方式, 包括:
在当前接入的网络中广播第一网络连接方式对应的发现报文;
如果接收到所述第一网络连接方式对应的应答报文,则确定所述当前接入的网络支持 的网络连接方式为所述第一网络连接方式;
如果未接收到所述第一网络连接方式对应的应答报文,则在当前接入的网络中广播第 二网络连接方式对应的发现报文, 且当接收到所述第二网络连接方式对应的应答报文时, 确定所述当前接入的网络支持的网络连接方式为所述第二网络连接方式。
可选的, 所述获取当前接入的网络支持的网络连接方式, 包括:
当向请求对设置页面进行显示的终端发送所述设置页面的数据时,获取当前接入的网 络支持的网络连接方式。
可选的, 所述根据所述当前接入的网络支持的网络连接方式, 确定待使用的网络连接 方式, 包括:
向请求对设置页面进行显示的终端发送网络选择请求,所述网络选择请求中携带有当 前接入的网络支持的各网络连接方式, 以使所述终端显示所述各网络连接方式的选项; 接收所述终端发送的携带有选定的网络连接方式的回复消息;
将所述回复消息中携带的所述选定的网络连接方式, 确定为待使用的网络连接方式。 可选的, 所述根据所述当前接入的网络支持的网络连接方式, 确定待使用的网络连接 方式, 包括:
如果获取到的所述当前接入的网络支持的网络连接方式只有一种,则将获取到的网络 连接方式, 确定为待使用的网络连接方式。
可选的, 所述根据所述当前接入的网络支持的网络连接方式, 确定待使用的网络连接 方式, 包括:
如果所述当前接入的网络中不存在支持的网络连接方式,则将默认的网络连接方式确 定为待使用的网络连接方式。
可选的,所述采用所述待使用的网络连接方式, 自动对网络连接参数进行设置,包括: 如果所述待使用的网络连接方式为 PPPOE网络连接方式,则获取用于 PPPOE登录的 账号和密码; 将网络连接参数中连接方式参数项的参数值设置为 PPPOE, 并将 PPPOE账 号和 PPPOE密码的参数项对应的参数值, 分别设置为获取到的账号和密码;
如果所述待使用的网络连接方式为 DHCP网络连接方式,则将网络连接参数中连接方 式参数项的参数值设置为 DHCP。
根据本公开实施例的第二方面,提供了一种设置网络连接参数的装置,所述装置包括: 获取模块, 用于获取当前接入的网络支持的网络连接方式; 确定模块, 用于根据所述当前接入的网络支持的网络连接方式, 确定待使用的网络连 接方式;
设置模块, 用于采用所述待使用的网络连接方式, 自动对网络连接参数进行设置。 可选的, 所述获取模块, 用于: 在当前接入的网络中广播至少一种预设的网络连接方 式对应的发现报文; 将接收到对应的应答报文的网络连接方式, 确定为所述当前接入的网 络支持的网络连接方式; 或者,
用于在当前接入的网络中分别广播以太网点对点协议 PPPOE网络连接方式和动态主 机配置协议 DHCP网络连接方式对应的发现报文;将接收到对应的应答报文的网络连接方 式, 确定为所述当前接入的网络支持的网络连接方式; 或者,
用于在当前接入的网络中广播第一网络连接方式对应的发现报文;如果接收到所述第 一网络连接方式对应的应答报文,则确定所述当前接入的网络支持的网络连接方式为所述 第一网络连接方式; 如果未接收到所述第一网络连接方式对应的应答报文, 则在当前接入 的网络中广播第二网络连接方式对应的发现报文,且当接收到所述第二网络连接方式对应 的应答报文时, 确定所述当前接入的网络支持的网络连接方式为所述第二网络连接方式; 或者,
用于当向请求对设置页面进行显示的终端发送所述设置页面的数据时,获取当前接入 的网络支持的网络连接方式。
可选的, 所述确定模块, 用于:
向请求对设置页面进行显示的终端发送网络选择请求,所述网络选择请求中携带有当 前接入的网络支持的各网络连接方式, 以使所述终端显示所述各网络连接方式的选项; 接 收所述终端发送的携带有选定的网络连接方式的回复消息;将所述回复消息中携带的所述 选定的网络连接方式, 确定为待使用的网络连接方式; 或者,
用于如果获取到的所述当前接入的网络支持的网络连接方式只有一种,则将获取到的 网络连接方式, 确定为待使用的网络连接方式; 或者,
用于如果所述当前接入的网络中不存在支持的网络连接方式,则将默认的网络连接方 式确定为待使用的网络连接方式。
可选的, 所述设置模块, 用于- 如果所述待使用的网络连接方式为 PPPOE网络连接方式,则获取用于 PPPOE登录的 账号和密码; 将网络连接参数中连接方式参数项的参数值设置为 PPPOE, 并将 PPPOE账 号和 PPPOE密码的参数项对应的参数值, 分别设置为获取到的账号和密码; 或者,
用于如果所述待使用的网络连接方式为 DHCP网络连接方式,则将网络连接参数中连 接方式参数项的参数值设置为 DHCP。
根据本公开实施例的第三方面, 提供了一种网络设备, 包括有存储器, 以及一个或者 一个以上的程序, 其中一个或者一个以上程序存储于存储器中, 且经配置以由一个或者一 个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令: 获取当前接入的网络支持的网络连接方式;
根据所述当前接入的网络支持的网络连接方式, 确定待使用的网络连接方式; 采用所述待使用的网络连接方式, 自动对网络连接参数进行设置。
本公开的实施例提供的技术方案可以包括以下有益效果:
本公开实施例中, 获取当前接入的网络支持的网络连接方式, 根据当前接入的网络支 持的网络连接方式, 确定待使用的网络连接方式, 根据待使用的网络连接方式, 对网络连 接参数进行设置, 这样, 无需在设置页面中点击多级选项, 就可以根据当前接入的网络中 所支持的网络连接方式, 对网络连接参数进行设置, 从而, 可以提高对网络连接参数进行 设置的效率。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。 附图说明
此处所说明的附图用来提供对本公开的进一步理解, 构成本申请的一部分, 并不构成 对本公开的限定。 在附图中:
图 1是根据一示例性实施例示出的设置网络连接参数的方法的示例性流程图; 图 2是根据一示例性实施例示出的终端显示的示意图;
图 3是根据一示例性实施例示出的设置网络连接参数的装置的示例性结构图; 图 4是根据一示例性实施例示出的网络设备的示例性结构图。
通过上述附图, 已示出本公开明确的实施例, 后文中将有更详细的描述。 这些附图和 文字描述并不是为了通过任何方式限制本公开构思的范围,而是通过参考特定实施例为本 领域技术人员说明本公开的概念。 具体实施方式
为使本公开的目的、 技术方案和优点更加清楚明白, 下面结合实施方式和附图, 对本 公开做进一步详细说明。 在此, 本公开的示意性实施方式及其说明用于解释本公开, 但并 不作为对本公开的限定。
本公开实施例提供一种设置网络连接参数的方法和装置, 以下结合附图对本公开进行 详细说明。
实施例一
本公开实施例提供了一种设置网络连接参数的方法, 该方法可以应用在网络设备中, 如图 1所示, 该方法可以包括如下步骤:
在步骤 101中, 获取当前接入的网络支持的网络连接方式。
在步骤 102中, 根据当前接入的网络支持的网络连接方式, 确定待使用的网络连接方 式。
在步骤 103中, 采用待使用的网络连接方式, 自动对网络连接参数进行设置。 本公开实施例中, 获取当前接入的网络支持的网络连接方式, 根据当前接入的网络支 持的网络连接方式, 确定待使用的网络连接方式, 根据待使用的网络连接方式, 对网络连 接参数进行设置, 这样, 无需在设置页面中点击多级选项, 就可以根据当前接入的网络中 所支持的网络连接方式, 对网络连接参数进行设置, 从而, 可以提高对网络连接参数进行 设置的效率。 实施例二
本公开实施例提供了一种设置网络连接参数的方法,该方法的执行主体可以是任意网 络设备,如路由器等,本公开实施例中,将以执行主体为路由器为例进行方案的详细阐述, 其它网络设备的处理过程与路由器类似, 本公开实施例中不再累述。
下面将结合实施方式, 对图 1所示的处理流程进行详细阐述, 内容可以如下: 在步骤 101中, 获取当前接入的网络支持的网络连接方式, 本实施例的方法可以用于 路由器中。
其中, 当前接入的网络可以是本设备 (路由器) WAN (Wide Area Network, 广域网) 口所连接到的网络。 网络连接方式是终端或路由器接入互联网的方式, 可以包括 DHCP (Dynamic Host Configuration Protocol, 动态主机配置协议) 网络连接方式、 PPPOE网络 连接方式等。 DHCP网络连接方式是由网络中的 DHCP服务器为终端分配 Π>地址, 以使 终端可以通过该 IP地址接入互联网的网络连接方式。 PPPOE网络连接方式是由 PPPOE的 接入服务器对终端进行身份验证, 并在验证通过之后为终端分配 Π>地址, 以使终端可以 通过该 π>地址接入互联网的网络连接方式。 网络支持的网络连接方式, 是终端或路由器 在该网络中可以使用的接入互联网的方式。
在实施中, 用户可以在终端 (如计算机) 的浏览器的地址栏中输入路由器的内网 π> 地址 (如 192.168.1.1 ) , 这样, 终端即会向路由器发送设置页面请求(用于请求显示路由 器的设置页面) 。 路由器接收到该设置页面请求后会对终端进行身份验证(如路由器账户 密码验证) , 在验证通过后向终端发送设置页面的数据。 可选的, 可以在向请求对设置页 面进行显示的终端发送设置页面的数据时, 获取当前接入的网络支持的网络连接方式, 即 开始执行本实施例的处理流程。
可选的, 可以通过当前接入的网络中是否存在网络连接方式对应的服务器, 来确定该 网络支持的网络连接方式, 以下给出了步骤 101的几种可选的处理方式:
方式一
在步骤一中, 在当前接入的网络中广播至少一种预设的网络连接方式对应的发现报 文。
其中, 预设的网络连接方式可以是任意的网络连接方式, 如 PPPOE网络连接方式、 DHCP网络连接方式等。 网络连接方式对应的发现报文, 可以是该网络连接方式所基于的 网络协议 (如 PPPOE或 DHCP) 的发现报文。 发现报文是用于启动相应网络协议下的握 手过程, 以建立网络连接的报文。
在实施中, 可以预先设置一种或多种网络连接方式, 在执行该步骤一时, 通过 WAN 口对外广播各预设的网络连接方式对应的发现报文。
可选的,预设的网络连接方式可以包括 PPPOE网络连接方式和 DHCP网络连接方式, 步骤一的处理可以是, 在当前接入的网络中分别广播 PPPOE网络连接方式和 DHCP网络 连接方式对应的发现报文。 也即, 在路由器当前接入的网络中, 分别广播 PPPOE发现报 文禾口 DHCP发现报文。
在步骤二中, 将接收到对应的应答报文的网络连接方式, 确定为当前接入的网络支持 的网络连接方式。
在实施中, 路由器在广播发现报文后, 相应的服务器接收到发现报文时会向路由器返 回相应网络协议的应答报文, 例如, DHCP服务器接收到路由器广播的 DHCP发现报文后 会向路由器返回 DHCP应答报文, PPPOE接入服务器接收到路由器广播的 PPPOE发现报 文后会向路由器返回 PPPOE应答报文。 路由器接收到应答报文后, 确定每个应答报文对 应的网络连接方式, 即应答报文所基于的网络协议的网络连接方式。将确定出的各网络连 接方式, 作为路由器当前接入的网络支持的网络连接方式。 如果在预定时长内没有接收到 任何应答报文, 则可以认为当前接入的网络中不存在支持的网络连接方式。
需要说明的是, 在接收到某网络协议的应答报文时, 路由器可以不进行后续的握手过 程, 不对此应答报文进行回复。
方式二
在步骤一中, 在当前接入的网络中广播第一网络连接方式对应的发现报文。
在步骤二中, 如果接收到第一网络连接方式对应的应答报文, 则确定当前接入的网络 支持的网络连接方式为第一网络连接方式。
在步骤三中, 如果未接收到第一网络连接方式对应的应答报文, 则在当前接入的网络 中广播第二网络连接方式对应的发现报文,且当接收到第二网络连接方式对应的应答报文 时, 确定当前接入的网络支持的网络连接方式为第二网络连接方式。
其中, 第一网络连接方式是优先使用的网络连接方式, 第二网络连接方式是后备使用 的网络连接方式。第一网络连接方式和第二网络连接方式可以是任意网络连接方式, 可以 根据实际需求任意设置。 可选的, 第一网络连接方式可以是 PPPOE网络连接方式, 第二 网络连接方式可以是 DHCP网络连接方式, 即优先使用 PPPOE网络连接方式。
在方式二中, 只获取当前接入的网络支持的一种网络连接方式, 如果当前接入的网络 支持第一网络连接方式, 则获取第一网络连接方式。 如果不支持第一网络连接方式而支持 第二网络连接方式, 则获取第二网络连接方式。
在步骤 102中, 根据当前接入的网络支持的网络连接方式, 确定待使用的网络连接方 式, 本实施例的方法可以用于路由器中。
在实施中, 可以由路由器根据预设的选择机制, 在当前接入的网络支持的网络连接方 式中, 自动选择待使用的网络连接方式, 例如, 预先对各种网络连接方式设置优先级, 将 当前接入的网络支持的网络连接方式中优先级最高的网络连接方式设置为待使用的网络 连接方式。 另外, 还可以由用户选择待使用的网络连接方式, 处理过程可以如下:
在步骤一中, 向请求对设置页面进行显示的终端发送网络选择请求, 网络选择请求中 携带有当前接入的网络支持的各网络连接方式, 以使终端显示网络选择请求中携带的各网 络连接方式的选项。
其中, 网络选择请求用于请求用户对待使用的网络连接方式进行选择。
在实施中, 如步骤 101的详细说明中所述, 终端向路由器请求显示设置页面后, 经过 身份验证, 路由器向终端发送设置页面的数据, 同时执行本实施例流程的处理, 当执行到 步骤 102时, 可以向上述显示路由器设置页面的终端发送网络选择请求, 将获取到的当前 接入的网络支持的各网络连接方式携带于网络选择请求中。 终端接收到网络选择请求后, 可以显示一个选择窗口, 在选择窗口中显示网络选择请求中携带的各网络连接方式的选 项。
例如, 当前接入的网络支持的各网络连接方式包括 PPPOE网络连接方式、 DHCP网 络连接方式, 那么路由器可以在网络选择请求中记录 PPPOE网络连接方式和 DHCP网络 连接方式,终端接收到网络选择请求后,在选择窗口中显示 PPPOE网络连接方式和 DHCP 网络连接方式的选项。
在步骤二中, 接收终端发送的携带有选定的网络连接方式的回复消息。
其中, 回复消息是对网络选择请求的回复消息。
在实施中, 用户可以在上述选择窗口显示的网络连接方式中选择一个网络连接方式, 即为选定的网络连接方式, 这时终端生成回复消息, 在其中携带此选定的网络连接方式, 并将回复消息发送给路由器。
在步骤三中, 将回复消息中携带的选定的网络连接方式, 确定为待使用的网络连接方 式。
在实施中, 路由器可以对回复消息进行解析, 获取其中携带的用户选定的网络连接方 式, 然后将此选定的网络连接方式作为待使用的网络连接方式。
除此步骤一至步骤三的处理方式, 可选的, 如果获取到的当前接入的网络支持的网络 连接方式只有一种,则可以将获取到的网络连接方式,直接确定为待使用的网络连接方式。
例如, 路由器在广播一种或多种协议的发现报文后, 只接收到 DHCP应答报文, 则将 DHCP网络连接方式确定为待使用的网络连接方式。
另外, 可选的, 如果当前接入的网络中不存在支持的网络连接方式, 则将默认的网络 连接方式, 确定为待使用的网络连接方式。
其中, 默认的网络连接方式可以根据实际需求任意设置, 可选的, 该默认的网络连接 方式可以设置为 DHCP网络连接方式。
例如, 路由器在广播一种或多种协议的发现报文后, 没有接收到任何应答报文, 则将 DHCP网络连接方式确定为待使用的网络连接方式。
在步骤 103中, 采用待使用的网络连接方式, 自动对网络连接参数进行设置, 本实施 例的方法可以用于路由器中。
其中, 网络连接参数可以是本设备与外网进行通信的控制参数, 可称作外网连接参数 或 WAN口参数。
对于不同的待使用的网络连接方式, 在自动设置网络连接参数时, 可以进行不同的设 置, 相应的, 步骤 103的处理可以如下:
处理一
在步骤一中,如果待使用的网络连接方式为 PPPOE网络连接方式,则获取用于 PPPOE 登录的账号和密码。
在实施中, 路由器可以向上述请求对设置页面进行显示的终端发送 PPPOE验证信息 请求,终端接收到 PPPOE验证信息请求后,显示 PPPOE验证信息输入窗口,如图 2所示, 用户可以在该窗口中输入用于 PPPOE 登录的账号和密码 (即图中的宽带账号和宽带密 码) , 此账号和密码可以由用户预先在网络运营商处注册, 例如, 用户注册的长城宽带的 账号和密码, 可以用于登录长城宽带的 PPPOE接入服务器。 用户在 PPOE验证信息输入 窗口中输入账号、 密码后, 点击确定按钮, 则会生成回复消息, 在其中携带用户输入的账 号和密码, 并将回复消息发送给路由器。
在步骤二中,将网络连接参数中连接方式参数项的参数值设置为 PPPOE,并将 PPPOE 账号和 PPPOE密码的参数项对应的参数值, 分别设置为获取到的账号和密码。
在实施中, 在路由器的设置页面中, 可以包括网络连接参数的设置界面, 在该设置界 面中, 可以包括连接方式参数项, 该参数项可以包括多种可选的参数值, 例如 PPPOE、 DHCP等等, 不同的参数项对应不同的网络连接方式, 在路由器启动时, 会根据此参数项 的参数值自动建立相应的网络连接方式的网络连接, 例如, 将连接方式参数项的参数值设 置为 PPPOE, 则在路由器启动时会自动建立 PPPOE网络连接。 将连接方式参数项的参数 值被设置为 PPPOE后, 还可以获取相应的 PPPOE账号和 PPPOE密码的参数项对应的参 数值, 用于 PPPOE登录, 这时, 可以将回复消息中携带的账号和密码分别设置为 PPPOE 账号和 PPPOE密码的参数项对应的参数值。
处理二
如果待使用的网络连接方式为 DHCP网络连接方式,则将网络连接参数中连接方式参 数项的参数值设置为 DHCP。
在实施中, 在路由器的设置页面中, 可以包括网络连接参数的设置界面, 在该设置界 面中, 可以包括连接方式参数项, 该参数项可以包括多种可选的参数值, 例如 PPPOE、 DHCP等等, 不同的参数项对应不同的网络连接方式, 在路由器启动时, 会根据此参数项 的参数值自动建立相应的网络连接方式的网络连接, 例如, 将连接方式参数项的参数值设 置为 DHCP, 则在路由器启动时会自动建立 DHCP网络连接。 通过上述的处理方式, 可以由路由器自动对连接方式参数项的参数值进行设置, 进而 路由器可以根据相应的参数值建立网络连接, 这样, 无需用户在路由器的设置页面中点击 一级一级的选项来完成相应的设置, 可以有效的提高对网络连接参数进行设置的效率。
本公开实施例中, 获取当前接入的网络支持的网络连接方式, 根据当前接入的网络支 持的网络连接方式, 确定待使用的网络连接方式, 根据待使用的网络连接方式, 对网络连 接参数进行设置, 这样, 无需在设置页面中点击多级选项, 就可以根据当前接入的网络中 所支持的网络连接方式, 对网络连接参数进行设置, 从而, 可以提高对网络连接参数进行 设置的效率。 实施例三
基于相同的技术构思, 本公开实施例提供了一种设置网络连接参数的装置, 如图 3所 示, 所述装置包括:
获取模块 310, 用于获取当前接入的网络支持的网络连接方式;
确定模块 320, 用于根据所述当前接入的网络支持的网络连接方式, 确定待使用的网 络连接方式;
设置模块 330,用于采用所述待使用的网络连接方式, 自动对网络连接参数进行设置。 可选的, 所述获取模块 310, 用于: 在当前接入的网络中广播至少一种预设的网络连 接方式对应的发现报文; 将接收到对应的应答报文的网络连接方式, 确定为所述当前接入 的网络支持的网络连接方式; 或者,
用于在当前接入的网络中分别广播以太网点对点协议 PPPOE网络连接方式和动态主 机配置协议 DHCP网络连接方式对应的发现报文;将接收到对应的应答报文的网络连接方 式, 确定为所述当前接入的网络支持的网络连接方式; 或者,
用于在当前接入的网络中广播第一网络连接方式对应的发现报文;如果接收到所述第 一网络连接方式对应的应答报文,则确定所述当前接入的网络支持的网络连接方式为所述 第一网络连接方式; 如果未接收到所述第一网络连接方式对应的应答报文, 则在当前接入 的网络中广播第二网络连接方式对应的发现报文,且当接收到所述第二网络连接方式对应 的应答报文时, 确定所述当前接入的网络支持的网络连接方式为所述第二网络连接方式; 或者,
用于当向请求对设置页面进行显示的终端发送所述设置页面的数据时,获取当前接入 的网络支持的网络连接方式。
可选的, 所述确定模块 320, 用于:
向请求对设置页面进行显示的终端发送网络选择请求,所述网络选择请求中携带有当 前接入的网络支持的各网络连接方式, 以使所述终端显示所述各网络连接方式的选项; 接 收所述终端发送的携带有选定的网络连接方式的回复消息;将所述回复消息中携带的所述 选定的网络连接方式, 确定为待使用的网络连接方式; 或者, 用于如果获取到的所述当前接入的网络支持的网络连接方式只有一种,则将获取到的 网络连接方式, 确定为待使用的网络连接方式; 或者,
用于如果所述当前接入的网络中不存在支持的网络连接方式,则将默认的网络连接方 式确定为待使用的网络连接方式。
可选的, 所述设置模块 330, 用于:
如果所述待使用的网络连接方式为 PPPOE网络连接方式,则获取用于 PPPOE登录的 账号和密码; 将网络连接参数中连接方式参数项的参数值设置为 PPPOE, 并将 PPPOE账 号和 PPPOE密码的参数项对应的参数值, 分别设置为获取到的账号和密码; 或者,
用于如果所述待使用的网络连接方式为 DHCP网络连接方式,则将网络连接参数中连 接方式参数项的参数值设置为 DHCP。
本公开实施例中, 获取当前接入的网络支持的网络连接方式, 根据当前接入的网络支 持的网络连接方式, 确定待使用的网络连接方式, 根据待使用的网络连接方式, 对网络连 接参数进行设置, 这样, 无需在设置页面中点击多级选项, 就可以根据当前接入的网络中 所支持的网络连接方式, 对网络连接参数进行设置, 从而, 可以提高对网络连接参数进行 设置的效率。 实施例四
图 4是本公开实施例中网络设备 (如路由器等) 的结构示意图。 该网络设备 1000可 因配置或性能不同而产生比较大的差异, 可以包括一个或一个以上中央处理器 (central processing units, CPU) 1922 (例如, 一个或一个以上处理器) 和存储器 1932, 一个或一 个以上存储应用程序 1942或数据 1944的存储介质 1930(例如一个或一个以上海量存储设 备) 。 其中, 存储器 1932和存储介质 1930可以是短暂存储或持久存储。 存储在存储介质 1930的程序可以包括一个或一个以上模块(图示没标出), 每个模块可以包括对网络设备 中的一系列指令操作。 更进一步地, 中央处理器 1922可以设置为与存储介质 1930通信, 在网络设备 1900上执行存储介质 1930中的一系列指令操作。
网络设备 1000还可以包括一个或一个以上电源 1926, 一个或一个以上有线或无线网 络接口 1950, 一个或一个以上输入输出接口 1958, 一个或一个以上键盘 1956, 和 /或, 一 个或一个以上操作系统 1941,例如 Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM等等。
网络设备 1000, 可以是路由器等网络设备, 其包括有存储器, 以及一个或者一个以上 的程序, 其中一个或者一个以上程序存储于存储器中, 且经配置以由一个或者一个以上处 理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:
获取当前接入的网络支持的网络连接方式;
根据所述当前接入的网络支持的网络连接方式, 确定待使用的网络连接方式; 采用所述待使用的网络连接方式, 自动对网络连接参数进行设置。 可选的, 所述获取当前接入的网络支持的网络连接方式, 包括:
在当前接入的网络中广播至少一种预设的网络连接方式对应的发现报文;
将接收到对应的应答报文的网络连接方式,确定为所述当前接入的网络支持的网络连 接方式。
可选的, 所述在当前接入的网络中广播至少一种预设的网络连接方式对应的发现报 文, 包括:
在当前接入的网络中分别广播以太网点对点协议 PPPOE网络连接方式和动态主机配 置协议 DHCP网络连接方式对应的发现报文。
可选的, 所述获取当前接入的网络支持的网络连接方式, 包括:
在当前接入的网络中广播第一网络连接方式对应的发现报文;
如果接收到所述第一网络连接方式对应的应答报文,则确定所述当前接入的网络支持 的网络连接方式为所述第一网络连接方式;
如果未接收到所述第一网络连接方式对应的应答报文,则在当前接入的网络中广播第 二网络连接方式对应的发现报文, 且当接收到所述第二网络连接方式对应的应答报文时, 确定所述当前接入的网络支持的网络连接方式为所述第二网络连接方式。
可选的, 所述获取当前接入的网络支持的网络连接方式, 包括:
当向请求对设置页面进行显示的终端发送所述设置页面的数据时,获取当前接入的网 络支持的网络连接方式。
可选的, 所述根据所述当前接入的网络支持的网络连接方式, 确定待使用的网络连接 方式, 包括:
向请求对设置页面进行显示的终端发送网络选择请求,所述网络选择请求中携带有当 前接入的网络支持的各网络连接方式, 以使所述终端显示所述各网络连接方式的选项; 接收所述终端发送的携带有选定的网络连接方式的回复消息;
将所述回复消息中携带的所述选定的网络连接方式, 确定为待使用的网络连接方式。 可选的, 所述根据所述当前接入的网络支持的网络连接方式, 确定待使用的网络连接 方式, 包括:
如果获取到的所述当前接入的网络支持的网络连接方式只有一种,则将获取到的网络 连接方式, 确定为待使用的网络连接方式。
可选的, 所述根据所述当前接入的网络支持的网络连接方式, 确定待使用的网络连接 方式, 包括:
如果所述当前接入的网络中不存在支持的网络连接方式,则将默认的网络连接方式确 定为待使用的网络连接方式。
可选的,所述采用所述待使用的网络连接方式, 自动对网络连接参数进行设置,包括: 如果所述待使用的网络连接方式为 PPPOE网络连接方式,则获取用于 PPPOE登录的 账号和密码; 将网络连接参数中连接方式参数项的参数值设置为 PPPOE, 并将 PPPOE账 号和 PPPOE密码的参数项对应的参数值, 分别设置为获取到的账号和密码; 如果所述待使用的网络连接方式为 DHCP网络连接方式,则将网络连接参数中连接方 式参数项的参数值设置为 DHCP。
本公开实施例中, 获取当前接入的网络支持的网络连接方式, 根据当前接入的网络支 持的网络连接方式, 确定待使用的网络连接方式, 根据待使用的网络连接方式, 对网络连 接参数进行设置, 这样, 无需在设置页面中点击多级选项, 就可以根据当前接入的网络中 所支持的网络连接方式, 对网络连接参数进行设置, 从而, 可以提高对网络连接参数进行 设置的效率。 此外, 典型地, 本公开所述的移动终端可为各种手持终端设备, 例如手机、 个人数字 助理 (PDA) 等, 因此本公开的保护范围不应限定为某种特定类型的移动终端。
此外, 根据本公开的方法还可以被实现为由 CPU执行的计算机程序。 在该计算机程 序被 CPU执行时, 执行本公开的方法中限定的上述功能。
此外,上述方法步骤以及系统单元也可以利用控制器以及用于存储使得控制器实现上 述步骤或单元功能的计算机程序的计算机可读存储设备实现。
此外, 应该明白的是, 本文所述的计算机可读存储设备 (例如, 存储器)可以是易失 性存储器或非易失性存储器, 或者可以包括易失性存储器和非易失性存储器两者。作为例 子而非限制性的,非易失性存储器可以包括只读存储器(ROM)、可编程 ROM (PROM)、 电可编程 ROM (EPROM) 、 电可擦写可编程 ROM(EEPROM) 或快闪存储器。 易失性存 储器可以包括随机存取存储器 (RAM), 该 RAM 可以充当外部高速缓存存储器。作为例子 而非限制性的, RAM 可以以多种形式获得,比如同步 RAM(DRAM)、动态 RAM(DRAM)、 同步 DRAM ( SDRAM)、双数据速率 SDRAM (DDR SDRAM)、增强 SDRAM (ESDRAM)、 同步链路 DRAM ( SLDRAM) 以及直接 RambusRAM (DRRAM) 。 所公开的方面的存储 设备意在包括但不限于这些和其它合适类型的存储器。
本领域技术人员还将明白的是, 结合这里的公开所描述的各种示例性逻辑块、 模块、 电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。 为了清楚地说明硬件 和软件的这种可互换性, 已经就各种示意性组件、 方块、 模块、 电路和步骤的功能对其进 行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加 给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现所述的 功能, 但是这种实现决定不应被解释为导致脱离本公开的范围。
结合这里的公开所描述的各种示例性逻辑块、模块和电路可以利用被设计成用于执行 这里所述功能的下列部件来实现或执行: 通用处理器、 数字信号处理器 (DSP) 、 专用集 成电路 (ASIC ) 、 现场可编程门阵列 (FPGA) 或其它可编程逻辑器件、 分立门或晶体 管逻辑、 分立的硬件组件或者这些部件的任何组合。 通用处理器可以是微处理器, 但是可 替换地, 处理器可以是任何传统处理器、 控制器、 微控制器或状态机。 处理器也可以被实 现为计算设备的组合, 例如, DSP 和微处理器的组合、 多个微处理器、 一个或多个微处 理器结合 DSP 核、 或任何其它这种配置。
结合这里的公开所描述的方法或算法的步骤可以直接包含在硬件中、由处理器执行的 软件模块中或这两者的组合中。软件模块可以驻留在 RAM存储器、快闪存储器、 ROM存 储器、 EPROM 存储器、 EEPROM存储器、 寄存器、 硬盘、 可移动盘、 CD-ROM、 或本 领域已知的任何其它形式的存储介质中。示例性的存储介质被耦合到处理器, 使得处理器 能够从该存储介质中读取信息或向该存储介质写入信息。在一个替换方案中, 所述存储介 质可以与处理器集成在一起。 处理器和存储介质可以驻留在 ASIC 中。 ASIC 可以驻留在 用户终端中。在一个替换方案中,处理器和存储介质可以作为分立组件驻留在用户终端中。
在一个或多个示例性设计中,所述功能可以在硬件、软件、固件或其任意组合中实现。 如果在软件中实现,则可以将所述功能作为一个或多个指令或代码存储在计算机可读介质 上或通过计算机可读介质来传送。计算机可读介质包括计算机存储介质和通信介质, 该通 信介质包括有助于将计算机程序从一个位置传送到另一个位置的任何介质。存储介质可以 是能够被通用或专用计算机访问的任何可用介质。作为例子而非限制性的, 该计算机可读 介质可以包括 RAM、 ROM、 EEPROM ^ CD-ROM 或其它光盘存储设备、 磁盘存储设备 或其它磁性存储设备,或者是可以用于携带或存储形式为指令或数据结构的所需程序代码 并且能够被通用或专用计算机或者通用或专用处理器访问的任何其它介质。此外, 任何连 接都可以适当地称为计算机可读介质。 例如, 如果使用同轴线缆、 光纤线缆、 双绞线、 数 字用户线路 (DSL) 或诸如红外线、 无线电和微波的无线技术来从网站、 服务器或其它远 程源发送软件, 则上述同轴线缆、 光纤线缆、 双绞线、 DSL 或诸如红外先、 无线电和微 波的无线技术均包括在介质的定义。 如这里所使用的, 磁盘和光盘包括压缩盘 (CD) 、 激光盘、 光盘、 数字多功能盘 (DVD) 、 软盘、 蓝光盘, 其中磁盘通常磁性地再现数据, 而光盘利用激光光学地再现数据。 上述内容的组合也应当包括在计算机可读介质的范围 内。
尽管前面公开的内容示出了本公开的示例性实施例, 但是应当注意, 在不背离权利要 求限定的本公开的范围的前提下, 可以进行多种改变和修改。根据这里描述的公开实施例 的方法权利要求的功能、 步骤和 /或动作不需以任何特定顺序执行。 此外, 尽管本公开的 元素可以以个体形式描述或要求, 但是也可以设想多个, 除非明确限制为单数。 以上所述的具体实施方式, 对本公开的目的、 技术方案和有益效果进行了进一步详细 说明, 所应理解的是, 以上所述仅为本公开的具体实施方式而已, 并不用于限定本公开的 保护范围, 凡在本公开的精神和原则之内, 所做的任何修改、 等同替换、 改进等, 均应包 含在本公开的保护范围之内。

Claims

权利要求
1、 一种设置网络连接参数的方法, 其特征在于, 所述方法包括:
获取当前接入的网络支持的网络连接方式;
根据所述当前接入的网络支持的网络连接方式, 确定待使用的网络连接方式; 采用所述待使用的网络连接方式, 自动对网络连接参数进行设置。
2、 根据权利要求 1所述的方法, 其特征在于, 所述获取当前接入的网络支持的网络 连接方式, 包括:
在当前接入的网络中广播至少一种预设的网络连接方式对应的发现报文;
将接收到对应的应答报文的网络连接方式,确定为所述当前接入的网络支持的网络连 接方式。
3、 根据权利要求 2所述的方法, 其特征在于, 所述在当前接入的网络中广播至少一 种预设的网络连接方式对应的发现报文, 包括:
在当前接入的网络中分别广播以太网点对点协议 PPPOE网络连接方式和动态主机配 置协议 DHCP网络连接方式对应的发现报文。
4、 根据权利要求 1所述的方法, 其特征在于, 所述获取当前接入的网络支持的网络 连接方式, 包括:
在当前接入的网络中广播第一网络连接方式对应的发现报文;
如果接收到所述第一网络连接方式对应的应答报文,则确定所述当前接入的网络支持 的网络连接方式为所述第一网络连接方式;
如果未接收到所述第一网络连接方式对应的应答报文,则在当前接入的网络中广播第 二网络连接方式对应的发现报文, 且当接收到所述第二网络连接方式对应的应答报文时, 确定所述当前接入的网络支持的网络连接方式为所述第二网络连接方式。
5、 根据权利要求 1所述的方法, 其特征在于, 所述获取当前接入的网络支持的网络 连接方式, 包括:
当向请求对设置页面进行显示的终端发送所述设置页面的数据时,获取当前接入的网 络支持的网络连接方式。
6、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述当前接入的网络支持的 网络连接方式, 确定待使用的网络连接方式, 包括:
向请求对设置页面进行显示的终端发送网络选择请求,所述网络选择请求中携带有当 前接入的网络支持的各网络连接方式, 以使所述终端显示所述各网络连接方式的选项; 接收所述终端发送的携带有选定的网络连接方式的回复消息;
将所述回复消息中携带的所述选定的网络连接方式, 确定为待使用的网络连接方式。
7、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述当前接入的网络支持的 网络连接方式, 确定待使用的网络连接方式, 包括:
如果获取到的所述当前接入的网络支持的网络连接方式只有一种,则将获取到的网络 连接方式, 确定为待使用的网络连接方式。
8、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述当前接入的网络支持的 网络连接方式, 确定待使用的网络连接方式, 包括:
如果所述当前接入的网络中不存在支持的网络连接方式,则将默认的网络连接方式确 定为待使用的网络连接方式。
9、根据权利要求 1所述的方法, 其特征在于, 所述采用所述待使用的网络连接方式, 自动对网络连接参数进行设置, 包括:
如果所述待使用的网络连接方式为 PPPOE网络连接方式, 则获取用于 PPPOE登录 的账号和密码; 将网络连接参数中连接方式参数项的参数值设置为 PPPOE, 并将 PPPOE 账号和 PPPOE密码的参数项对应的参数值, 分别设置为获取到的账号和密码;
如果所述待使用的网络连接方式为 DHCP 网络连接方式, 则将网络连接参数中连接 方式参数项的参数值设置为 DHCP。
10、 一种设置网络连接参数的装置, 其特征在于, 所述装置包括:
获取模块, 用于获取当前接入的网络支持的网络连接方式;
确定模块,用于根据所述当前接入的网络支持的网络连接方式,确定待使用的网络连 接方式;
设置模块, 用于采用所述待使用的网络连接方式, 自动对网络连接参数进行设置。
11、 根据权利要求 10所述的装置, 其特征在于, 所述获取模块, 用于: 在当前接入 的网络中广播至少一种预设的网络连接方式对应的发现报文;将接收到对应的应答报文的 网络连接方式, 确定为所述当前接入的网络支持的网络连接方式; 或者,
用于在当前接入的网络中分别广播以太网点对点协议 PPPOE网络连接方式和动态主 机配置协议 DHCP 网络连接方式对应的发现报文; 将接收到对应的应答报文的网络连接 方式, 确定为所述当前接入的网络支持的网络连接方式; 或者,
用于在当前接入的网络中广播第一网络连接方式对应的发现报文;如果接收到所述第 一网络连接方式对应的应答报文,则确定所述当前接入的网络支持的网络连接方式为所述 第一网络连接方式;如果未接收到所述第一网络连接方式对应的应答报文,则在当前接入 的网络中广播第二网络连接方式对应的发现报文,且当接收到所述第二网络连接方式对应 的应答报文时, 确定所述当前接入的网络支持的网络连接方式为所述第二网络连接方式; 或者,
用于当向请求对设置页面进行显示的终端发送所述设置页面的数据时,获取当前接入 的网络支持的网络连接方式。
12、 根据权利要求 10所述的装置, 其特征在于, 所述确定模块, 用于:
向请求对设置页面进行显示的终端发送网络选择请求,所述网络选择请求中携带有当 前接入的网络支持的各网络连接方式, 以使所述终端显示所述各网络连接方式的选项;接 收所述终端发送的携带有选定的网络连接方式的回复消息;将所述回复消息中携带的所述 选定的网络连接方式, 确定为待使用的网络连接方式; 或者,
用于如果获取到的所述当前接入的网络支持的网络连接方式只有一种,则将获取到的 网络连接方式, 确定为待使用的网络连接方式; 或者,
用于如果所述当前接入的网络中不存在支持的网络连接方式,则将默认的网络连接方 式确定为待使用的网络连接方式。
13、 根据权利要求 10所述的装置, 其特征在于, 所述设置模块, 用于:
如果所述待使用的网络连接方式为 PPPOE网络连接方式, 则获取用于 PPPOE登录 的账号和密码; 将网络连接参数中连接方式参数项的参数值设置为 PPPOE, 并将 PPPOE 账号和 PPPOE密码的参数项对应的参数值, 分别设置为获取到的账号和密码; 或者, 用于如果所述待使用的网络连接方式为 DHCP 网络连接方式, 则将网络连接参数中 连接方式参数项的参数值设置为 DHCP。
14、 一种网络设备, 其特征在于, 包括有存储器, 以及一个或者一个以上的程序, 其 中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所 述一个或者一个以上程序包含用于进行以下操作的指令:
获取当前接入的网络支持的网络连接方式;
根据所述当前接入的网络支持的网络连接方式, 确定待使用的网络连接方式; 采用所述待使用的网络连接方式, 自动对网络连接参数进行设置。
PCT/CN2014/077002 2013-10-25 2014-05-08 一种设置网络连接参数的方法和装置 WO2015058511A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP2015543309A JP2016502338A (ja) 2013-10-25 2014-05-08 ネットワーク接続パラメータの設定方法、装置、ネットワーク設備、プログラム及び記録媒体
MX2014008740A MX346699B (es) 2013-10-25 2014-05-08 Metodo para configurar parametros de conexion de red y aparato del mismo.
KR1020147021410A KR101610568B1 (ko) 2013-10-25 2014-05-08 네트워크 접속 파라미터를 설정하는 방법, 장치, 프로그램 및 기록매체
RU2015125022A RU2616535C2 (ru) 2013-10-25 2014-05-08 Способ настройки параметров сетевого соединения и его устройство
BR112014017722A BR112014017722A8 (pt) 2013-10-25 2014-05-08 Método para definição de parâmetros de conexão de rede e aparelho do mesmo
US14/330,001 US9686139B2 (en) 2013-10-25 2014-07-14 Method and networking device for setting network connection parameters

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310511978.X 2013-10-25
CN201310511978.XA CN103607290B (zh) 2013-10-25 2013-10-25 一种设置网络连接参数的方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/330,001 Continuation US9686139B2 (en) 2013-10-25 2014-07-14 Method and networking device for setting network connection parameters

Publications (1)

Publication Number Publication Date
WO2015058511A1 true WO2015058511A1 (zh) 2015-04-30

Family

ID=50125491

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/077002 WO2015058511A1 (zh) 2013-10-25 2014-05-08 一种设置网络连接参数的方法和装置

Country Status (9)

Country Link
US (1) US9686139B2 (zh)
EP (1) EP2866412B1 (zh)
JP (1) JP2016502338A (zh)
KR (1) KR101610568B1 (zh)
CN (1) CN103607290B (zh)
BR (1) BR112014017722A8 (zh)
MX (1) MX346699B (zh)
RU (1) RU2616535C2 (zh)
WO (1) WO2015058511A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018528629A (ja) * 2015-08-07 2018-09-27 グーグル エルエルシー ピアツーピア認証

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103607290B (zh) 2013-10-25 2016-09-21 小米科技有限责任公司 一种设置网络连接参数的方法和装置
US10084641B2 (en) * 2013-11-01 2018-09-25 Huawei Device (Shenzhen) Co., Ltd. Network parameter configuration method and apparatus for portable router
CN104092559B (zh) * 2014-06-10 2018-08-14 深圳市信锐网科技术有限公司 配置无线网络连接参数信息的方法及装置
CN105323179B (zh) * 2014-07-17 2018-05-08 启碁科技股份有限公司 路由器及信息搜集方法
CN105227346B (zh) * 2015-08-24 2018-09-28 上海斐讯数据通信技术有限公司 一种基于扫描二维码的路由器配置方法
CN105515848A (zh) * 2015-12-01 2016-04-20 上海斐讯数据通信技术有限公司 路由器的配置方法及配置装置
CN106230669A (zh) * 2016-07-18 2016-12-14 乐视控股(北京)有限公司 信息获取方法、装置及终端
CN110213080A (zh) * 2019-04-24 2019-09-06 北京奇虎科技有限公司 一种路由器配置方法、装置及计算机设备
CN110677851B (zh) * 2019-08-29 2022-12-27 努比亚技术有限公司 一种终端网络接入方法及网络接入设备的接入方法
CN111064642B (zh) * 2019-12-25 2021-12-03 深圳市网心科技有限公司 一种拨号连网方法及其相关设备
CN112887362B (zh) * 2021-01-08 2023-03-10 重庆锐明信息技术有限公司 一种设备访问方法、设备访问装置及服务器

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509058A (zh) * 2002-12-18 2004-06-30 中国移动通信集团公司 无线移动通信设备自动登陆互联网的方法
CN101321099A (zh) * 2007-06-06 2008-12-10 艾威梯软件技术(北京)有限公司 一种自动接入ip网络的方法、设备和系统
CN101998695A (zh) * 2010-11-04 2011-03-30 深圳市江波龙电子有限公司 终端设备的WiFi设置参数的配置方法、装置及系统
CN103607290A (zh) * 2013-10-25 2014-02-26 小米科技有限责任公司 一种设置网络连接参数的方法和装置

Family Cites Families (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6212160B1 (en) * 1998-03-24 2001-04-03 Avaya Technlogy Corp. Automated selection of a protocol by a communicating entity to match the protocol of a communications network
US6766373B1 (en) * 2000-05-31 2004-07-20 International Business Machines Corporation Dynamic, seamless switching of a network session from one connection route to another
US7392301B1 (en) * 2000-11-14 2008-06-24 Siemens Subscriber Networks, Inc. Method and apparatus for automated assistance in configuring customer premises equipment
RU2276461C2 (ru) * 2001-11-16 2006-05-10 Свисском Фикснет Аг Способ и устройство для классификации сетевых соединений
JP2003283589A (ja) * 2002-03-27 2003-10-03 Nippon Telegr & Teleph Corp <Ntt> ネットワーク接続装置、ネットワーク接続方法およびプログラム
US20040001496A1 (en) 2002-06-21 2004-01-01 Jon Yusko Method and apparatus for PPP auto-connect
US20040105444A1 (en) * 2002-11-15 2004-06-03 Korotin Dmitry O. Auto-configuration of broadband service for one of a plurality of network communication protocols
US20050015644A1 (en) * 2003-06-30 2005-01-20 Microsoft Corporation Network connection agents and troubleshooters
JP2005341287A (ja) * 2004-05-27 2005-12-08 Fujitsu Ltd ネットワーク装置、ネットワーク接続設定プログラム
JP2006014169A (ja) * 2004-06-29 2006-01-12 Toshiba Corp ネットワーク自動接続装置
TW200701707A (en) * 2005-06-22 2007-01-01 Mitac Technology Corp System and method for switching internet connection settings according to internet environment
CN100469022C (zh) 2006-05-29 2009-03-11 腾讯科技(深圳)有限公司 一种检测网络类型的方法及系统
JP2008042834A (ja) * 2006-08-10 2008-02-21 Nec Access Technica Ltd ネットワーク接続装置、ネットワークシステムおよびネットワーク接続方法
US8281015B2 (en) * 2006-12-29 2012-10-02 Verizon Patent And Licensing Inc. Automatic detection and establishment of network connection
US20080225855A1 (en) * 2007-03-15 2008-09-18 Accton Technology Corporation Method and system of auto-detecting network connecting mode
JP5079000B2 (ja) * 2007-06-27 2012-11-21 三菱電機株式会社 通信ネットワーク接続装置
US7761613B2 (en) * 2007-07-06 2010-07-20 Belkin International, Inc. Electrical device configuration system and method
JP4803535B2 (ja) * 2007-11-29 2011-10-26 Necアクセステクニカ株式会社 ネットワーク接続装置およびネットワーク接続方法
KR101279440B1 (ko) * 2008-10-22 2013-06-26 삼성전자주식회사 복수 개의 인터페이스들을 지원하는 화상 형성 장치 및 그 장치에서의 네트워크 설정 방법
CN102223270A (zh) * 2011-07-14 2011-10-19 深圳市共进电子有限公司 一种路由器上网方式检测方法
CN102625332A (zh) 2011-11-01 2012-08-01 北京小米科技有限责任公司 一种网络路由检测的方法
CN102801627B (zh) * 2012-08-17 2015-10-28 深圳市吉祥腾达科技有限公司 路由器自动识别接入环境的方法
CN102984293A (zh) 2012-12-06 2013-03-20 哈尔滨元想科技有限公司 网络路由器
CN103973468B (zh) * 2013-01-29 2018-01-09 华为终端有限公司 自动设置上网模式的处理方法和处理设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509058A (zh) * 2002-12-18 2004-06-30 中国移动通信集团公司 无线移动通信设备自动登陆互联网的方法
CN101321099A (zh) * 2007-06-06 2008-12-10 艾威梯软件技术(北京)有限公司 一种自动接入ip网络的方法、设备和系统
CN101998695A (zh) * 2010-11-04 2011-03-30 深圳市江波龙电子有限公司 终端设备的WiFi设置参数的配置方法、装置及系统
CN103607290A (zh) * 2013-10-25 2014-02-26 小米科技有限责任公司 一种设置网络连接参数的方法和装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018528629A (ja) * 2015-08-07 2018-09-27 グーグル エルエルシー ピアツーピア認証

Also Published As

Publication number Publication date
MX2014008740A (es) 2016-02-19
RU2015125022A (ru) 2017-01-10
CN103607290A (zh) 2014-02-26
US9686139B2 (en) 2017-06-20
JP2016502338A (ja) 2016-01-21
KR101610568B1 (ko) 2016-04-20
KR20150059134A (ko) 2015-05-29
US20150117255A1 (en) 2015-04-30
CN103607290B (zh) 2016-09-21
BR112014017722A2 (zh) 2017-06-20
EP2866412B1 (en) 2021-04-21
MX346699B (es) 2017-03-28
EP2866412A1 (en) 2015-04-29
BR112014017722A8 (pt) 2017-07-11
RU2616535C2 (ru) 2017-04-17

Similar Documents

Publication Publication Date Title
WO2015058511A1 (zh) 一种设置网络连接参数的方法和装置
US11093598B2 (en) Identity authentication method and apparatus
TWI614630B (zh) 客戶端應用的登錄方法及其相應的伺服器
WO2017024842A1 (zh) 一种上网认证方法及客户端、计算机存储介质
KR101724811B1 (ko) 라우터 액세스 제어 방법, 장치, 시스템, 프로그램 및 기록매체
WO2017148308A1 (zh) 一种物联网设备接入网络的方法、装置及系统
WO2018196643A1 (zh) 一种私有数据云存储系统及私有数据云存储方法
WO2016127914A1 (zh) 一种用于重定向的方法、装置及系统
WO2016062002A1 (zh) 连接管理方法及装置、电子设备
TWI735429B (zh) 用戶端登錄伺服器端的鑑別方法、裝置、系統及電子設備
WO2015196908A1 (zh) 业务处理方法、终端、服务器及系统
WO2015180192A1 (zh) 一种网络连接方法、热点终端和管理终端
WO2014082555A1 (zh) 登录方法、装置及开放平台系统
US11337259B2 (en) Method for automatic connection between smart device and router, corresponding router and smart device
WO2017054570A1 (zh) Portal认证方法及认证服务器
TWI488510B (zh) 資訊分享方法與系統
US10484369B2 (en) Voice authentication via secondary device
WO2022105365A1 (zh) 设备控制的方法及系统、电子设备、及存储介质
WO2017088294A1 (zh) 用于建立无线连接的方法与设备
WO2017045505A1 (zh) 移动设备与固定设备之间通信连接的建立方法及装置
TW202404315A (zh) 用於在雲端服務的多個服務提供者存在之情況下進行單一登入(sso)重定向的系統及方法
TWI546688B (zh) 對網路位址進行處理的方法及相關的伺服器與非暫態電腦可讀取儲存媒體
WO2011120450A2 (zh) 基于http的内容获取方法及客户端
WO2011026367A1 (zh) 服务质量参数的配置方法以及远程访问服务器和系统
WO2014187354A1 (zh) 基于MBIM访问Web Server的方法、装置及系统

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: MX/A/2014/008740

Country of ref document: MX

ENP Entry into the national phase

Ref document number: 2015543309

Country of ref document: JP

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 1020147021410

Country of ref document: KR

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112014017722

Country of ref document: BR

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

Ref document number: 14855783

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2015125022

Country of ref document: RU

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14855783

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 112014017722

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20140718