CN114363882A - Data card switching method and device - Google Patents

Data card switching method and device Download PDF

Info

Publication number
CN114363882A
CN114363882A CN202111682923.6A CN202111682923A CN114363882A CN 114363882 A CN114363882 A CN 114363882A CN 202111682923 A CN202111682923 A CN 202111682923A CN 114363882 A CN114363882 A CN 114363882A
Authority
CN
China
Prior art keywords
sim card
network
advertisement message
card
data
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
Application number
CN202111682923.6A
Other languages
Chinese (zh)
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.)
Spreadtrum Semiconductor Chengdu Co Ltd
Original Assignee
Spreadtrum Semiconductor Chengdu 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 Spreadtrum Semiconductor Chengdu Co Ltd filed Critical Spreadtrum Semiconductor Chengdu Co Ltd
Priority to CN202111682923.6A priority Critical patent/CN114363882A/en
Publication of CN114363882A publication Critical patent/CN114363882A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides a data card switching method and a device, wherein the method comprises the following steps: when the network device switches the data card from the first SIM card to the second SIM card and the network type supported by the second SIM card is IPV6, receiving a first routing advertisement message from the network device, where the first routing advertisement message carries an IPV6 prefix of the second SIM card and a domain name system DNS proxy lease, so that when the data card is switched from the first SIM card to the second SIM card, the terminal device may be able to quickly connect the network device, recover an internet function, and improve user experience.

Description

Data card switching method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for switching data cards.
Background
At present, a Mobile wireless router (Mobile WIFI, MIFI) can support multiple Subscriber Identity Modules (SIMs), when an MIFI router is switched from a SIM card 1 to a SIM card 2, the SIM card 2 needs to perform Public Data Network (PDN) activation and restart WIFI hotspot and Universal Serial Bus (USB) Network sharing, so that a terminal device connected to the MIFI router reconnects to a Network device and obtains a correct IP address and DNS Server, but in the switching process, the terminal device connected to the MIFI router may not be networked for a long time, which affects user experience.
Disclosure of Invention
The embodiment of the application provides a data card switching method and device, which can reduce the time for a terminal device connected with a network device to recover from surfing the Internet when the network device carries out an SIM card, thereby enhancing user experience.
In a first aspect, an embodiment of the present application provides a data card switching method, which is applied to a terminal device, and the method includes:
when a network device switches a data card from a first SIM card to a second SIM card and a network type supported by the second SIM card is IPV6, receiving a first routing advertisement message from the network device, wherein the first routing advertisement message carries an IPV6 prefix and a Domain Name System (DNS) proxy lease of the second SIM card;
and performing data communication to a public data network PDN based on the IPV6 prefix and the DNS proxy lease.
In a second aspect, an embodiment of the present application provides a data card switching method, which is applied to a network device, and the method includes:
when a data card is switched from a first SIM card to a second SIM card, acquiring a network type supported by the second SIM card;
and when the network type is IPV6, sending a first routing advertisement message to the terminal equipment, wherein the first routing advertisement message carries the IPV6 prefix of the second SIM card and a domain name system DNS proxy lease.
In a third aspect, an embodiment of the present application provides a data card switching apparatus, which is applied to a terminal device, and the apparatus includes:
a transceiving unit, configured to receive a first routing advertisement message from a network device when the network device switches a data card from a first SIM card to a second SIM card and a network type supported by the second SIM card is IPV6, where the first routing advertisement message carries an IPV6 prefix and a domain name system DNS proxy lease of the second SIM card;
the transceiving unit is further configured to perform data communication to a public data network PDN based on the IPV6 prefix and the DNS proxy lease.
In a fourth aspect, an embodiment of the present application provides a data card switching apparatus, which is applied to a network device, and the apparatus includes:
the processing unit is used for acquiring the network type supported by a second SIM card when a data card is switched from a first SIM card to the second SIM card;
a transceiver unit, configured to send a first routing advertisement message to the terminal device when the network type is IPV6, where the first routing advertisement message carries an IPV6 prefix of the second SIM card and a domain name system DNS proxy lease.
In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor, a memory, and a computer program or an instruction stored on the memory, where the processor executes the computer program or the instruction to implement the data card switching method according to the first aspect or the second aspect.
In a sixth aspect, an embodiment of the present application provides a chip module, which includes a transceiver component and a chip, where the chip includes a processor, a memory, and a computer program or an instruction stored in the memory, and the processor executes the computer program or the instruction to implement the data card switching method according to the first aspect or the second aspect.
In a seventh aspect, an embodiment of the present application provides a terminal device, where the terminal device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for performing some or all of the steps described in the method of the first aspect or the second aspect.
In an eighth aspect, the present invention provides a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to perform some or all of the steps described in the method of the first or second aspect.
In a ninth aspect, embodiments of the present application provide a computer program product comprising instructions, which, when run on an electronic device, cause the electronic device to perform the method of the first or second aspect.
According to the technical scheme, when the network equipment switches the data card from the first SIM card to the second SIM card and the network type supported by the second SIM card is IPV6, the first routing notification message from the network equipment is received, and the first routing notification message carries the IPV6 prefix and the domain name system DNS proxy lease of the second SIM card, so that when the data card is switched from the first SIM card to the second SIM card, the terminal equipment can be connected with the network equipment quickly, the internet surfing function is recovered, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a data card switching method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another data card switching method according to an embodiment of the present application;
fig. 3 is a block diagram illustrating functional units of a data card switching device according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram 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 described below with reference to the drawings in the embodiments of the present application.
In order to better understand the scheme of the embodiments of the present application, the following first introduces the related terms and concepts that may be involved in the embodiments of the present application.
A Subscriber Identity Module (SIM), also called a SIM card, is used to implement a connection to a Mobile network, such as a Global System for Mobile Communications (GSM) network or a Universal Mobile Telecommunications System (UMTS) network. The Subscriber Identity Module used in the LTE 3GPP standard is also referred to as Universal Subscriber Identity Module (USIM), which is also a type of SIM. The SIM card is a Universal Integrated Circuit Card (UICC).
The IP Address is a unified Address format provided by the IP Protocol, and allocates a logical Address to each network and each host on the Internet, so as to shield the difference of physical addresses. On the Internet, each node is distinguished from and associated with each other by means of a unique IP address. IP addresses include two types: IPV4 and IPV 6. The IPV4 is a 32-bit binary address consisting of 4 8-bit fields, each separated by a dot number, for identifying the TCP/IP host. Each IP address contains two parts, a network ID and a host ID. Compared to IPV4, IPV6 increases the address length from 32 bits to 128 bits, which can support more address requirements. The network ID identifies all hosts on the same physical network, and the host ID identifies each host on the physical network, so that each computer on the whole Internet is identified by means of a unique IP address.
The Domain Name System (DNS) is a distributed database on the internet as a mapping between Domain names and IP addresses, enabling users to access the internet more conveniently without having to remember IP strings that can be read directly by a machine. The process of mapping a domain name to an IP address is known as "domain name resolution". The domain name resolution needs to be completed by a special domain name resolution server, and the DNS is a server for domain name resolution. When a user enters a DNS name (domain name) in an application, the DNS server can resolve the name to an IP address corresponding thereto. Therefore, the domain name input by the user during surfing the internet can be finally surfed only through the IP address pointed by the domain name.
A terminal device, also called a User Equipment (UE), is a device providing voice and/or data connectivity to a User, such as a handheld device with a wireless connection function, a vehicle-mounted device, and so on. Common terminal devices include, for example: a Mobile phone, a tablet computer, a notebook computer, a palm computer, a Mobile Internet Device (MID), a wearable Device, an intelligent bracelet, a pedometer, a motion Picture Experts Group Audio Layer 3 (MP 3 player), a motion Picture Experts Group Audio Layer 4 (MP 4) player, a Personal Digital Assistant (PDA), a laptop computer, and the like.
A network device, which may also be referred to as a routing device, is a device deployed in a radio access network to provide a wireless routing function, for example, any routing device or access device between a terminal device and a PDN, such as an MIFI router.
At present, the MIFI can support a plurality of SIM cards, a terminal device can activate a PDN as a data card through the SIM card 1, and connect the MIFI through a WIFI hotspot or a USB to access the internet, but when the SIM card 1 cannot access the internet due to some reasons (for example, data traffic is used up), the data card needs to be switched to the SIM card 2, and when the data card is switched, PDN activation needs to be performed on the SIM card 2, and WIFI hotspot and USB network sharing are restarted. However, after the SIM card 2 completes PDN activation, the information of the external network card (such as IP address, DNS Server, etc.) changes, and the terminal device needs to reconnect the MIFI and acquire correct external network information. Therefore, in the process of switching the SIM card, the terminal device connected to the MIFI may not be available for a long time, which affects the user experience.
In order to solve the above problem, the present application provides a data card switching method, where a terminal device is switched from a first SIM card to a second SIM card, and a network type supported by the second SIM card is IPV6, a route notification message sent by a network device is received to obtain an IPV6 prefix of the second SIM card and a domain name system DNS proxy lease, so that the terminal device can quickly connect to a network, recover an internet access function, and improve user experience.
In order to make the technical solutions of the present application better understood, 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 only a part of the embodiments of the present application, and not all of the embodiments. 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.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a data card switching method according to an embodiment of the present disclosure. As shown in fig. 1, the method includes the following steps.
S110, when the data card is switched from the first SIM card to the second SIM card, the network equipment acquires the network type supported by the second SIM card.
The network device may be an MIFI router connected to a terminal device. When the MIFI router uses the first SIM card as a data card to perform data communication with the PDN, but the first SIM card cannot be used as the data card for any reason to go on the internet (for example, data traffic runs out, etc.), the MIFI router may switch the data card from the first SIM card to the second SIM card. In the switching process of the data card, the second SIM card needs to be activated by the PDN and then reconnected with the MIFI to acquire the IP address and the DNS proxy service for the correct internet access, so that the time consumption is long, and the terminal equipment cannot access the internet for a long time. Therefore, in the embodiment of the application, when the network device switches the data card from the first SIM card to the second SIM card, the MIFI may obtain the network type supported by the second SIM card, and further determine the measure for obtaining the internet access parameter of the terminal device according to the network type supported by the MIFI, so as to reduce the time for recovering the internet access when the network device performs the SIM card, and improve the user experience.
Optionally, the method further includes: before the network types supported by the second SIM card are obtained, the connection with the first SIM card is disconnected, and the connection with the second SIM card is established.
When the network device uses the first SIM card as a data card for data communication, the first SIM card needs to perform PDN activation, that is, a connection between the first SIM card and the PDN is established, and the internet access parameters (such as subnet mask, IP address, DNS proxy lease, gateway, operator, and the like) corresponding to the first SIM card are acquired, so that the first SIM card uses the corresponding internet access parameters to perform data communication with the PDN.
Specifically, when the MIFI router switches the data card from the first SIM card to the second SIM card, the external network gateway may change, and the internet access parameter corresponding to the first SIM card may not be applicable to the second SIM card. Therefore, when the data card is switched from the first SIM card to the second SIM card, the MIFI router can perform PDN deactivation operation on the first SIM card so as to disconnect the connection with the first SIM card and cancel the internet access parameter corresponding to the first SIM card stored in the terminal equipment. And meanwhile, the MIFI router performs PDN activation operation on the second SIM card to establish connection with the second SIM card, so that the internet surfing parameters corresponding to the second SIN card are sent to the terminal equipment for updating.
Further, the method further comprises: and updating NAT translation configuration parameters and routing parameters. When the data card is switched from the first SIM card to the second SIM card, because the network card of the external network changes, the NAT conversion configuration parameters and the routing parameters of the network device during data communication also change. Therefore, when the data card is switched, the MIFI router can update the NAT conversion configuration parameters and the routing parameters used after the data card is switched, so that the terminal equipment can recover to surf the internet.
S120, when the network type is IPV6, the network equipment sends a first routing notification message to the terminal equipment, wherein the first routing notification message carries the IPV6 prefix of the second SIM card and a Domain Name System (DNS) proxy lease.
When the type of the network supported by the second SIM card is IPV6, the IPV6 uses a Global address, the external network card changes, the allocated address also changes, and the IPV6 needs to update using the Global address and DNS service. However, since the terminal device cannot know the process of switching the data card from the first SIM card to the second SIM card by the MIFI Router, when determining that the network type supported by the second SIM card is IPV6, the MIFI Router sends a first Routing Advertisement (RA) message to the terminal device, where the first routing Advertisement message may carry an IPV6 prefix and a proxy lease of an external network card corresponding to the second SIM card, and the lifetime of the first routing Advertisement message is set to a valid value. Therefore, the terminal device receives the first route advertisement message and then updates the IPV6 prefix and domain name system DNS proxy lease of the second SIM card on the terminal device.
Optionally, before sending the first route advertisement message to the terminal device, the method further includes: and sending a second route advertisement message to the terminal equipment, wherein the second route advertisement message is used for indicating that the IPV6 prefix and the DNS proxy lease corresponding to the first SIM card are invalid.
In this embodiment of the application, after the MIFI router switches the data card from the first SIM card to the second SIM card, a second route advertisement message may be sent to the terminal device first, where the second route advertisement message may carry the IPV6 prefix and the proxy lease of the extranet card corresponding to the first SIM card, and set the lifetime of the second route advertisement message to 0.
Correspondingly, the terminal device receives the second route advertisement message from the network device, and since the lifetime of the second route advertisement message is 0, the terminal device, after receiving the second route advertisement message, will deregister the IPV6 prefix and the proxy lease carried in the second route advertisement message, that is, deregister the IPV6 prefix and the DNS proxy lease corresponding to the first SIM card.
S130, the terminal equipment receives the first route advertisement message from the network equipment, and carries out data communication to a public data network PDN based on the IPV6 prefix and the DNS proxy lease.
Specifically, after receiving the first route advertisement message sent by the MIFI router, the terminal device may use the IPV6 prefix of the second SIM card and the DNS proxy lease carried by the terminal device as the IPV6 prefix of the terminal device for surfing the internet and the DNS proxy lease. When the terminal device needs to communicate data with the PDN, the terminal device may send a packet to the MIFI router using the updated IPV6 prefix and the DNS proxy lease. After receiving the data packet, the MIFI router normally processes NAT conversion and route forwarding to realize data communication with the PDN, so that the terminal equipment can quickly recover to surf the internet.
It can be seen that, when the network device switches the data card from the first SIM card to the second SIM card and the network type supported by the second SIM card is IPV6, the method receives a first routing advertisement message from the network device, where the routing advertisement message carries an IPV6 prefix of the second SIM card and a domain name system DNS proxy lease, so that when the data card is switched from the first SIM card to the second SIM card, the terminal device can quickly connect to the network device, recover the internet access function, and improve user experience.
Referring to fig. 2, fig. 2 is a schematic flow chart of another data card switching method according to an embodiment of the present disclosure. As shown in fig. 2, the method includes the following steps.
S210, when the data card is switched from the first SIM card to the second SIM card, the network equipment acquires the network type supported by the second SIM card.
S220, when the network type is IPV6, the network equipment sends a first routing notification message to the terminal equipment, wherein the first routing notification message carries the IPV6 prefix of the second SIM card and a Domain Name System (DNS) proxy lease.
And S230, when the network type is IPV4, the terminal equipment receives a first route notification message from the network equipment, and performs data communication to a Public Data Network (PDN) based on the IPV6 prefix and the DNS proxy lease.
The specific implementation manners of S210-S230 may refer to the specific implementation manner described in fig. 1, and are not described herein again.
S240, when the network type is IPV4, the terminal device keeps first information unchanged and performs data communication to the PDN based on the first information, wherein the first information comprises at least one parameter required by the terminal device to connect the network device.
Because the IP address of the IPV4 is the IP address of the lan, when the terminal device does not move or does not move outside the lan, the IP address used by the terminal device to access the internet does not change. Therefore, in this embodiment of the application, when the network type supported by the second SIM card is IPV4, the parameter of the terminal device accessing the internet is not changed. The terminal equipment can use the previous internet surfing parameters to send a data packet, and the MIFI router receiving the data packet normally processes NAT conversion and routing forwarding to realize data communication with the PDN, so that the terminal equipment can quickly recover internet surfing.
In the embodiment of the application, when the network device switches the data card from the first SIM card to the second SIM card, if the network type supported by the second SIM card is IPV4, the parameter of the terminal device that accessed the internet before is directly used for data communication with the PDN, so as to reduce the time for the terminal device to quickly recover from accessing the internet; if the network type supported by the second SIM card is IPV6, the first routing advertisement message sent by the network device is received to obtain an updated IPV6 prefix and DNS proxy lease, so that the terminal device can connect to the network device quickly, recover the internet access function, and improve user experience.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the network device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
Referring to fig. 3, fig. 3 is a block diagram illustrating functional units of a data card switching apparatus 300 according to an embodiment of the present disclosure, where the apparatus 300 is applicable to a terminal device, and the apparatus may also be applied to a network device. The apparatus 300 comprises: a transceiving unit 310 and a processing unit 320.
In a possible implementation manner, the apparatus 300 is configured to execute the respective flows and steps corresponding to the terminal device in the above indication method.
The transceiving unit 310 is configured to receive a first routing advertisement message from a network device when the network device switches a data card from a first SIM card to a second SIM card and a network type supported by the second SIM card is IPV6, where the first routing advertisement message carries an IPV6 prefix and a domain name system DNS proxy lease of the second SIM card;
the transceiving unit 310 is further configured to perform data communication to a public data network PDN based on the IPV6 prefix and the DNS proxy lease.
Optionally, the processing unit 320 is further configured to, when the network type is IPV4, keep first information unchanged, where the first information includes at least one parameter required by the terminal device to connect to the network device;
the transceiving unit 310 is further configured to perform data communication to a public data network PDN based on the first information.
Optionally, before receiving the first route advertisement message from the network device, the transceiving unit 310 is further configured to: receiving a second route advertisement message from the network device, wherein the second route advertisement message is used for indicating that the IPV6 prefix and the DNS proxy lease corresponding to the first SIM card are invalid;
the processing unit 320 is further configured to: and logging off the IPV6 prefix and the DNS proxy lease corresponding to the first SIM card based on the second routing advertisement message.
In another possible implementation manner, the apparatus 300 is configured to execute the respective procedures and steps corresponding to the network device in the above indication method.
The processing unit 320 is configured to, when a data card is switched from a first SIM card to a second SIM card, acquire a network type supported by the second SIM card;
the transceiver 310 is configured to send a first route advertisement message to the terminal device when the network type is IPV6, where the first route advertisement message carries an IPV6 prefix of the second SIM card and a domain name system DNS proxy lease.
Optionally, before sending the first route advertisement message to the terminal device, the transceiving unit 310 is further configured to: and sending a second route advertisement message to the terminal equipment, wherein the second route advertisement message is used for indicating that the IPV6 prefix and the DNS proxy lease corresponding to the first SIM card are invalid.
Optionally, the processing unit 320 is further configured to: before the network types supported by the second SIM card are obtained, the connection with the first SIM card is disconnected, and the connection with the second SIM card is established.
It should be understood that the apparatus 300 herein is embodied in the form of a functional unit. The term "unit" herein may refer to an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality. In an optional example, as can be understood by those skilled in the art, the apparatus 300 may be specifically a terminal device in the foregoing embodiment, and the apparatus 300 may be configured to execute each procedure and/or step corresponding to the terminal device in the foregoing method embodiment, and in order to avoid repetition, details are not described here again.
The device 300 of each scheme has the function of realizing the corresponding steps executed by the terminal equipment in the method; the functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software comprises one or more modules corresponding to the functions; for example, the transceiving unit 310 may be replaced by a transmitter and a receiver, and the processing unit 320 may be replaced by a processor, which respectively perform transceiving operations and related processing operations in the respective method embodiments.
In an embodiment of the present application, the apparatus 300 may also be a chip or a chip system, such as: system on chip (SoC). Correspondingly, the detection unit may be a detection circuit of the chip, and is not limited herein.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present application, where the terminal device includes: one or more processors, one or more memories, one or more communication interfaces, and one or more programs; the one or more programs are stored in the memory and configured to be executed by the one or more processors.
In one possible implementation manner, the electronic device is a terminal device, and the program includes instructions for executing the following steps:
when a network device switches a data card from a first SIM card to a second SIM card and a network type supported by the second SIM card is IPV6, receiving a first routing advertisement message from the network device, wherein the first routing advertisement message carries an IPV6 prefix and a Domain Name System (DNS) proxy lease of the second SIM card;
and performing data communication to a public data network PDN based on the IPV6 prefix and the DNS proxy lease.
In another possible implementation manner, the electronic device is a network device, and the program includes instructions for performing the following steps:
when a data card is switched from a first SIM card to a second SIM card, acquiring a network type supported by the second SIM card;
and when the network type is IPV6, sending a first routing advertisement message to the terminal equipment, wherein the first routing advertisement message carries the IPV6 prefix of the second SIM card and a domain name system DNS proxy lease.
All relevant contents of each scene related to the method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
It will be appreciated that the memory described above may include both read-only memory and random access memory, and provides instructions and data to the processor. The portion of memory may also include non-volatile random access memory. For example, the memory may also store device type information.
In the embodiment of the present application, the processor of the above apparatus may be a Central Processing Unit (CPU), and the processor may also be other general processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASIC), Field Programmable Gate Arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It is to be understood that reference to "at least one" in the embodiments of the present application means one or more, and "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
And, unless stated to the contrary, the embodiments of the present application refer to the ordinal numbers "first", "second", etc., for distinguishing a plurality of objects, and do not limit the sequence, timing, priority, or importance of the plurality of objects. For example, the first information and the second information are different information only for distinguishing them from each other, and do not indicate a difference in the contents, priority, transmission order, importance, or the like of the two kinds of information.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software elements in a processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in a memory, and a processor executes instructions in the memory, in combination with hardware thereof, to perform the steps of the above-described method. To avoid repetition, it is not described in detail here.
The embodiment of the present application further provides a chip, which includes a processor, a memory, and a computer program or an instruction stored in the memory, where the processor executes the computer program or the instruction to implement any one of the data card switching methods described in the above method embodiments.
The embodiment of the present application further provides a chip module, which includes a transceiver component and a chip, where the chip includes a processor, a memory, and a computer program or an instruction stored in the memory, and the processor executes the computer program or the instruction to implement the data card switching method described in any one of the above method embodiments.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods as described in the above method embodiments.
Embodiments of the present application further provide a computer program product including instructions, which, when run on an electronic device, cause the electronic device to perform some or all of the steps of any of the methods described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiments of the present application.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially or partially contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, or a TRP, etc.) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash disk, ROM, RAM, magnetic or optical disk, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. A data card switching method is applied to terminal equipment, and the method comprises the following steps:
when a network device switches a data card from a first SIM card to a second SIM card and a network type supported by the second SIM card is IPV6, receiving a first routing advertisement message from the network device, wherein the first routing advertisement message carries an IPV6 prefix and a Domain Name System (DNS) proxy lease of the second SIM card;
and performing data communication to a public data network PDN based on the IPV6 prefix and the DNS proxy lease.
2. The method of claim 1, further comprising:
when the network type is IPV4, keeping first information unchanged, wherein the first information comprises at least one parameter required by the terminal device to connect the network device;
communicating data to the PDN based on the first information.
3. The method of claim 1 or 2, wherein prior to receiving the first route advertisement message from the network device, the method further comprises:
receiving a second route advertisement message from the network device, wherein the second route advertisement message is used for indicating that the IPV6 prefix and the DNS proxy lease corresponding to the first SIM card are invalid;
and logging off the IPV6 prefix and the DNS proxy lease corresponding to the first SIM card based on the second routing advertisement message.
4. A data card switching device is applied to network equipment, and the method comprises the following steps:
when a data card is switched from a first SIM card to a second SIM card, acquiring a network type supported by the second SIM card;
and when the network type is IPV6, sending a first routing advertisement message to the terminal equipment, wherein the first routing advertisement message carries the IPV6 prefix of the second SIM card and a domain name system DNS proxy lease.
5. The method of claim 4, wherein prior to sending the first route advertisement message to the end device, the method further comprises:
and sending a second route advertisement message to the terminal equipment, wherein the second route advertisement message is used for indicating that the IPV6 prefix and the DNS proxy lease corresponding to the first SIM card are invalid.
6. The method according to claim 4 or 5, further comprising:
before the network types supported by the second SIM card are obtained, the connection with the first SIM card is disconnected, and the connection with the second SIM card is established.
7. A data card switching device is characterized in that the device is applied to terminal equipment and comprises:
a transceiving unit, configured to receive a first routing advertisement message from a network device when the network device switches a data card from a first SIM card to a second SIM card and a network type supported by the second SIM card is IPV6, where the first routing advertisement message carries an IPV6 prefix and a domain name system DNS proxy lease of the second SIM card;
the transceiving unit is further configured to perform data communication to a public data network PDN based on the IPV6 prefix and the DNS proxy lease.
8. A data card switching device is applied to network equipment, and the device comprises:
the processing unit is used for acquiring the network type supported by a second SIM card when a data card is switched from a first SIM card to the second SIM card;
a transceiver unit, configured to send a first routing advertisement message to the terminal device when the network type is IPV6, where the first routing advertisement message carries an IPV6 prefix of the second SIM card and a domain name system DNS proxy lease.
9. A chip comprising a processor, a memory, and a computer program or instructions stored on the memory, the processor executing the computer program or instructions to implement the data card switching method of claims 1-3 or any of claims 4-6.
10. A chip module comprising a transceiver component and a chip, the chip comprising a processor, a memory, and a computer program or instructions stored on the memory, the processor executing the computer program or instructions to implement the data card switching method of claims 1-3 or any of claims 4-6.
11. An electronic device, comprising a processor, memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-3 or 4-6.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the steps of the method according to any of claims 1-3 or claims 4-6.
CN202111682923.6A 2021-12-31 2021-12-31 Data card switching method and device Pending CN114363882A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111682923.6A CN114363882A (en) 2021-12-31 2021-12-31 Data card switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111682923.6A CN114363882A (en) 2021-12-31 2021-12-31 Data card switching method and device

Publications (1)

Publication Number Publication Date
CN114363882A true CN114363882A (en) 2022-04-15

Family

ID=81104402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111682923.6A Pending CN114363882A (en) 2021-12-31 2021-12-31 Data card switching method and device

Country Status (1)

Country Link
CN (1) CN114363882A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101233723A (en) * 2005-08-05 2008-07-30 三星电子株式会社 A method of applying fast mobile ipv6 for mobile nodes in mobile networks, mobile router therefor, and mobile network therefor
CN103634929A (en) * 2013-11-28 2014-03-12 中国联合网络通信集团有限公司 Network switching method and system of MIFI equipment
CN103987092A (en) * 2013-02-08 2014-08-13 华为终端有限公司 Method and device for selecting network device in switching process
CN103987098A (en) * 2014-04-28 2014-08-13 广州杰赛科技股份有限公司 Method and system for switching between IPV4 network and IPV6 network
CN104640120A (en) * 2015-02-11 2015-05-20 杭州中威电子股份有限公司 Covering method and transmission equipment for high-speed mobile WIFI (Wireless Fidelity)
US20150180774A1 (en) * 2013-12-20 2015-06-25 Sandvine Incorporated Ulc System and method for analyzing devices accessing a network
CN104754558A (en) * 2013-12-25 2015-07-01 中国移动通信集团公司 Method and corresponding equipment for selecting network connection
CN104753793A (en) * 2013-12-26 2015-07-01 联芯科技有限公司 Method for statefull management of access terminal under stateless internet protocol version 6 (IPv6) configuration
CN105657689A (en) * 2015-11-06 2016-06-08 乐卡汽车智能科技(北京)有限公司 MiFi control method and device
CN105813062A (en) * 2016-04-28 2016-07-27 上海吾游信息技术有限公司 Automatic switching method and device for SIM (Subscriber Identity Module) card
CN107231704A (en) * 2016-03-25 2017-10-03 中兴通讯股份有限公司 Method for connecting network and device
CN109041140A (en) * 2018-07-09 2018-12-18 深圳绿米联创科技有限公司 It is switched fast wireless network methods, Intelligent hardware and terminal device
CN110868702A (en) * 2018-08-27 2020-03-06 深圳市讯扬通信有限公司 Software implementation of shared intelligent terminal data traffic

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101233723A (en) * 2005-08-05 2008-07-30 三星电子株式会社 A method of applying fast mobile ipv6 for mobile nodes in mobile networks, mobile router therefor, and mobile network therefor
CN103987092A (en) * 2013-02-08 2014-08-13 华为终端有限公司 Method and device for selecting network device in switching process
CN103634929A (en) * 2013-11-28 2014-03-12 中国联合网络通信集团有限公司 Network switching method and system of MIFI equipment
US20150180774A1 (en) * 2013-12-20 2015-06-25 Sandvine Incorporated Ulc System and method for analyzing devices accessing a network
CN104754558A (en) * 2013-12-25 2015-07-01 中国移动通信集团公司 Method and corresponding equipment for selecting network connection
CN104753793A (en) * 2013-12-26 2015-07-01 联芯科技有限公司 Method for statefull management of access terminal under stateless internet protocol version 6 (IPv6) configuration
CN103987098A (en) * 2014-04-28 2014-08-13 广州杰赛科技股份有限公司 Method and system for switching between IPV4 network and IPV6 network
CN104640120A (en) * 2015-02-11 2015-05-20 杭州中威电子股份有限公司 Covering method and transmission equipment for high-speed mobile WIFI (Wireless Fidelity)
CN105657689A (en) * 2015-11-06 2016-06-08 乐卡汽车智能科技(北京)有限公司 MiFi control method and device
CN107231704A (en) * 2016-03-25 2017-10-03 中兴通讯股份有限公司 Method for connecting network and device
CN105813062A (en) * 2016-04-28 2016-07-27 上海吾游信息技术有限公司 Automatic switching method and device for SIM (Subscriber Identity Module) card
CN109041140A (en) * 2018-07-09 2018-12-18 深圳绿米联创科技有限公司 It is switched fast wireless network methods, Intelligent hardware and terminal device
CN110868702A (en) * 2018-08-27 2020-03-06 深圳市讯扬通信有限公司 Software implementation of shared intelligent terminal data traffic

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
""C1-174563 was C1-173868 Clarification on IPv6 addresses comparison during handover"", 3GPP TSG_CT\\WG1_MM-CC-SM_EX-CN1, pages 1 - 12 *

Similar Documents

Publication Publication Date Title
EP4000287B1 (en) Mechanism to facilitate signaling traffic
US10104700B2 (en) Message processing method, MME selection method, and apparatuses
RU2366100C2 (en) System and method to use ip-address as wireless module identifier
EP2939399B1 (en) Methods and system for seamless network communications between ipv4 and ipv6 devices
CN106789526B (en) method and device for connecting multiple system networks
US8982815B2 (en) Apparatuses and methods for IPV6 address acquisition
CN113162857B (en) Method and gateway for acquiring route on demand
US10021512B2 (en) Switching to advertising locator after connection establishment
EP4380207A2 (en) Communication system
US20220174586A1 (en) Network connection control method and related products
US9615246B2 (en) Dynamic allocation of host IP addresses
CN110752975A (en) Network sharing method and device
JP5914750B2 (en) Method for accessing packet switched network, WLAN access system, and user equipment
CN113691610B (en) Data acquisition method and device, electronic equipment and storage medium
CN111404975A (en) Message transmission method, device, equipment and computer storage medium
CN107534585B (en) Communication method and terminal
CN114363882A (en) Data card switching method and device
US8923311B2 (en) Communication system and method
CN114024903A (en) Network switching method and device and gateway equipment
CN107113295B (en) Communication method, device and system
CN113242180B (en) Message forwarding method, device, equipment, readable storage medium and program product
CN117917880A (en) Method and device for selecting access network
CN116366590A (en) Message transmission method and communication device
JP2024050133A (en) Mobility management device, mobility management system, mobility management method, and mobility management program
CN115529680A (en) Method and apparatus for performing internet reachability management with indicator

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