Data distribution method, session management function network element and policy control function network element

By implementing session policy requests and responses between the network element of the public network session management function and the network element of the policy control function, and selecting different diversion points according to the location of the user equipment for data diversion, the problem of difficulty in isolation of public network services and private network services in the prior art is solved, and the secure isolation of private network data is achieved.

CN119835163APending Publication Date: 2025-04-15ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311333017.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-13
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

It is difficult for the existing technology to effectively isolate public network services and private network services, resulting in private network data that may be circulated outside the park through the public network.

Method used

By implementing session policy requests and responses between the public network session management function network element and the policy control function network element, different shunt points are selected according to the location information of the user equipment for data diversion. When the user equipment is in the park, a shunt point communication with the first network element is selected; when the user equipment is outside the park, a shunt point communication with the second network element is selected.

Benefits of technology

It realizes effective isolation between public network services and private network services, ensures that private network data does not spread to the park through the public network, and improves network isolation and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835163A_ABST
    Figure CN119835163A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data distribution method, a public network session management function network element and a policy control function network element. The method comprises the following steps: acquiring a public network session establishment request initiated by user equipment; a session policy request message is sent to a policy control function network element, the session policy request message carries position information of the user equipment, and the position information of the user equipment comprises that the user equipment accesses in the park or accesses outside the park; a session policy response message issued by the policy control function network element is received, and the session policy response message carries a shunting policy corresponding to the position information of the user equipment; and selecting a distribution point of the first network element or a distribution point of the second network element according to the distribution strategy so as to distribute the user plane data of the user equipment. According to the invention, the effect of effectively isolating the public network service from the private network service is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of communications, and in particular, to a data offloading method, a public network session management function network element, and a policy control function network element. Background Art

[0002] In the related technology, it is necessary to establish a general network link to provide users with access to public network services, and to add a private network link on the basis of the general network link to provide users with access to private network services. Therefore, users can access public network services through the general network link, and can access private network services through the general network link and the private network link.

[0003] However, both public network data and private network data need to share the public network main UPF anchor point for distribution. It is difficult for users to offload local traffic to access public network services or private network services, and it is difficult to effectively isolate public network services from private network services. Summary of the invention

[0004] The embodiments of the present invention provide a data diversion method, a public network session management function network element, and a policy control function network element, so as to at least solve the problem that it is difficult to effectively isolate public network services and private network services in related technologies.

[0005] According to an embodiment of the present invention, a method for data offloading is provided, and the method is applied to a public network session management function network element, comprising:

[0006] Obtain a public network session establishment request initiated by a user device;

[0007] Sending a session policy request message to a policy control function network element, wherein the session policy request message carries the location information of the user equipment, and the location information of the user equipment includes that the user equipment is accessed within the park or that the user equipment is accessed outside the park;

[0008] Receiving a session policy response message sent by the policy control function network element, wherein the session policy response message carries a diversion policy corresponding to the location information of the user equipment;

[0009] According to the diversion strategy, the diversion point of the first network element or the diversion point of the second network element is selected to divert the user plane data of the user device; wherein, when the user device is within the park, the user device communicates with the diversion point of the first network element, and when the user device is outside the park, the user device communicates with the diversion point of the second network element.

[0010] According to another embodiment of the present invention, a method for data offloading is provided, the method being applied to a policy control function network element, comprising:

[0011] Obtaining a session policy request message sent by a public network session management function network element, wherein the session policy request message carries location information of the user equipment, and the location information of the user equipment includes that the user equipment is accessed within the park or that the user equipment is accessed outside the park;

[0012] Sending a session policy response message, wherein the session policy response message carries a diversion policy corresponding to the location information of the user equipment;

[0013] The public network session management function network element selects the diversion point of the first network element or the diversion point of the second network element according to the diversion strategy to divert the user plane data of the user device; wherein, when the user device is within the park, the user device communicates with the diversion point of the first network element, and when the user device is outside the park, the user device communicates with the diversion point of the second network element.

[0014] According to another embodiment of the present invention, a public network session management function network element is provided, including:

[0015] An acquisition module, used to acquire a public network session establishment request initiated by a user device;

[0016] a processing module, configured to send a session policy request message to a policy control function network element, wherein the session policy request message carries the location information of the user equipment, and the location information of the user equipment includes that the user equipment is accessed within the park or that the user equipment is accessed outside the park; and

[0017] receiving a session policy response message sent by the policy control function network element, wherein the session policy response message carries a diversion policy corresponding to the location information of the user equipment; and

[0018] According to the diversion strategy, the diversion point of the first network element or the diversion point of the second network element is selected to divert the user plane data of the user device; wherein, when the user device is within the park, the user device communicates with the diversion point of the first network element, and when the user device is outside the park, the user device communicates with the diversion point of the second network element.

[0019] According to another embodiment of the present invention, a policy control function network element is provided, including:

[0020] An acquisition module, used to acquire a session policy request message sent by a public network session management function network element, wherein the session policy request message carries the location information of the user equipment, and the location information of the user equipment includes that the user equipment is accessed within the park or that the user equipment is accessed outside the park;

[0021] a processing module, configured to send a session policy response message, wherein the session policy response message carries a diversion policy corresponding to the location information of the user equipment; and

[0022] The public network session management function network element selects the diversion point of the first network element or the diversion point of the second network element according to the diversion strategy to divert the user plane data of the user device; wherein, when the user device is within the park, the user device communicates with the diversion point of the first network element, and when the user device is outside the park, the user device communicates with the diversion point of the second network element.

[0023] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when running.

[0024] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0025] Through the present invention, when the user equipment is accessed in the park, the user equipment communicates with the diversion point of the first network element; when the user equipment is accessed outside the park, the user equipment communicates with the diversion point of the second network element. Therefore, the user can select different diversion points according to their own location, thereby achieving effective isolation of public network services and private network services, and ensuring that private network data does not flow outside the park through the public network. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A network architecture is implemented according to a method for data offloading according to an embodiment of the present invention;

[0027] Figure 2 Another network architecture is provided according to a method for data offloading according to an embodiment of the present invention;

[0028] Figure 3 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 1 ;

[0029] Figure 4 This is a signaling interaction diagram for accessing a public network session or a private network session within a park according to an embodiment of the present invention;

[0030] Figure 5 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 2 ;

[0031] Figure 6 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 3 ;

[0032] Figure 7 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 4 ;

[0033] Figure 8 A flowchart of a specific method for selecting a diversion point of a first network element or a diversion point of a second network element according to a diversion strategy;

[0034] Fig. 9 This is a signaling interaction diagram for accessing a public network session or a private network session outside a campus according to an embodiment of the present invention;

[0035] Fig.10 This is a process of a data splitting method according to an embodiment of the present invention. Figure 5 ;

[0036] Fig.11 This is a process of a data splitting method according to an embodiment of the present invention. Figure 6 ;

[0037] Fig.12 A flowchart of a specific method of selecting the diversion point of the first network element or the diversion point of the second network element according to the diversion strategy, wherein the diversion point of the second network element and the public network anchor point of the second network element are the same anchor point;

[0038] Fig.13 This is a signaling interaction diagram for maintaining an uninterrupted session when a user moves from within a campus to outside the campus according to an embodiment of the present invention;

[0039] Fig.14 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 7 ;

[0040] Fig.15 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 8 ;

[0041] Fig.16 This is a signaling interaction diagram for maintaining an uninterrupted session when a user moves from outside a campus to inside a campus according to an embodiment of the present invention;

[0042] Fig.17 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 9 ;

[0043] Fig.18 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 10 ;

[0044] Fig.19is a structural block diagram of a public network session management function network element according to an embodiment of the present invention;

[0045] Fig. 20 It is a structural block diagram of a policy control function network element according to an embodiment of the present invention. DETAILED DESCRIPTION

[0046] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0047] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0048] The present application embodiment can be run on Figure 1 In the network architecture shown in Figure 1 As shown, the network architecture includes: PCF, public network SMF, public network anchor point UPF, diversion point UPF, private network SMF, private network anchor point UPF. Among them, the user equipment communicates with the diversion point UPF through the base station. The diversion point UPF exchanges data with the public network through the public network anchor point UPF, and the diversion point UPF accesses the private network to exchange data through the private network anchor point UPF. Among them, the public network SMF and the private network SMF can be separated or combined; the diversion point UPF and the private network anchor point UPF can be separated or combined.

[0049] For example: "Public network SMF" and "Private network SMF" can be separated or combined, which means that in the 5G network, the session management function (SMF) can be deployed in different configurations between the public network and the private network.

[0050] Separation: In the case of separation, the public network SMF and the private network SMF are independent entities. The public network SMF is responsible for session management and control of public network users, while the private network SMF focuses on session management and control of private network users. This separation deployment method can be used to meet the needs of different network areas or user groups and provide better isolation and customization capabilities.

[0051] Unification: In the case of unification, the public network SMF and the private network SMF are merged into a unified entity. This means that the same SMF entity is responsible for managing and controlling the sessions of public network users and private network users. This unified deployment method can simplify network architecture and management, improve resource utilization efficiency, and better support unified service strategies and coordination.

[0052] The present application embodiment can also be run on Figure 2 In the network architecture shown in Figure 2As shown, the network architecture includes: PCF, public network SMF, public network anchor point UPF (divergence point UPF), private network SMF, private network anchor point UPF. Among them, the user equipment communicates with the public network anchor point UPF (divergence point UPF) through the base station. The public network anchor point UPF (divergence point UPF) exchanges data with the public network, and the public network anchor point UPF (divergence point UPF) exchanges data with the private network through the private network anchor point UPF. Among them, the public network SMF and the private network SMF can be separated or integrated.

[0053] In this embodiment, a method for data offloading running on the above network architecture is provided, and the method is applied to a public network session management function network element. Figure 3 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 1 , Figure 4 1 is a signaling interaction diagram for accessing a public network session or a private network session within a park according to an embodiment of the present invention. Figure 3 and Figure 4 As shown, the process includes the following steps:

[0054] Step S301, obtaining a public network session establishment request initiated by a user device;

[0055] Step S302: Send a session policy request message to the policy control function network element, wherein the session policy request message carries the location information of the user equipment, and the location information of the user equipment includes whether the user equipment is accessed within the campus or outside the campus;

[0056] Step S303: receiving a session policy response message sent by a policy control function network element, wherein the session policy response message carries a diversion policy corresponding to the location information of the user equipment;

[0057] Step S304, select the diversion point of the first network element or the diversion point of the second network element according to the diversion strategy to divert the user plane data of the user device; wherein, when the user device is in the park, the user device communicates with the diversion point of the first network element, and when the user device is outside the park, the user device communicates with the diversion point of the second network element.

[0058] By including the location information of the user device in the session policy request message and sending it to the policy control function network element, different diversion strategies are selected according to the location of the user device. When the user device is in the park, it chooses to communicate with the diversion point of the first network element; when the user device is outside the park, it chooses to communicate with the diversion point of the second network element.

[0059] Such a method solves the problem that it is difficult to effectively isolate public network services and private network services in the prior art. Since the present invention adopts a solution that when the user device is accessed within the park, the user device communicates with the diversion point of the first network element; when the user device is accessed outside the park, the user device communicates with the diversion point of the second network element. Therefore, users can choose different diversion points according to their own locations, thereby achieving effective isolation of public network services and private network services. When a user uses the diversion point of the first network element in the park to access private network services, it can be ensured that private network data does not flow outside the park through the public network.

[0060] In an exemplary implementation, the public network service and the private network service may be campus network dual-domain network service, enterprise office network dual-domain network service, government network dual-domain network service, Internet of Vehicles dual-domain network service, etc. For example, the public network service is accessing the Internet, and the private network service is accessing the campus electronic library.

[0061] Figure 5 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 2 ,like Figure 5 As shown,

[0062] In one implementation, before selecting the diversion point of the first network element or the diversion point of the second network element according to the diversion strategy, the method further includes:

[0063] Step S501, notifying the public network anchor point to establish an N4 public network session;

[0064] Step S502, notifying the user device that a public network session has been established, thereby completing the public network session establishment process;

[0065] Step S503, enabling the user equipment to communicate with the public network anchor point, so that the user equipment is connected to the public network;

[0066] Step S504: The diversion point of the first network element or the diversion point of the second network element communicates with the private network anchor point through the private network session management function network element, so that the user equipment is connected to the private network.

[0067] Through the above steps, the user device can establish connections with the public network and the private network at the same time, and realize the traffic diversion between the public network and the private network of the user device. In this way, the user device can conveniently access public network services and private network services, realizing the interconnection of public network services and private network services.

[0068] Figure 6 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 3 ,like Figure 6 As shown,

[0069] In one implementation, after sending the session policy request message to the policy control function network element, the method further includes:

[0070] Step S601, so that the policy control function network element determines whether the user equipment is in the park. If the policy control function network element determines that the user equipment is in the park, the policy control function network element sends a first diversion strategy for the user equipment to connect to the private network in the park;

[0071] If the policy control function network element determines that the user device is in the campus, that is, the condition is met, then the policy control function network element will send the first diversion strategy for the user device to connect to the private network in the campus. This means that when the user device is in the campus, the first diversion strategy will be used for private network connection.

[0072] Step S602: Obtain a first offload strategy, and notify the public network anchor point of the first network element to establish an N4 public network session according to the first offload strategy.

[0073] By communicating with the public network anchor point of the first network element, the user device can establish a connection with the public network and access public network services. In this way, the user device can access public network services through the public network within the park and establish a connection with the private network.

[0074] Through the above steps, the diversion strategy is determined according to whether the user device is in the park, and the private network connection and public network access of the user device in the park are realized. In this way, the user device can conveniently access services in the park.

[0075] Figure 7 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 4 ,like Figure 7 As shown,

[0076] In one implementation, after sending the session policy request message to the policy control function network element, the method further includes:

[0077] Step S701, enabling the policy control function network element to send a second traffic diversion strategy for user equipment to connect to a private network within a campus and outside the campus;

[0078] The policy control function network element sends a second diversion strategy for user equipment to connect to the private network within the campus and outside the campus, so that the user equipment can connect to the private network both within the campus and outside the campus, and the second diversion strategy will be used for private network connection.

[0079] Step S702: Obtain a second traffic diversion strategy;

[0080] Step S703: determine whether the user equipment is in the park. If it is determined that the user equipment is in the park, notify the public network anchor point of the first network element to establish an N4 public network session according to the second offload strategy.

[0081] If it is determined that the user device is in the park, that is, the condition is met, then the policy control function network element will notify the public network anchor point of the first network element to establish an N4 public network session according to the second diversion strategy. Through communication with the public network anchor point of the first network element, the user device can establish a connection with the public network and access public network services. In this way, the user device can access public network services through the public network in the park and establish a connection with the private network.

[0082] Through the above steps, the diversion strategy is determined according to whether the user device is in the park, and the private network connection and public network access of the user device in the park are realized. In this way, the user device can conveniently access services in and outside the park.

[0083] Figure 8 A flow chart of a specific method for selecting a diversion point of a first network element or a diversion point of a second network element according to a diversion strategy, such as Figure 8 As shown,

[0084] In one implementation, selecting a diversion point of the first network element or a diversion point of the second network element according to the diversion strategy specifically includes:

[0085] Step S801, establishing an N4 session with a diversion point of a first network element, and sending a diversion rule so that the diversion point communicates with the user equipment;

[0086] This means that communication will be established with the diversion point of the first network element so as to transfer the diversion rule to the diversion point so that the diversion point can communicate with the user equipment.

[0087] Step S802, notifying the private network session management function network element to update the private network session, and opening the N9 tunnel between the diversion point and the private network anchor point, so that the diversion point and the private network anchor point can communicate;

[0088] By notifying the private network session management function element, the N9 tunnel between the diversion point and the private network anchor point can be opened, so that the diversion point can communicate with the private network anchor point. In this way, the diversion point can establish a connection with the private network anchor point to achieve the update of the private network session.

[0089] Step S803, notifying the public network anchor point of the first network element to update the N4 session, and opening the N9 tunnel between the diversion point and the public network anchor point, so that the diversion point and the public network anchor point can communicate.

[0090] By notifying the public network anchor point of the first network element, the N9 tunnel between the diversion point and the public network anchor point can be opened, so that the diversion point can communicate with the public network anchor point. In this way, the diversion point can establish a connection with the public network anchor point to achieve the update of the public network session.

[0091] Through the above steps, the diversion point of the first network element or the diversion point of the second network element is selected according to the diversion strategy, and the corresponding session communication is established. In this way, the diversion point can communicate with the user equipment, the private network anchor point and the public network anchor point to achieve data transmission and service access.

[0092] In one implementation, after notifying the private network session management function network element to update the private network session and opening the N9 tunnel between the diversion point and the private network anchor point, the method further includes:

[0093] Notify the public network anchor point of the first network element to update the N4 session;

[0094] Notify the diversion point of the second network element to delete the diversion rule.

[0095] like Figure 4 As shown, the public network UL data forwarding path is from UE (user equipment) to the diversion point UPF to the public network anchor point UPF to the public network; the public network DL data forwarding path is from the public network to the public network anchor point UPF to the diversion point UPF to the UE (user equipment); the private network UL data forwarding path is from UE (user equipment) to the diversion point UPF to the private network anchor point UPF to the private network; the private network DL data forwarding path is from the private network to the private network anchor point UPF to the diversion point UPF to the UE (user equipment).

[0096] Fig. 9 is a signaling interaction diagram for accessing a public network session or a private network session outside a campus according to an embodiment of the present invention. Fig.10 This is a process of a data splitting method according to an embodiment of the present invention. Figure 5 ,like Fig. 9 and Fig.10 As shown,

[0097] In one implementation, after sending the session policy request message to the policy control function network element, the method further includes:

[0098] Step S1001, so that the policy control function network element determines whether the user equipment is outside the campus. If the policy control function network element determines that the user equipment is outside the campus, the policy control function network element sends a third diversion strategy for the user equipment to connect to a private network outside the campus;

[0099] If the policy control function network element determines that the user device is outside the campus, it will send the third diversion strategy for the user device to connect to the private network outside the campus. This means that when the user device is outside the campus, the policy control function network element will divert traffic according to the third diversion strategy to achieve the connection between the user device and the private network.

[0100] Step S1002: Obtain a third traffic diversion strategy, and notify the public network anchor point of the second network element to establish an N4 public network session according to the third traffic diversion strategy.

[0101] By notifying the public network anchor point, the policy control function network element realizes the establishment of the N4 public network session between the diversion point and the public network anchor point. In this way, the diversion point can establish a connection with the public network anchor point and perform data transmission and service access according to the third diversion strategy.

[0102] Through the above steps, according to whether the user device is outside the campus, the policy control function network element can execute the corresponding diversion strategy to connect the user device to the private network or the public network. In this way, the access of user devices can be flexibly managed, and data transmission and service access can be realized.

[0103] Fig.11 This is a process of a data splitting method according to an embodiment of the present invention. Figure 6 ,like Fig.11 As shown,

[0104] In one implementation, after sending the session policy request message to the policy control function network element, the method further includes:

[0105] Step S1101, so that the policy control function network element sends a fourth traffic diversion strategy for user equipment to connect to a private network within a campus and outside the campus;

[0106] The policy control function network element sends the fourth diversion strategy for the user equipment to connect to the private network inside and outside the campus according to the received session policy request message. This means that the policy control function network element will determine whether the user equipment is outside the campus according to the fourth diversion strategy and perform subsequent operations accordingly.

[0107] Step S1102, obtaining a fourth traffic diversion strategy;

[0108] Step S1103, determining whether the user equipment is outside the campus, if it is determined that the user equipment is outside the campus, notifying the public network anchor point of the second network element to establish an N4 public network session according to the fourth offload strategy.

[0109] If it is determined that the user device is outside the campus, the policy control function network element will notify the public network anchor point of the second network element to establish an N4 public network session according to the fourth diversion strategy. In this way, the diversion point can establish a connection with the public network anchor point and perform data transmission and service access according to the fourth diversion strategy.

[0110] Through the above steps, according to whether the user device is outside the campus, the policy control function network element can execute the corresponding diversion strategy to connect the user device to the private network or the public network. In this way, the access of user devices can be flexibly managed, and data transmission and service access can be realized.

[0111] Fig.12 The flow chart of the specific method of selecting the diversion point of the first network element or the diversion point of the second network element according to the diversion strategy is that the diversion point of the second network element and the public network anchor point of the second network element are the same anchor point, such as Fig.12 As shown,

[0112] In one implementation, the diversion point of the second network element and the public network anchor point of the second network element are the same anchor point, and the diversion point of the first network element or the diversion point of the second network element is selected according to the diversion strategy, specifically including:

[0113] Step S1201, establishing an N4 session with a public network anchor point of a second network element, and sending a diversion rule so that the diversion point of the second network element communicates with the user equipment;

[0114] Step S1202, notify the private network session management function network element to update the private network session, open up the N9 tunnel between the diversion point of the second network element and the private network anchor point, so that the user equipment communicates with the private network anchor point through the diversion point of the second network element.

[0115] Through the above steps, you can choose whether to divert traffic to the first network element or the second network element according to the diversion strategy. By directing part of the traffic to the diversion point of the second network element, load balancing can be achieved, reducing the burden on the first network element and improving the overall performance and efficiency of the network. At the same time, by establishing a tunnel with the private network anchor point, the security and reliability of the user equipment when communicating through the diversion point of the second network element is guaranteed.

[0116] In one implementation, notifying the private network session management function network element to update the private network session and opening up the N9 tunnel between the public network anchor point and the private network anchor point further includes: notifying the diversion point of the first network element to delete the N4 session.

[0117] like Fig. 9 As shown, the forwarding path of public network UL data is from UE (user equipment) to the diversion point UPF (user plane function) + public network anchor point UPF (user plane function) to the public network; the forwarding path of public network DL data is from the public network to the diversion point UPF (user plane function) + public network anchor point UPF (user plane function) to UE (user equipment); the forwarding path of private network UL data is from UE (user equipment) to the diversion point UPF (user plane function) to the private network anchor point UPF (user plane function) to the private network; the forwarding path of private network DL data is from the private network to the private network anchor point UPF (user plane function) to the diversion point UPF (user plane function) to the UE (user equipment).

[0118] Fig.13 is a signaling interaction diagram for maintaining an uninterrupted session when a user moves from within a campus to outside the campus according to an embodiment of the present invention. Fig.14 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 7 .like Fig.13 and Fig.14 As shown,

[0119] In one embodiment, it further includes:

[0120] Step S1401, obtaining a public network session update request initiated by an access and mobility management function network element, where the public network session update request carries location information of a user equipment;

[0121] Step S1402, sending a session policy request message to the policy control function network element, so that the policy control function network element outputs a session policy response message;

[0122] Step S1403, the policy control function network element determines whether the user is outside the campus according to the user location, and if the user is outside the campus, the policy control function network element sends a fifth diversion strategy for the user to connect to the private network outside the campus;

[0123] Step S1404: according to the fifth offload strategy, the user equipment communicates with the public network anchor point of the second network element;

[0124] Step S1405, notifying the public network anchor point to update the N4 public network session and send the diversion rules;

[0125] Step S1406, notifying the private network session management function network element to update the private network session and open up the N9 tunnel between the public network anchor point and the private network anchor point.

[0126] Through the above steps, the user's communication traffic outside the campus can be diverted to the private network according to the location information of the user device, thereby achieving more flexible and efficient network communication. At the same time, by establishing the N9 tunnel, the security and reliability of the user device when communicating with the private network anchor point through the public network anchor point is guaranteed.

[0127] Fig.15 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 8 ,like Fig.15 As shown,

[0128] In one embodiment, it further includes:

[0129] Step S1501, obtaining a public network session update request initiated by an access and mobility management function network element, where the public network session update request carries location information of a user equipment;

[0130] Step S1502: Based on the third diversion strategy or the fourth diversion strategy, the user equipment communicates with the public network anchor point of the second network element;

[0131] Step S1503, notifying the public network anchor point to update the N4 public network session and send the diversion rules;

[0132] Step S1504, notifying the private network session management function network element to update the private network session and open up the N9 tunnel between the public network anchor point and the private network anchor point.

[0133] Through the above steps, the user's communication traffic can be diverted to the public network anchor point of the second network element according to the location information of the user device and the third diversion strategy or the fourth diversion strategy, and an N9 tunnel can be established with the private network anchor point, thereby achieving more flexible and efficient network communication. At the same time, by establishing the N9 tunnel, the security and reliability of the user device when communicating with the private network anchor point through the public network anchor point is guaranteed.

[0134] In one implementation, notifying the private network session management function network element to update the private network session and opening up the N9 tunnel between the public network anchor point and the private network anchor point further includes: notifying the diversion point of the first network element to delete the N4 session.

[0135] like Fig.13 As shown, the forwarding path of public network UL data is from UE (user equipment) to the diversion point UPF (user plane function) + public network anchor point UPF (user plane function) to the public network; the forwarding path of public network DL data is from the public network to the diversion point UPF (user plane function) + public network anchor point UPF (user plane function) to UE (user equipment); the forwarding path of private network UL data is from UE (user equipment) to the diversion point UPF (user plane function) to the private network anchor point UPF (user plane function) to the private network; the forwarding path of private network DL data is from the private network to the private network anchor point UPF (user plane function) to the diversion point UPF (user plane function) to the UE (user equipment).

[0136] Fig.16 is a signaling interaction diagram for maintaining an uninterrupted session when a user moves from outside a campus to inside a campus according to an embodiment of the present invention. Fig.17 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 9 .like Fig.16 and Fig.17 As shown,

[0137] In one embodiment, it further includes:

[0138] Step S1701, obtaining a public network session update request initiated by an access and mobility management function network element, where the public network session update request carries location information of a user equipment;

[0139] Step S1702, sending a session policy request message to the policy control function network element, so that the policy control function network element outputs a session policy response message;

[0140] Step S1703, the policy control function network element determines whether the user is in the park according to the user location, and if the user is in the park, the policy control function network element sends a sixth diversion policy for the user to connect to the private network in the park;

[0141] Step S1704: Establish an N4 session with the diversion point of the first network element according to the sixth diversion strategy, and send a diversion rule so that the diversion point communicates with the user equipment;

[0142] Step S1705, notifying the private network session management function network element to update the private network session, opening up the N9 tunnel between the diversion point and the private network anchor point, so that the diversion point and the private network anchor point can communicate;

[0143] Step S1706, notifying the public network anchor point of the first network element to update the N4 session, and opening the N9 tunnel between the diversion point and the public network anchor point, so that the diversion point and the public network anchor point can communicate.

[0144] Through the above steps, the user's communication traffic can be diverted to the private network or public network anchor point in the park according to the location information of the user device and the judgment of the policy control function network element, and N4 session and N9 tunnel can be established with the diversion point, so as to achieve more flexible and efficient network communication. At the same time, by establishing the N9 tunnel, the security and reliability of the communication between the diversion point and the private network anchor point and the public network anchor point are guaranteed.

[0145] In one implementation, after notifying the private network session management function network element to update the private network session and opening the N9 tunnel between the diversion point and the private network anchor point, the method further includes:

[0146] Notify the public network anchor point of the first network element to update the N4 session;

[0147] Notify the diversion point of the second network element to delete the diversion rule.

[0148] Fig.18 The following is a flow chart of a method for data distribution according to an embodiment of the present invention. Figure 10 ,like Fig.18 As shown,

[0149] In one embodiment, it further includes:

[0150] Step S1801, obtaining a public network session update request initiated by an access and mobility management function network element, where the public network session update request carries location information of a user equipment;

[0151] Step S1802: establishing an N4 session with a diversion point of a first network element based on the first diversion strategy or the second diversion strategy, and sending a diversion rule so that the diversion point communicates with the user equipment;

[0152] Step S1803, notifying the private network session management function network element to update the private network session, and opening the N9 tunnel between the diversion point and the private network anchor point, so that the diversion point and the private network anchor point can communicate;

[0153] Step S1804, notifying the public network anchor point of the first network element to update the N4 session, and opening the N9 tunnel between the diversion point and the public network anchor point, so that the diversion point and the public network anchor point can communicate.

[0154] Through the above steps, according to the location information of the user device and the first diversion strategy or the second diversion strategy, the user's communication traffic is diverted to the diversion point, and an N4 session and an N9 tunnel are established with the diversion point, thereby achieving more flexible and efficient network communication. At the same time, by establishing the N9 tunnel, the security and reliability of the communication between the diversion point and the private network anchor point and the public network anchor point are guaranteed.

[0155] In one implementation, after notifying the private network session management function network element to update the private network session and opening the N9 tunnel between the diversion point and the private network anchor point, the method further includes:

[0156] Notify the public network anchor point of the first network element to update the N4 session;

[0157] Notify the diversion point of the second network element to delete the diversion rule.

[0158] like Fig.16 As shown, the forwarding path of public network UL data is from UE (user equipment) to the diversion point UPF (user plane function) to the public network anchor point UPF (user plane function) to the public network; the forwarding path of public network DL data is from the public network to the public network anchor point UPF (user plane function) to the diversion point UPF (user plane function) to the UE (user equipment); the forwarding path of private network UL data is from UE (user equipment) to the diversion point UPF (user plane function) to the private network anchor point UPF (user plane function) to the private network; the forwarding path of private network DL data is from private network to the private network anchor point UPF (user plane function) to the diversion point UPF (user plane function) to the UE (user equipment).

[0159] In this embodiment, a method for data offloading is also provided. The method is applied to a policy control function network element, and includes:

[0160] Obtaining a session policy request message sent by a public network session management function network element, wherein the session policy request message carries location information of a user device, and the location information of the user device includes whether the user device is accessed within a campus or outside a campus;

[0161] Sending a session policy response message, wherein the session policy response message carries a diversion policy corresponding to the location information of the user equipment;

[0162] The public network session management function network element selects the diversion point of the first network element or the diversion point of the second network element according to the diversion strategy to divert the user plane data of the user device; when the user device is in the park, the user device communicates with the diversion point of the first network element, and when the user device is outside the park, the user device communicates with the diversion point of the second network element.

[0163] In one implementation, before selecting the diversion point of the first network element or the diversion point of the second network element according to the diversion strategy, the method further includes:

[0164] Notify the public network anchor point to establish the N4 public network session;

[0165] Notify the user device that the public network session has been established and complete the public network session establishment process;

[0166] Enable the user equipment to communicate with the public network anchor point so that the user equipment can connect to the public network;

[0167] The private network session management function network element enables the diversion point of the first network element or the diversion point of the second network element to communicate with the private network anchor point, so that the user equipment is connected to the private network.

[0168] In one implementation, after sending the session policy request message to the policy control function network element, the method further includes:

[0169] so that the policy control function network element determines whether the user equipment is in the park, if the policy control function network element determines that the user equipment is in the park, the policy control function network element sends a first diversion strategy for the user equipment to connect to the private network in the park;

[0170] A first diversion strategy is obtained, and a public network anchor point of the first network element is notified to establish an N4 public network session according to the first diversion strategy.

[0171] In one implementation, after sending the session policy request message to the policy control function network element, the method further includes:

[0172] The policy control function network element sends a second traffic diversion strategy for user equipment to connect to a private network within the park and outside the park;

[0173] Obtain the second diversion strategy;

[0174] Determine whether the user equipment is in the park. If it is determined that the user equipment is in the park, notify the public network anchor point of the first network element to establish an N4 public network session according to the second offload strategy.

[0175] In one implementation, selecting a diversion point of the first network element or a diversion point of the second network element according to the diversion strategy specifically includes:

[0176] Establishing an N4 session with a diversion point of the first network element and sending a diversion rule so that the diversion point communicates with the user equipment;

[0177] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the diversion point and the private network anchor point so that the diversion point and the private network anchor point can communicate;

[0178] The public network anchor point of the first network element is notified to update the N4 session and to open the N9 tunnel between the diversion point and the public network anchor point so that the diversion point and the public network anchor point can communicate.

[0179] In one implementation, after notifying the private network session management function network element to update the private network session and opening the N9 tunnel between the diversion point and the private network anchor point, the method further includes:

[0180] Notify the public network anchor point of the first network element to update the N4 session;

[0181] Notify the diversion point of the second network element to delete the diversion rule.

[0182] In one implementation, after sending the session policy request message to the policy control function network element, the method further includes:

[0183] The policy control function network element determines whether the user equipment is outside the park. If the policy control function network element determines that the user equipment is outside the park, the policy control function network element sends a third diversion strategy for the user equipment to connect to the private network outside the park;

[0184] Obtain a third diversion strategy, and notify the public network anchor point of the second network element to establish an N4 public network session according to the third diversion strategy.

[0185] In one implementation, after sending the session policy request message to the policy control function network element, the method further includes:

[0186] The policy control function network element sends a fourth traffic diversion strategy for user equipment to connect to a private network within and outside the park;

[0187] Get the fourth diversion strategy;

[0188] Determine whether the user equipment is outside the campus. If it is determined that the user equipment is outside the campus, notify the public network anchor point of the second network element to establish an N4 public network session according to the fourth diversion strategy.

[0189] In one implementation, the diversion point of the second network element and the public network anchor point of the second network element are the same anchor point, and the diversion point of the first network element or the diversion point of the second network element is selected according to the diversion strategy, specifically including:

[0190] Establishing an N4 session with the public network anchor point of the second network element, and sending a diversion rule so that the diversion point of the second network element communicates with the user equipment;

[0191] Notify the private network session management function network element to update the private network session, and open the N9 tunnel between the diversion point of the second network element and the private network anchor point, so that the user equipment can communicate with the private network anchor point through the diversion point of the second network element.

[0192] In one implementation, notifying the private network session management function network element to update the private network session and opening up the N9 tunnel between the public network anchor point and the private network anchor point further includes: notifying the diversion point of the first network element to delete the N4 session.

[0193] In one embodiment, it further includes:

[0194] Obtain a public network session update request initiated by an access and mobility management function network element, where the public network session update request carries location information of the user equipment;

[0195] Sending a session policy request message to the policy control function network element so that the policy control function network element outputs a session policy response message;

[0196] The policy control function network element determines whether the user is outside the campus according to the user's location. If the user is outside the campus, the policy control function network element sends a fifth diversion strategy for the user to connect to the private network outside the campus.

[0197] According to the fifth offload strategy, the user equipment communicates with the public network anchor point of the second network element;

[0198] Notify the public network anchor point to update the N4 public network session and send the diversion rules;

[0199] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the public network anchor point and the private network anchor point.

[0200] In one embodiment, it further includes:

[0201] Obtain a public network session update request initiated by an access and mobility management function network element, where the public network session update request carries location information of the user equipment;

[0202] Based on the third diversion strategy or the fourth diversion strategy, the user equipment communicates with the public network anchor point of the second network element;

[0203] Notify the public network anchor point to update the N4 public network session and send the diversion rules;

[0204] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the public network anchor point and the private network anchor point.

[0205] In one implementation, notifying the private network session management function network element to update the private network session and opening up the N9 tunnel between the public network anchor point and the private network anchor point further includes: notifying the diversion point of the first network element to delete the N4 session.

[0206] In one embodiment, it further includes:

[0207] Obtain a public network session update request initiated by an access and mobility management function network element, where the public network session update request carries location information of the user equipment;

[0208] Sending a session policy request message to the policy control function network element so that the policy control function network element outputs a session policy response message;

[0209] The policy control function network element determines whether the user is in the park according to the user's location, and if the user is in the park, the policy control function network element sends a sixth diversion strategy for the user to connect to the private network in the park;

[0210] According to the sixth diversion strategy, establish an N4 session with the diversion point of the first network element, and send a diversion rule so that the diversion point communicates with the user equipment;

[0211] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the diversion point and the private network anchor point so that the diversion point and the private network anchor point can communicate;

[0212] The public network anchor point of the first network element is notified to update the N4 session and to open the N9 tunnel between the diversion point and the public network anchor point so that the diversion point and the public network anchor point can communicate.

[0213] In one implementation, after notifying the private network session management function network element to update the private network session and opening the N9 tunnel between the diversion point and the private network anchor point, the method further includes:

[0214] Notify the public network anchor point of the first network element to update the N4 session;

[0215] Notify the diversion point of the second network element to delete the diversion rule.

[0216] In one embodiment, it further includes:

[0217] Obtain a public network session update request initiated by an access and mobility management function network element, where the public network session update request carries location information of the user equipment;

[0218] Based on the first diversion strategy or the second diversion strategy, establish an N4 session with the diversion point of the first network element, and send a diversion rule so that the diversion point communicates with the user equipment;

[0219] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the diversion point and the private network anchor point so that the diversion point and the private network anchor point can communicate;

[0220] The public network anchor point of the first network element is notified to update the N4 session and to open the N9 tunnel between the diversion point and the public network anchor point so that the diversion point and the public network anchor point can communicate.

[0221] In one implementation, after notifying the private network session management function network element to update the private network session and opening the N9 tunnel between the diversion point and the private network anchor point, the method further includes:

[0222] Notify the public network anchor point of the first network element to update the N4 session;

[0223] Notify the diversion point of the second network element to delete the diversion rule.

[0224] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0225] In this embodiment, a public network session management function network element is also provided, and the public network session management function network element is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made are not repeated here. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, the implementation in hardware, or a combination of software and hardware, is also possible and conceivable.

[0226] Fig.19 is a structural block diagram of a public network session management function network element according to an embodiment of the present invention, such as Fig.19 As shown, the public network session management function network element includes:

[0227] The acquisition module 1901 is used to acquire a public network session establishment request initiated by a user device;

[0228] The processing module 1902 is configured to send a session policy request message to a policy control function network element, wherein the session policy request message carries location information of the user equipment, and the location information of the user equipment includes that the user equipment is accessed within the park or the user equipment is accessed outside the park; and,

[0229] receiving a session policy response message sent by a policy control function network element, wherein the session policy response message carries a diversion policy corresponding to location information of the user equipment; and

[0230] According to the diversion strategy, the diversion point of the first network element or the diversion point of the second network element is selected to divert the user plane data of the user device; when the user device is in the park, the user device communicates with the diversion point of the first network element, and when the user device is outside the park, the user device communicates with the diversion point of the second network element.

[0231] In one implementation, the public network session management function network element is further configured to: before selecting the diversion point of the first network element or the diversion point of the second network element according to the diversion strategy, further include:

[0232] Notify the public network anchor point to establish the N4 public network session;

[0233] Notify the user device that the public network session has been established and complete the public network session establishment process;

[0234] Enable the user equipment to communicate with the public network anchor point so that the user equipment can connect to the public network;

[0235] The private network session management function network element enables the diversion point of the first network element or the diversion point of the second network element to communicate with the private network anchor point, so that the user equipment is connected to the private network.

[0236] In one implementation, the public network session management function network element is further configured to: after sending the session policy request message to the policy control function network element, further include:

[0237] so that the policy control function network element determines whether the user equipment is in the park. If the policy control function network element determines that the user equipment is in the park, the policy control function network element sends a first diversion strategy for the user equipment to connect to the private network in the park;

[0238] A first diversion strategy is obtained, and a public network anchor point of the first network element is notified to establish an N4 public network session according to the first diversion strategy.

[0239] In one implementation, the public network session management function network element is further configured to: after sending the session policy request message to the policy control function network element, further include:

[0240] The policy control function network element sends a second traffic diversion strategy for user equipment to connect to a private network within the park and outside the park;

[0241] Obtain the second diversion strategy;

[0242] Determine whether the user equipment is in the park. If it is determined that the user equipment is in the park, notify the public network anchor point of the first network element to establish an N4 public network session according to the second offload strategy.

[0243] In one implementation, the public network session management function network element is further used to: select a diversion point of the first network element or a diversion point of the second network element according to the diversion strategy, specifically including:

[0244] Establishing an N4 session with a diversion point of the first network element and sending a diversion rule so that the diversion point communicates with the user equipment;

[0245] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the diversion point and the private network anchor point so that the diversion point and the private network anchor point can communicate;

[0246] The public network anchor point of the first network element is notified to update the N4 session and to open the N9 tunnel between the diversion point and the public network anchor point so that the diversion point and the public network anchor point can communicate.

[0247] In one implementation, the public network session management function network element is further used to: notify the private network session management function network element to update the private network session, and after opening the N9 tunnel between the diversion point and the private network anchor point, further comprising:

[0248] Notify the public network anchor point of the first network element to update the N4 session;

[0249] Notify the diversion point of the second network element to delete the diversion rule.

[0250] In one implementation, the public network session management function network element is further configured to: after sending the session policy request message to the policy control function network element, further include:

[0251] The policy control function network element determines whether the user equipment is outside the park. If the policy control function network element determines that the user equipment is outside the park, the policy control function network element sends a third diversion strategy for the user equipment to connect to the private network outside the park;

[0252] Obtain a third diversion strategy, and notify the public network anchor point of the second network element to establish an N4 public network session according to the third diversion strategy.

[0253] In one implementation, the public network session management function network element is further configured to: after sending the session policy request message to the policy control function network element, further include:

[0254] The policy control function network element sends a fourth traffic diversion strategy for user equipment to connect to a private network within and outside the park;

[0255] Get the fourth diversion strategy;

[0256] Determine whether the user equipment is outside the campus. If it is determined that the user equipment is outside the campus, notify the public network anchor point of the second network element to establish an N4 public network session according to the fourth diversion strategy.

[0257] In one implementation, the public network session management function network element is further used to: the diversion point of the second network element and the public network anchor point of the second network element are the same anchor point, and the diversion point of the first network element or the diversion point of the second network element is selected according to the diversion strategy, specifically including:

[0258] Establishing an N4 session with the public network anchor point of the second network element, and sending a diversion rule so that the diversion point of the second network element communicates with the user equipment;

[0259] Notify the private network session management function network element to update the private network session, and open the N9 tunnel between the diversion point of the second network element and the private network anchor point, so that the user equipment can communicate with the private network anchor point through the diversion point of the second network element.

[0260] In one implementation, the public network session management function network element is also used to: notify the private network session management function network element to update the private network session, and after opening the N9 tunnel between the public network anchor point and the private network anchor point, it also includes: notifying the diversion point of the first network element to delete the N4 session.

[0261] In one implementation, the public network session management function network element is further used to: obtain a public network session update request initiated by the access and mobility management function network element, where the public network session update request carries location information of the user equipment;

[0262] Sending a session policy request message to the policy control function network element so that the policy control function network element outputs a session policy response message;

[0263] The policy control function network element determines whether the user is outside the campus according to the user's location. If the user is outside the campus, the policy control function network element sends a fifth diversion strategy for the user to connect to the private network outside the campus.

[0264] According to the fifth offload strategy, the user equipment communicates with the public network anchor point of the second network element;

[0265] Notify the public network anchor point to update the N4 public network session and send the diversion rules;

[0266] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the public network anchor point and the private network anchor point.

[0267] In one implementation, the public network session management function network element is further used to: obtain a public network session update request initiated by the access and mobility management function network element, where the public network session update request carries location information of the user equipment;

[0268] Based on the third diversion strategy or the fourth diversion strategy, the user equipment communicates with the public network anchor point of the second network element;

[0269] Notify the public network anchor point to update the N4 public network session and send the diversion rules;

[0270] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the public network anchor point and the private network anchor point.

[0271] In one implementation, the public network session management function network element is also used to: notify the private network session management function network element to update the private network session, and after opening the N9 tunnel between the public network anchor point and the private network anchor point, it also includes: notifying the diversion point of the first network element to delete the N4 session.

[0272] In one implementation, the public network session management function network element is further used to: obtain a public network session update request initiated by the access and mobility management function network element, where the public network session update request carries location information of the user equipment;

[0273] Sending a session policy request message to the policy control function network element so that the policy control function network element outputs a session policy response message;

[0274] The policy control function network element determines whether the user is in the park according to the user's location, and if the user is in the park, the policy control function network element sends a sixth diversion strategy for the user to connect to the private network in the park;

[0275] According to the sixth diversion strategy, establish an N4 session with the diversion point of the first network element, and send a diversion rule so that the diversion point communicates with the user equipment;

[0276] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the diversion point and the private network anchor point so that the diversion point and the private network anchor point can communicate;

[0277] The public network anchor point of the first network element is notified to update the N4 session and to open the N9 tunnel between the diversion point and the public network anchor point so that the diversion point and the public network anchor point can communicate.

[0278] In one implementation, the public network session management function network element is further used to: notify the private network session management function network element to update the private network session, and after opening the N9 tunnel between the diversion point and the private network anchor point, further comprising:

[0279] Notify the public network anchor point of the first network element to update the N4 session;

[0280] Notify the diversion point of the second network element to delete the diversion rule.

[0281] In one implementation, the public network session management function network element is further used to: obtain a public network session update request initiated by the access and mobility management function network element, where the public network session update request carries location information of the user equipment;

[0282] Based on the first diversion strategy or the second diversion strategy, establish an N4 session with the diversion point of the first network element, and send a diversion rule so that the diversion point communicates with the user equipment;

[0283] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the diversion point and the private network anchor point so that the diversion point and the private network anchor point can communicate;

[0284] The public network anchor point of the first network element is notified to update the N4 session and to open the N9 tunnel between the diversion point and the public network anchor point so that the diversion point and the public network anchor point can communicate.

[0285] In one implementation, the public network session management function network element is further used to: notify the private network session management function network element to update the private network session, and after opening the N9 tunnel between the diversion point and the private network anchor point, further comprising:

[0286] Notify the public network anchor point of the first network element to update the N4 session;

[0287] Notify the diversion point of the second network element to delete the diversion rule.

[0288] In this embodiment, a policy control function network element is also provided, and the policy control function network element is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made are not repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0289] Fig. 20 is a structural block diagram of a policy control function network element according to an embodiment of the present invention, such as Fig. 20 As shown, the policy control function network element includes:

[0290] The acquisition module 2001 is used to acquire a session policy request message sent by a public network session management function network element, wherein the session policy request message carries location information of a user device, and the location information of the user device includes whether the user device is accessed within a campus or outside a campus;

[0291] The processing module 2002 is used to send a session policy response message, wherein the session policy response message carries a diversion policy corresponding to the location information of the user equipment; and

[0292] The public network session management function network element selects the diversion point of the first network element or the diversion point of the second network element according to the diversion strategy to divert the user plane data of the user device; when the user device is in the park, the user device communicates with the diversion point of the first network element, and when the user device is outside the park, the user device communicates with the diversion point of the second network element.

[0293] In one implementation, the policy control function network element is further advantageous in that before selecting the diversion point of the first network element or the diversion point of the second network element according to the diversion strategy, the method further includes:

[0294] Notify the public network anchor point to establish the N4 public network session;

[0295] Notify the user device that the public network session has been established and complete the public network session establishment process;

[0296] Enable the user equipment to communicate with the public network anchor point so that the user equipment can connect to the public network;

[0297] The private network session management function network element enables the diversion point of the first network element or the diversion point of the second network element to communicate with the private network anchor point, so that the user equipment is connected to the private network.

[0298] In one implementation, the policy control function network element is also beneficial for:

[0299] Determine whether the user equipment is in the park. If the policy control function network element determines that the user equipment is in the park, the policy control function network element sends a first diversion strategy for the user equipment to connect to the private network in the park.

[0300] A first diversion strategy is obtained, and a public network anchor point of the first network element is notified to establish an N4 public network session according to the first diversion strategy.

[0301] In one implementation, the policy control function network element is also beneficial for:

[0302] A second traffic diversion strategy for sending user equipment to connect to a private network within the campus and outside the campus;

[0303] Obtain the second diversion strategy;

[0304] Determine whether the user equipment is in the park. If it is determined that the user equipment is in the park, notify the public network anchor point of the first network element to establish an N4 public network session according to the second offload strategy.

[0305] In one implementation, the policy control function network element is further conducive to: selecting a diversion point of the first network element or a diversion point of the second network element according to the diversion strategy, specifically including:

[0306] Establishing an N4 session with a diversion point of the first network element and sending a diversion rule so that the diversion point communicates with the user equipment;

[0307] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the diversion point and the private network anchor point so that the diversion point and the private network anchor point can communicate;

[0308] The public network anchor point of the first network element is notified to update the N4 session and to open the N9 tunnel between the diversion point and the public network anchor point so that the diversion point and the public network anchor point can communicate.

[0309] In one implementation, the policy control function network element is further conducive to: notifying the private network session management function network element to update the private network session, and after opening the N9 tunnel between the diversion point and the private network anchor point, further comprising:

[0310] Notify the public network anchor point of the first network element to update the N4 session;

[0311] Notify the diversion point of the second network element to delete the diversion rule.

[0312] In one implementation, the policy control function network element is also beneficial for:

[0313] Determine whether the user equipment is outside the park. If the policy control function network element determines that the user equipment is outside the park, the policy control function network element sends a third diversion strategy for the user equipment to connect to the private network outside the park.

[0314] Obtain a third diversion strategy, and notify the public network anchor point of the second network element to establish an N4 public network session according to the third diversion strategy.

[0315] In one implementation, the policy control function network element is also beneficial for:

[0316] A fourth traffic diversion strategy for sending user equipment to connect to a private network within and outside the campus;

[0317] Get the fourth diversion strategy;

[0318] Determine whether the user equipment is outside the campus. If it is determined that the user equipment is outside the campus, notify the public network anchor point of the second network element to establish an N4 public network session according to the fourth diversion strategy.

[0319] In one implementation, the policy control function network element is also advantageous in that: the diversion point of the second network element and the public network anchor point of the second network element are the same anchor point, and the diversion point of the first network element or the diversion point of the second network element is selected according to the diversion strategy, specifically including:

[0320] Establishing an N4 session with the public network anchor point of the second network element, and sending a diversion rule so that the diversion point of the second network element communicates with the user equipment;

[0321] Notify the private network session management function network element to update the private network session, and open the N9 tunnel between the diversion point of the second network element and the private network anchor point, so that the user equipment can communicate with the private network anchor point through the diversion point of the second network element.

[0322] In one implementation, the policy control function network element is also beneficial for: notifying the private network session management function network element to update the private network session, and after opening the N9 tunnel between the public network anchor point and the private network anchor point, it also includes: notifying the diversion point of the first network element to delete the N4 session.

[0323] In one implementation, the policy control function network element is further conducive to: obtaining a public network session update request initiated by the access and mobility management function network element, the public network session update request carrying the location information of the user equipment;

[0324] Sending a session policy request message to the policy control function network element so that the policy control function network element outputs a session policy response message;

[0325] The policy control function network element determines whether the user is outside the campus according to the user's location. If the user is outside the campus, the policy control function network element sends a fifth diversion strategy for the user to connect to the private network outside the campus.

[0326] According to the fifth offload strategy, the user equipment communicates with the public network anchor point of the second network element;

[0327] Notify the public network anchor point to update the N4 public network session and send the diversion rules;

[0328] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the public network anchor point and the private network anchor point.

[0329] In one implementation, the policy control function network element is further conducive to: obtaining a public network session update request initiated by the access and mobility management function network element, the public network session update request carrying the location information of the user equipment;

[0330] Based on the third diversion strategy or the fourth diversion strategy, the user equipment communicates with the public network anchor point of the second network element;

[0331] Notify the public network anchor point to update the N4 public network session and send the diversion rules;

[0332] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the public network anchor point and the private network anchor point.

[0333] In one implementation, the policy control function network element is also beneficial for: notifying the private network session management function network element to update the private network session, and after opening the N9 tunnel between the public network anchor point and the private network anchor point, it also includes: notifying the diversion point of the first network element to delete the N4 session.

[0334] In one implementation, the policy control function network element is further conducive to: obtaining a public network session update request initiated by the access and mobility management function network element, the public network session update request carrying the location information of the user equipment;

[0335] Sending a session policy request message to the policy control function network element so that the policy control function network element outputs a session policy response message;

[0336] The policy control function network element determines whether the user is in the park according to the user's location, and if the user is in the park, the policy control function network element sends a sixth diversion strategy for the user to connect to the private network in the park;

[0337] According to the sixth diversion strategy, establish an N4 session with the diversion point of the first network element, and send a diversion rule so that the diversion point communicates with the user equipment;

[0338] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the diversion point and the private network anchor point so that the diversion point and the private network anchor point can communicate;

[0339] The public network anchor point of the first network element is notified to update the N4 session and to open the N9 tunnel between the diversion point and the public network anchor point so that the diversion point and the public network anchor point can communicate.

[0340] In one implementation, the policy control function network element is further conducive to: notifying the private network session management function network element to update the private network session, and after opening the N9 tunnel between the diversion point and the private network anchor point, further comprising:

[0341] Notify the public network anchor point of the first network element to update the N4 session;

[0342] Notify the diversion point of the second network element to delete the diversion rule.

[0343] In one implementation, the policy control function network element is further conducive to: obtaining a public network session update request initiated by the access and mobility management function network element, the public network session update request carrying the location information of the user equipment;

[0344] Based on the first diversion strategy or the second diversion strategy, establish an N4 session with the diversion point of the first network element, and send a diversion rule so that the diversion point communicates with the user equipment;

[0345] Notify the private network session management function network element to update the private network session and open the N9 tunnel between the diversion point and the private network anchor point so that the diversion point and the private network anchor point can communicate;

[0346] The public network anchor point of the first network element is notified to update the N4 session and to open the N9 tunnel between the diversion point and the public network anchor point so that the diversion point and the public network anchor point can communicate.

[0347] In one implementation, the policy control function network element is further conducive to: notifying the private network session management function network element to update the private network session, and after opening the N9 tunnel between the diversion point and the private network anchor point, further comprising:

[0348] Notify the public network anchor point of the first network element to update the N4 session;

[0349] Notify the diversion point of the second network element to delete the diversion rule.

[0350] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0351] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0352] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0353] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0354] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0355] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0356] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0357] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for data diversion, characterized in that: The method is applied to a public network session management function network element, including: Obtain a public network session establishment request initiated by a user device; Sending a session policy request message to a policy control function network element, wherein the session policy request message carries the location information of the user equipment, and the location information of the user equipment includes that the user equipment is accessed within the park or that the user equipment is accessed outside the park; Receiving a session policy response message sent by the policy control function network element, wherein the session policy response message carries a diversion policy corresponding to the location information of the user equipment; According to the diversion strategy, the diversion point of the first network element or the diversion point of the second network element is selected to divert the user plane data of the user device; wherein, when the user device is within the park, the user device communicates with the diversion point of the first network element, and when the user device is outside the park, the user device communicates with the diversion point of the second network element.

2. The method according to claim 1, characterized in that Before selecting the diversion point of the first network element or the diversion point of the second network element according to the diversion strategy, the method further includes: Notify the public network anchor point to establish the N4 public network session; Notify the user device that a public network session has been established, completing the public network session establishment process; enabling the user equipment to communicate with a public network anchor point so that the user equipment is connected to the public network; The diversion point of the first network element or the diversion point of the second network element communicates with the private network anchor point through the private network session management function network element, so that the user equipment is connected to the private network.

3. The method according to claim 1, characterized in that After sending the session policy request message to the policy control function network element, the following also includes: so that the policy control function network element determines whether the user equipment is in the park. If the policy control function network element determines that the user equipment is in the park, the policy control function network element sends a first diversion strategy for the user equipment to connect to a private network in the park; The first diversion strategy is obtained, and the public network anchor point of the first network element is notified to establish an N4 public network session according to the first diversion strategy.

4. The method according to claim 1, characterized in that: After sending the session policy request message to the policy control function network element, the following also includes: So that the policy control function network element sends a second traffic diversion strategy for the user equipment to connect to the private network within the park and outside the park; Acquire the second diversion strategy; Determine whether the user equipment is in the park. If it is determined that the user equipment is in the park, notify the public network anchor point of the first network element to establish an N4 public network session according to the second offload strategy.

5. The method according to any one of claims 3 or 4, characterized in that: Selecting a diversion point of the first network element or a diversion point of the second network element according to the diversion strategy specifically includes: Establishing an N4 session with a diversion point of the first network element, and sending a diversion rule so that the diversion point communicates with the user equipment; Notify the private network session management function network element to update the private network session and open the N9 tunnel between the diversion point and the private network anchor point so that the diversion point can communicate with the private network anchor point; Notify the public network anchor point of the first network element to update the N4 session and open the N9 tunnel between the diversion point and the public network anchor point so that the diversion point can communicate with the public network anchor point.

6. The method according to claim 5, characterized in that After sending the session policy request message to the policy control function network element, the following also includes: so that the policy control function network element determines whether the user equipment is outside the park. If the policy control function network element determines that the user equipment is outside the park, the policy control function network element sends a third diversion strategy for the user equipment to connect to a private network outside the park; The third diversion strategy is obtained, and the public network anchor point of the second network element is notified to establish an N4 public network session according to the third diversion strategy.

7. The method according to claim 5, characterized in that After sending the session policy request message to the policy control function network element, the following also includes: So that the policy control function network element sends a fourth diversion strategy for the user equipment to connect to a private network within the park and outside the park; Acquire the fourth diversion strategy; Determine whether the user equipment is outside the campus. If it is determined that the user equipment is outside the campus, notify the public network anchor point of the second network element to establish an N4 public network session according to the fourth offload strategy.

8. The method according to any one of claims 6 or 7, characterized in that: The diversion point of the second network element and the public network anchor point of the second network element are the same anchor point, and the diversion point of the first network element or the diversion point of the second network element is selected according to the diversion strategy, specifically including: Establishing an N4 session with the public network anchor point of the second network element, and sending a diversion rule so that the diversion point of the second network element communicates with the user equipment; Notify the private network session management function network element to update the private network session, and open the N9 tunnel between the diversion point of the second network element and the private network anchor point, so that the user equipment can communicate with the private network anchor point through the diversion point of the second network element.

9. The method according to claim 5, characterized in that Also includes: Obtaining a public network session update request initiated by an access and mobility management function network element, where the public network session update request carries location information of the user equipment; Sending a session policy request message to the policy control function network element so that the policy control function network element outputs a session policy response message; The policy control function network element determines whether the user is outside the park according to the user location, and if the user is outside the park, the policy control function network element sends a fifth diversion strategy for the user to connect to a private network outside the park; According to the fifth offload strategy, enable the user equipment to communicate with the public network anchor point of the second network element; Notify the public network anchor point to update the N4 public network session and send the diversion rules; Notify the private network session management function network element to update the private network session and open up the N9 tunnel between the public network anchor point and the private network anchor point.

10. The method according to claim 5, characterized in that Also includes: Obtaining a public network session update request initiated by an access and mobility management function network element, where the public network session update request carries location information of the user equipment; Based on the third diversion strategy or the fourth diversion strategy, enable the user equipment to communicate with the public network anchor point of the second network element; Notify the public network anchor point to update the N4 public network session and send the diversion rules; Notify the private network session management function network element to update the private network session and open up the N9 tunnel between the public network anchor point and the private network anchor point.

11. The method according to claim 8, characterized in that Also includes: Obtaining a public network session update request initiated by an access and mobility management function network element, where the public network session update request carries location information of the user equipment; Sending a session policy request message to the policy control function network element so that the policy control function network element outputs a session policy response message; The policy control function network element determines whether the user is in the park according to the user location, and if the user is in the park, the policy control function network element sends a sixth diversion strategy for the user to connect to a private network in the park; According to the sixth diversion strategy, establish an N4 session with the diversion point of the first network element, and send a diversion rule so that the diversion point communicates with the user equipment; Notify the private network session management function network element to update the private network session and open the N9 tunnel between the diversion point and the private network anchor point so that the diversion point can communicate with the private network anchor point; Notify the public network anchor point of the first network element to update the N4 session and open the N9 tunnel between the diversion point and the public network anchor point so that the diversion point can communicate with the public network anchor point.

12. The method according to claim 8, characterized in that Also includes: Obtaining a public network session update request initiated by an access and mobility management function network element, where the public network session update request carries location information of the user equipment; Based on the first diversion strategy or the second diversion strategy, establish an N4 session with a diversion point of the first network element, and send a diversion rule so that the diversion point communicates with the user equipment; Notify the private network session management function network element to update the private network session and open the N9 tunnel between the diversion point and the private network anchor point so that the diversion point can communicate with the private network anchor point; Notify the public network anchor point of the first network element to update the N4 session and open the N9 tunnel between the diversion point and the public network anchor point so that the diversion point can communicate with the public network anchor point.

13. A method for data offloading, characterized in that: The method is applied to a policy control function network element, including: Obtaining a session policy request message sent by a public network session management function network element, wherein the session policy request message carries the location information of the user equipment, and the location information of the user equipment includes that the user equipment is accessed within the park or that the user equipment is accessed outside the park; Sending a session policy response message, wherein the session policy response message carries a diversion policy corresponding to the location information of the user equipment; The public network session management function network element selects the diversion point of the first network element or the diversion point of the second network element according to the diversion strategy to divert the user plane data of the user device; wherein, when the user device is within the park, the user device communicates with the diversion point of the first network element, and when the user device is outside the park, the user device communicates with the diversion point of the second network element.

14. A public network session management function network element, characterized in that: include: An acquisition module, used to acquire a public network session establishment request initiated by a user device; a processing module, configured to send a session policy request message to a policy control function network element, wherein the session policy request message carries the location information of the user equipment, and the location information of the user equipment includes that the user equipment is accessed within the park or that the user equipment is accessed outside the park; and receiving a session policy response message sent by the policy control function network element, wherein the session policy response message carries a diversion policy corresponding to the location information of the user equipment; and According to the diversion strategy, the diversion point of the first network element or the diversion point of the second network element is selected to divert the user plane data of the user device; wherein, when the user device is within the park, the user device communicates with the diversion point of the first network element, and when the user device is outside the park, the user device communicates with the diversion point of the second network element.

15. A policy control function network element, characterized in that: include: An acquisition module, used to acquire a session policy request message sent by a public network session management function network element, wherein the session policy request message carries the location information of the user equipment, and the location information of the user equipment includes that the user equipment is accessed within the park or that the user equipment is accessed outside the park; a processing module, configured to send a session policy response message, wherein the session policy response message carries a diversion policy corresponding to the location information of the user equipment; and The public network session management function network element selects the diversion point of the first network element or the diversion point of the second network element according to the diversion strategy to divert the user plane data of the user device; wherein, when the user device is within the park, the user device communicates with the diversion point of the first network element, and when the user device is outside the park, the user device communicates with the diversion point of the second network element.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the method described in any one of claims 1 to 12, or implements the steps of the method described in claim 13.

17. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the processor implements the steps of the method described in any one of claims 1 to 12, or implements the steps of the method described in claim 13.