Session control method and system and electronic equipment
By rejecting conflicting IP address reporting requests and correcting IP addresses in the policy control function network element, the problem of user offline caused by IP address conflicts in 5G independent access networking is solved, improving user experience and business continuity.
Patent Information
- Application Number
- CN202310812231.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-04
- Publication Date
- 2024-10-18
AI Technical Summary
Under the 5G independent access networking architecture, IP address conflicts cause users to be forced to go offline, affecting user experience. Moreover, private IPv4 addresses are insufficient, and multiple users share the same IPv4 address pool, resulting in frequent address conflicts.
When the policy control function network element detects an IP address conflict, it rejects the IP address reporting request of the new user, obtains a new IP address through a correction request, avoids IP address conflict with existing users, and directly rejects the conflicting IP address reporting request. , ensuring that the session establishment of new users does not affect the business continuity of existing network users.
It effectively avoids IP address conflicts and ensures that the session establishment of new users proceeds normally without affecting the business processes of existing network users. It improves user experience, reduces the need for terminals to re-initiate sessions, and improves the operator's brand benefits.
Smart Images

Figure CN118804397A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a session control method, system and electronic device. Background Art
[0002] In the current 5G independent access core network, the 5G policy control functional network element is the functional network element responsible for policy control of user sessions. During the process of users establishing service sessions, the 5G policy control functional network element can issue corresponding session policies to the session management functional network element based on the service policies signed by the users, so that users can establish corresponding sessions on the network side. Alternatively, after the user session is established, the 5G policy control functional network element can also re-issue specified policies to users based on specific external requirements (such as capability exposure functional network elements) or changes in contract data of the unified data management functional network element, thereby ensuring the network's precise control over user policies.
[0003] Under the 5G independent access networking architecture, the network supports voice, voice fallback, mobile Internet and mobile dream network data services over the new air interface, as well as various industry-specific network services for enterprises. All types of services follow the specifications of the third-generation partnership program. Whether it is a mobile Internet data service or an IP multimedia subsystem voice service over the new air interface, the corresponding signaling process involves the protocol data unit session establishment process on the network side. In this process, the core network will allocate IP addresses to terminal users, including IPv4 and IPv6 addresses. Under the current networking, the network side allocates private IPv4 addresses to users, and they cannot directly access public websites. Therefore, the network construction adopts the N6 port firewall network address conversion method to convert public and private network addresses to achieve business access from private network addresses to public network addresses. Due to the serious shortage of private IPv4 addresses, the user plane function network element cannot allocate a single IPv4 address to all users in the network. Therefore, multiple user plane function network elements will be grouped and hung under different firewalls. The user plane function network elements under different firewalls are configured with the same IPv4 address pool, which may allocate the same IPv4 address to different users.
[0004] In the session establishment process of data services, after the policy control function network element receives the IPv4 address reporting request message corresponding to the newly created session sent by the session management function network element, it will verify the IPv4 address. If the same IPv4 address already exists in the policy control function network element, it means that two different users are assigned the same IPv4 address. At this time, the policy control function network element will detect the IP address conflict and trigger the session deletion process for the user corresponding to the existing IPv4 address, causing the user to be forced to go offline. The user terminal needs to be able to initiate a new session autonomously to continue the previous data service, affecting the user experience. Summary of the invention
[0005] The embodiments of the present application provide a session control method, system and electronic device to solve the technical problem in the traditional session control method that when the policy control function network element detects an IP address conflict, it triggers a session deletion process for the user corresponding to the existing IP address, causing the user to be forced to go offline, and the user terminal needs to be able to autonomously initiate a new session to continue the previous data service, which affects the user experience.
[0006] In a first aspect, an embodiment of the present application provides a session control method, including:
[0007] Receiving a first IP address reporting request message sent by a session management function network element; the first IP address is an IP address corresponding to a new session created by a new user;
[0008] Verify the first IP address, and if the first IP address is the same as an existing IP address, reject the first IP address reporting request message, and send a rejection message for the first IP address reporting request message to the session management function network element; the rejection message includes a rejection reason value, and the rejection reason value is used to represent information of "conflict with other user IP addresses";
[0009] receiving a second IP address reporting request message sent by the session management function network element; the second IP address is an IP address obtained by correcting the first IP address;
[0010] The second IP address is verified. If the second IP address is different from the existing IP address, the second IP address is saved, and a response message accepting the second IP address is sent to the session management function network element.
[0011] In one embodiment, the first IP address is an IP address sent to the session management function network element after being allocated by the user plane function network element to the new user;
[0012] The second IP address is the IP address sent to the session management function network element after the user plane function network element modifies the first IP address.
[0013] In one embodiment, the first IP address is an IP address allocated by the session management function network element to a new user;
[0014] The second IP address is the IP address obtained by modifying the first IP address by the session management function network element.
[0015] In a second aspect, an embodiment of the present application provides a session control method, including:
[0016] receiving a rejection message for a first IP address reporting request message sent by a policy control function network element; the first IP address is an IP address corresponding to a new session created by a new user;
[0017] Determining whether the first IP address needs to be modified according to the rejection message;
[0018] If it is determined that the first IP address needs to be modified, and the first IP address is allocated by the user plane function network element to the new user, sending a modification request message to the user plane function network element, and receiving a second IP address sent by the user plane function network element; the second IP address is an IP address after the user plane function network element modifies the first IP address according to the modification request message;
[0019] If it is determined that the first IP address needs to be corrected, and the first IP address is allocated by itself to a new user, the first IP address is corrected according to the rejection message to obtain a second IP address, and a message that the first IP address has been corrected to the second IP address is sent to the user plane functional network element;
[0020] Sending a second IP address reporting request message to the policy control function network element so that the policy control function network element can verify the second IP address;
[0021] Receive a response message sent by the policy control function network element to accept the second IP address.
[0022] In one embodiment, the step of modifying the first IP address according to the rejection message to obtain the second IP address includes:
[0023] The rejection message includes the address identifier of the first IP address;
[0024] According to the address identifier of the first IP address, an unused IP address different from the first IP address is selected from a preset address pool as the second IP address.
[0025] In one embodiment, determining whether the first IP address needs to be modified according to the rejection message includes:
[0026] The rejection message includes a rejection reason value and a session identifier corresponding to the first IP address, wherein the rejection reason value is used to represent information of “conflict with other user IP addresses”;
[0027] If it is detected that the rejection reason value representation information is "conflict with other user's IP address", searching for session information corresponding to the session identifier;
[0028] If the IP address recorded in the session information is the same as the first IP address, determining that the first IP address needs to be corrected;
[0029] If the IP address recorded in the session information is different from the first IP address, determining that the first IP address does not need to be corrected;
[0030] Sending a request message for reporting the IP address recorded in the session information to the policy control function network element, so that the policy control function network element can verify the IP address recorded in the session information.
[0031] In one embodiment, determining whether to modify the first IP address according to the rejection message further includes:
[0032] If it is detected that the rejection reason value representation information is not "conflict with other user's IP address", a session deletion process for the new user's new session information is initiated, and the new user is waited for to re-initiate a new session process.
[0033] In a third aspect, an embodiment of the present application provides a session control method, including:
[0034] Receiving a message sent by a session management function network element;
[0035] The relevant information of the first IP address is processed according to the message; the first IP address is the IP address corresponding to the new session created by the new user.
[0036] In one embodiment, the processing of the relevant information of the first IP address according to the message includes:
[0037] If the message is a modification request message, modify the first IP address according to the modification request message to obtain a second IP address, and release resources occupied by the first IP address; the first IP address is allocated by itself to a new user;
[0038] The second IP address is sent to the session management function network element, so that the session management function network element sends a second IP address reporting request message to the policy control function network element.
[0039] In one embodiment, the step of modifying the first IP address according to the modification request message to obtain the second IP address includes:
[0040] The modification request message includes the address identifier of the first IP address;
[0041] According to the address identifier of the first IP address, an unused IP address different from the first IP address is selected from a preset address pool as the second IP address.
[0042] In one embodiment, the processing of the relevant information of the first IP address according to the message includes:
[0043] If the message is a message that the first IP address has been corrected to the second IP address, the resources occupied by the first IP address are released; the first IP address is allocated by the session management function network element to the new user, and the second IP address is the IP address after the session management function network element corrects the first IP address.
[0044] In a fourth aspect, an embodiment of the present application provides a session control system, including: a policy control function network element, a session management function network element and a user plane function network element;
[0045] The policy control function network element is used for:
[0046] Receiving a first IP address reporting request message sent by a session management function network element; the first IP address is an IP address corresponding to a new session created by a new user;
[0047] Verify the first IP address, and if the first IP address is the same as an existing IP address, reject the first IP address reporting request message, and send a rejection message for the first IP address reporting request message to the session management function network element; the rejection message includes a rejection reason value, and the rejection reason value is used to represent information of "conflict with other user IP addresses";
[0048] receiving a second IP address reporting request message sent by the session management function network element; the second IP address is an IP address obtained by correcting the first IP address;
[0049] Verify the second IP address, and if the second IP address is different from the existing IP address, save the second IP address, and send a response message of accepting the second IP address to the session management function network element;
[0050] The session management function network element is used for:
[0051] receiving a rejection message for the first IP address reporting request message sent by the policy control function network element;
[0052] Determining whether the first IP address needs to be modified according to the rejection message;
[0053] If it is determined that the first IP address needs to be modified, and the first IP address is allocated by the user plane function network element to the new user, sending a modification request message to the user plane function network element, and receiving a second IP address sent by the user plane function network element; the second IP address is an IP address after the user plane function network element modifies the first IP address according to the modification request message;
[0054] If it is determined that the first IP address needs to be corrected, and the first IP address is allocated by itself to a new user, the first IP address is corrected according to the rejection message to obtain a second IP address, and a message that the first IP address has been corrected to the second IP address is sent to the user plane functional network element;
[0055] Sending a second IP address reporting request message to the policy control function network element so that the policy control function network element can verify the second IP address;
[0056] Receiving a response message sent by the policy control function network element to accept the second IP address;
[0057] The user plane function network element is used for:
[0058] Receiving a message sent by a session management function network element;
[0059] The relevant information of the first IP address is processed according to the message.
[0060] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory storing a computer program, wherein when the processor executes the program, the steps of the session control method described in the first aspect, the second aspect, or the third aspect are implemented.
[0061] In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the session control method described in the first aspect, the second aspect, or the third aspect.
[0062] The session control method provided in the present application receives a first IP address reporting request message sent by a session management function network element, where the first IP address is an IP address corresponding to a new session created by a new user, verifies the first IP address, and if the first IP address is the same as an existing IP address, rejects the first IP address reporting request message, and sends a rejection message for the first IP address reporting request message to the session management function network element, receives a second IP address reporting request message sent by the session management function network element, verifies the second IP address, and if the second IP address is not the same as the existing IP address, saves the second IP address, and sends a response message accepting the second IP address to the session management function network element. When the policy control function network element detects that the first IP address allocated to the new user is the same as the IP address of an existing user in the existing network, it will no longer initiate a session deletion process for the existing user, but will directly reject the first IP address reporting request message, and send a rejection message for the first IP address reporting request message to the session management function network element, and then receive the second IP address reporting request message sent by the session management function network element. Since the second IP address is a modified IP address of the first IP address, it can avoid conflicts with the IP addresses of existing users in the existing network. While ensuring the normal progress of the new user's new session process, it does not affect the normal progress of related session processes of existing users in the existing network, thereby improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0064] Figure 1 This is one of the flow charts of the session control method provided in the embodiment of the present application;
[0065] Figure 2 This is the second flow chart of the session control method provided in the embodiment of the present application;
[0066] Figure 3 This is the third flow chart of the session control method provided in the embodiment of the present application;
[0067] Figure 4 This is the fourth flow chart of the session control method provided in the embodiment of the present application;
[0068] Figure 5 It is one of the signaling diagrams of the traditional session control system;
[0069] Figure 6This is the second signaling diagram of the traditional session control system;
[0070] Figure 7 is a signaling diagram of a session control system provided in an embodiment of the present application;
[0071] Figure 8 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0072] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0073] Figure 1 This is one of the flow charts of the session control method provided in the embodiment of the present application. Figure 1 , the embodiment of the present application provides a session control method, which may include:
[0074] 101. Receive a first IP address reporting request message sent by a session management function network element;
[0075] The first IP address is the IP address corresponding to the new session created by the new user;
[0076] 102. Verify the first IP address. If the first IP address is the same as the existing IP address, reject the first IP address reporting request message, and send a rejection message for the first IP address reporting request message to the session management function network element.
[0077] The rejection message includes a rejection reason value, where the rejection reason value is used to indicate information of "conflict with other user's IP address";
[0078] 103. Receive a second IP address reporting request message sent by the session management function network element;
[0079] The second IP address is an IP address obtained by modifying the first IP address;
[0080] 104. Verify the second IP address. If the second IP address is different from the existing IP address, save the second IP address and send a response message of accepting the second IP address to the session management function network element.
[0081] In step 101, the first IP address may be an IP address that is allocated by the user plane function network element to the new user and sent to the session management function network element, or may be an IP address that is allocated by the session management function network element to the new user;
[0082] In step 102, the existing IP address is the IP address of another user different from the user corresponding to the first IP address under the same policy control function network element in the existing network. When the policy control function network element rejects the first IP address reporting request message and sends a rejection message to the session management function network element, it will implicitly request the session management function network element to start the IP address correction process, and the rejection message may also include a notification parameter to the session management function network element, which may represent the information that "the IP address can be corrected and it is allowed to send the IP address again for this session establishment".
[0083] In step 103, if the first IP address is an IP address that is allocated by the user plane function network element to the new user and sent to the session management function network element, then the second IP address is an IP address that is sent to the session management function network element after the user plane function network element modifies the first IP address; if the first IP address is an IP address that is allocated by the session management function network element to the new user, then the second IP address is an IP address that is modified by the session management function network element on the first IP address.
[0084] In step 104, this verification is an independent conflict verification event, which is completely independent of the previous detected IP address conflict event and has no correlation with each other.
[0085] It should be noted that IPv4 addresses and IPv6 addresses are two different versions of IP addresses under the Internet communication protocol. Although private IPv4 addresses and public IPv6 addresses are usually allocated at the same time when IP addresses are allocated to users, the number of public IPv6 addresses is very large, and therefore the network address translation function of the firewall is no longer required. The user plane functional network element can allocate different IPv6 addresses to users across the network, and there is almost no conflict in the IPv6 addresses of different users. Therefore, the IP addresses in this embodiment are all IPv4 addresses.
[0086] In the traditional data service session establishment process, when the IP addresses of different users conflict, the session deletion process for existing users in the existing network will be triggered, forcing the existing users to go offline. The user terminal needs to be able to initiate a new session autonomously to continue the previous data service, which will have two effects:
[0087] First, when ordinary mobile phone users use data services normally, the network will be disconnected for a moment or a short time, and then the service will be restored, which will bring poor perceived experience to users;
[0088] Second, after a user is forced to go offline, the user's terminal must have the ability to independently re-initiate a session connection. However, in the current Internet of Things and Internet of Vehicles industries, the quality of terminals is uneven and extremely non-standard. In order to save power and other functions, the terminal may not re-initiate a connection in a short period of time. This will also affect the use of services by users in the Internet of Things and Internet of Vehicles industries.
[0089] In this embodiment, when the policy control function network element detects that the IP addresses allocated by the session management function network element or the user plane function network element to two different users conflict, the processing idea changes from deleting the session of the existing user in the existing network to adjusting the session of the user who has created a new session. There are two core points:
[0090] First, the IP address conflict checking function of the policy control function network element is not affected. The current policy control function network element bears certain capability development requirements. External capability exposure is mapped to users through IP addresses. Therefore, the IP addresses of two different users must not conflict.
[0091] Second, the service experience of existing users in the existing network will not be affected. The traditional process involves the process of deleting and creating new sessions for existing users in the existing network. First, this takes time. If the user is very sensitive to data service continuity, this process will have a poor perception impact on the user. Secondly, as mentioned earlier, the standardization capabilities of IoT and IoV terminals are not as good as those of mobile phones, which makes it very difficult for the network to adapt to the terminals. Any non-standardized interaction on the terminal side may be a potential problem.
[0092] This embodiment optimizes the IP address linkage correction capability of the policy control function network element, the session management function network element, and the user plane function network element for newly created sessions on the basis of ensuring the normal session establishment. It focuses on the user perception experience and avoids the interaction with the terminal as much as possible. Since the traditional solution requires the terminal to have the ability to re-initiate the session after the session is deleted, the solution of this embodiment does not require the terminal to have this capability. It only needs to re-complete the IP address allocation before the network side sends the IP address to the terminal, thereby greatly reducing the probability of the service being disconnected instantly or for a period of time, and at the same time improving the brand benefits of the operator.
[0093] The session control method provided in this embodiment receives a first IP address reporting request message sent by a session management function network element, where the first IP address is an IP address corresponding to a new session of a new user, verifies the first IP address, and if the first IP address is the same as an existing IP address, rejects the first IP address reporting request message, and sends a rejection message for the first IP address reporting request message to the session management function network element, receives a second IP address reporting request message sent by the session management function network element, verifies the second IP address, and if the second IP address is not the same as the existing IP address, saves the second IP address, and sends a response message for accepting the second IP address to the session management function network element. When the policy control function network element detects that the first IP address allocated to the new user is the same as the IP address of an existing user in the existing network, it will no longer initiate a session deletion process for the existing user, but will directly reject the first IP address reporting request message, and send a rejection message for the first IP address reporting request message to the session management function network element, and then receive the second IP address reporting request message sent by the session management function network element. Since the second IP address is a modified IP address of the first IP address, it can avoid conflicts with the IP addresses of existing users in the existing network. While ensuring the normal progress of the new user's new session process, it does not affect the normal progress of related session processes of existing users in the existing network, thereby improving user experience.
[0094] In addition, compared with the traditional signaling process involving signaling routing processes for both new and old users, namely, the session establishment process for new users and the session deactivation process for old users, where the session deactivation process for old users includes a session deletion process and a session reconstruction process, this embodiment only requires one address correction process to solve the address conflict and user experience problems, thereby improving the session efficiency of new and old users.
[0095] Figure 2 This is the second flow chart of the session control method provided in the embodiment of the present application. Figure 2 , the embodiment of the present application provides a session control method, which may include:
[0096] 201. Receive a rejection message for a first IP address reporting request message sent by a policy control function network element;
[0097] The first IP address is the IP address corresponding to the new session created by the new user;
[0098] 202. Determine whether the first IP address needs to be modified according to the rejection message;
[0099] 203. If it is determined that the first IP address needs to be modified, and the first IP address is allocated by the user plane function network element to the new user, a modification request message is sent to the user plane function network element, and a second IP address sent by the user plane function network element is received;
[0100] The second IP address is an IP address after the user plane function network element modifies the first IP address according to the modification request message;
[0101] 204. If it is determined that the first IP address needs to be modified, and the first IP address is allocated to a new user, the first IP address is modified according to the rejection message to obtain the second IP address, and a message is sent to the user plane functional network element indicating that the first IP address has been modified to the second IP address;
[0102] 205. Send a second IP address reporting request message to the policy control function network element, so that the policy control function network element verifies the second IP address;
[0103] 206. Receive a response message sent by the policy control function network element to accept the second IP address.
[0104] In step 203, a modification request message may be sent to the user plane functional network element via a packet forwarding control protocol.
[0105] In step 204, the first IP address is allocated by the session management function network element to the new user. The rejection message includes the address identifier of the first IP address. The session management function network element selects an unused IP address that is different from the first IP address from its own preset address pool according to the address identifier. In addition, the session management function network element may also send a message to the user plane function network element through the packet forwarding control protocol that the first IP address has been corrected to the second IP address. The message also carries the new session information of the new user.
[0106] It should be noted that after step 206, the session management function network element will take the lead in completing the subsequent session establishment process.
[0107] In this embodiment, the session management function network element initiates an IP address correction request message to the user plane function network element or corrects the IP address itself and notifies the user plane function network element of the correction result based on the IP address conflict check result of the policy control function network element. By adding the IP address correction function to the session management function network element and the user plane function network element, both the session management function network element and the user plane function network element have the ability to correct the IP address of the same session, thereby ensuring the smooth progress of the correction process to the greatest extent, and other related session establishment and session deletion processes are not affected, and signaling can be continued normally.
[0108] Figure 3 This is the third flow chart of the session control method provided in the embodiment of the present application. Figure 3 In one embodiment, determining whether the first IP address needs to be modified according to the rejection message may include:
[0109] The rejection message includes a rejection reason value and a session identifier corresponding to the first IP address, wherein the rejection reason value is used to indicate information of “conflict with other user IP addresses”;
[0110] 301, detection rejection reason value;
[0111] 302. If it is detected that the rejection reason value representation information is "conflict with other user's IP address", search for session information corresponding to the session identifier;
[0112] 303. If the IP address recorded in the session information is the same as the first IP address, it is determined that the first IP address needs to be corrected;
[0113] 304. If the IP address recorded in the session information is different from the first IP address, it is determined that the first IP address does not need to be modified;
[0114] 305. Sending a request message for reporting the IP address recorded in the session information to the policy control function network element, so that the policy control function network element can verify the IP address recorded in the session information;
[0115] 306. If it is detected that the rejection reason value representation information is not "conflict with other user's IP address", a session deletion process for the new user's newly created session information is initiated, and the new user is waited for to re-initiate a new session process.
[0116] In step 303, if the IP address recorded in the session information is the same as the first IP address, it means that the IP address corresponding to the new session of the new user conflicts with the existing IP address. In this case, it is determined that the first IP address needs to be corrected.
[0117] In steps 304 to 305, if the IP address recorded in the session information is different from the first IP address, it means that for some unknown reason, the IP address corresponding to the new session of the new user is inconsistent with the IP address verified by the policy control function network element. In this case, the first IP address does not need to be corrected first, and the IP address corresponding to the new session of the new user is reported to the policy control function network element for re-verification.
[0118] In step 306, if it is detected that the rejection reason value characterizing information is not "conflict with other user's IP address", it means that due to some unknown reason, the session management function network element failed to report the IP address to the policy control function network element. The session management function network element will initiate a session deletion process and wait for the new user to re-initiate a new session process. The session deletion process is a deletion process for the new user's new session information. When both the session deletion process and the new session process conflict with the IP address, the session deletion process and the new session process for existing users in the existing network are similar.
[0119] In this embodiment, the session management function network element detects the rejection reason value in the rejection message sent by the policy control function network element, and compares the consistency of the IP address that failed the verification with the IP address recorded in the local session information, confirms whether the IP address that failed the verification needs to be corrected, and can effectively identify the reliability of the IP address reporting corresponding to the new session, and provide different address correction functions or re-reporting functions for different reporting failure situations, thereby ensuring that the new user's new session process is carried out normally without affecting the normal progress of the related session processes of existing users in the existing network, thereby improving the user experience.
[0120] Figure 4 This is the fourth flow chart of the session control method provided in the embodiment of the present application. Figure 4 , the embodiment of the present application provides a session control method, which may include:
[0121] 401. Receive a message sent by a session management function network element;
[0122] 402. If the message is a modification request message, modify the first IP address according to the modification request message to obtain a second IP address, and release resources occupied by the first IP address;
[0123] The first IP address is the IP address corresponding to the new session of the new user, and the first IP address is allocated to the new user by itself;
[0124] 403. Send the second IP address to the session management function network element, so that the session management function network element sends a second IP address reporting request message to the policy control function network element;
[0125] 404. If the message is that the first IP address has been corrected to the second IP address, release the resources occupied by the first IP address.
[0126] The first IP address is allocated by the session management function network element to the new user, and the second IP address is the IP address obtained by modifying the first IP address by the session management function network element.
[0127] In step 402, the first IP address is allocated by the user plane functional network element to the new user. The correction request message includes the address identifier of the first IP address. The user plane functional network element selects an unused IP address that is different from the first IP address from its own preset address pool according to the address identifier of the first IP address. In addition, the correction request message also carries the new session information of the new user and all IP addresses that have been allocated by the user plane functional network element.
[0128] It should be noted that the user plane functional network element can also find the corresponding session information according to the address identifier of the first IP address, and in the process of modifying the first IP address, no modification will be made to the session information and the tunnel information under the GPRS (General Packet Radio Service) tunnel protocol.
[0129] In step 403, the second IP address may be sent to the session management function network element via a packet forwarding control protocol.
[0130] In this embodiment, the user plane functional network element performs IP address correction or directly releases resources according to the different messages sent by the session management functional network element. By adding an IP address correction function to the user plane functional network element, it has the ability to correct the IP address of the same session, thereby ensuring the smooth progress of the correction process, and other related session establishment and session deletion processes are not affected, and signaling can be continued normally.
[0131] Figure 5 It is one of the signaling diagrams of the traditional session control system;
[0132] Figure 6 This is the second signaling diagram of the traditional session control system;
[0133] Figure 7 is a signaling diagram of a session control system provided in an embodiment of the present application;
[0134] Reference Figure 7 , an embodiment of the present application provides a session control system, which may include: a policy control function network element, a session management function network element and a user plane function network element;
[0135] The policy control function network element is used to:
[0136] receiving a first IP address reporting request message sent by a session management function network element; the first IP address is an IP address corresponding to a new session created by a new user;
[0137] Verify the first IP address. If the first IP address is the same as the existing IP address, reject the first IP address reporting request message, and send a rejection message for the first IP address reporting request message to the session management function network element; the rejection message includes a rejection reason value, and the rejection reason value is used to represent information of "conflict with other user IP addresses";
[0138] receiving a second IP address reporting request message sent by a session management function network element; the second IP address is an IP address after the first IP address is modified;
[0139] Verify the second IP address, if the second IP address is different from the existing IP address, save the second IP address, and send a response message to the session management function network element to accept the second IP address;
[0140] The session management function network element is used to:
[0141] receiving a rejection message for the first IP address reporting request message sent by the policy control function network element;
[0142] determining whether the first IP address needs to be corrected based on the rejection message;
[0143] If it is determined that the first IP address needs to be modified, and the first IP address is allocated by the user plane function network element to the new user, a modification request message is sent to the user plane function network element, and a second IP address sent by the user plane function network element is received; the second IP address is an IP address after the user plane function network element modifies the first IP address according to the modification request message;
[0144] If it is determined that the first IP address needs to be corrected, and the first IP address is allocated by itself to a new user, the first IP address is corrected according to the rejection message to obtain the second IP address, and a message that the first IP address has been corrected to the second IP address is sent to the user plane functional network element;
[0145] Sending a second IP address reporting request message to the policy control function network element so that the policy control function network element verifies the second IP address;
[0146] Receiving a response message sent by the policy control function network element for accepting the second IP address;
[0147] User plane functional network elements are used for:
[0148] Receiving a message sent by a session management function network element;
[0149] The relevant information of the first IP address is processed according to the message.
[0150] Reference Figure 5, the traditional session control system usually includes the following signaling process when creating a new session (taking mobile Internet data service as an example):
[0151] 1. The user terminal sends a protocol data unit session establishment request message to the access and mobility management function network element, requesting the network side to establish a mobile Internet service session connection;
[0152] 2. After receiving the session establishment request message sent by the user terminal, the access and mobility management function network element extracts the key information in the message and sends it to the session management function network element, requesting it to create a protocol data unit session management context;
[0153] 3. After receiving the session management context creation request, the session management function network element will first interact with the unified data management function network element to which the user belongs, download the user's subscription data, and complete the registration and subscription of the session management function network element on the unified data management function network element side according to the subscription data;
[0154] 4. The session management function network element then establishes a session management context and returns it to the access and mobility management function network element;
[0155] 5. The session management function network element then sends the first control and charging policy creation request message for this session to the policy control function network element to which the user belongs;
[0156] 6. The policy control function network element queries the user subscription data stored in the backend, and sends the control and charging policies and user information change triggers corresponding to this session to the session management function network element to ensure that the policy control function network element can control the user's status and behavior at any time;
[0157] 7. The session management function network element sends a packet forwarding control protocol session establishment request to the selected user plane function network element and sends the corresponding control and charging policy according to the control and charging policy sent by the policy control function network element and the user plane function network element selection rule. At the same time, it requests the user plane function network element to allocate an IPv4 / IPv6 dual stack address and a tunnel identifier and tunnel address under the N3 interface GPRS tunnel protocol to the user, or the session management function network element allocates an address by itself and sends it to the user plane function network element (if it is an IP multimedia subsystem voice service, only an IPv6 address is requested to be allocated) and requests the user plane function network element to allocate a tunnel identifier and tunnel address under the N3 interface GPRS tunnel protocol;
[0158] 8. The user plane function network element locally executes the control and charging policies issued by the session management function network element and selects an idle IP address for the user, and sends the IP address together with the allocated tunnel related information to the session management function network element (or accepts the idle address issued by the session management function network element and no longer allocates addresses itself);
[0159] 9. After the session management function network element receives the user IP address assigned by the user plane function network element (or the user plane function network element receives the notification of the session management assigned address), according to the user information change trigger, the session management function network element interacts with the policy control function network element again and reports the IP address to the policy control function network element for verification;
[0160] 10. After receiving the user's IP address, the policy control function network element verifies it. If there are no more than two different users using the same IP address, the policy control function network element saves the user's IP address to the local database and sends a Hypertext Transfer Protocol status code 200OK message to the session management function network element, indicating that the IP address is accepted;
[0161] 11. The session management function network element sends the user IP address and tunnel information sent by the user plane function network element to the access and mobility management function network element in a transparent manner, asking it to forward it on its behalf;
[0162] 12. The access and mobility management function network element sends the user IP address forwarded by the session management function network element to the user terminal through the N1 interface, and sends the tunnel information to the wireless access network through the N2 message. At the same time, the wireless access network side also allocates the corresponding tunnel information and sends it back to the access and mobility management function network element. At this point, the uplink channel of the user plane data flow has been opened;
[0163] 13. The access and mobility management function network element sends the tunnel information sent by the wireless access network side to the session management function network element;
[0164] 14. The session management function network element transmits the tunnel information to the user plane function network element for establishing a downlink channel for user plane data flow on the user plane function network element side.
[0165] Reference Figure 6 , the process from 1 to 9 is the same as Figure 5 However, when the above process reaches step 10a, if the policy control function network element verifies that there are more than two different users using the same IP address, it will trigger the session deactivation process for the user corresponding to the existing IP address, and continue to complete the session activation process for the new user, as follows:
[0166] 10b. The policy control function network element detects an IP address conflict and does not allow different users to use the same IP address at the same time, so it sends a session termination indication to the second session management function network element to which the user corresponding to the existing IP address belongs;
[0167] 11b. The second session management function network element sends a session deletion request message to the second user plane function network element to which the user corresponding to the existing IP address belongs according to the session termination indication of the policy control function network element. The second user plane function network element will release the IP address / prefix allocated to the protocol data unit session and the corresponding user plane resources according to the indication of the second session management function network element.
[0168] 12b. The second session management function network element sends a transparent message to the second access and mobility management function network element to which the user corresponding to the existing IP address belongs, so that it notifies the second user terminal, that is, the user terminal corresponding to the existing IP address deletes the session, and notifies the wireless access network side to release the user plane resources of the N3 interface;
[0169] 13b. The second access and mobility management function network element notifies the second user terminal to delete the session;
[0170] 14b, after the corresponding session of the second user terminal is deleted, Figure 5 The process re-initiates a new session establishment request.
[0171] It should be noted that, in order to distinguish Figure 6 The network elements and terminals to which the users in processes 1 to 9 belong, that is, the network elements and terminals to which the new users belong, are all prefixed with "first". Figure 6 The first terminal, the first access and mobility management function network element, the first user plane function network element and the first session management function network element in the process are all owned by the new user. In addition, while the processes from 10b to 14b are being carried out, Figure 5 The process 10a-14a corresponding to the process 10-14 is also in progress to complete the establishment of the new user session.
[0172] When an IP address conflict is detected in the above process, the session deletion process for the user corresponding to the existing IP address will be triggered, causing the user to be forced to go offline. The user terminal needs to be able to initiate a new session autonomously to continue the previous data service, affecting the user experience.
[0173] Reference Figure 7 The conversation control system provided in this embodiment has the same process as steps 1 to 9. Figure 5 and Figure 6 However, when the above process reaches step 10a, if the policy control function network element verifies that there are more than two different users using the same IP address, the address correction process will be triggered, as follows:
[0174] 10c. When the policy control function network element detects that the IP address corresponding to the newly created session sent by the session management function network element is consistent with the IP address assigned to another user under the policy control function network element in the existing network according to the existing mechanism, the policy control function network element will trigger a new processing function, that is, the policy control function network element will reject the request to report the IP address this time and implicitly require the session management function network element to start the user IP address correction process. The policy control function network element sends a rejection message to the session management function network element, in which the session management function network element is informed of which IP addresses are rejected in this session, and carries a rejection reason value representing "conflict with other user IP addresses". At the same time, the message also carries a notification parameter representing "IP address can be modified and it is allowed to initiate an IP address reporting request again for this session establishment". At this point, the interaction of the session management function network element reporting the IP address process has been completed, and the policy control function network element's record of the current session status will roll back to the state before the session management function network element reported the IP address this time. The subsequent session management function network element reports the IP address request again, which belongs to a new interaction process established separately.
[0175] 11c. When the session management function network element receives the IP address report rejection message sent by the policy control function network element, it will check the rejection reason value carried in the message and perform logical judgment. If the rejection reason value represents information that "conflicts with the existing network user IP address", the session management function network element checks the locally stored session information according to the session identifier in the rejection message, and compares whether the conflicting IP address sent by the policy control function network element is consistent with the IP address recorded in the local session information. If the IP addresses are inconsistent, the session management function network element uses the IP address recorded in the local information to initiate an IP address report request to the policy control function network element again (not shown in the figure);
[0176] If the IP addresses are consistent and the user plane function network element allocates an IP address to the terminal, the session management function network element sends an IP address modification request message to the user plane function network element through the packet forwarding control protocol. The message carries session information, the IP address identifier requested to be modified, and all IP addresses that have been allocated by the user plane function network element;
[0177] If the IP addresses are consistent and the session management function network element assigns an IP address to the terminal, the session management function network element selects an unused address from its own address pool that is different from the IP address that failed the test as the corrected address, and sends the corrected message to the user plane function network element through the packet forwarding control protocol, and the message carries session information (not shown in the figure).
[0178] If the rejection reason value representation information is not "conflict with the existing network user's IP address", it means that the session management function network element failed to report the IP address to the policy control function network element due to unknown reasons. The session management function network element will initiate a session deletion process for the new user's new session information and wait for the new user to re-initiate a new session process (not shown in the figure).
[0179] 12c. If the user plane function network element receives the IP address modification request message sent by the session management function network element, a new logic judgment function will be enabled. If the session management function network element indicates in the message that the user IP address is required to be modified, the user plane function network element will find the corresponding session information, select an unused address from the address pool that is different from the IP address that failed the verification only based on the allocated address, release the IP address resources that failed the verification, complete the terminal IP address modification, and send the modified IP address to the session management function network element;
[0180] If the user plane function network element receives the corrected message sent by the session management function network element, it directly releases the IP address resources that have not passed the verification, completes the terminal IP address correction, and does not make any changes to the session information and tunnel information (not shown in the figure).
[0181] 13c. After receiving the corrected IP address sent by the user plane functional network element, the session management functional network element will again initiate an IP address reporting request message to the policy control functional network element;
[0182] 14c. After receiving the new IP address report message, the policy control function network element will re-check the IP address conflict. This is an independent conflict check event, which is completely independent of the previous conflict check event and has no correlation. After the conflict check passes, the policy control function network element will normally send a response message with a status code of 200OK to the session management function network element.
[0183] 15-18. After the IP address assigned to the user passes the verification of the policy control function network element, the session management function network element will lead the subsequent session establishment process and Figure 5 The processes from 11 to 14 are the same.
[0184] It should be noted that when the session management function network element allocates IP addresses, the session management function network element and the user plane function network element are both preset with their own address pools. When the user plane function network element allocates IP addresses, only the user plane function network element is preset with an address pool.
[0185] In addition to optimizing the processing flow after the policy control function network element verifies a user IP address conflict, this embodiment also adds logic and judgment functions to the policy control function network element, session management function network element, and user plane function network element to further optimize session management. When the policy control function network element verifies that the IP address of the newly established session conflicts with the IP address assigned to the user in the existing network under this policy control function network element, the newly added function of the policy control function network element will reject the IP address reporting request of the session management function network element and trigger the session optimization process of the session management function network element. The newly added function of the session management function network element shall determine whether the rejection reason value in the rejection message is an IP address conflict. If not, it means that the message sent back by the policy control function network element is abnormal. The session management function network element shall execute the session deletion process for the newly created session. Otherwise, the session management function network element shall determine whether the conflicting address provided by the policy control function network element is consistent with the address recorded on the session management function network element side. If they are inconsistent, It is possible that the policy control function network element side made an error in judgment (when the conflicting address sent back by the policy control function network element is not the IP address reported by the session management unit), then the session management function network element re-reports the IP address. In this case, for the same IP address, the session management function network element only re-reports the IP address once. If the policy control function network element reports an address conflict again, and the address stored on the session management function network element and the conflicting address sent back by the policy control function network element are inconsistent, the session management function network element determines that the policy control function network element is abnormal and directly executes the session deletion process for the newly created session. If the conflicting address is consistent with the address recorded on the session management function network element side, the session management function network element initiates the IP address correction process. The user plane function network element has a new function to determine whether the content of the received message is an IP address correction. If so, it will execute the IP address correction process according to the requirements of the session management function network element and send back the correction result of the session management function network element. Finally, the session management function network element will once again initiate an IP address reporting request to the policy control function network element according to the normal process. The newly added function enables the policy control function network element to perform logical processing only on new sessions, skipping the session processing actions for existing users in the existing network. While ensuring the normal process of creating new sessions for new users, it does not affect the normal process of related session processes for existing users in the existing network, thereby improving user experience.
[0186] Furthermore, the conversation control system of this embodiment may include multiple modules:
[0187] Session control module: completes the control function of the entire protocol data unit session related process and interacts with several other modules;
[0188] Address correction module: completes the correction of the user's IP address in the session, and sends the corrected address to the session control module for a new IP address report;
[0189] Address conflict check module: completes address conflict check and controls new sessions in conflict scenarios, such as sending correction requests to the session control module and requesting address correction.
[0190] Logical judgment module: completes the logical judgment after rejecting the user's IP address reporting request. If the rejection reason is IP address conflict, the address correction module is triggered to correct the address. If it is other rejection reasons, the session control module is triggered to delete the session.
[0191] Among them, the logic judgment module includes a first logic judgment module and a second logic judgment module. The first logic judgment module is used to execute logic judgment in the session management function network element, and the second logic judgment module is used to execute logic judgment in the user plane function network element. Similarly, the address correction module includes a first address correction module and a second address correction module. The first address correction module is used to execute address correction in the session management function network element, and the second address correction module is used to execute address correction in the user plane function network element.
[0192] The address conflict check module is encapsulated in the policy control function network element, the session control module, the first logic judgment module and the first address correction module are encapsulated in the session management function network element, and the second logic judgment module and the second address correction module are encapsulated in the user plane function network element.
[0193] This embodiment adopts modular division of labor, which can enable address conflict checking, logic judgment, address correction and session control to be efficiently divided and executed, thereby improving the efficiency of the overall process.
[0194] The terminal involved in the embodiments of the present application may be a device that provides voice and / or data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem, etc. In different systems, the name of the terminal device may also be different. For example, in a 5G system, the terminal device may be called a user equipment (UE).
[0195] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call a computer program in the memory 830 to execute the steps of the session control method, for example, including:
[0196] Receiving a first IP address reporting request message sent by a session management function network element; the first IP address is an IP address corresponding to a new session created by a new user;
[0197] Verify the first IP address, and if the first IP address is the same as an existing IP address, reject the first IP address reporting request message, and send a rejection message for the first IP address reporting request message to the session management function network element; the rejection message includes a rejection reason value, and the rejection reason value is used to represent information of "conflict with other user IP addresses";
[0198] receiving a second IP address reporting request message sent by the session management function network element; the second IP address is an IP address obtained by correcting the first IP address;
[0199] Verify the second IP address, and if the second IP address is different from the existing IP address, save the second IP address, and send a response message to the session management function network element to accept the second IP address; or
[0200] receiving a rejection message for a first IP address reporting request message sent by a policy control function network element; the first IP address is an IP address corresponding to a new session created by a new user;
[0201] Determining whether the first IP address needs to be modified according to the rejection message;
[0202] If it is determined that the first IP address needs to be modified, and the first IP address is allocated by the user plane function network element to the new user, sending a modification request message to the user plane function network element, and receiving a second IP address sent by the user plane function network element; the second IP address is an IP address after the user plane function network element modifies the first IP address according to the modification request message;
[0203] If it is determined that the first IP address needs to be corrected, and the first IP address is allocated by itself to a new user, the first IP address is corrected according to the rejection message to obtain a second IP address, and a message that the first IP address has been corrected to the second IP address is sent to the user plane functional network element;
[0204] Sending a second IP address reporting request message to the policy control function network element so that the policy control function network element can verify the second IP address;
[0205] receiving a response message sent by the policy control function network element to accept the second IP address; or
[0206] Receiving a message sent by a session management function network element;
[0207] The relevant information of the first IP address is processed according to the message; the first IP address is the IP address corresponding to the new session created by the new user.
[0208] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0209] On the other hand, an embodiment of the present application further provides a computer program product, the computer program product including a computer program, the computer program may be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can perform the steps of the session control method provided in the above embodiments, for example, including:
[0210] Receiving a first IP address reporting request message sent by a session management function network element; the first IP address is an IP address corresponding to a new session created by a new user;
[0211] Verify the first IP address, and if the first IP address is the same as an existing IP address, reject the first IP address reporting request message, and send a rejection message for the first IP address reporting request message to the session management function network element; the rejection message includes a rejection reason value, and the rejection reason value is used to represent information of "conflict with other user IP addresses";
[0212] receiving a second IP address reporting request message sent by the session management function network element; the second IP address is an IP address obtained by correcting the first IP address;
[0213] Verify the second IP address, and if the second IP address is different from the existing IP address, save the second IP address, and send a response message to the session management function network element to accept the second IP address; or
[0214] receiving a rejection message for a first IP address reporting request message sent by a policy control function network element; the first IP address is an IP address corresponding to a new session created by a new user;
[0215] Determining whether the first IP address needs to be modified according to the rejection message;
[0216] If it is determined that the first IP address needs to be modified, and the first IP address is allocated by the user plane function network element to the new user, sending a modification request message to the user plane function network element, and receiving a second IP address sent by the user plane function network element; the second IP address is an IP address after the user plane function network element modifies the first IP address according to the modification request message;
[0217] If it is determined that the first IP address needs to be corrected, and the first IP address is allocated by itself to a new user, the first IP address is corrected according to the rejection message to obtain a second IP address, and a message that the first IP address has been corrected to the second IP address is sent to the user plane functional network element;
[0218] Sending a second IP address reporting request message to the policy control function network element so that the policy control function network element can verify the second IP address;
[0219] receiving a response message sent by the policy control function network element to accept the second IP address; or
[0220] Receiving a message sent by a session management function network element;
[0221] The relevant information of the first IP address is processed according to the message; the first IP address is the IP address corresponding to the new session created by the new user.
[0222] On the other hand, an embodiment of the present application further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, wherein the computer program is used to enable the processor to execute the steps of the methods provided in the above embodiments, for example, including:
[0223] Receiving a first IP address reporting request message sent by a session management function network element; the first IP address is an IP address corresponding to a new session created by a new user;
[0224] Verify the first IP address, and if the first IP address is the same as an existing IP address, reject the first IP address reporting request message, and send a rejection message for the first IP address reporting request message to the session management function network element; the rejection message includes a rejection reason value, and the rejection reason value is used to represent information of "conflict with other user IP addresses";
[0225] receiving a second IP address reporting request message sent by the session management function network element; the second IP address is an IP address obtained by correcting the first IP address;
[0226] Verify the second IP address, and if the second IP address is different from the existing IP address, save the second IP address, and send a response message to the session management function network element to accept the second IP address; or
[0227] receiving a rejection message for a first IP address reporting request message sent by a policy control function network element; the first IP address is an IP address corresponding to a new session created by a new user;
[0228] Determining whether the first IP address needs to be modified according to the rejection message;
[0229] If it is determined that the first IP address needs to be modified, and the first IP address is allocated by the user plane function network element to the new user, sending a modification request message to the user plane function network element, and receiving a second IP address sent by the user plane function network element; the second IP address is an IP address after the user plane function network element modifies the first IP address according to the modification request message;
[0230] If it is determined that the first IP address needs to be corrected, and the first IP address is allocated by itself to a new user, the first IP address is corrected according to the rejection message to obtain a second IP address, and a message that the first IP address has been corrected to the second IP address is sent to the user plane functional network element;
[0231] Sending a second IP address reporting request message to the policy control function network element so that the policy control function network element can verify the second IP address;
[0232] receiving a response message sent by the policy control function network element to accept the second IP address; or
[0233] Receiving a message sent by a session management function network element;
[0234] The relevant information of the first IP address is processed according to the message; the first IP address is the IP address corresponding to the new session created by the new user.
[0235] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0236] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0237] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0238] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A session control method, characterized in that: include: Receiving a first IP address reporting request message sent by a session management function network element; The first IP address is the IP address corresponding to the new session created by the new user; Verify the first IP address, and if the first IP address is the same as an existing IP address, reject the first IP address reporting request message, and send a rejection message for the first IP address reporting request message to the session management function network element; the rejection message includes a rejection reason value, and the rejection reason value is used to represent information of "conflict with other user IP addresses"; receiving a second IP address reporting request message sent by the session management function network element; the second IP address is an IP address obtained by correcting the first IP address; The second IP address is verified. If the second IP address is different from the existing IP address, the second IP address is saved, and a response message accepting the second IP address is sent to the session management function network element.
2. The session control method according to claim 1, characterized in that: The first IP address is an IP address sent to the session management function network element after being allocated by the user plane function network element to the new user; The second IP address is the IP address sent to the session management function network element after the user plane function network element modifies the first IP address.
3. The session control method according to claim 1, characterized in that: The first IP address is an IP address allocated by the session management function network element to the new user; The second IP address is the IP address obtained by modifying the first IP address by the session management function network element.
4. A session control method, characterized in that: include: receiving a rejection message for the first IP address reporting request message sent by the policy control function network element; The first IP address is the IP address corresponding to the new session created by the new user; Determining whether the first IP address needs to be modified according to the rejection message; If it is determined that the first IP address needs to be modified, and the first IP address is allocated by the user plane function network element to the new user, sending a modification request message to the user plane function network element, and receiving a second IP address sent by the user plane function network element; The second IP address is an IP address after the user plane function network element modifies the first IP address according to the modification request message; If it is determined that the first IP address needs to be corrected, and the first IP address is allocated by itself to a new user, the first IP address is corrected according to the rejection message to obtain a second IP address, and a message that the first IP address has been corrected to the second IP address is sent to the user plane functional network element; Sending a second IP address reporting request message to the policy control function network element so that the policy control function network element can verify the second IP address; Receive a response message sent by the policy control function network element to accept the second IP address.
5. The session control method according to claim 4, characterized in that: The step of modifying the first IP address according to the rejection message to obtain the second IP address includes: The rejection message includes the address identifier of the first IP address; According to the address identifier of the first IP address, an unused IP address different from the first IP address is selected from a preset address pool as the second IP address.
6. The session control method according to claim 4, characterized in that: The determining, according to the rejection message, whether the first IP address needs to be corrected includes: The rejection message includes a rejection reason value and a session identifier corresponding to the first IP address, wherein the rejection reason value is used to indicate information of "conflict with other user IP addresses"; If it is detected that the rejection reason value representation information is "conflict with other user's IP address", then search for session information corresponding to the session identifier; If the IP address recorded in the session information is the same as the first IP address, determining that the first IP address needs to be corrected; If the IP address recorded in the session information is different from the first IP address, determining that the first IP address does not need to be corrected; Sending a request message for reporting the IP address recorded in the session information to the policy control function network element, so that the policy control function network element can verify the IP address recorded in the session information.
7. The session control method according to claim 6, characterized in that: The determining whether to modify the first IP address according to the rejection message further includes: If it is detected that the rejection reason value characterizing information is not "conflict with other user's IP address", a session deletion process for the new user's new session information is initiated, and the new user is waited for to re-initiate a new session process.
8. A session control method, characterized in that: include: Receiving a message sent by a session management function network element; Processing relevant information of the first IP address according to the message; The first IP address is an IP address corresponding to a new session created by a new user.
9. The session control method according to claim 8, characterized in that: The processing of the relevant information of the first IP address according to the message includes: If the message is a modification request message, modify the first IP address according to the modification request message to obtain a second IP address, and release resources occupied by the first IP address; the first IP address is allocated to the new user by itself; The second IP address is sent to the session management function network element, so that the session management function network element sends a second IP address reporting request message to the policy control function network element.
10. The session control method according to claim 9, characterized in that: The step of modifying the first IP address according to the modification request message to obtain the second IP address includes: The modification request message includes the address identifier of the first IP address; According to the address identifier of the first IP address, an unused IP address different from the first IP address is selected from a preset address pool as the second IP address.
11. The session control method according to claim 8, characterized in that: The processing of the relevant information of the first IP address according to the message includes: If the message is a message that the first IP address has been corrected to the second IP address, the resources occupied by the first IP address are released; the first IP address is allocated by the session management function network element to the new user, and the second IP address is the IP address after the session management function network element corrects the first IP address.
12. A conversation control system, characterized in that: include: Policy control function network element, session management function network element and user plane function network element; The policy control function network element is used for: Receiving a first IP address reporting request message sent by a session management function network element; the first IP address is an IP address corresponding to a new session created by a new user; Verify the first IP address, and if the first IP address is the same as an existing IP address, reject the first IP address reporting request message, and send a rejection message for the first IP address reporting request message to the session management function network element; the rejection message includes a rejection reason value, and the rejection reason value is used to represent information of "conflict with other user IP addresses"; receiving a second IP address reporting request message sent by the session management function network element; the second IP address is an IP address obtained by correcting the first IP address; Verify the second IP address, and if the second IP address is different from the existing IP address, save the second IP address, and send a response message of accepting the second IP address to the session management function network element; The session management function network element is used for: receiving a rejection message for the first IP address reporting request message sent by the policy control function network element; Determining whether the first IP address needs to be modified according to the rejection message; If it is determined that the first IP address needs to be modified, and the first IP address is allocated by the user plane function network element to the new user, sending a modification request message to the user plane function network element, and receiving a second IP address sent by the user plane function network element; The second IP address is an IP address after the user plane function network element modifies the first IP address according to the modification request message; If it is determined that the first IP address needs to be corrected, and the first IP address is allocated by itself to a new user, the first IP address is corrected according to the rejection message to obtain a second IP address, and a message that the first IP address has been corrected to the second IP address is sent to the user plane functional network element; Sending a second IP address reporting request message to the policy control function network element so that the policy control function network element can verify the second IP address; Receiving a response message sent by the policy control function network element to accept the second IP address; The user plane function network element is used for: Receiving a message sent by a session management function network element; The relevant information of the first IP address is processed according to the message.
13. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, it implements the steps of the session control method described in any one of claims 1 to 3, or implements the steps of the session control method described in any one of claims 4 to 7, or implements the steps of the session control method described in any one of claims 8 to 11.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, it implements the steps of the conversation control method described in any one of claims 1 to 3, or implements the steps of the conversation control method described in any one of claims 4 to 7, or implements the steps of the conversation control method described in any one of claims 8 to 11.
