CN107181624A - A kind of method for connecting network, electronic equipment and computer-readable storage medium - Google Patents
A kind of method for connecting network, electronic equipment and computer-readable storage medium Download PDFInfo
- Publication number
- CN107181624A CN107181624A CN201710522222.3A CN201710522222A CN107181624A CN 107181624 A CN107181624 A CN 107181624A CN 201710522222 A CN201710522222 A CN 201710522222A CN 107181624 A CN107181624 A CN 107181624A
- Authority
- CN
- China
- Prior art keywords
- network
- electronic equipment
- resource
- access request
- different
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0886—Fully automatic configuration
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the invention discloses a kind of method for connecting network, electronic equipment and computer-readable storage medium.Methods described includes:When electronic equipment accesses the resource in network by first method, first resource access request is obtained;The selection target mode at least from the first method and the second method different from the first method;If obtaining targeted manner, the first resource access request is responded by the targeted manner.
Description
Technical field
The present invention relates to Internet technology, and in particular to a kind of method for connecting network, electronic equipment and computer storage are situated between
Matter.
Background technology
In multiple network (such as LAN, wide area network, mobile radio communication, VPN (VPN, Virtual
Private Network) etc.) in the environment of, or electronic equipment switches to another network environment by a kind of network environment
In application scenarios, when access belongs to the resource of heterogeneous networks, generally require manual switching network or network is set manually, give
User brings great inconvenience.
The content of the invention
To solve existing technical problem, the embodiment of the present invention provide a kind of method for connecting network, electronic equipment and
Computer-readable storage medium.
To reach above-mentioned purpose, what the technical scheme of the embodiment of the present invention was realized in:
The embodiments of the invention provide a kind of method for connecting network, including:
When electronic equipment accesses the resource in network by first method, first resource access request is obtained;
The selection target mode at least from the first method and the second method different from the first method;
If obtaining targeted manner, the first resource access request is responded by the targeted manner.
It is described to be selected at least from the first method and the second method different from the first method in such scheme
Targeted manner, including:
The attribute information of the first resource access request is obtained, the attribute information based on the first resource access request
The selection target mode at least from the first method and the second method different from the first method.
In such scheme, the attribute information based on the first resource access request at least from the first method and
Selection target mode in the second method different from the first method, including:
Accessed when the attribute information of the first resource access request characterizes electronic equipment by first method in network
When resource fails, the selection target mode at least from the first method and the second method different from the first method.
In such scheme, the attribute information based on the first resource access request at least from the first method and
Selection target mode in the second method different from the first method, including:
When the application that the attribute information of the first resource access request characterizes electronic equipment by first method accesses net
During resource in network, the application is recognized, and/or, the positional information of the acquisition electronic equipment;
Based on recognition result and/or the positional information at least from the first method and different from the first method
Selection target mode in second method.
It is described to be selected at least from the first method and the second method different from the first method in such scheme
Targeted manner, including:
Search history and access successfully record data, from the history access successfully record data in the first party that comprises at least
Selection target mode in formula and second method.
It is described to access first method and second method that successfully record data is comprised at least from the history in such scheme
Middle selection target mode, including:
From the history accesses first method and second method that successfully record data is comprised at least,
The targeted manner that the recognition result of selection and application matches;And/or,
The targeted manner that selection matches with the positional information;And/or,
The targeted manner that selection matches with the key message that the first resource access request is included.
In such scheme, the electronic equipment accesses the security of network by the first method and passes through described second
The security that mode accesses network is different;Or,
The connection equipment of first access is with passing through described the when the electronic equipment accesses network by the first method
The connection equipment that two modes access first access during network is different;Or,
The electronic equipment accessed by the first method network configuration parameters required for network with by described the
Network configuration parameters required for two modes access network are different.
The embodiment of the present invention additionally provides a kind of electronic equipment, including processor and for accessing Internet resources communication set
Part;
The processor, when accessing the resource in network by first method for the communication component, obtains first and provides
Source access request;The selection target mode at least from the first method and the second method different from the first method;Such as
Fruit obtains targeted manner, then responds the first resource access request by the targeted manner.
The embodiment of the present invention additionally provides a kind of computer-readable recording medium, is stored thereon with computer instruction, and this refers to
The step of order realizes the method for connecting network described in the embodiment of the present invention when being executed by processor.
The embodiment of the present invention additionally provides a kind of electronic equipment, including memory, processor and stores on a memory simultaneously
The computer program that can be run on a processor, realizes the net described in the embodiment of the present invention during computing device described program
The step of network connection method.
Method for connecting network provided in an embodiment of the present invention, electronic equipment and computer-readable storage medium.Methods described includes:
When electronic equipment accesses the resource in network by first method, first resource access request is obtained;At least from the first party
Selection target mode in formula and the second method different from the first method;If obtaining targeted manner, pass through the mesh
Mark mode responds the first resource access request.Using the technical scheme of the embodiment of the present invention, the electronic equipment can be automatic
Choose a fitting goal mode from least described first method and second method, without user's manual switching internetwork connection mode,
So as under different network environments, be that user selects most suitable internetwork connection mode, the experience of user is improved.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the first method for connecting network of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of second of method for connecting network of the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of the third method for connecting network of the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the 4th kind of method for connecting network of the embodiment of the present invention;
Fig. 5 is the schematic flow sheet of the 5th kind of method for connecting network of the embodiment of the present invention;
Fig. 6 constitutes structural representation for a kind of of the electronic equipment of the embodiment of the present invention;
Fig. 7 is another composition structural representation of the electronic equipment of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawings and specific embodiment the present invention is further detailed explanation.
Embodiment one
The embodiment of the present invention additionally provides a kind of method for connecting network.Fig. 1 connects for the first network of the embodiment of the present invention
Connect the schematic flow sheet of method;As shown in figure 1, methods described includes:
Step 101:When electronic equipment accesses the resource in network by first method, first resource access request is obtained.
Step 102:The selection target side at least from the first method and the second method different from the first method
Formula.
Step 103:If obtaining targeted manner, the first resource access request is responded by the targeted manner.
In the present embodiment, the method for connecting network is applied in electronic equipment, and the electronic equipment can be specifically hand
Machine, tablet personal computer, notebook computer, desktop computer etc. have the individual terminal devices of network resource accession function;The electronics
Equipment can also be the network equipments such as server, work station.
In the present embodiment, the electronic equipment at least supports first method and the second method different from the first method
Access the resource in network.The first method and the second method characterize network access mode.In some instances, it is described
The network access mode of electronic equipment can be specifically cable network access mode or wireless network access mode, or, local
Net access mode or wide-area network access mode.The first method and the second method can meet cable network access side
Any two kinds of network access modes of formula and wireless network access mode, or can meet LAN access mode or wide area
Any two kinds of network access modes of net access mode.As a kind of embodiment, the first method and the second method
For example can be at least two in following network access mode:Cable network, Wireless Fidelity (Wi-Fi, Wireless-
Fidelity), mobile radio communication (such as 2G/3G/4G), VPN) etc. network access mode, be certainly not limited to the above-mentioned net enumerated
Network access mode.
In the present embodiment, the electronic equipment accesses the security of network by the first method and passes through described second
The security that mode accesses network is different;Or, first access when the electronic equipment accesses network by the first method
Connection equipment from by the second method access network when first access connection equipment it is different;Or, the electronics is set
For the network configuration parameters accessed by the first method required for network and by needed for second method access network
The network configuration parameters wanted are different.It is exemplified by Wi-Fi modes, second method are 4G modes, due to Wi-Fi modes in the first way
Terminal is needed first to access radio reception device (such as wireless router), and 4G modes terminal first accesses neighbouring base station, therefore
The connection equipment of first access when accessing network by Wi-Fi modes and the connection of first access when accessing network by 4G modes
Equipment is different, and required network configuration parameters are also different;Radio reception device (such as wireless router) is relative to base station more
Easily attacked by attacker and be easier to steal data, therefore, Wi-Fi side by attacker so as to access the terminal of radio reception device
The security of formula will be less than the security of 4G modes.
In the present embodiment, when electronic equipment currently accesses the resource in network by first method, generate for accessing institute
The first resource access request of resource is stated, the first resource access request is not limited to ring using the current first method
Should.Specifically, the electronic equipment when meeting preparatory condition at least from the first method and different from the first method
Second method in selection target mode, the targeted manner can be identical with the first method or with described
One mode is different;After the targeted manner is obtained, the first resource access request is responded by the targeted manner, with logical
Cross the objective network access mode obtained and access the corresponding resource of the first resource access request.Accordingly, be unsatisfactory for it is pre-
If during condition, or when not obtaining targeted manner, then continuing through the first method and accessing network, i.e., described first method is rung
Answer the first resource access request.
Wherein, internetwork connection mode (including the first method and described second method) at least includes network type, net
Network is identified and network connection parameter, and the network identity and network connection parameter can have difference based on different network types
Content, for example when network type be Wi-Fi network when, the network identity can be network name;The network connection ginseng
Number can be network connection password.
The technical scheme of the embodiment of the present invention, the electronic equipment can be automatically from least described first method and second method
In choose a fitting goal mode, without user's manual switching internetwork connection mode, so as to be user under different network environments
Most suitable internetwork connection mode is selected, the experience of user is improved.
Embodiment two
The embodiment of the present invention additionally provides a kind of method for connecting network, and Fig. 2 connects for second of network of the embodiment of the present invention
Connect the schematic flow sheet of method;As shown in Fig. 2 methods described includes:
Step 201:When electronic equipment accesses the resource in network by first method, first resource access request is obtained.
Step 202:The attribute information of the first resource access request is obtained, based on the first resource access request
Attribute information selection target mode at least from the first method and the second method different from the first method.
Step 203:If obtaining targeted manner, the first resource access request is responded by the targeted manner.
In the present embodiment, the electronic equipment at least supports first method and the second method different from the first method
Access the resource in network.The first method and the second method characterize network access mode.In some instances, it is described
The network access mode of electronic equipment can be specifically cable network access mode or wireless network access mode, or, local
Net access mode or wide-area network access mode.The first method and the second method can meet cable network access side
Any two kinds of network access modes of formula and wireless network access mode, or can meet LAN access mode or wide area
Any two kinds of network access modes of net access mode.As a kind of embodiment, the first method and the second method
For example can be at least two in following network access mode:Wired, Wi-Fi, mobile radio communication (such as 2G/3G/4G),
The network access mode such as VPN, is certainly not limited to the above-mentioned network access mode enumerated.
In the present embodiment, the electronic equipment accesses the security of network by the first method and passes through described second
The security that mode accesses network is different;Or, first access when the electronic equipment accesses network by the first method
Connection equipment from by the second method access network when first access connection equipment it is different;Or, the electronics is set
For the network configuration parameters accessed by the first method required for network and by needed for second method access network
The network configuration parameters wanted are different.It is exemplified by Wi-Fi modes, second method are 4G modes, due to Wi-Fi modes in the first way
Terminal is needed first to access radio reception device (such as wireless router), and 4G modes terminal first accesses neighbouring base station, therefore
The connection equipment of first access when accessing network by Wi-Fi modes and the connection of first access when accessing network by 4G modes
Equipment is different, and required network configuration parameters are also different;Radio reception device (such as wireless router) is relative to base station more
Easily attacked by attacker and be easier to steal data, therefore, Wi-Fi side by attacker so as to access the terminal of radio reception device
The security of formula will be less than the security of 4G modes.
In the present embodiment, when electronic equipment currently accesses the resource in network by first method, generate for accessing institute
The first resource access request of resource is stated, the attribute information of the first resource access request is recognized.In different application scenarios
Under, the attribute information of the first resource access request characterizes different implications.
As a kind of embodiment, as shown in figure 3, the attribute information based on the first resource access request is at least
Selection target mode is realized by step 2021 from the first method and the second method different from the first method:Obtain
The attribute information of the first resource access request is obtained, when the attribute information of the first resource access request characterizes electronic equipment
When the resource in network is accessed by first method failing, at least from the first method and different from the first method the
Selection target mode in two modes.
Specifically, in present embodiment, the attribute information of the first resource access request, which is characterized, passes through the first party
Whether the resource that formula is accessed in network succeeds, i.e., the resource in network is accessed by the first method, access failure is obtained
When as a result, the first resource access request is generated, the first resource access request is carried is visited by the first method
Ask the attribute information of the resource failure in network.Meet after above-mentioned condition, at least from the first method and with the first party
Selection target mode in the different second method of formula.
Present embodiment is particularly suitable for use in electronic equipment and switches to another network environment by a kind of network environment, or is in
Answering for another Network (such as another application) is switched under multi-network environment, by a kind of Network (such as one application)
Use scene.Under above-mentioned application scenarios, if the resource that electronic equipment accesses in network by first method fails, automatically select
Targeted manner, passes through targeted manner resource response access request.
As another embodiment, as shown in figure 4, the attribute information based on the first resource access request is extremely
Few selection target mode from the first method and the second method different from the first method passes through step 2022 and step
Rapid 2023 realize:
Step 2022:The attribute information of the first resource access request is obtained, when the first resource access request
When the application that attribute information characterizes electronic equipment accesses the resource in network by first method, the application is recognized, and/or,
Obtain the positional information of the electronic equipment.
Step 2023:Based on recognition result and/or the positional information at least from the first method and with described first
Selection target mode in the different second method of mode.
Specifically, it is using described the by application that the attribute information of the first resource access request, which characterizes electronic equipment,
One mode triggers access network.In practical application, when input operation of the electronic equipment based on user receives network access instruction,
The application being normally based in electronic equipment carries out the access of network, various such as browser application, player application to need
The application of Internet resources is accessed, based on this, different applications triggers, which accesses network, can use different network access modes.It is another
Aspect, when input operation of the electronic equipment based on user receives network access instruction, electronic equipment is in certainly under normal circumstances
In a certain geographical position, when electronic equipment is in different geographical position, access network can also use different network access sides
Formula.Based on this, in present embodiment, resource of the electronic equipment in network is accessed by first method, when the first resource
When the application that the attribute information of access request characterizes electronic equipment accesses the resource in network by first method, no matter net is accessed
Whether the resource in network succeeds, and is based on where the attribute of the application of triggering access Internet resources and/or the electronic equipment
Positional information generates first resource access request so that the first resource access request is carried accesses network corresponding to triggering
Application recognition result and/or the positional information of electronic equipment.
Present embodiment at least has above-mentioned three kinds of application scenarios:
The first application scenarios, the recognition result based on application at least from the first method and with the first method not
Selection target mode in same second method.In present embodiment, the identification to application, as a kind of embodiment, specifically may be used
To be that the type of application is identified;The type identification that the type of the application is carried when can be obtained and be applied based on electronic equipment
It is determined that, or may be based on user sort operation determine (for example the icon of application is moved to a certain classification by user manually
In file, then the title of this document folder can be identified as the type of the application).As another embodiment, to application
Key message in the specific first resource access request that can also be to acquisition of identification is identified, and the key message can be with
It is network address or domain name.Further, recognition result (can be specifically the type of the application) that can be based on the application is from institute
Selection target mode in first method and the second method different from the first method is stated, to select the type with the application
The network access mode matched.For example, when the type of the application is office application, then may be selected and office application phase
The targeted manner matched somebody with somebody.In another example, when the type of the application to pay class or when financial class is applied, due to be related to delivery operation or
Account number cipher of person e-bank etc. needs the level of security of network environment higher, then may be selected with paying class or financial class application
The security highest targeted manner matched.
Second of application scenarios, based on the location of electronic equipment information at least from the first method and with described
Selection target mode in the different second method of one mode.In present embodiment, by being set when triggering network access to electronics
Standby positional information is obtained so that the positional information of the electronic equipment is carried in the first resource access request,
It is based further on the positional information selection target mode of the electronic equipment.For example, when the positional information of electronic equipment is characterized in
During ownership place region, the targeted manner that selection matches with the positional information.And when the positional information of electronic equipment is characterized
At non-attribution region (being in roaming state), the targeted manner matched with the positional information may be selected;It can manage
Xie Wei, at ownership place region, electronic equipment can carry out network access using 4G;When in roaming state, electronics is set
It is standby network access to be carried out using 2G/3G, cause unnecessary flow loss and telephone expenses to consume after 4G to avoid opening.
The third application scenarios, the location of recognition result and electronic equipment based on application information are at least from described
Selection target mode in one mode and the second method different from the first method.In present embodiment, by application
Identification and when accessing network by first method to electronic equipment, the acquisition of positional information, recognition result based on application and
Positional information selection target mode at least from the first method and the second method different from the first method.This application
A kind of specific example of scene can include:It is being corporate mailbox by mail applications receiving and dispatching mail and E-mail address
, such as, then, directly can be based in company without being configured by VPN in company if electronic equipment is in Administrative Area during location
The local net network of local net network access mode Connected Corp., carries out the transmitting-receiving of mail;If electronic equipment is in Administrative Area
Outside, then need to configure the local net network of Connected Corp. to carry out the transmitting-receiving of mail by VPN.
The technical scheme of the embodiment of the present invention, the electronic equipment can be based on the different automatic of the attribute of resource access request
Choose a fitting goal mode from least described first method and second method, to access Internet resources by first method
Suitable targeted manner is switched to during failure, or suitable targeted manner is selected according to application and/or positional information, without use
Family manual switching internetwork connection mode, so that be that user selects most suitable internetwork connection mode under different network environments,
The network demand of different application and/or diverse location information is met, the experience of user is on the one hand improved, on the other hand also carries
The security of network access is risen.
Embodiment three
Based on previous embodiment, the embodiment of the present invention additionally provides a kind of method for connecting network.Fig. 5 is the embodiment of the present invention
The 5th kind of method for connecting network schematic flow sheet;As shown in figure 5, methods described includes:
Step 301:When electronic equipment accesses the resource in network by first method, first resource access request is obtained.
Step 302:Search history access successfully record data, from the history access successfully record data in comprise at least
First method and second method in selection target mode.
Step 303:If obtaining targeted manner, the first resource access request is responded by the targeted manner.
Be different from embodiment one and embodiment two, the present embodiment, be specifically how the implementation of selection target mode
Illustrate.
In the present embodiment, history is searched based on the first resource access request and accesses successfully record data, is gone through from described
History accesses selection target mode in the first method comprised at least in successfully record data and second method.The history is accessed into
The successful resource access information of the network access that is stored with work(record data and corresponding network configuration parameters;The resource is visited
It can be specifically at least one of following information to ask information:Network address, domain name, application type, positional information;The network configuration ginseng
Number at least includes network name and network connection parameter etc..
It is described to access first method and second method that successfully record data is comprised at least from the history in the present embodiment
Middle selection target mode, including:From the history accesses first method and second method that successfully record data is comprised at least,
The targeted manner that the recognition result of selection and application matches;And/or, the target side that selection matches with the positional information
Formula;And/or, the targeted manner that selection matches with the key message that the first resource access request is included.
Specifically, as the first embodiment, in selection target mode, the first resource access request is analyzed,
The key message of the first resource access request is obtained, the key message can be network address or domain-name information;By searching
The history accesses successfully record data, obtains the history matched with the key message (network address or domain-name information) and accesses into
Work(is recorded, and acquisition accesses with the history and successfully records associated network configuration parameters, using the network configuration parameters as
Targeted manner.
As second of embodiment, in selection target mode, the recognition result based on application is selected.Specifically may be used
To be to access successfully record data based on history described in the type search of application, acquisition is gone through with the type matching of the application
History, which is accessed, successfully to be recorded, and acquisition is accessed with the history successfully records associated network configuration parameters, by the network configuration
Parameter is used as targeted manner.
As the third embodiment, in selection target mode, selected based on the location of electronic equipment information
Select.It can be specifically to search the history based on positional information to access successfully record data, obtain and the positional information phase
The history matched somebody with somebody, which is accessed, successfully to be recorded, and acquisition is accessed with the history successfully records associated network configuration parameters, by the net
Network configuration parameter is used as targeted manner.
As the 4th kind of embodiment, in selection target mode, at least two based on following information carry out target side
The selection of formula:The location of key message that first resource access request is included, the recognition result of application, electronic equipment letter
Breath.Can be specifically to be based on above-mentioned at least two information, by taking the type and positional information of application as an example, the then type based on application
The history, which is searched, with positional information accesses successfully record data, what the type and positional information obtained with the application matched
History, which is accessed, successfully to be recorded, and acquisition is accessed with the history successfully records associated network configuration parameters, and the network is matched somebody with somebody
Parameter is put as targeted manner.
The technical scheme of the embodiment of the present invention is illustrated below by a specific example.
So that electronic equipment initiates network access request by application as an example, it is assumed that current electronic device access network A, that is, adopt
With the corresponding first method access network A of network A.
When application initiates network access request and network access request failure by first method, electronic equipment inspection
Network access failure cause is surveyed, it is that network side can not be responded or network access request can not be arrived to determine network access failure cause
Up to when, the electronic equipment searches the network (assuming that including network A, network B and network C) and corresponding network currently supported
Connected mode, it is assumed that including the first method and two second methods, the second method is different from the first method.
In specific implementation process, the network access failure cause that network side can not be responded or network access request can not be reached can lead to
Cross receive include 404 error codes or " Not Found " error message is determined.
Electronic equipment passes through the type of application or key message (such as network address of network access request according to preset rules
Or domain name) or the type of application and the key message of network access request search history and access successfully record data, obtain and answer
The key message (such as network address or domain name) of type or network access request or the type and network access request of application
The history of key information match access and successfully record, obtain the history and access and successfully records associated network configuration parameters
(including network name and network connection parameter);If the corresponding network of the network name is network B or network C, by network B
Or network C and corresponding network connection parameter are as targeted manner, according to corresponding network connection parameter access network B or net
Network C, initiates network access request again.
The technical scheme of the embodiment of the present invention, the electronic equipment can be based on the different automatic of the attribute of resource access request
Choose a fitting goal mode from least described first method and second method, to access Internet resources by first method
Suitable targeted manner is switched to during failure, or suitable targeted manner is selected according to application and/or positional information, without use
Family manual switching internetwork connection mode, so that be that user selects most suitable internetwork connection mode under different network environments,
The network demand of different application and/or diverse location information is met, the experience of user is on the one hand improved, on the other hand also carries
The security of network access is risen.
Example IV
The embodiment of the present invention additionally provides a kind of electronic equipment.Fig. 6 is a kind of group of the electronic equipment of the embodiment of the present invention
Into structural representation;As shown in fig. 6, the electronic equipment includes processor 41 and the communication component for accessing Internet resources
42;
The processor 41, when accessing the resource in network by first method for the communication component 42, obtains the
One resource access request;The selection target side at least from the first method and the second method different from the first method
Formula;If obtaining targeted manner, the first resource access request is responded by the targeted manner.
In the present embodiment, the communication component 42 accesses the security of network and by described the by the first method
The security that two modes access network is different;Or, it is first when the communication component 42 is by first method access network
The connection equipment of first access is different when the connection equipment of access by the second method from accessing network;Or, it is described logical
Believe component 42 by the network configuration parameters required for first method access network with accessing net by the second method
Network configuration parameters required for network are different.
It will be appreciated by those skilled in the art that in the electronic equipment of the embodiment of the present invention each processing unit function, can join
Understand, each processing unit in the electronic equipment of the embodiment of the present invention according to the associated description of aforementioned network connection method, can pass through
Realize the analog circuit of the function described in the embodiment of the present invention and realize, can also be by performing the work(described in the embodiment of the present invention
Can operation of the software on intelligent terminal and realize.
Embodiment five
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in fig. 6, the electronic equipment includes the He of processor 41
Communication component 42 for accessing Internet resources;
The processor 41, when accessing the resource in network by first method for the communication component 42, obtains the
One resource access request;The attribute information of the first resource access request is obtained, based on the first resource access request
Attribute information selection target mode at least from the first method and the second method different from the first method;If obtained
Targeted manner is obtained, then passes through the targeted manner and responds the first resource access request.
As the first embodiment, the processor 41 accesses net for the communication component 42 by first method
During resource in network, first resource access request is obtained;Obtain the attribute information of the first resource access request;When described
When the attribute information of one resource access request characterizes the resource that electronic equipment accessed by first method in network and failed, at least from
Selection target mode in the first method and the second method different from the first method;If obtaining targeted manner,
The first resource access request is responded by the targeted manner.
As second of embodiment, the processor 41 accesses net for the communication component 42 by first method
During resource in network, first resource access request is obtained;Obtain the attribute information of the first resource access request;When described
When the application that the attribute information of one resource access request characterizes electronic equipment accesses the resource in network by first method, identification
The application, at least mesh is selected based on recognition result from the first method and the second method different from the first method
Mark mode;If obtaining targeted manner, the first resource access request is responded by the targeted manner.
As the third embodiment, the processor 41 accesses net for the communication component 42 by first method
During resource in network, first resource access request is obtained;Obtain the attribute information of the first resource access request;When described
When the application that the attribute information of one resource access request characterizes electronic equipment accesses the resource in network by first method, obtain
The positional information of the electronic equipment, based on the positional information at least from the first method and different from the first method
Second method in selection target mode;If obtaining targeted manner, the first resource is responded by the targeted manner
Access request.
As the 4th kind of embodiment, the processor 41 accesses net for the communication component 42 by first method
During resource in network, first resource access request is obtained;Obtain the attribute information of the first resource access request;When described
When the application that the attribute information of one resource access request characterizes electronic equipment accesses the resource in network by first method, know
Not described application, and the positional information of the electronic equipment is obtained, based on recognition result and the positional information at least from institute
State selection target mode in first method and the second method different from the first method;If obtaining targeted manner, lead to
Cross the targeted manner and respond the first resource access request.
In the present embodiment, the communication component 42 accesses the security of network and by described the by the first method
The security that two modes access network is different;Or, it is first when the communication component 42 is by first method access network
The connection equipment of first access is different when the connection equipment of access by the second method from accessing network;Or, it is described logical
Believe component 42 by the network configuration parameters required for first method access network with accessing net by the second method
Network configuration parameters required for network are different.
It will be appreciated by those skilled in the art that in the electronic equipment of the embodiment of the present invention each processing unit function, can join
Understand, each processing unit in the electronic equipment of the embodiment of the present invention according to the associated description of aforementioned network connection method, can pass through
Realize the analog circuit of the function described in the embodiment of the present invention and realize, can also be by performing the work(described in the embodiment of the present invention
Can operation of the software on intelligent terminal and realize.
Embodiment six
Based on example IV and embodiment five, the embodiment of the present invention additionally provides a kind of electronic equipment, as shown in fig. 6, institute
Stating electronic equipment includes processor 41 and the communication component 42 for accessing Internet resources;
The processor 41, when accessing the resource in network by first method for the communication component 42, obtains the
One resource access request;Search history access successfully record data, from the history access successfully record data in comprise at least
First method and second method in selection target mode;If obtaining targeted manner, institute is responded by the targeted manner
State first resource access request.
In the present embodiment, the processor 41, for accessing successfully record data is comprised at least first from the history
In mode and second method, the targeted manner that selection matches with the recognition result applied;And/or, selection is believed with the position
The targeted manner of manner of breathing matching;And/or, the target that selection matches with the key message that the first resource access request is included
Mode.
In the present embodiment, the communication component 42 accesses the security of network and by described the by the first method
The security that two modes access network is different;Or, it is first when the communication component 42 is by first method access network
The connection equipment of first access is different when the connection equipment of access by the second method from accessing network;Or, it is described logical
Believe component 42 by the network configuration parameters required for first method access network with accessing net by the second method
Network configuration parameters required for network are different.
It will be appreciated by those skilled in the art that in the electronic equipment of the embodiment of the present invention each processing unit function, can join
Understand, each processing unit in the electronic equipment of the embodiment of the present invention according to the associated description of aforementioned network connection method, can pass through
Realize the analog circuit of the function described in the embodiment of the present invention and realize, can also be by performing the work(described in the embodiment of the present invention
Can operation of the software on intelligent terminal and realize.
In the embodiment of the present invention, the communication component 42 in the electronic equipment can pass through communications module in actual applications
(include:Base communication external member, operating system, communication module, standard interface and agreement etc.) and dual-mode antenna realization.
The embodiment of the present invention additionally provides a kind of electronic equipment, including memory, processor and stores on a memory simultaneously
The computer program that can be run on a processor, realizes the net described in the embodiment of the present invention during computing device described program
The step of network connection method.Fig. 7 is another composition structural representation of the electronic equipment of the embodiment of the present invention, as shown in fig. 7,
Electronic equipment described in practical application may include processor 61, memory 62 and at least one communication interface 63;The processing
Device 61, memory 62 and communication interface 63 are connected by bus 64.In embodiments of the present invention, at least one described communication
Interface 63 may include interface for accessing Internet resources etc..
In the present embodiment, the processor shown in Fig. 6 and Fig. 7 can be a kind of IC chip, the place with signal
Reason ability.In implementation process, each step of the method for connecting network of the embodiment of the present invention can pass through the hardware in processor
Integrated logic circuit or software form instruction complete.Above-mentioned processor can be general processor, at data signal
Device (DSP, Digital Signal Processor) is managed, or other PLDs, discrete gate or transistor are patrolled
Collect device, discrete hardware components etc..Disclosed each method, step in the embodiment of the present invention can be realized or performed to processor
And logic diagram.General processor can be microprocessor or any conventional processor etc..With reference to institute of the embodiment of the present invention
The step of disclosed method, hardware decoding processor can be embodied directly in and perform completion, or with hard in decoding processor
Part and software module combination perform completion.Software module can be located in storage medium, and the storage medium is located in memory 62,
Processor reads the information in memory 62, the step of completing preceding method with reference to its hardware.
Memory 62 can be by any kind of volatibility or non-volatile memory device or combinations thereof be Lai real
It is existing.Wherein, nonvolatile memory can be read-only storage (ROM, Read Only Memory), programmable read only memory
(PROM, Programmable Read-Only Memory), Erasable Programmable Read Only Memory EPROM (EPROM, Erasable
Programmable Read-Only Memory), Electrically Erasable Read Only Memory (EEPROM, Electrically
Erasable Programmable Read-Only Memory), magnetic RAM (FRAM, Ferromagnetic
Random Access Memory), flash memory (Flash Memory), magnetic surface storage, CD or read-only optical disc
(CD-ROM, Compact Disc Read-Only Memory);Magnetic surface storage can be magnetic disk storage or tape storage
Device.Volatile memory can be random access memory (RAM, Random Access Memory), and it is used as outside high speed
Caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM
(SRAM, Static Random Access Memory), synchronous static RAM (SSRAM, Synchronous
Static Random Access Memory), dynamic random access memory (DRAM, Dynamic Random Access
Memory), Synchronous Dynamic Random Access Memory (SDRAM, Synchronous Dynamic Random Access
Memory), double data speed synchronous dynamic RAM (DDRSDRAM, Double Data Rate
Synchronous Dynamic Random Access Memory), enhanced Synchronous Dynamic Random Access Memory
(ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronized links dynamic random are deposited
Access to memory (SLDRAM, SyncLink Dynamic Random Access Memory), direct rambus arbitrary access are deposited
Reservoir (DRRAM, Direct Rambus Random Access Memory).The memory 62 of description of the embodiment of the present invention is intended to
The including but not limited to memory of these and any other suitable type.
The embodiment of the present invention additionally provides a kind of computer-readable storage medium, is stored thereon with computer instruction, the instruction quilt
Realized during computing device:When accessing the resource in network by first method, first resource access request is obtained;At least from institute
State selection target mode in first method and the second method different from the first method;If obtaining targeted manner, lead to
Cross the targeted manner and respond the first resource access request
As a kind of embodiment, the instruction is realized when being executed by processor:Obtain the first resource access request
Attribute information, the attribute information based on the first resource access request at least from the first method and with the first method
Selection target mode in different second methods.
As a kind of embodiment, the instruction is realized when being executed by processor:When the category of the first resource access request
Property information representation electronic equipment by first method access network in resource fail when, at least from the first method and with institute
State selection target mode in the different second method of first method.
As a kind of embodiment, the instruction is realized when being executed by processor:When the category of the first resource access request
Property information representation electronic equipment application when accessing the resource in network by first method, recognize the application, and/or, obtain
Obtain the positional information of the electronic equipment;Based on recognition result and/or the positional information at least from the first method and with
Selection target mode in the different second method of the first method.
As a kind of embodiment, the instruction is realized when being executed by processor:Search history and access successfully record data, from
The history accesses selection target mode in the first method comprised at least in successfully record data and second method.
As a kind of embodiment, the instruction is realized when being executed by processor:Successfully record data is accessed from the history
In the first method and second method that comprise at least, the targeted manner that selection matches with the recognition result applied;And/or, choosing
Select the targeted manner matched with the positional information;And/or, the crucial letter that selection is included with the first resource access request
The targeted manner of manner of breathing matching.
In several embodiments provided herein, it should be understood that disclosed electronic equipment and method, Ke Yitong
Other modes are crossed to realize.Apparatus embodiments described above are only schematical, for example, the division of the unit, only
Only a kind of division of logic function, can have other dividing mode, such as when actually realizing:Multiple units or component can be tied
Close, or be desirably integrated into another system, or some features can be ignored, or do not perform.In addition, shown or discussed each group
Into part coupling each other or direct-coupling or communication connection can be by some interfaces, equipment or unit it is indirect
Coupling is communicated to connect, and can be electrical, machinery or other forms.
The above-mentioned unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit
The part shown can be or may not be physical location, you can positioned at a place, can also be distributed to multiple network lists
In member;Part or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated into a processing unit, also may be used
Be each unit individually as a unit, can also two or more units it is integrated in a unit;It is above-mentioned
Integrated unit can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program
Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:Movable storage device, ROM,
RAM, magnetic disc or CD etc. are various can be with the medium of store program codes.
Or, if the above-mentioned integrated unit of the present invention is realized using in the form of software function module and is used as independent product
Sale in use, can also be stored in a computer read/write memory medium.Understood based on such, the present invention is implemented
The part that the technical scheme of example substantially contributes to prior art in other words can be embodied in the form of software product,
The computer software product is stored in a storage medium, including some instructions are to cause a computer equipment (can be with
It is personal computer, server or network equipment etc.) perform all or part of each of the invention embodiment methods described.
And foregoing storage medium includes:Movable storage device, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes
Medium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (10)
1. a kind of method for connecting network, including:
When electronic equipment accesses the resource in network by first method, first resource access request is obtained;
The selection target mode at least from the first method and the second method different from the first method;
If obtaining targeted manner, the first resource access request is responded by the targeted manner.
2. according to the method described in claim 1, it is characterised in that it is described at least from the first method and with the first party
Selection target mode in the different second method of formula, including:
The attribute information of the first resource access request is obtained, the attribute information based on the first resource access request is at least
The selection target mode from the first method and the second method different from the first method.
3. method according to claim 2, it is characterised in that the attribute letter based on the first resource access request
Breath selection target mode at least from the first method and the second method different from the first method, including:
Pass through the resource in first method access network when the attribute information of the first resource access request characterizes electronic equipment
During failure, the selection target mode at least from the first method and the second method different from the first method.
4. method according to claim 2, it is characterised in that the attribute letter based on the first resource access request
Breath selection target mode at least from the first method and the second method different from the first method, including:
When the application that the attribute information of the first resource access request characterizes electronic equipment is accessed in network by first method
Resource when, recognize the application, and/or, the positional information of the acquisition electronic equipment;
Based on recognition result and/or the positional information at least from the first method and different from the first method second
Selection target mode in mode.
5. the method according to any one of Claims 1-4, it is characterised in that it is described at least from the first method and with
Selection target mode in the different second method of the first method, including:
Search history and access successfully record data, from the history access successfully record data in the first method that comprises at least with
Selection target mode in second method.
6. method according to claim 5, it is characterised in that described to access successfully record data from the history and at least wrap
Selection target mode in the first method and second method that contain, including:
From the history accesses first method and second method that successfully record data is comprised at least,
The targeted manner that the recognition result of selection and application matches;And/or,
The targeted manner that selection matches with the positional information;And/or,
The targeted manner that selection matches with the key message that the first resource access request is included.
7. according to the method described in claim 1, it is characterised in that the electronic equipment accesses network by the first method
Security with by the second method access network security it is different;Or,
The connection equipment of first access is with passing through the second party when electronic equipment accesses network by the first method
The connection equipment of first access is different when formula accesses network;Or,
The electronic equipment is by the network configuration parameters required for first method access network and passes through the second party
Network configuration parameters required for formula accesses network are different.
8. a kind of electronic equipment, including processor and the communication component for accessing Internet resources;
The processor, when accessing the resource in network by first method for the communication component, obtains first resource and visits
Ask request;The selection target mode at least from the first method and the second method different from the first method;If obtained
Targeted manner is obtained, then passes through the targeted manner and responds the first resource access request.
9. a kind of computer-readable recording medium, is stored thereon with computer instruction, it is characterised in that the instruction is held by processor
The step of method for connecting network described in any one of claim 1 to 7 is realized during row.
10. a kind of electronic equipment, including memory, processor and storage are on a memory and the calculating that can run on a processor
Machine program, it is characterised in that realize that the network described in any one of claim 1 to 7 connects during the computing device described program
The step of connecing method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710522222.3A CN107181624A (en) | 2017-06-30 | 2017-06-30 | A kind of method for connecting network, electronic equipment and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710522222.3A CN107181624A (en) | 2017-06-30 | 2017-06-30 | A kind of method for connecting network, electronic equipment and computer-readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107181624A true CN107181624A (en) | 2017-09-19 |
Family
ID=59845480
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710522222.3A Pending CN107181624A (en) | 2017-06-30 | 2017-06-30 | A kind of method for connecting network, electronic equipment and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107181624A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108337229A (en) * | 2017-12-26 | 2018-07-27 | 神华集团有限责任公司 | Method, storage medium and the electronic equipment that multisystem interconnects |
CN110380937A (en) * | 2019-07-23 | 2019-10-25 | 中国工商银行股份有限公司 | Network test method and device applied to electronic equipment |
WO2019205133A1 (en) * | 2018-04-28 | 2019-10-31 | 深圳前海达闼云端智能科技有限公司 | Vpn line handover method, apparatus and electronic device |
CN112422597A (en) * | 2019-08-21 | 2021-02-26 | 北京小米移动软件有限公司 | Network content access method, device and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973712A (en) * | 2014-05-29 | 2014-08-06 | 段超 | Access control method and device for network data |
CN104066155A (en) * | 2013-03-21 | 2014-09-24 | 中兴通讯股份有限公司 | Network selection control method and device thereof |
CN104837167A (en) * | 2015-04-29 | 2015-08-12 | 深圳市金立通信设备有限公司 | Network switching method |
CN104967990A (en) * | 2015-04-29 | 2015-10-07 | 深圳市金立通信设备有限公司 | Terminal |
CN105302279A (en) * | 2015-10-27 | 2016-02-03 | 广东欧珀移动通信有限公司 | Method and system for managing access of application to network |
CN105407515A (en) * | 2015-10-23 | 2016-03-16 | 广东欧珀移动通信有限公司 | Network switching method and device |
CN105764104A (en) * | 2016-04-07 | 2016-07-13 | 上海斐讯数据通信技术有限公司 | Terminal application network switching method and device based on flow |
CN106332194A (en) * | 2016-08-22 | 2017-01-11 | 北京小米移动软件有限公司 | Network switching method and apparatus |
CN106413017A (en) * | 2016-09-18 | 2017-02-15 | 重庆邮电大学 | Fuzzy vertical handoff method for personalized services of terminal in heterogeneous network |
CN106851758A (en) * | 2017-03-17 | 2017-06-13 | 广东欧珀移动通信有限公司 | Communication network changing method and terminal device |
-
2017
- 2017-06-30 CN CN201710522222.3A patent/CN107181624A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104066155A (en) * | 2013-03-21 | 2014-09-24 | 中兴通讯股份有限公司 | Network selection control method and device thereof |
CN103973712A (en) * | 2014-05-29 | 2014-08-06 | 段超 | Access control method and device for network data |
CN104837167A (en) * | 2015-04-29 | 2015-08-12 | 深圳市金立通信设备有限公司 | Network switching method |
CN104967990A (en) * | 2015-04-29 | 2015-10-07 | 深圳市金立通信设备有限公司 | Terminal |
CN105407515A (en) * | 2015-10-23 | 2016-03-16 | 广东欧珀移动通信有限公司 | Network switching method and device |
CN105302279A (en) * | 2015-10-27 | 2016-02-03 | 广东欧珀移动通信有限公司 | Method and system for managing access of application to network |
CN105764104A (en) * | 2016-04-07 | 2016-07-13 | 上海斐讯数据通信技术有限公司 | Terminal application network switching method and device based on flow |
CN106332194A (en) * | 2016-08-22 | 2017-01-11 | 北京小米移动软件有限公司 | Network switching method and apparatus |
CN106413017A (en) * | 2016-09-18 | 2017-02-15 | 重庆邮电大学 | Fuzzy vertical handoff method for personalized services of terminal in heterogeneous network |
CN106851758A (en) * | 2017-03-17 | 2017-06-13 | 广东欧珀移动通信有限公司 | Communication network changing method and terminal device |
Non-Patent Citations (3)
Title |
---|
时岩等: "《无线泛在网络的移动性管理技术》", 28 February 2017, 北京:北京邮电大学出版社 * |
柏松: "《让你的iPhone4s炫起来》", 30 April 2013 * |
路兆铭等: "《软件定义的无线接入网络架构与关键技术》", 30 September 2015, 北京:北京邮电大学出版社 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108337229A (en) * | 2017-12-26 | 2018-07-27 | 神华集团有限责任公司 | Method, storage medium and the electronic equipment that multisystem interconnects |
CN108337229B (en) * | 2017-12-26 | 2021-03-09 | 神华集团有限责任公司 | Multi-system interconnection method, storage medium and electronic equipment |
WO2019205133A1 (en) * | 2018-04-28 | 2019-10-31 | 深圳前海达闼云端智能科技有限公司 | Vpn line handover method, apparatus and electronic device |
CN110380937A (en) * | 2019-07-23 | 2019-10-25 | 中国工商银行股份有限公司 | Network test method and device applied to electronic equipment |
CN110380937B (en) * | 2019-07-23 | 2021-08-31 | 中国工商银行股份有限公司 | Network testing method and device applied to electronic equipment |
CN112422597A (en) * | 2019-08-21 | 2021-02-26 | 北京小米移动软件有限公司 | Network content access method, device and storage medium |
CN112422597B (en) * | 2019-08-21 | 2023-12-12 | 北京小米移动软件有限公司 | Network content access method, device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107181624A (en) | A kind of method for connecting network, electronic equipment and computer-readable storage medium | |
EP3270619B1 (en) | Network connection control method and system for mobile terminal | |
CN103607385B (en) | Method and apparatus for security detection based on browser | |
US8873411B2 (en) | Provisioning of e-mail settings for a mobile terminal | |
CN106973384B (en) | A kind of Wireless Fidelity Wi-Fi connection method and mobile terminal | |
EP2133809A2 (en) | Techniques to establish trust of a web page to prevent malware redirects from web searches or hyperlinks | |
CN108337677A (en) | Network authentication method and device | |
CN105722055A (en) | User roaming method, device and system in wireless local area network (WLAN) | |
CN104601262B (en) | A kind of information processing method and mobile device | |
CN104010291B (en) | Network registering method and its device and mobile terminal | |
US20180075504A1 (en) | User recommendation method and device | |
CN104837179A (en) | Method and device for displaying wireless hotspot equipment producer information | |
CN105744523A (en) | WIFI connection method and mobile terminal | |
CN106851758A (en) | Communication network changing method and terminal device | |
CN107872548A (en) | Web page interlinkage method, apparatus and readable storage medium storing program for executing | |
CN105813078A (en) | Network authentication method, device and system and AP (ACCESS POINT) with authentication function | |
KR101445116B1 (en) | Data filtering for communication devices | |
CN108521402A (en) | A kind of method, apparatus and equipment of output label | |
CN107888419A (en) | A kind of switch network Topology g eneration method and device | |
US10511493B1 (en) | Apparatus and method for managing digital identities | |
CN106603556A (en) | Single sign-on method, device and system | |
CN107294986B (en) | A kind of method, apparatus and system of access HTTPS websites | |
CN103514052B (en) | Multi-application mutually-accessing method and smart card | |
CN102685178A (en) | Remote operation system and remote operation method for terminal | |
CN108170805A (en) | A kind of tables of data comparative approach, device, electronic equipment and readable storage medium storing program for executing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170919 |
|
RJ01 | Rejection of invention patent application after publication |