CN115002852B - Network access method, device, electronic equipment and readable storage medium - Google Patents
Network access method, device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN115002852B CN115002852B CN202210452198.1A CN202210452198A CN115002852B CN 115002852 B CN115002852 B CN 115002852B CN 202210452198 A CN202210452198 A CN 202210452198A CN 115002852 B CN115002852 B CN 115002852B
- Authority
- CN
- China
- Prior art keywords
- network
- user terminal
- user
- session
- session type
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000007726 management method Methods 0.000 claims description 16
- 238000013500 data storage Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 5
- 238000004891 communication Methods 0.000 abstract description 12
- 238000010586 diagram Methods 0.000 description 5
- 230000009977 dual effect Effects 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000007547 defect Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0083—Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
- H04W36/00837—Determination of triggering parameters for hand-off
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/18—Selecting a network or a communication service
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a network access method, a network access device, electronic equipment and a readable storage medium, and relates to the technical field of communication. The method comprises the following steps: determining a session type corresponding to the user terminal and user subscription data according to an IP session establishment request sent by the user terminal; if the session type and the subscription session type corresponding to the user subscription data are not matched with the roaming area network, the user traffic of the user terminal is led to the home network of the user terminal to go out, wherein the roaming area network is the current access network of the user terminal. Therefore, the problem that the communication service of the user terminal is affected when the session type of the roaming network is not matched with the subscription session type in the related art can be solved.
Description
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a network access method, a device, an electronic device, and a readable storage medium.
Background
When the current mobile terminal accesses the network under the roaming condition, a local break roaming mode is generally adopted, namely, the subscription data of the user and the control data of the internet surfing strategy are in the home location, and the implementation of the internet surfing strategy of the user and the outbound access of the user data to the Internet are in the roaming location.
Based on the local break roaming mode, the IPv6 single stack user can normally acquire the IPv6 terminal address under the roaming condition, but if the roaming place does not have NAT64 and DNS64 devices, the IPv6 single stack user cannot normally access the IPv4 service:
The IPv6 single stack user acquires the IPv6 terminal address in roaming place: the terminal initiates an IP session establishment request to the network, wherein the IP protocol stack type "a" of the IP session is contained (the type of the "a" can be IPv4 single stack, IPv6 single stack and IPv4/IPv6 dual stack), meanwhile, the roaming core network session control network element can acquire the subscription information of the terminal number from the subscription network element of the user attribution, the subscription information contains the IP protocol stack type "b" of the current session to be established (the type of the "b" can be IPv4 single stack, IPv6 single stack and IPv4/IPv6 dual stack), the network distributes the corresponding type of IP address to the user terminal according to the type of the a and the type of the b, and when the a and the b=0, the session establishment fails. a. The relationship between the values of b and the session establishment state is shown in the relationship table of the values of a and b and the session establishment state in fig. 1.
As can be seen from the relationship table shown in fig. 1, the IPv6 single stack user roams in the outer province with three scenes, namely, scene 5, scene 6 and scene 8, where scene 5 and scene 6 are the situations that occur when the IPv6 network is developed and mature, and scene 8 is the main flow situation of the current network, and the policy control network element of the current user home province network cannot distinguish the three scenes, so that different policies cannot be issued according to different scenes.
(2) IPv6 single stack users cannot normally access IPv4 traffic while roaming: the IPv6 single stack user needs to deploy DNS64 and NAT64 equipment in roaming place to realize the access of the IPv6 terminal to the IPv4 server, and in the scene that the DNS64 and NAT64 equipment are not deployed in roaming place, the operator network cannot analyze the address of the server into the address of IPv6 to inform the user, and also cannot convert the IPv6 message sent by the user into the IPv4 message to be sent to the IPv4 server, thereby influencing the service usage of the IPv6 single stack user.
The current solution is: when an IPv6 single stack user roams to the outside, a Home Routed roaming scheme is uniformly adopted, the IP session anchor point of the IPv6 terminal is ensured to be a home location session control network element, and the user plane anchor point is an home location user plane network element, so that although the terminal can be ensured to use the IPv6 single stack to access IPv4 resources anywhere, the Home Routed roaming scheme has the defects in terms of 5G high flow and ultra-low time delay, and therefore, a scheme is needed to adjust the flow dredging mode of the IPv6 single stack user.
Aiming at the problems, no effective solution is proposed at present.
Disclosure of Invention
The embodiment of the invention provides a network access method, a network access device, electronic equipment and a readable storage medium, which are used for solving the problem that the communication service of a user terminal is influenced when the session type of a roaming network is not matched with the session type of a subscription in the related art.
In order to solve the technical problems, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a network access method, where the method includes: determining a session type corresponding to a user terminal and a subscription session type according to an IP session establishment request sent by the user terminal; and if the current access network of the user terminal is a roaming network and the subscription session type is not matched with the session type, leading the user traffic of the user terminal to the home network of the user terminal and discharging.
Further, determining an access network and a subscription session type of the user terminal according to an IP session request sent by the user terminal includes: receiving the IP session establishment request, wherein the IP session establishment request comprises a session type field, and the session type field comprises the session type and the session type; and determining the session type and the session type according to the session type field.
Further, the method further comprises the following steps: and if the access network of the user terminal is a roaming area network and the subscription session type is matched with the session type, leading the user traffic to the access network for outgoing.
Further, the method further comprises the following steps: and if the access network of the user terminal is the home network, leading the user traffic to the home network for outgoing.
Further, if the access network of the ue is a roaming network and the subscription session type does not match the session type, the step of guiding the user traffic of the ue to the home network of the ue to go out includes: if the access network of the user terminal is the roaming area network and the subscription session type of the user terminal is the IPv6 single stack type, an IPv6 single stack address is allocated for the user terminal, and the user traffic is led to the home area network for outgoing.
In a third aspect, an embodiment of the present invention further provides a network access device, where the device includes: the determining module is used for determining the session type and the subscription session type corresponding to the user terminal according to the IP session establishment request sent by the user terminal; and the first routing module is used for leading the user traffic of the user terminal to the home network of the user terminal to go out if the access network of the user terminal is a roaming network and the subscription session type is not matched with the session type.
Further, the determining module includes: a receiving sub-module, configured to receive the IP session establishment request, where the IP session establishment request includes a session type field, where the session type field includes the session type and the session type; and the determining submodule is used for determining the session type and the session type according to the session type field.
Further, the method further comprises the following steps: and the second routing module is used for leading the user traffic to the access network for outgoing if the access network of the user terminal is a roaming place network and the subscription session type is matched with the session type.
Further, the method further comprises the following steps: and the third routing module is used for leading the user traffic to the home network for outgoing if the access network of the user terminal is the home network.
Further, the first routing module includes: and the routing unit is used for distributing an IPv6 single stack address for the user terminal if the access network of the user terminal is the roaming place network and the subscription session type of the user terminal is the IPv6 single stack type, and leading the user traffic to the home network for delivery.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor performs the steps of the network access method as described in the previous first aspect.
In a fourth aspect, embodiments of the present invention additionally provide a storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the network access method as described in the previous first aspect.
In the embodiment of the invention, the session type and the user subscription data corresponding to the user terminal are determined according to the IP session establishment request sent by the user terminal; if the session type and the subscription session type corresponding to the user subscription data are not matched with the roaming area network, the user traffic of the user terminal is led to the home network of the user terminal to go out, wherein the roaming area network is the current access network of the user terminal. In this embodiment, the session type and the subscription session type of the user terminal request are determined according to the IP session establishment request sent by the user terminal, and if both are not matched with the home network, the user traffic of the user terminal is led to the home network of the user terminal to go out. Therefore, the problem that the communication service of the user terminal is influenced when the session type of the roaming network is not matched with the subscription session type in the related art is solved.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of one IP session type in the prior art;
Fig. 2 is a flow chart of a network access method according to an embodiment of the present invention;
Fig. 3 is a schematic diagram of a core network in an embodiment of the invention;
Fig. 4 is a flow chart of another network access method according to an embodiment of the present invention;
Fig. 5 is a schematic structural diagram of an area network access device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
According to an embodiment of the present invention, as shown in fig. 2, there is provided a network access method, which specifically includes the following steps:
S202, determining a session type and user subscription data corresponding to a user terminal according to an IP session establishment request sent by the user terminal;
in this embodiment, the user terminal UE includes, but is not limited to, a mobile terminal capable of performing data communication based on a wireless network, such as a mobile phone, a tablet, and an internet of things device, which is not limited in this embodiment.
The session types in the embodiment include, but are not limited to, IPv4 single stack, IPv6 single stack, IPv4/IPv6 dual stack, etc., where the IPv4 single stack indicates terminal communication with an IP address supported by the user terminal being an IPv4 address; the IPv6 single stack indicates that the terminal with the IP address of the IPv6 address supported by the user terminal performs data communication; the dual stack of IPv4/IPv6 indicates that the terminal with the IP address supported by the user terminal is an IPv4 address or an IPv6 address, and the terminal with any one of the IPv4 address or the IPv6 address may perform data communication.
In a specific application scenario, a core network includes a user subscription data storage network element, a policy control network element, a user access network element, a session management network element, a user plane network element and a base station, wherein after a user terminal UE establishes a session with the user access control network element through a mobile network accessing the base station, the policy control network element determines whether the user terminal is accessed in a roaming manner, and a session type and a subscription session type of the user terminal, and then issues a network access policy control and a charging rule of the user terminal.
In one example, as shown in the core network diagram of fig. 3, the user terminal 300 and the user terminal 302 are located in a home location and a roaming location, respectively, and are user terminals in the same home location. In the home network, the user terminal 300 is connected to the user plane network element 310 and the user access control network element 320 via the base station 1. The home network further includes a subscriber subscription data storage network element 330, a policy control network element 340, and a session management network element 350; in the roaming network, the user terminal 302 is connected to the user plane element 312 and the user access control element 322 through the base station 2, and the roaming network further includes a session management element 352. The same policy control network element 340 issues the internet policy control and charging rules for the user terminal 300 and the user terminal 302, and the subscription session type of the user terminal 300 and the user terminal 302 is stored in the user subscription data storage network element 330.
In this embodiment, after the user terminal accesses the mobile wireless network, an IP session establishment request is initiated, and the session control network element sends a session key cell in the session establishment request to the policy control network element.
Therefore, the policy control network element can directly determine whether the user terminal is positioned in the roaming place network according to the user subscription data, and whether the session type requested by the user terminal is matched with the session type supported by the roaming place network, so that the policy control network element issues the internet policy control and charging rule of the user terminal, and the user flow of the user terminal is dredged according to the matching result.
Optionally, in this embodiment, the access network of the user terminal and the user subscription data are determined according to an IP session establishment request sent by the user terminal, including but not limited to: receiving an IP session establishment request through a session management network element, wherein the IP session establishment request comprises a session type and user subscription data; and sending a session message to the policy control network element through the session management network element, wherein the session message comprises a session type field, and the session type field comprises a session type and user subscription data.
Specifically, in this embodiment, the session management network element receives an IP session establishment request sent by the user terminal, and obtains user subscription data of the user terminal and a session type of the user request according to the IP session establishment request. And sending a session message to the policy control network element through the session management network element, wherein the session message comprises a session type field, and the session type field comprises a session type and user subscription data, so that the policy control network element acquires the current access network and the user subscription data of the user terminal according to the user subscription data in the session type field. The user subscription data is used for indicating that the user subscription data storage network element stores the IP session type subscribed by the user terminal.
In a specific example, a field pduSessionTypeDetail is added in the message from the session management network element to the policy control network element, for identifying the IP session type requested by the UE and the IP session type subscribed by the user subscription data storage network element for the UE. The policy control network element may obtain the subscription session type of the user terminal from the user subscription data storage network element.
Through the embodiment, an IP session establishment request is received through a session management network element, where the IP session establishment request includes a session type and user subscription data; and sending the session message to the policy control network element through the session management network element, so that the policy control network element can quickly and directly determine the session type and the subscription session type of the user terminal.
S204, if the session type and the subscription session type corresponding to the user subscription data are not matched with the roaming area network, the user traffic of the user terminal is led to the home area network of the user terminal to go out, wherein the roaming area network is the current access network of the user terminal.
In a specific application scenario, a policy control network element obtains a subscription session type of a user terminal from a user subscription data storage network element, and when the session type requested by the user terminal is not matched with the subscription session type and the current access network of the user terminal is a roaming network, the policy control network element dredges user traffic of the user terminal to a home network of the user terminal and goes out.
For example, if the subscription session type of the user terminal is an IPv6 single stack, the current access network of the user terminal is an IPv4 single stack, and the session type requested by the user terminal is an IPv6 single stack, the session type requested by the user terminal is not matched with the subscription session type, and the current access network of the user terminal is a roaming network, so that the user traffic of the user terminal is led to the home network of the user terminal to be discharged.
In practical application, a policy rule for judging whether a user accesses roaming is added into a policy control network element; adding policy rules for indicating session control network elements to allocate different types of IP for users; and adding different policy rules of the traffic forwarding actions. In this embodiment, specific policy rules may be set according to actual experience, which is not limited in this embodiment.
In addition, after the IPv6 single stack user terminal carries out network access from the roaming place network, the roaming place network can control the flow forwarding rule issued by the network element according to the attribution place strategy to dredge the user flow, so that the user terminal can normally access the Internet.
Optionally, in the present embodiment, further includes, but is not limited to: if the session type and the signed session type are matched with the roaming network, the user traffic is led to the roaming network for outgoing.
In a specific application scenario, if the session type requested by the user terminal and the subscribed session type of the user terminal are matched with the roaming network, the roaming network may support the session type of the user terminal. For example, the user subscription session type is an IPv6 single stack, and the current access network of the user terminal is an IPv6 single stack, then the subscription session type is matched with the session type of the roaming area network, an IPv6 address is allocated to the user terminal, and the user traffic of the user terminal is forwarded through the roaming area network.
Optionally, in the present embodiment, further includes, but is not limited to: if the current access network of the user terminal is the home network, the user traffic is led to the home network for outgoing.
In a specific application scenario, if the current access network of the user terminal is the home network of the user terminal, the policy control network element issues a default internet policy control and charging rule corresponding to the home location based on the user terminal being stored in the subscription data storage network element.
Optionally, in this embodiment, if the session type and the subscription session type corresponding to the subscription data of the user do not match with the roaming network, the user traffic of the user terminal is led to the home network of the user terminal for outgoing, including but not limited to: if the roaming area network is an IPv4 single stack and the subscription session type and the session type of the user terminal are IPv6 single stack types, an IPv6 single stack address is allocated for the user terminal, and the user traffic is led to the home network for outgoing.
In a specific application scenario, if the session type supported by the roaming network is an IPv4 single stack, and the subscription session type and the session type of the user terminal are an IPv6 single stack, the policy control network element determines whether the user terminal supports only the IPv6 single stack according to the pduSessionTypeDetail cell, if so, issues policy control and charging rules, instructs the user terminal to acquire an IPv6 single stack address, and instructs the roaming network to return the user traffic to the home domain.
In a specific embodiment, the network access method in this embodiment, as shown in fig. 4, may specifically include the following steps:
Step S41: the user terminal accesses the mobile network and initiates an IP session establishment request;
specifically, the session control network element sends the session establishment key information element to the policy control network element.
S42: the strategy control network element judges whether the user terminal is an IPv6 single stack user;
specifically, the policy control network element determines whether the user is an IPv6 single stack user according to pduSessionTypeDetail cells, and if not, executes S43; if yes, S44 is executed.
S43, the strategy control network element issues default network strategy control and charging rules of the number attribution province.
Step S44: the strategy control network element judges whether the user terminal roams in the foreign area;
specifically, the policy control network element determines whether the user terminal roams in a non-home location such as a foreign province according to the cell related to the user location information, and if not, S45 is executed; if yes, S46 is executed.
S45, the strategy control network element issues default network strategy control and charging rules of the number attribution province.
S46, the strategy control network element continuously judges whether the user terminal only supports the IPv6 single stack;
specifically, the policy control network element determines whether the user terminal supports only the IPv6 single stack according to the pduSessionTypeDetail cell, and if not, executes S47; if yes, then execution proceeds to S48.
S47, the policy control network element issues policy control and charging rules to instruct the user to acquire an IPv4/IPv6 dual stack address, and user data is discharged from the roaming place;
S48, the policy control network element issues policy control and charging rules, instructs the user to acquire an IPv6 single stack address, and instructs the roaming place network to dredge the user traffic back to the home place for delivery.
In the above example, the session control network element may send the IP protocol stack type requested/supported by the user terminal and the IP protocol stack type signed by the number to the policy control network element, and the policy control network element determines and issues different policy rules to implement allocation of the terminal IP address.
According to the embodiment of the invention, the session type and the user subscription data corresponding to the user terminal are determined according to the IP session establishment request sent by the user terminal; if the session type and the subscription session type corresponding to the user subscription data are not matched with the roaming area network, the user traffic of the user terminal is led to the home network of the user terminal to go out, wherein the roaming area network is the current access network of the user terminal. In this embodiment, the session type and the subscription session type of the user terminal request are determined according to the IP session establishment request sent by the user terminal, and if both are not matched with the home network, the user traffic of the user terminal is led to the home network of the user terminal to go out. Therefore, the problem that the communication service of the user terminal is influenced when the session type of the roaming network is not matched with the subscription session type in the related art is solved.
Example two
The embodiment of the invention provides a network access device.
Referring to fig. 5, a schematic structural diagram of a network access device according to an embodiment of the present invention is shown.
The application program loading device of the embodiment of the invention comprises: a determination module 50, a processing module 52.
The functions of the modules and the interaction relationship between the modules are described in detail below.
A determining module 50, configured to determine a session type and user subscription data corresponding to a user terminal according to an IP session establishment request sent by the user terminal;
And a processing module 52, configured to, if the session type and the subscription session type corresponding to the user subscription data do not match with a roaming network, dredge the user traffic of the user terminal to the home network of the user terminal, where the roaming network is the current access network of the user terminal.
Optionally, in this embodiment, the determining module 50 includes:
A receiving unit, configured to receive, through a session management network element, the IP session establishment request, where the IP session establishment request includes the session type and the user subscription data;
And the sending unit is used for sending a session message to the policy control network element through the session management network element, wherein the session message comprises a session type field, and the session type field comprises the session type and the user subscription data.
Optionally, in this embodiment, the processing module 50 is further configured to:
and if the session type and the signed session type are matched with the roaming network, the user traffic is led to the roaming network for outgoing.
Optionally, in this embodiment, the processing module 50 is further configured to:
And if the current access network of the user terminal is the home network, leading the user traffic to the home network for outgoing.
Optionally, in this embodiment, the processing module 50 includes:
And the processing unit is used for distributing an IPv6 single stack address for the user terminal if the roaming area network is an IPv4 single stack and the subscription session type and the session type of the user terminal are IPv6 single stack types, and leading the user traffic to the home area network for delivery.
In the embodiment of the invention, the session type and the user subscription data corresponding to the user terminal are determined according to the IP session establishment request sent by the user terminal; if the session type and the subscription session type corresponding to the user subscription data are not matched with the roaming area network, the user traffic of the user terminal is led to the home network of the user terminal to go out, wherein the roaming area network is the current access network of the user terminal. In this embodiment, the session type and the subscription session type of the user terminal request are determined according to the IP session establishment request sent by the user terminal, and if both are not matched with the home network, the user traffic of the user terminal is led to the home network of the user terminal to go out. Therefore, the problem that the communication service of the user terminal is influenced when the session type of the roaming network is not matched with the subscription session type in the related art is solved.
Example III
Preferably, the embodiment of the present invention further provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of the network access method as described above.
Optionally, in the present embodiment, the memory is arranged to store program code for performing the steps of:
S1, determining a session type and user subscription data corresponding to a user terminal according to an IP session establishment request sent by the user terminal;
S2, if the session type and the subscription session type corresponding to the user subscription data are not matched with a roaming area network, the user traffic of the user terminal is led to the home network of the user terminal to go out, wherein the roaming area network is the current access network of the user terminal.
Alternatively, the specific example in this embodiment may refer to the example described in embodiment 1, and this embodiment is not described herein.
Example five
The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the readable storage medium stores a program or instructions that when executed by a processor implement the steps of the regional network access method described in embodiment 1.
Alternatively, in the present embodiment, the storage medium is configured to store program code for performing the steps of:
S1, determining a session type and user subscription data corresponding to a user terminal according to an IP session establishment request sent by the user terminal;
S2, if the session type and the subscription session type corresponding to the user subscription data are not matched with a roaming area network, the user traffic of the user terminal is led to the home network of the user terminal to go out, wherein the roaming area network is the current access network of the user terminal.
Optionally, the storage medium is further configured to store program codes for performing the steps included in the method in the above embodiment 1, which is not described in detail in this embodiment.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Alternatively, the specific example in this embodiment may refer to the example described in embodiment 1, and this embodiment is not described herein.
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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software 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 invention.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.
Claims (12)
1. A network access method, the method comprising:
Determining a session type corresponding to a user terminal and user subscription data according to an IP session establishment request sent by the user terminal;
If the session type and the subscription session type corresponding to the user subscription data are not matched with a roaming area network, the user traffic of the user terminal is led to a home network of the user terminal to be discharged, wherein the roaming area network is a current access network of the user terminal, and the subscription session type of the user terminal is acquired from a user subscription data storage network element through a strategy control network element.
2. The method according to claim 1, wherein determining the access network of the user terminal and the user subscription data according to the IP session request sent by the user terminal comprises:
receiving the IP session establishment request through a session management network element, wherein the IP session establishment request comprises the session type and the user subscription data;
And sending a session message to a policy control network element through the session management network element, wherein the session message comprises a session type field, and the session type field comprises the session type and the user subscription data.
3. The method as recited in claim 1, further comprising:
and if the session type and the signed session type are matched with the roaming network, the user traffic is led to the roaming network for outgoing.
4. The method as recited in claim 1, further comprising:
And if the current access network of the user terminal is the home network, leading the user traffic to the home network for outgoing.
5. The method of claim 1, wherein, if the session type and the subscription session type corresponding to the user subscription data do not match with a roaming network, the step of routing the user traffic of the user terminal to the home network of the user terminal to be outbound includes:
If the roaming area network is an IPv4 single stack and the subscription session type and the session type of the user terminal are IPv6 single stack types, an IPv6 single stack address is allocated for the user terminal, and the user traffic is led to the home area network for outgoing.
6. A network access device, the device comprising:
The determining module is used for determining the session type and the user subscription data corresponding to the user terminal according to the IP session establishment request sent by the user terminal;
And the processing module is used for leading the user traffic of the user terminal to the home network of the user terminal for outgoing if the session type and the subscription session type corresponding to the user subscription data are not matched with the roaming area network, wherein the roaming area network is the current access network of the user terminal, and the subscription session type of the user terminal is acquired from the user subscription data storage network element through the policy control network element.
7. The apparatus of claim 6, wherein the means for determining comprises:
A receiving unit, configured to receive, through a session management network element, the IP session establishment request, where the IP session establishment request includes the session type and the user subscription data;
And the sending unit is used for sending a session message to the policy control network element through the session management network element, wherein the session message comprises a session type field, and the session type field comprises the session type and the user subscription data.
8. The apparatus of claim 6, wherein the processing module is further configured to:
and if the session type and the signed session type are matched with the roaming network, the user traffic is led to the roaming network for outgoing.
9. The apparatus of claim 6, wherein the processing module is further configured to:
And if the current access network of the user terminal is the home network, leading the user traffic to the home network for outgoing.
10. The apparatus of claim 6, wherein the processing module comprises:
And the processing unit is used for distributing an IPv6 single stack address for the user terminal if the roaming area network is an IPv4 single stack and the subscription session type and the session type of the user terminal are IPv6 single stack types, and leading the user traffic to the home area network for delivery.
11. An electronic device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the network access method according to any one of claims 1 to 5.
12. A readable storage medium, characterized in that it has stored thereon a computer program which, when executed by a processor, implements the steps of the network access method according to any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210452198.1A CN115002852B (en) | 2022-04-27 | 2022-04-27 | Network access method, device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210452198.1A CN115002852B (en) | 2022-04-27 | 2022-04-27 | Network access method, device, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115002852A CN115002852A (en) | 2022-09-02 |
CN115002852B true CN115002852B (en) | 2024-09-03 |
Family
ID=83025252
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210452198.1A Active CN115002852B (en) | 2022-04-27 | 2022-04-27 | Network access method, device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115002852B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105451220A (en) * | 2014-09-23 | 2016-03-30 | 黑莓有限公司 | Method and apparatus for selecting an ip type during roaming |
CN108323245A (en) * | 2017-06-19 | 2018-07-24 | 华为技术有限公司 | It is a kind of registration and session establishment method, terminal and AMF entities |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109246769B (en) * | 2017-05-05 | 2020-10-09 | 华为技术有限公司 | PDU session establishment method and device |
CN109819484B (en) * | 2017-11-21 | 2022-01-11 | 华为技术有限公司 | Session context processing method, network element and terminal equipment |
CN110972218B (en) * | 2018-09-30 | 2021-04-09 | 华为技术有限公司 | Communication method and device |
US11991603B2 (en) * | 2019-01-10 | 2024-05-21 | Telefonaktiebolagget LM Ericsson (Publ) | Methods and apparatuses for facilitating roaming of terminal device |
-
2022
- 2022-04-27 CN CN202210452198.1A patent/CN115002852B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105451220A (en) * | 2014-09-23 | 2016-03-30 | 黑莓有限公司 | Method and apparatus for selecting an ip type during roaming |
CN108323245A (en) * | 2017-06-19 | 2018-07-24 | 华为技术有限公司 | It is a kind of registration and session establishment method, terminal and AMF entities |
Also Published As
Publication number | Publication date |
---|---|
CN115002852A (en) | 2022-09-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104918288B (en) | A kind of flow sharing method, equipment and system | |
CN1902877B (en) | Apparatus and method of controlling unsolicited traffic destined to wireless communication device | |
EP2522102B1 (en) | Method, system, and computer readable medium for policy charging and rules function (pcrf) node selection | |
EP1677550A1 (en) | Wireless-line-shared network system, and management apparatus and method therefor | |
CN104145505B (en) | Access processing method, device and system | |
CN107919969A (en) | Policy control method and device | |
CN112105091B (en) | Session management method, session Management Function (SMF) entity, terminal and network side entity | |
CN108271255B (en) | Method and device for distributing service data | |
KR20120093787A (en) | Method and apparatus peer to peer service in wireless communication system | |
CN109891830B (en) | Function scheduling method, device and system | |
CN110177368B (en) | Call establishment method and system, and video communication server | |
KR20130035346A (en) | Method and apparatus for controlling system overload in wireless communication | |
US10264137B2 (en) | Method and system to control expense and usage of subscriptions in a mobile device | |
CN111050355B (en) | Method, device and system for dynamically adjusting Qos of mobile terminal | |
RU2668114C2 (en) | Method of managing shared network users, corresponding device and system | |
KR20080025551A (en) | Apparatus and method for supplying urgent call service in a communication system | |
CN115002852B (en) | Network access method, device, electronic equipment and readable storage medium | |
CN102958128B (en) | The method connected for UE service selection PDN and device | |
CN115515091A (en) | Network address translation method, relay device, communication system, and storage medium | |
CN103269316B (en) | The processing method of routing and device and the network equipment | |
CN102550056B (en) | Method, device and system of strategy control | |
KR20180017936A (en) | Method and apparatus for controlling data service | |
CN116133010B (en) | Network slice replacement method and device | |
KR20100035050A (en) | System and method for preferred roaming service through network based location registering control | |
CN107113694B (en) | network state information transmission method and network equipment |
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 |