CN112153753B - Network connection method and device - Google Patents

Network connection method and device Download PDF

Info

Publication number
CN112153753B
CN112153753B CN202011014200.4A CN202011014200A CN112153753B CN 112153753 B CN112153753 B CN 112153753B CN 202011014200 A CN202011014200 A CN 202011014200A CN 112153753 B CN112153753 B CN 112153753B
Authority
CN
China
Prior art keywords
cell
information
data link
link information
network connection
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.)
Active
Application number
CN202011014200.4A
Other languages
Chinese (zh)
Other versions
CN112153753A (en
Inventor
徐飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202011014200.4A priority Critical patent/CN112153753B/en
Publication of CN112153753A publication Critical patent/CN112153753A/en
Application granted granted Critical
Publication of CN112153753B publication Critical patent/CN112153753B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment

Abstract

The embodiment of the application discloses a network connection method and a device, wherein the method comprises the following steps: receiving a first input; transmitting first request information to the first cell in response to the first input, the first request information for requesting first response information including data link information; receiving first response information, the first response information comprising at least one first data link information; in the case where the first response information does not include fourth version internet communication protocol IPv4 data link information, performing either: switching a packet switching domain connected with the electronic equipment, switching a cell providing wireless resources for the electronic equipment and returning to send first request information to the first cell; in case that the first response information includes IPv4 data link information, the network connection is established through IPv4 data link information. According to the embodiment of the application, the internet surfing experience of the user can be improved.

Description

Network connection method and device
Technical Field
The embodiment of the application relates to the field of communication, in particular to a network connection method and device.
Background
Currently, Internet Protocol version 6 (IPv 6) is generally adopted to solve the problem of insufficient network space addresses existing in Internet Protocol version 4 (IPv 4) by adopting Internet Protocol version six, but IPv4 and IPv6 will coexist for a period of time, and in the coexistence period, a dual stack Protocol is used to assist transition from IPv4 to IPv 6.
After the electronic device requests to establish the network connection, the received data link information may include both IPv4 data link information and IPv6 data link information, since the application of IPv6 is still imperfect, many websites do not support access of IPv6, and if the electronic device selects to establish the network connection with the website through IPv6 data link information, the website may not be accessible.
Content of application
The embodiment of the application provides a network connection method and device, which can improve the internet surfing experience of a user.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a network connection method, where the method may include:
receiving a first input of a user request communication;
transmitting first request information to the first cell in response to the first input, the first request information for requesting first response information including data link information;
receiving first response information, the first response information comprising at least one first data link information;
in the case where the first response information does not include fourth version internet communication protocol IPv4 data link information, performing either: switching a packet switching domain connected with the electronic equipment, updating a cell providing wireless resources for the electronic equipment and returning to send first request information to a first cell;
in case that the first response information includes IPv4 data link information, the network connection is established through IPv4 data link information.
In a second aspect, an embodiment of the present application provides a network connection apparatus, which may include:
the receiving module is used for receiving a first input of a user request communication;
a sending module, configured to send, in response to a first input, first request information to a first cell, where the first request information is used to request first response information including data link information;
the receiving module is further used for receiving first response information, and the first response information comprises at least one piece of first data link information;
a switching module, configured to, in a case that the first response information does not include fourth version internet communication protocol IPv4 data link information, perform any one of the following operations: switching a packet switching domain connected with the electronic equipment, updating a cell providing wireless resources for the electronic equipment and returning to send first request information to a first cell;
and the establishing module is used for establishing the network connection through the IPv4 data link information under the condition that the first response information comprises the IPv4 data link information.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, after first request information for requesting to establish the network connection is sent, in the case that the received first response information includes IPv4 data link information, the network connection is established directly through IPv4 data link information; under the condition that the first response message does not include IPv4 data link information, the first request message is retransmitted, or a packet switching domain connected with the electronic equipment is switched or a first cell providing wireless resources for the electronic equipment is switched, and the IPv4 data link information is tried to be reestablished, so that the problem that the electronic equipment cannot be accessed smoothly due to the fact that the electronic equipment is connected with a website which does not support an IPv6 data link can be solved, the loading speed of website interface content is increased, and the internet surfing experience of a user is improved.
Drawings
The present application may be better understood from the following description of specific embodiments of the application taken in conjunction with the accompanying drawings, in which like or similar reference numerals identify like or similar features.
Fig. 1 is a schematic view of an application scenario of a network connection method according to an embodiment of the present application;
fig. 2 is a flowchart of a network connection method according to an embodiment of the present application;
fig. 3 is a flowchart of a method for implementing network connection according to an embodiment of the present application;
fig. 4 is a flowchart of another method for implementing network connection according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a network connection device according to an embodiment of the present application;
fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be implemented in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
First, technical terms related to technical solutions provided by the present disclosure are introduced:
IPv4, also called the fourth version of the internet communication protocol, is the fourth revision in the development process of the internet protocol, which is also the first widely deployed version of this protocol. IPv4 is the core of the internet.
The IPv6 is the next generation IP protocol designed by Internet engineering task force to replace IPv4, and the biggest problem of IPv4 is that the network address resource is insufficient, which severely restricts the application and development of Internet. The use of the IPv6 not only solves the problem of the number of network address resources, but also solves the obstacle of connecting various access devices to the Internet.
The dual protocol stack technology is to enable an IPv4 protocol stack and an IPv6 protocol stack on one device at the same time. In this way, the device can communicate with both the IPv4 network and the IPv6 network. The device has both IPv4 address and IPv6 address, and has the function of processing the two protocol addresses simultaneously.
A Modem (Modem), commonly known as a "cat," is a piece of computer hardware. It can translate the digital signals of the computer into pulse signals that can be transmitted along a normal telephone line, and these pulse signals can be received by another modem at the other end of the line and translated into a language understandable by the computer.
And the wireless Access Point (AP) is used for a wireless switch of the wireless network. A wireless AP is an access point for a mobile computer user to enter a wired network. The wireless AP is a bridge for communication between a wireless network and a wired network, and is a core device for establishing a Wireless Local Area Network (WLAN). It mainly provides mutual access between wireless stations and wired local area networks, so that wireless stations within the signal coverage of the AP can communicate with each other through it.
The Packet Switch domain (PS) is mainly responsible for data traffic, streaming media traffic, etc. The electronic device has a process of logging off and re-registering once in the process of switching the network system on the PS domain. The specific process is as follows:
the electronic device needs to send detach information first, so that the connection with the PS domain is broken first; attach information is sent again for connection with the PS domain again. I.e. deregistered and then registered on the PS domain.
An Internet Protocol (IP) address, i.e., an Internet Protocol address. IP addresses are a unified address format provided by the IP protocol that assigns a logical address to each network and each host on the internet.
Since the IP address has disadvantages of inconvenient memorization and inability to display names and properties of address organizations, Domain names are designed and mapped to each other by a Domain Name System (DNS). The domain name, also called network domain, is the name of a certain computer or group of computers on the Internet composed of a string of names separated by points, and is used for positioning and identifying the computer during data transmission.
The network connection method provided in the embodiment of the present application can be applied to at least the following application scenarios, which are described below.
At present, when an electronic device uses a dual stack technology to surf the internet, an AP connected to the electronic device initiates a request for surfing the internet, a modem connected to the electronic device returns a result of establishing data link information, and if only one piece of data link information is returned, the AP surfs the internet by using the data link information; if both IPv4 data link information and IPv6 data link information are returned, the AP will first establish a network connection using the first received data link information and then attempt to establish a network connection using the second received data link information if the resolution fails.
However, the use of IPv6 is not perfect, and many websites do not support IPv6 access and even IPv6 DNS resolution. When a network only provides an IPv6 address for an electronic device or a modem first reports IPv6 data link information to an AP, as shown in fig. 1, when a user is ready to surf the internet, a large number of situations of failed website domain name resolution and no access occur, which seriously affects user experience. Even if the IPv4 data link information received later can be used to access the internet, the time for the electronic device to attempt network connection is too long, and the interface cannot display the corresponding loaded content in time.
In view of the problems in the related art, embodiments of the present application provide a network connection method and apparatus, an electronic device, and a storage medium, which can solve the problem that the electronic device cannot smoothly access a website in the related art.
The method provided by the embodiment of the application can be applied to other problems of network connection failure caused by IPv6 besides the application scenario.
By the method provided by the embodiment of the application, under the condition that the received first response information comprises IPv4 data link information, network connection is directly established through IPv4 data link information; under the condition that the first response information does not include IPv4 data link information, the first request information is retransmitted, or a packet switching domain connected with the electronic equipment is switched or a first cell providing wireless resources for the electronic equipment is switched, and the IPv4 data link information is tried to be reestablished, so that the problem that the electronic equipment cannot be accessed smoothly due to the fact that a website which does not support the IPv6 data link is connected can be solved.
Based on the application scenario, the network connection method provided in the embodiment of the present application is described in detail below.
Fig. 2 is a flowchart of a network connection method according to an embodiment of the present disclosure.
As shown in fig. 2, the network connection method may include steps 210 to 250, and the method is applied to a network connection device, and specifically as follows:
step 210, a first input of a user request communication is received.
Step 220, in response to the first input, sending first request information to the first cell, the first request information being used for requesting first response information including data link information.
Step 230, receiving a first response message, wherein the first response message includes at least one first data link message.
In step 240, in the case that the first response information does not include the fourth version internet communication protocol IPv4 data link information, performing any one of the following operations: the method comprises the steps of switching a packet switching domain connected with the electronic equipment, updating a cell providing wireless resources for the electronic equipment and sending first request information back to the first cell.
In step 250, in case that the first response information includes IPv4 data link information, a network connection is established through IPv4 data link information.
In the network connection method provided by the application, after first request information for requesting to establish the network connection is sent, in the case that the received first response information includes IPv4 data link information, the network connection is established through IPv4 data link information; under the condition that the first response information does not include IPv4 data link information, the first request information is retransmitted, or a packet switching domain connected with the electronic equipment is switched or a first cell providing wireless resources for the electronic equipment is switched, and the IPv4 data link information is tried to be reestablished, so that the problem that the electronic equipment cannot be accessed smoothly due to the fact that the electronic equipment is connected with a website which does not support an IPv6 data link can be solved, and the loading speed of interface contents of the website is improved.
The following describes the contents of steps 210 to 250:
first, step 210 is involved.
The first input related to the user request communication may be a touch input of the user on the electronic device to a target control, where the target control is used to indicate that a wireless network connection is requested.
Next, step 220 is involved.
In response to the first input, first request information is transmitted to the first cell, the first request information requesting first response information including data link information. The electronic device of the user can use the data link information to surf the internet.
Specifically, an internet access request is initiated to an AP connected to the electronic device, so that the AP sends first request information to the first cell.
The data link information may include, among other things, a domain name system protocol DNS and an IP address of the electronic device of the terminal. The IPv4 data link information includes the DNS of IPv4 and the IPv4 address of the electronic device; the IPv6 data link information includes DNS of IPv6 and IPv6 address of the electronic device.
Then, step 230 is involved.
The first response information includes at least one first data link information. The first response information may include: IPv4 data link information and/or IPv6 data link information.
When the first response information is only IPv4 data link information, the network connection is established using the IPv4 data link information.
When the first response message contains both IPv4 and IPv6 data link messages, regardless of the reporting sequence of the modem, the IPv4 data link messages are preferentially used for establishing the network connection.
When the first response message only includes IPv6 data link information, the specific steps are as shown in the next step 240.
Next, step 240 is involved.
For a more intuitive description of step 240, reference is made below to fig. 3, which shows that step 310-step 360 are included in fig. 3, and specifically as follows:
step 310, sending the first request information to the first cell.
Step 320, receiving the first response information.
The steps 310 to 320 are the same as the above-mentioned methods and procedures in the steps 210 to 220, and are not described herein again.
At step 330, it is determined whether the first response message includes IPv4 data link information.
In step 340, in case that the first response information includes IPv4 data link information, a network connection is established through IPv4 data link information.
In case the first response information does not include the fourth version internet communication protocol IPv4 data link information, step 350, step 360 or return step 310 may be performed.
Step 350, switching a packet switched domain connected with the electronic device.
The step of switching the packet switched domain connected to the electronic device may specifically include the following steps:
a registration request is issued to a wireless access point connected to the electronic device, the registration request instructing the wireless access point to switch a packet switched domain connected thereto.
Specifically, a registration request is sent to a wireless access point connected to the electronic device, where the registration request is used to instruct the AP to initiate "detach/attach" information to the PS domain, and the electronic device needs to send the detach information first to disconnect the connection with the PS domain first; and then transmits the attach information for connection with the PS domain again. I.e., deregister before register on the PS domain. At this time, the IP address acquired when the electronic device was previously registered is retrieved, and the electronic device is assigned an IP address once again when the electronic device is registered again.
Step 360, updating the cell providing the wireless resource for the electronic device.
The step of updating the cell providing the radio resource for the electronic device may specifically include the following steps:
adding a cell identifier of a first cell into a blacklist, wherein the first cell is used for providing wireless resources for the electronic equipment before adding the cell identifier of the first cell into the blacklist; a network connection is established with the second cell.
Illustratively, when searching for a cell that can provide radio resources, the electronic device may have a plurality of candidate cell lists, such as a first cell, a second cell, a third cell, and a fourth cell. After adding the cell identifier of the first cell into the blacklist, when the electronic device searches for the cell which can provide the wireless resource again, the first cell does not appear on the list of the cell to be selected. The electronic device does not establish a connection with the first cell, but selects the second cell from the candidate cell list to acquire the radio resource.
The first cell is different from the second cell.
The step of establishing a network connection with the second cell may specifically include the following steps:
and establishing network connection with the second cell by controlling the switching of the flight mode of the electronic equipment between the starting state and the closing state.
Specifically, first, a third input of the user is received, and in response to the third input, the flight mode of the electronic device is turned on. Then, a fourth input of the user is received, and the flight mode of the electronic device is turned off in response to the fourth input. Thus, by turning on and off the airplane mode of the electronic device, network registration is actually resumed in the second cell to acquire a new IP address of the electronic device.
In the embodiment provided in fig. 3 of the present application, after the first request information for requesting establishment of a network connection is transmitted, in case that the received first response information includes IPv4 data link information, the network connection is established through IPv4 data link information; under the condition that the first response information does not comprise IPv4 data link information, the first request information is sent again, or the IPv4 data link information is tried to be reestablished when a packet switching domain connected with the electronic equipment is switched or a first cell providing wireless resources for the electronic equipment is switched, so that the problem that the electronic equipment cannot be accessed smoothly due to the fact that the electronic equipment is connected with a website which does not support the IPv6 data link can be solved, and the loading speed of interface contents of the website is increased.
In one possible embodiment, in the case that the first response information does not include IPv4 data link information, sending the first request information back to the first cell; receiving second response information; under the condition that the second response information does not comprise IPv4 data link information, switching a packet switching domain connected with the electronic equipment, and returning to send the first request information to the first cell; receiving third response information; in the case where the third response information does not include IPv4 data link information, the cell providing the radio resource for the electronic device is updated, and the first request information is sent back to the first cell.
Based on the foregoing network connection method, in order to describe the steps in this embodiment more intuitively, the following description is made with reference to fig. 4, and as shown in fig. 4, the method for implementing network connection may include steps 401 to 412, where the method is applied to a network connection device, and specifically as follows:
step 401 starts with i equal to 0.
Step 402, sending first request information to a first cell.
In step 403, the first response information is received.
At step 404, it is determined whether the first response message includes IPv4 data link information.
If yes, go to step 405; if not, the process returns to step 402.
Step 406, i equals i + 1. I.e., i is 0+1 is 1.
In step 407, i is equal to 1.
Indicating that the first acquisition of IPv4 data link information failed.
Step 408, i is 2.
After the step 402 is executed, the first request message is continuously sent to the first cell, the first response message is received, it is determined that the first response message includes IPv4 data link information, and if the first response message does not include IPv4 data link information, it indicates that acquiring IPv4 data link information for the second time fails. I.e., i 1+1 2.
In step 409, the packet switched domain connected to the electronic device is switched.
And after the second acquisition of the IPv4 data link information fails, switching a packet switching domain connected with the electronic equipment to acquire a new IP address for the electronic equipment. After switching the packet switched domain connected to the electronic device, the execution returns to step 402.
And step 410, i is 3.
After the step 402 is executed, the first request message is continuously sent to the first cell, the first response message is received, it is determined that the first response message includes IPv4 data link information, and if the first response message does not include IPv4 data link information, it indicates that the third acquisition of IPv4 data link information fails. I.e., i 2+1 3.
Step 411, add the cell id of the first cell to the blacklist.
And step 412, establishing a network connection with the second cell by controlling the switching of the flight mode of the electronic device between the starting state and the closing state.
After the third time of failure of acquiring the IPv4 data link information, network connection is established with the second cell by controlling switching of the flight mode of the electronic device between the on state and the off state, so as to acquire a new IP address for the electronic device. And after the flight mode of the control electronic device is switched between the on state and the off state, returning to execute the step 402 until the IPv4 data link information is acquired.
Here, with the method provided by the embodiment of the present application, after first request information for requesting establishment of a network connection is transmitted, in the case that the received first response information includes IPv4 data link information, the network connection is established through IPv4 data link information; in the case where the first response information does not include IPv4 data link information, resending the first request information; in case that the first response information received after the retransmission of the first request information still does not include IPv4 data link information, resuming the retransmission of the first request information after switching the packet switched domain connected with the electronic device; in the case where the first response information received after continuing to retransmit the first request information does not yet include IPv4 data link information, the first request information is retransmitted after switching to the first cell providing the radio resource for the electronic device to attempt to re-establish IPv4 data link information. Therefore, the problem that the electronic equipment cannot be accessed smoothly due to the fact that the electronic equipment is connected with the website which does not support the IPv6 data link can be solved, and the loading speed of the interface content of the website is increased.
Finally, step 250 is involved.
In a possible embodiment, each first data link information includes a domain name system protocol DNS and an internet protocol IP address of the terminal, and the step 250 may specifically include the following steps:
receiving a second input of the user, wherein the input content of the second input comprises a domain name of the server to be connected; responding to the second input, sending a server connection request, wherein the server connection request is used for requesting a domain name server to analyze the domain name to obtain an IPv4 address corresponding to the domain name; and establishing network connection with the IPv4 address through the IPv4 data link information.
Specifically, a second input of the user is received, and the input content of the second input comprises a domain name of the server to be connected, such as "www. # # #.com"; responding to the second input, sending a server connection request to a domain name server of the IPv4, wherein the server connection request is used for requesting the domain name server to analyze a domain name 'www. # # #.com', and obtaining an IPv4 address corresponding to the domain name; and establishing network connection with the IPv4 address through the IPv4 data link information.
In summary, in the embodiment of the present application, after the first request information for requesting establishment of a network connection is transmitted, in the case that the received first response information includes IPv4 data link information, the network connection is established through IPv4 data link information; under the condition that the first response information does not include IPv4 data link information, the first request information is retransmitted, or the first request information is retransmitted after a packet switching domain connected with the electronic equipment is switched or a first cell providing wireless resources for the electronic equipment is switched, so that the IPv4 data link information is tried to be reestablished, the problem that the electronic equipment cannot be accessed smoothly due to the fact that a website which does not support the IPv6 data link is connected can be solved, and the loading speed of interface contents of the website is improved.
It should be noted that, in the network connection method provided in the embodiment of the present application, the execution main body may be a network connection device, or a control module in the network connection device, which is used for executing the loading of the network connection method. In the embodiment of the present application, a network connection device is taken as an example to execute a method for loading a network connection, and the network connection method provided in the embodiment of the present application is described.
In addition, based on the foregoing network connection method, an embodiment of the present application further provides a network connection device, which is specifically described in detail with reference to fig. 5.
Fig. 5 is a schematic structural diagram of a network connection device according to an embodiment of the present disclosure.
As shown in fig. 5, the network connection device 500 may include:
the receiving module 510 is configured to receive a first input of a user request communication.
A sending module 520, configured to send first request information to the first cell in response to the first input, where the first request information is used to request first response information including data link information.
The receiving module 510 is further configured to receive a first response message, where the first response message includes at least one first data link message.
A switching module 530, configured to, in a case that the first response information does not include fourth version internet communication protocol IPv4 data link information, perform any one of the following operations: the method comprises the steps of switching a packet switching domain connected with the electronic equipment, updating a cell providing wireless resources for the electronic equipment and sending first request information back to the first cell.
An establishing module 540, configured to establish the network connection through the IPv4 data link information if the first response information includes the IPv4 data link information.
In a possible embodiment, the network connection device 500 further includes:
and a returning module, configured to return to send the first request information to the first cell if the first response information does not include IPv4 data link information.
Correspondingly, the receiving module is further configured to receive the second response information.
The switching module 530 is further configured to switch the packet switched domain connected to the electronic device if the second response information does not include IPv4 data link information.
And the returning module is also used for returning to send the first request information to the first cell.
The receiving module 510 is further configured to receive a third response message.
The handover module 530 is further configured to update the cell providing the radio resource for the electronic device, in case that the third response information does not include the IPv4 data link information.
And the returning module is also used for returning to send the first request information to the first cell.
In one possible embodiment, the switching module 530 includes:
the sending module is used for sending a registration request to a wireless access point connected with the electronic equipment, and the registration request is used for indicating the wireless access point to switch a packet switching domain connected with the wireless access point.
In one possible embodiment, the switching module 530 includes:
and the blacklist module is used for adding the cell identifier of the first cell into the blacklist, and the first cell is used for providing wireless resources for the electronic equipment before adding the cell identifier of the first cell into the blacklist.
Accordingly, the establishing module 540 is further configured to establish a network connection with the second cell.
In a possible embodiment, the establishing module 540 is specifically configured to: and establishing network connection with the second cell by controlling the switching of the flight mode of the electronic equipment between the starting state and the closing state. The network connection device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The network connection device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The network connection device provided in the embodiment of the present application can implement each process implemented by the network connection device in the method embodiments of fig. 2 to fig. 4, and is not described here again to avoid repetition.
In summary, the network connection apparatus provided in the embodiment of the present application establishes a network connection through IPv4 data link information in a case where the received first response information includes IPv4 data link information after sending the first request information for requesting establishment of a network connection; under the condition that the first response information does not include IPv4 data link information, the first request information is retransmitted, or the first request information is retransmitted after a packet switching domain connected with the electronic equipment is switched or a first cell providing wireless resources for the electronic equipment is switched, so that the IPv4 data link information is tried to be reestablished, the problem that the electronic equipment cannot be accessed smoothly due to the fact that a website which does not support the IPv6 data link is connected can be solved, and the loading speed of interface contents of the website is improved.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
The electronic device 600 includes, but is not limited to: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, processor 610, and power supply 611. Among other things, input unit 604 may include a graphics processor 6041 and a microphone 6042; the display unit 606 may include a display panel 6061; the user input unit 607 may include a touch panel 6071 and other input devices 6072; the memory 606 may include application programs and an operating system.
Those skilled in the art will appreciate that the electronic device 600 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The user input unit 607 is configured to receive a first input of a user request communication.
A network module 602, configured to send first request information to the first cell in response to the first input, the first request information being used to request first response information including data link information.
The network module 602 is further configured to receive first response information, where the first response information includes at least one first data link information.
A processor 610, configured to, in a case that the first response information does not include fourth version internet communication protocol IPv4 data link information, perform any one of the following operations: the method comprises the steps of switching a packet switching domain connected with the electronic equipment, updating a cell providing wireless resources for the electronic equipment and sending first request information back to the first cell.
The processor 610 is further configured to establish a network connection through the IPv4 data link information if the first response information includes the IPv4 data link information.
Optionally, the processor 610 is further configured to send the first request information back to the first cell if the first response information does not include IPv4 data link information.
The network module 602 is further configured to receive the second response information.
The processor 610 is further configured to switch a packet switched domain connected to the electronic device if the second response information does not include IPv4 data link information.
The processor 610 is further configured to send the first request information back to the first cell.
The network module 602 is further configured to receive third response information.
The processor 610 is further configured to handover to a cell providing radio resources for the electronic device in a case where the third response information does not include IPv4 data link information.
The processor 610 is further configured to send the first request information back to the first cell.
Optionally, the sending module is configured to send a registration request to a wireless access point connected to the electronic device, where the registration request is used to instruct the wireless access point to switch a packet switched domain connected thereto.
Optionally, the processor 610 is further configured to add a cell identifier of the first cell to a blacklist, where the first cell is configured to provide radio resources for the electronic device before adding the cell identifier of the first cell to the blacklist.
The processor 610 is further configured to establish a network connection with a second cell.
The processor 610 is specifically configured to establish a network connection with the second cell by controlling the switching of the flight mode of the electronic device between the on state and the off state.
In the embodiment of the application, after first request information for requesting to establish the network connection is sent, in the case that the received first response information includes IPv4 data link information, the network connection is established through IPv4 data link information; under the condition that the first response information does not include IPv4 data link information, the first request information is retransmitted, or the first request information is retransmitted after a packet switching domain connected with the electronic equipment is switched or a first cell providing wireless resources for the electronic equipment is switched, so that the IPv4 data link information is tried to be reestablished, the problem that the electronic equipment cannot be accessed smoothly due to the fact that a website which does not support the IPv6 data link is connected can be solved, and the loading speed of interface contents of the website is improved.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the foregoing network connection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the foregoing network connection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1. A network connection method, comprising:
receiving a first input of a user request communication;
in response to the first input, sending first request information to a first cell, the first request information requesting first response information including data link information; the first cell is: a cell providing wireless resources for an electronic device;
receiving the first response information, the first response information including at least one first data link information;
in the case that the first response information does not include fourth version internet communication protocol IPv4 data link information, performing any one of the following operations:
switching a packet switching domain connected with the electronic equipment, updating a cell providing wireless resources for the electronic equipment, and returning the first request information sent to the first cell;
establishing a network connection through the IPv4 data link information if the first response information includes the IPv4 data link information;
in the case that the first response information does not include the IPv4 data link information, returning the sending the first request information to the first cell, the method further includes:
receiving second response information;
in the case that the second response information does not include the IPv4 data link information, switching a packet switched domain connected with the electronic device and returning the sending of the first request information to the first cell;
receiving third response information;
in the case that the third response information does not include the IPv4 data link information, updating a cell that provides radio resources for the electronic device, and returning the first request information to the first cell.
2. The method of claim 1, wherein switching a packet switched domain connected to the electronic device comprises:
sending a registration request to a wireless access point connected with the electronic equipment, wherein the registration request is used for instructing the wireless access point to switch a packet switching domain connected with the wireless access point.
3. The method of claim 1, wherein updating the cell providing radio resources for the electronic device comprises:
adding a cell identifier of the first cell to a blacklist, the first cell being configured to provide radio resources for the electronic device before the adding the cell identifier of the first cell to the blacklist;
a network connection is established with the second cell.
4. The method of claim 3, wherein establishing the network connection with the second cell comprises:
and establishing network connection with the second cell by controlling the switching of the flight mode of the electronic equipment between the starting state and the closing state.
5. A network connection device, comprising:
the receiving module is used for receiving a first input of a user request communication;
a sending module, configured to send, in response to the first input, first request information to a first cell, where the first request information is used to request first response information including data link information; the first cell is: a cell providing wireless resources for an electronic device;
the receiving module is further configured to receive the first response information, where the first response information includes at least one piece of first data link information;
a switching module, configured to, in a case that the first response information does not include fourth version internet communication protocol IPv4 data link information, perform any one of the following operations: switching a packet switching domain connected with the electronic equipment, updating a cell providing wireless resources for the electronic equipment, and returning the first request information sent to the first cell;
an establishing module, configured to establish a network connection through the IPv4 data link information if the first response information includes the IPv4 data link information;
the receiving module is further configured to receive second response information when the first response information does not include the IPv4 data link information and the first request information is sent back to the first cell;
the switching module is further configured to switch a packet switched domain connected to an electronic device if the second response information does not include the IPv4 data link information; returning the first request information sent to the first cell;
the receiving module is further configured to receive third response information;
the handover module is further configured to update a cell providing radio resources for the electronic device when the third response information does not include the IPv4 data link information; and returning the first request information sent to the first cell.
6. The apparatus of claim 5, wherein the switching module comprises:
a sending module, configured to send a registration request to a wireless access point connected to the electronic device, where the registration request is used to instruct the wireless access point to switch a packet switched domain connected to the wireless access point.
7. The apparatus of claim 5, wherein the switching module comprises:
a blacklist module, configured to add a cell identifier of the first cell to a blacklist, where the first cell is configured to provide radio resources for the electronic device before the cell identifier of the first cell is added to the blacklist;
the establishing module is further configured to establish a network connection with the second cell.
8. The apparatus according to claim 7, wherein the establishing module is specifically configured to: and establishing network connection with the second cell by controlling the switching of the flight mode of the electronic equipment between the starting state and the closing state.
CN202011014200.4A 2020-09-24 2020-09-24 Network connection method and device Active CN112153753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011014200.4A CN112153753B (en) 2020-09-24 2020-09-24 Network connection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011014200.4A CN112153753B (en) 2020-09-24 2020-09-24 Network connection method and device

Publications (2)

Publication Number Publication Date
CN112153753A CN112153753A (en) 2020-12-29
CN112153753B true CN112153753B (en) 2022-09-16

Family

ID=73896540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011014200.4A Active CN112153753B (en) 2020-09-24 2020-09-24 Network connection method and device

Country Status (1)

Country Link
CN (1) CN112153753B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4246927A3 (en) * 2022-03-15 2023-10-25 Samsung Electronics Co., Ltd. Methods and systems to reduce delays in vowi-fi handover and packet switching registration
CN115334139B (en) * 2022-06-24 2023-12-26 百果园技术(新加坡)有限公司 Communication connection control method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1813484A (en) * 2003-06-27 2006-08-02 诺基亚公司 A method and apparatuses for selecting connection settings by using historydata
CN101043736A (en) * 2006-04-18 2007-09-26 华为技术有限公司 Terminal switching method and system
CN101102284A (en) * 2006-05-25 2008-01-09 三星电子株式会社 Apparatus and method for controlling layer 3 handover of mobile node
CN101426059A (en) * 2008-12-02 2009-05-06 梁勇 Novel communication terminal based on IPv6 internet technique
CN102123387A (en) * 2010-01-11 2011-07-13 华为技术有限公司 Method, device and system for accessing packet data network
CN103368949A (en) * 2005-03-09 2013-10-23 诺基亚公司 A method of configuring a communication device
CN104702600A (en) * 2015-03-02 2015-06-10 国家计算机网络与信息安全管理中心 Method and device for parsing network data message
CN105262648A (en) * 2014-07-14 2016-01-20 中兴通讯股份有限公司 Implementation method, system and equipment for hybrid networking
CN110300115A (en) * 2019-07-05 2019-10-01 腾讯科技(深圳)有限公司 A kind of data transmission method and relevant apparatus based on multichannel

Family Cites Families (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6690669B1 (en) * 1996-11-01 2004-02-10 Hitachi, Ltd. Communicating method between IPv4 terminal and IPv6 terminal and IPv4-IPv6 converting apparatus
DE69737645T2 (en) * 1996-11-01 2007-11-22 Hitachi, Ltd. Communication method between an IPv4 terminal and an IPv6 terminal and IPv4-IPv6 conversion apparatus
FI109950B (en) * 2000-01-20 2002-10-31 Nokia Corp Address Acquisition
JP3924502B2 (en) * 2002-07-04 2007-06-06 富士通株式会社 Mobile communication method and mobile communication system
CN101027889A (en) * 2004-08-06 2007-08-29 高通股份有限公司 Wireless network supporting failover between network protocols
EP1705858A1 (en) * 2005-03-24 2006-09-27 Orange SA Method and system for activation of a packet data protocol context
CN1913461A (en) * 2006-08-30 2007-02-14 北京天地互连信息技术有限公司 Remote vedio monitoring system based on next generation interconnection network and its implementing method
JP4835493B2 (en) * 2007-03-30 2011-12-14 ブラザー工業株式会社 Image forming apparatus
CN101119382A (en) * 2007-09-06 2008-02-06 中兴通讯股份有限公司 Method of mutual communication of IPv4 network and IPv6 network and communication network element system
US20090262684A1 (en) * 2008-04-18 2009-10-22 Amit Khetawat Method and Apparatus for Home Node B Registration using HNBAP
CN102036422B (en) * 2009-09-27 2014-09-17 中国移动通信集团公司 Method, device and system for acquiring IP address
CN102075519A (en) * 2010-12-10 2011-05-25 谭中飞 Network layer protocol capable of replacing IPv6
CN103023787B (en) * 2011-09-26 2016-01-20 百度在线网络技术(北京)有限公司 Data center systems and device and the method for service is provided
JP5967173B2 (en) * 2014-01-31 2016-08-10 株式会社バッファロー Network relay device, method for setting operation mode of packet relay processing unit included in network relay device, and computer program
US11528346B2 (en) * 2014-08-21 2022-12-13 Nokia Technologies Oy IPv4 communications using 6lowpan header compression mechanisms
WO2016118776A1 (en) * 2015-01-21 2016-07-28 CloudLeaf, Inc. Systems, methods and devices for asset status determination
CN105681249B (en) * 2014-11-17 2019-09-13 中国移动通信集团公司 A kind of Network Access Method and link switch equipment
MX2018015296A (en) * 2016-06-10 2019-04-09 At & T Ip I Lp Repeater and methods for use therewith.
CN108702723B (en) * 2016-11-27 2021-10-08 Lg 电子株式会社 Logout method and apparatus in wireless communication system
EP3606116B1 (en) * 2017-03-20 2021-12-01 LG Electronics Inc. Method for interaction between layers in wireless communication system and apparatus therefor
US10931720B2 (en) * 2017-06-08 2021-02-23 Avaya Inc. IP tolerance and signaling interworking
CN109391953B (en) * 2017-08-07 2020-06-30 维沃移动通信有限公司 Wireless link monitoring method and terminal
US10778578B2 (en) * 2017-08-31 2020-09-15 Konica Minolta Laboratory U.S.A., Inc. Method and system having an application for IPv6 extension headers and destination options
CN109861924B (en) * 2017-11-30 2022-06-21 中兴通讯股份有限公司 Message sending and processing method and device, PE node and node
CN109194776B (en) * 2018-09-07 2022-04-22 赛尔网络有限公司 Detection method, system, electronic device and medium
CN110191200A (en) * 2019-04-16 2019-08-30 北京奇艺世纪科技有限公司 Network Access Method, device, electronic equipment and computer-readable medium
CN110392130B (en) * 2019-08-23 2022-09-23 北京天融信网络安全技术有限公司 Information processing method based on network, electronic equipment and network system
CN111200643A (en) * 2019-12-26 2020-05-26 山石网科通信技术股份有限公司 Method, device and system for detecting website address

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1813484A (en) * 2003-06-27 2006-08-02 诺基亚公司 A method and apparatuses for selecting connection settings by using historydata
CN103368949A (en) * 2005-03-09 2013-10-23 诺基亚公司 A method of configuring a communication device
CN101043736A (en) * 2006-04-18 2007-09-26 华为技术有限公司 Terminal switching method and system
CN101102284A (en) * 2006-05-25 2008-01-09 三星电子株式会社 Apparatus and method for controlling layer 3 handover of mobile node
CN101426059A (en) * 2008-12-02 2009-05-06 梁勇 Novel communication terminal based on IPv6 internet technique
CN102123387A (en) * 2010-01-11 2011-07-13 华为技术有限公司 Method, device and system for accessing packet data network
CN105262648A (en) * 2014-07-14 2016-01-20 中兴通讯股份有限公司 Implementation method, system and equipment for hybrid networking
CN104702600A (en) * 2015-03-02 2015-06-10 国家计算机网络与信息安全管理中心 Method and device for parsing network data message
CN110300115A (en) * 2019-07-05 2019-10-01 腾讯科技(深圳)有限公司 A kind of data transmission method and relevant apparatus based on multichannel

Also Published As

Publication number Publication date
CN112153753A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
AU2022200023B9 (en) Method and terminal for supporting voice service and data service simultaneously
CN109088799B (en) Client access method, device, terminal and storage medium
CN109842917B (en) Transmission method of system information block and user terminal
US9008041B2 (en) Processing method supporting handover, communication apparatus, and communication system
US20130346591A1 (en) Clientless Cloud Computing
EP3073705A1 (en) Channel establishing method and apparatus
WO2013131472A1 (en) Message processing method, device and system
CN112153753B (en) Network connection method and device
US9025562B2 (en) Local mobility solution with wired and wireless interface switching
CN115211225B (en) Satellite link information determining method and device
US11612006B2 (en) Routing method and device
CN104812021A (en) Method and device for accessing AC (access controller) by AP (access point)
CN104426816B (en) A kind of virtual machine communication method and device
US11706301B2 (en) Server node selection method and terminal device
CN103259791B (en) One passes through communication route selecting method, terminal and system
JP2022520508A (en) Communication method and communication device
JP2018125774A (en) Communication device
JP2010283413A (en) Communication terminal and communication interface selection program therefor
CN110278558B (en) Message interaction method and WLAN system
CN100488156C (en) Method and system for assisting data transmission
WO2022206865A1 (en) Information processing method and apparatus, terminal, and network side device
CN114143842B (en) Cell access method and device
CN115150357B (en) Information processing method, device, terminal and network side equipment
WO2024067356A1 (en) Network connection method and apparatus, and electronic device and readable storage medium
WO2024066956A1 (en) Network function management method and apparatus, electronic device and storage medium

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
GR01 Patent grant
GR01 Patent grant