User plane configuration method, user plane query method and device
By aggregating the first and second plane identification codes in the user plane configuration method to generate the target plane identification code, the problem of user identification incompatibility after the number of user loads increases is solved, and the compatibility and efficiency of user identification are achieved.
Patent Information
- Application Number
- CN202111172919.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-08
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-10-08
AI Technical Summary
The existing 32-bit user ID format cannot satisfy the increase in the number of online users per user plane to 4 million, resulting in user ID incompatibility.
By receiving the configuration request, the first plane identification code corresponding to the target user plane and the currently supported user bearer quantity are obtained. When it is determined that the second user bearer quantity is less than the first user bearer quantity, it is changed to the first user bearer quantity, and based on The first user bearer quantity aggregates the second plane identification code to generate a target plane identification code to form a user identification.
This solves the problem of user ID incompatibility after the user load number is changed, ensures user ID compatibility, and avoids unnecessary configuration of the second plane identification code.
Smart Images

Figure CN113900752B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a user plane configuration method, a user plane query method and a device. Background Art
[0002] Each user has a 32-bit user ID on the control plane (CP) to identify the uniqueness of the user. The current 32-bit user ID consists of the following format: 1 bit for the control-transfer separation user + 11 bit for UPID + 20 bit for ID. This format supports distinguishing up to 2048 UPs (User Planes), with 1 million users on each UP.
[0003] Due to the increase in the number of users, the specification of 1 million cannot meet the demand. If the number of users online per UP is required to be increased to 4 million, the current user ID format will not be able to meet the needs of new users. Summary of the invention
[0004] In order to solve the above technical problem or at least partially solve the above technical problem, the present application provides a user plane configuration method, a user plane query method and a device.
[0005] According to one aspect of an embodiment of the present application, a method for configuring a user plane is provided, including:
[0006] receiving a configuration request, wherein the configuration request carries a first user bearer quantity for configuring a target user plane;
[0007] In response to the configuration request, obtaining a first plane identification code corresponding to the target user plane and a number of second user bearers currently supported;
[0008] When it is determined that the number of the second user bearers is less than the number of the first user bearers, the number of the second user bearers corresponding to the target user plane is changed to the number of the first user bearers, and at least one second plane identification code aggregated with the first plane identification code is determined according to the number of the first user bearers;
[0009] The first plane identification code and at least one of the second plane identification codes are aggregated to obtain a target plane identification code, wherein the target plane identification code is used to form a user identification.
[0010] Further, the determining, according to the first user bearer quantity, at least one second plane identification code to be aggregated with the first plane identification code includes:
[0011] Obtaining a correspondence between a preset user bearer quantity and an aggregate quantity of plane identification codes;
[0012] Based on the corresponding relationship and the first user bearer quantity, determining a target aggregation quantity corresponding to the first user bearer quantity;
[0013] At least one second plane identification code to be aggregated with the first plane identification code is determined according to the target aggregation quantity.
[0014] Further, the target aggregation quantity includes: a plurality of continuous parameter values;
[0015] The determining, according to the target aggregation quantity, at least one second plane identification code to be aggregated with the first plane identification code comprises:
[0016] The first plane identification code is determined as an initial aggregation value, a sum value between the initial aggregation value and the target aggregation quantity is calculated, and a value between the initial aggregation value and the sum value is determined as a second plane identification code.
[0017] Further, after aggregating the first plane identification code and at least one of the second plane identification codes to obtain a target plane identification code, the method further includes:
[0018] Receiving a user online request, wherein the user online request is used to request to generate a target user identifier for a target user terminal to be online;
[0019] In response to the user online request, a target user identifier is generated according to the target plane identifier code, so that the target user goes online according to the target user identifier.
[0020] Further, the user identification includes: a user type code, a plane identification code and a user identification code;
[0021] Before generating a target user identifier according to the target plane identifier code, the method further includes:
[0022] Get the maximum user ID currently generated;
[0023] Extracting the plane identification code and the user identification code from the maximum user identification;
[0024] When the user identification code in the maximum user identification is the upper limit of the user identification code corresponding to the second user bearer quantity, based on a preset rule, calling a preset number of bits from the plane identification code in the maximum user identification;
[0025] The target bit is formed according to the preset number of bits and a plurality of bits corresponding to the user identification code in the maximum user identification;
[0026] A target user identification code is generated on the target bit position.
[0027] Further, generating a target user identifier according to the target plane identifier code includes:
[0028] Determine the plane identification code obtained after the preset number of bits of the current plane identification code are called as the updated target plane identification code;
[0029] The target user identification is generated according to the user type code, the updated target plane identification code and the target user identification code.
[0030] According to another aspect of an embodiment of the present application, a user plane query method is also provided, including:
[0031] Receive a query request, wherein the query request carries a user identification to be processed, and the user identification includes: a user type code, a third plane identification code, and a user identification code;
[0032] Calling a user plane corresponding to the third plane identification code according to the third plane identification code;
[0033] Based on the user plane, acquiring plane information corresponding to the user plane;
[0034] Based on the plane information, a fourth plane identification code actually corresponding to the user identification is determined.
[0035] Further, the determining, based on the plane information, a fourth plane identification code actually corresponding to the user identification includes:
[0036] Querying an aggregation record corresponding to the user plane from the plane information, wherein the aggregation record includes at least two plane identification codes;
[0037] The smallest plane identification code in the aggregate record is determined as the fourth plane identification code.
[0038] According to another aspect of an embodiment of the present application, a user plane configuration device is further provided, characterized in that it includes:
[0039] A receiving module, configured to receive a configuration request, wherein the configuration request carries a first user bearer quantity for configuring a target user plane;
[0040] An acquisition module, configured to acquire, in response to the configuration request, a first plane identification code corresponding to the target user plane and a number of second user bearers currently supported;
[0041] a determination module, configured to, when determining that the number of the second user bearers is less than the number of the first user bearers, change the number of the second user bearers corresponding to the target user plane to the number of the first user bearers, and determine at least one second plane identification code aggregated with the first plane identification code according to the number of the first user bearers;
[0042] The aggregation module is used to aggregate the first plane identification code and at least one of the second plane identification codes to obtain a target plane identification code, wherein the target plane identification code is used to form a user identification.
[0043] According to another aspect of an embodiment of the present application, a user plane query device is also provided, including:
[0044] A receiving module, configured to receive a query request, wherein the query request carries a user identification to be processed, and the user identification includes: a user type code, a third plane identification code, and a user identification code;
[0045] A calling module, configured to call a user plane corresponding to the third plane identification code according to the third plane identification code;
[0046] An acquisition module, configured to acquire plane information corresponding to the user plane based on the user plane;
[0047] A determination module is used to determine a fourth plane identification code actually corresponding to the user identification based on the plane information.
[0048] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above steps are executed when the program is run.
[0049] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: the memory is used to store computer programs; and the processor is used to execute the steps in the above method by running the program stored in the memory.
[0050] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps in the above method.
[0051] The above-mentioned technical scheme provided by the embodiment of the present application has the following advantages compared with the prior art: after the user carrying quantity of the user plane is changed to the first user carrying quantity, the second plane identification code is determined by the aggregation quantity corresponding to the first user carrying quantity, and the first plane identification code and the second plane identification code are aggregated, so as to ensure that the second plane identification code is no longer configured, thereby solving the problem of user identification incompatibility after the user carrying quantity is changed. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0054] Figure 1 A flowchart of a method for configuring a user plane provided in an embodiment of the present application;
[0055] Figure 2 A flowchart of a method for configuring a user plane provided in another embodiment of the present application;
[0056] Figure 3 A flowchart of a user plane query method provided in an embodiment of the present application;
[0057] Figure 4 A block diagram of a user plane configuration device provided in an embodiment of the present application;
[0058] Figure 5 A block diagram of a user plane query device provided in an embodiment of the present application;
[0059] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0061] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another similar entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0062] In the prior art, in order to solve the problems of mismatch between the control plane and forwarding plane capabilities, inability to share resources, and untimely deployment of new services in traditional BRAS (broadband access server), the industry has proposed a forwarding and control separation solution based on vBRAS. Forwarding and control separation (hereinafter referred to as forwarding and control separation) refers to the complete decoupling of the forwarding plane and the control plane, and the two are not constrained to each other. In the forwarding and control separation solution, there are two roles, CP (Control Plane) and UP (User Plane), which jointly implement the BRAS function. Among them:
[0063] CP: Responsible for completing control plane functions such as user authentication, address allocation and management. CP is generally performed by the vBRAS series virtual broadband remote access server.
[0064] UP: Responsible for completing forwarding plane functions such as user data traffic forwarding and traffic control. UP can be a three-layer switch, router, or vBRAS virtual broadband remote access server.
[0065] Each user on the CP has a 32-bit user ID to identify the uniqueness of the user. The user ID needs to contain the following information: indicating the control-switching separation user, identifying the UP ID, and the unique identification of the user online for each UP ID. The current 32-bit user ID format is: 1 bit indicating the control-switching separation user + 11 bits to identify the UPID + 20 bits to identify. In order to solve this problem, the format supports distinguishing up to 2048 UPs, with 1 million users online for each UP. However, due to the gradual increase in the number of users, the 1 million specification cannot meet the demand, for example: it is required to increase the number of users online for each UP to 4 million. The current user ID format cannot meet this requirement.
[0066] In order to solve the above problem, the prior art modifies the format of the user ID to: 1 bit for the control-separated user + 9 bit identifier UPID + 22 bit identifier. However, modifying the format of the user ID will lead to incompatibility between previous and later versions, making it impossible to achieve compatible upgrades.
[0067] Based on this, the embodiments of the present application provide a method for configuring a user plane, a method for querying a user plane, and an apparatus. The method provided in the embodiments of the present invention can be applied to any required electronic device, for example, it can be an electronic device such as a server or a terminal, which is not specifically limited here. For the convenience of description, it is referred to as an electronic device in the following.
[0068] According to one aspect of an embodiment of the present application, a method embodiment of a method for processing a user plane is provided. Figure 1 A flowchart of a method for processing a user plane provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method includes:
[0069] Step S11: receiving a configuration request, wherein the configuration request carries a first user bearer quantity for configuring a target user plane.
[0070] In an embodiment of the present application, the configuration request received by the control plane (CP) may be triggered by a staff member. For example, when the staff member receives a deployment requirement, the staff member determines the target user plane to be configured and the number of first user bearers according to the deployment requirement. The target user plane and the number of first user bearers are then carried in the configuration request, and the configuration request is uploaded to the control plane.
[0071] In the embodiment of the present application, it can also be generated by monitoring the number of user bearers of each current user plane (UP). Specifically, the control plane monitors the number of user bearers of each current user plane. When the number of user bearers of the user plane reaches the upper limit of the number of user bearers currently supported, a prompt message will be sent. The prompt message is used to prompt whether to configure the user plane. A configuration request based on the prompt information feedback is received. The configuration request carries the target user plane to be configured and the first user bearer number. The first user bearer number can be 1 million, 2 million, 3 million, etc.
[0072] Step S12: In response to the configuration request, obtain a first plane identification code corresponding to the target user plane and the number of second user bearers currently supported.
[0073] In an embodiment of the present application, after receiving the configuration request, the control plane will query the first plane identification code corresponding to the target user plane, that is, UPID, and the number of second user bearers currently supported by the target user plane, and the number of second user bearers can be 1 million.
[0074] Step S13, when it is determined that the second user bearer quantity is less than the first user bearer quantity, the second user bearer quantity corresponding to the target user plane is changed to the first user bearer quantity, and at least one second plane identification code aggregated with the first plane identification code is determined according to the first user bearer quantity.
[0075] In an embodiment of the present application, when the number of second user carriers is less than the number of first user carriers, it is determined that the target user plane is upgraded at this time. In order to ensure that the upgraded target user plane is compatible with the upgraded user identifier and the user identifier before the upgrade, it is necessary to determine at least one second plane identification code to be aggregated with the first plane identification code based on the number of first user carriers.
[0076] In the embodiment of the present application, determining at least one second plane identification code aggregated with the first plane identification code according to the first user bearer quantity includes the following steps A1-A3:
[0077] Step A1: Obtain a correspondence between the preset user bearer quantity and the aggregated quantity of plane identification codes.
[0078] In an embodiment of the present application, in order to enable the user plane after upgrading the number of user carriers to be compatible with the user identifiers before the upgrade and the user identifiers after the upgrade, the corresponding relationship between the number of user carriers and the aggregation number is pre-set. For example: when the number of user carriers is 1 million, the corresponding aggregation number is 0; when the number of user carriers is 2 million, the corresponding aggregation number of the plane identification code is 1; when the number of user carriers is 4 million, the corresponding aggregation number of the plane identification code is 3.
[0079] Step A2 determines the target aggregation quantity corresponding to the first user bearer quantity based on the corresponding relationship and the first user bearer quantity.
[0080] Step A3: determining at least one second plane identification code to be aggregated with the first plane identification code according to the target aggregation quantity.
[0081] In an embodiment of the present application, step A3, determining at least one second plane identification code to be aggregated with the first plane identification code based on the target aggregation quantity, includes: determining the first plane identification code as the initial aggregation value, calculating the sum of the initial aggregation value and the aggregation quantity, and determining the numerical value between the initial aggregation value and the sum as the second plane identification code.
[0082] In an embodiment of the present application, the initial aggregation value is determined as UPID i, and then the sum of i and the target aggregation number is calculated. For example, the aggregation number of the plane identification code is 3, and then the sum of UPID i+3 is calculated, and then the value between UPID i and UPID i+3 is determined as the second plane identification code. At this time, the second plane identification code includes: UPID i+1, UPID i+2, UPIDi+3.
[0083] As an example, the first plane identification code (UPID) is UP1024, the number of first user bearers is 4 million, and the number of second user bearers is 1 million. At this time, the number of user bearers of the upgraded target user plane is 4 million, so the target aggregation number can be determined to be [0,1,2,3]. At this time, the first plane identification code UPID 1024 is determined as the initial aggregation value, and UPID 1024+1, UPID 1024+2, UPID 1024+3 are calculated, and finally UPID 1025, UPID 1026, UPID1027 are obtained. UPID 1025, UPID 1026, UPID 1027 are determined as the second plane identification code. Then UP ID 1025~1027 are no longer configured.
[0084] Step S14: Aggregate the first plane identification code and at least one second plane identification code to obtain a target plane identification code, wherein the target plane identification code is used to form a user identification.
[0085] In the embodiment of the present application, after obtaining the second plane identification code, the first plane identification code and the second plane identification code are aggregated to obtain a target plane identification code, wherein the target plane identification code can be represented by the first plane identification code.
[0086] As an example, the first plane identification code is UPID 1024, and the second plane identification code includes: UPID 1025, UPID 1026, and UPID 1027. After UPID 1024, UPID 1025, UPID 1026, and UPID 1027 are aggregated, UPID 1024 is used as the aggregated target plane identification code.
[0087] After the user carrying quantity in the user plane is changed to the first user carrying quantity, the present application determines the second plane identification code by the aggregation quantity corresponding to the first user carrying quantity, and aggregates the first plane identification code and the second plane identification code, so as to ensure that the second plane identification code is no longer configured, thereby solving the problem of user identification incompatibility after the user carrying quantity is changed.
[0088] It should be noted that the second plane identification code is no longer configured, that is, the second plane identification code is no longer used to generate the user identification, and the user plane corresponding to the second plane identification code is no longer configured.
[0089] In the embodiment of the present application, after the first plane identification code and at least one second plane identification code are aggregated to obtain the target plane identification code, Figure 2 As shown, the method also includes:
[0090] Step S21: receiving a user online request, wherein the user online request is used to request generation of a target user identifier for a target user terminal to be online.
[0091] In an embodiment of the present application, the user online request comes from the target user terminal. Specifically, after detecting the user online request, the target user terminal forwards the user online request to the target user plane, and then the user plane forwards it to the control plane, so that the control plane generates a target user identifier for the target user corresponding to the user online request.
[0092] Step S22, in response to the user online request, generating a target user identifier according to the target plane identifier code, so that the target user goes online according to the target user identifier.
[0093] In the embodiment of the present application, the user identification includes: a user type code, a plane identification code and a user identification code. Among them, the user identification is 32 bits, the user type code occupies 1 bit, used to indicate the control separation user, the plane identification code occupies 11 bits, and the user identification code occupies 20 bits.
[0094] Before generating the target user identification according to the target plane identification code, the method further includes the following steps B1-B5:
[0095] Step B1, obtaining the maximum user ID currently generated.
[0096] In the embodiment of the present application, after receiving a user online request, the control plane will query the plane information corresponding to the target user plane and obtain the maximum user identifier from the plane information.
[0097] Step B2: extracting the plane identification code and the user identification code from the largest user identification.
[0098] In the embodiment of the present application, since the user identifier is composed of a 1-bit user type code, an 11-bit flat identification code and a 20-bit user identification code, the 11-bit flat identification code and the 20-bit user identification code can be directly extracted from the maximum user identifier.
[0099] Step B3: when the user identification code in the maximum user identification is the upper limit of the user identification code corresponding to the second user bearer quantity, based on a preset rule, call a preset number of bits from the plane identification code in the maximum user identification.
[0100] In the embodiment of the present application, after obtaining the plane identification code and the user identification code in the maximum user identification, the user identification code and the upper limit of the user identification code corresponding to the second user carrying quantity, if the user identification code in the maximum user identification is the upper limit of the user identification code, it is determined that the 20-bit user identification code can no longer meet the demand. At this time, based on the preset rules, a preset number of bits are called from the 11-bit plane identification code to solve the problem that the current 20-bit user identification code cannot meet the demand.
[0101] It should be noted that since the second plane identification code aggregated with the first plane identification code is no longer configured, and the second plane identification code is adjacent to the first plane identification code, when the user identification code in the maximum user identification is the upper limit of the user identification code, there will be no problem in calling the preset number of bits from the 11-bit plane identification code.
[0102] Step B4: constructing target bits according to a preset number of bits and a plurality of bits corresponding to the user identification code in the maximum user identification.
[0103] In an embodiment of the present application, a preset number of bits (the preset number may be 1 bit or 2 bits) and multiple bits corresponding to the user identification code in the maximum user identification are used to form a target bit, and the target bit is 21 bits or 22 bits.
[0104] Step B5, generating a target user identification code at the target bit position.
[0105] As an example, UP 1024 (corresponding 11-bit UPID is 0) has a maximum of 1 million online users, and the maximum user ID is: (transfer and control separation user) 1bit 1+11bit 0+20bit 0, which is (1 000 0000 0000 1111 11111111 1111 1111) in binary. After converting it to hexadecimal, we get 0x800F FFFF. Because UPID starts counting from 1024, the first three digits of the corresponding hexadecimal are 800. When the user specification is expanded to 4 million, the user ID of the next online user is: (transfer and control separation user) 1bit 1+11bit 0+20bit 0x10 000. However, the first 20 bits are not enough, so one bit is borrowed from the 11 bits of UP ID, and the final value is 0x8010 0000.
[0106] In the embodiment of the present application, step S22, generating a target user identification according to the target plane identification code, includes the following steps C1-C2:
[0107] Step C1, determining the plane identification code obtained after the current plane identification code is called by a preset number of bits as the updated target plane identification code.
[0108] Step C2, generating a target user identification according to the user type code, the updated target plane identification code and the target user identification code.
[0109] It should be noted that even after the preset number of bits are called from the 11-bit plane identification code, the called preset number of bits still belong to the 11-bit plane identification code, but the value displayed by the preset number of bits in the plane identification code is the value of the user identification code. Therefore, the present application needs to determine the updated target plane identification code, and generate the target user identification based on the user type code, the updated target plane identification code and the target user identification code.
[0110] Figure 3 A flowchart of a user plane query method provided in an embodiment of the present application, such as Figure 3 As shown, the method includes:
[0111] Step S31, receiving a query request, wherein the query request carries a user identification to be processed, and the user identification includes: a user type code, a third plane identification code and a user identification code.
[0112] Step S32: calling the user plane corresponding to the third plane identification code according to the third plane identification code.
[0113] Step S33: Based on the user plane, obtain plane information corresponding to the user plane.
[0114] Step S34: determining the fourth plane identification code actually corresponding to the user identification based on the plane information.
[0115] In the embodiment of the present application, step S34, based on the plane information, determines the fourth plane identification code actually corresponding to the user identification, including the following steps D1-D2:
[0116] Step D1, querying the aggregation record corresponding to the user plane from the plane information, wherein the aggregation record includes at least two plane identification codes;
[0117] Step D2: determine the smallest plane identification code in the aggregate record as the fourth plane identification code.
[0118] In the embodiment of the present application, the query request is used to query the user plane identifier actually corresponding to the user identifier to be processed, and the specific query process includes: extracting the third plane identifier code from the user identifier, calling the user plane corresponding to the third plane identifier code, and obtaining the plane information of the user plane, wherein the plane information stores the aggregation record of the plane identifier code corresponding to the user plane and the aggregated plane identifier code. The smallest plane identifier code in the aggregate record is determined as the fourth plane identifier code, which is determined as the fourth plane identifier code actually corresponding to the user identifier.
[0119] As an example, if the number of user bearers corresponding to UP ID 1024 is configured to be 400w, then the plane information of the UP corresponding to UPIP1024 is queried, and the plane information records the aggregation records of UPID 1024, UPID 1025, UPID 1026, and UPID 1027, which is used to record the aggregation of the above four UPIDs, and the plane identification code after aggregation is UPID 1024. At the same time, the plane information on the UP corresponding to UPID 1025, UPID 1026, and UPID 1027 will also store the above aggregation records.
[0120] During the query process, if you want to find the actual plane identifier corresponding to the user identifier ID0x8010 0000, then the UP ID obtained according to the user identifier is 1025, and then the UP corresponding to UPID1025 is called, the plane information of the UP is read, and the aggregation record of UPID 1025 is obtained from the plane information. The aggregated UPID is UPID 1024, so UPID1024 is determined as the plane identification code actually corresponding to the user identifier.
[0121] Figure 4 This is a block diagram of a user plane aggregation configuration provided in an embodiment of the present application. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 4 As shown, the device comprises:
[0122] A receiving module 41, configured to receive a configuration request, wherein the configuration request carries a first user bearer quantity for configuring a target user plane;
[0123] An acquisition module 42, configured to acquire, in response to the configuration request, a first plane identification code corresponding to the target user plane and a number of second user bearers currently supported;
[0124] A determination module 43, configured to, when determining that the second user bearer quantity is less than the first user bearer quantity, change the second user bearer quantity corresponding to the target user plane to the first user bearer quantity, and determine at least one second plane identification code aggregated with the first plane identification code according to the first user bearer quantity;
[0125] The aggregation module 44 is used to aggregate the first plane identification code and at least one of the second plane identification codes to obtain a target plane identification code, wherein the target plane identification code is used to form a user identification.
[0126] In the embodiment of the present application, the determination module 43 includes:
[0127] An acquisition submodule, used to acquire a corresponding relationship between a preset user carrying quantity and an aggregated quantity of plane identification codes;
[0128] A query submodule, configured to determine a target aggregation quantity corresponding to the first user bearer quantity based on the corresponding relationship and the first user bearer quantity;
[0129] The processing submodule is used to determine at least one second plane identification code to be aggregated with the first plane identification code according to the target aggregation quantity.
[0130] In the embodiment of the present application, the target aggregation quantity includes: a plurality of continuous parameter values;
[0131] The processing submodule is used to determine the first plane identification code as an initial aggregation value, calculate the sum of the initial aggregation value and the target aggregation quantity, and determine the value between the initial aggregation value and the sum as a second plane identification code.
[0132] In an embodiment of the present application, the aggregation configuration of the user plane also includes: a generation module for receiving a user online request, wherein the user online request is used to request generation of a target user identifier for a target user terminal to be online; in response to the user online request, a target user identifier is generated according to a target plane identification code, so that the target user goes online according to the target user identifier.
[0133] In the embodiment of the present application, the user identification includes: a user type code, a plane identification code and a user identification code;
[0134] The aggregation configuration of the user plane also includes: a processing module, which is used to obtain the currently generated maximum user identification; extract the plane identification code and the user identification code in the maximum user identification; when the user identification code in the maximum user identification is the upper limit of the user identification code in the second user carrying quantity, based on a preset rule, call a preset number of bits from the plane identification code in the maximum user identification; form a target bit according to the preset number of bits and multiple bits corresponding to the user identification code in the maximum user identification; generate a target user identification code on the target bit.
[0135] In an embodiment of the present application, a generation module is used to determine the plane identification code obtained after the current plane identification code is called by a preset number of bits as the updated target plane identification code; and generate a target user identification based on the user type code, the updated target plane identification code and the target user identification code.
[0136] Figure 5 This is a block diagram of a user plane query device provided in an embodiment of the present application. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 5 As shown, the device comprises:
[0137] The receiving module 51 is used to receive a query request, wherein the query request carries a user identification to be processed, and the user identification includes: a user type code, a third plane identification code and a user identification code;
[0138] A calling module 52, configured to call a user plane corresponding to the third plane identification code according to the third plane identification code;
[0139] An acquisition module 53, configured to acquire plane information corresponding to the user plane based on the user plane;
[0140] The determination module 54 is configured to determine, based on the plane information, a fourth plane identification code actually corresponding to the user identification.
[0141] The present application also provides an electronic device, such as Figure 6 As shown, the electronic device may include: a processor 1501 , a communication interface 1502 , a memory 1503 and a communication bus 1504 , wherein the processor 1501 , the communication interface 1502 , and the memory 1503 communicate with each other via the communication bus 1504 .
[0142] Memory 1503, used for storing computer programs;
[0143] The processor 1501 is used to implement the steps of the above embodiment when executing the computer program stored in the memory 1503.
[0144] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0145] The communication interface is used for communication between the above terminal and other devices.
[0146] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0147] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0148] In another embodiment provided in the present application, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions. When the instructions are executed on a computer, the computer executes any of the methods described in the above embodiments.
[0149] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any of the methods described in the above embodiments.
[0150] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk SolidState Disk), etc.
[0151] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
[0152] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A method for configuring a user plane, characterized in that: include: receiving a configuration request, wherein the configuration request carries a first user bearer quantity for configuring a target user plane; In response to the configuration request, obtaining a first plane identification code corresponding to the target user plane and a number of second user bearers currently supported; When it is determined that the number of the second user bearers is less than the number of the first user bearers, the number of the second user bearers corresponding to the target user plane is changed to the number of the first user bearers, and at least one second plane identification code aggregated with the first plane identification code is determined according to the number of the first user bearers; Aggregating the first plane identification code and at least one of the second plane identification codes to obtain a target plane identification code, wherein the target plane identification code is used to form a user identification; The determining, according to the first user bearer quantity, at least one second plane identification code to be aggregated with the first plane identification code comprises: obtaining a correspondence between a preset user bearer quantity and an aggregated quantity of plane identification codes; determining a target aggregated quantity corresponding to the first user bearer quantity based on the correspondence and the first user bearer quantity; and determining, according to the target aggregated quantity, at least one second plane identification code to be aggregated with the first plane identification code; The method of determining at least one second plane identification code to be aggregated with the first plane identification code according to the target aggregation quantity includes: determining the first plane identification code as an initial aggregation value, calculating the sum of the initial aggregation value and the target aggregation quantity, and determining the numerical value between the initial aggregation value and the sum as the second plane identification code.
2. The method according to claim 1, characterized in that After aggregating the first plane identification code and at least one of the second plane identification codes to obtain a target plane identification code, the method further includes: Receiving a user online request, wherein the user online request is used to request to generate a target user identifier for a target user terminal to be online; In response to the user online request, a target user identifier is generated according to the target plane identifier code, so that the target user goes online according to the target user identifier.
3. The method according to claim 2, characterized in that User identification includes: user type code, plane identification code and user identification code; Before generating a target user identifier according to the target plane identifier code, the method further includes: Get the maximum user ID currently generated; Extracting the plane identification code and the user identification code from the maximum user identification; When the user identification code in the maximum user identification is the upper limit of the user identification code corresponding to the second user bearer quantity, based on a preset rule, calling a preset number of bits from the plane identification code in the maximum user identification; The target bit is formed according to the preset number of bits and a plurality of bits corresponding to the user identification code in the maximum user identification; A target user identification code is generated on the target bit position.
4. The method according to claim 3, characterized in that The generating a target user identifier according to the target plane identification code comprises: Determine the plane identification code obtained after the plane identification code in the maximum user identification is called by a preset number of bits as the updated target plane identification code; The target user identification is generated according to the user type code, the updated target plane identification code and the target user identification code.
5. A user plane query method, applied to the user plane configuration method according to any one of claims 1 to 4, characterized in that: include: Receive a query request, wherein the query request carries a user identification to be processed, and the user identification includes: a user type code, a third plane identification code, and a user identification code; Calling a user plane corresponding to the third plane identification code according to the third plane identification code; Based on the user plane, acquiring plane information corresponding to the user plane; Based on the plane information, determining a fourth plane identification code actually corresponding to the user identification; Determining the fourth plane identification code actually corresponding to the user identifier based on the plane information includes: querying the aggregation record corresponding to the user plane from the plane information, wherein the aggregation record includes at least two plane identification codes; and determining the smallest plane identification code in the aggregation record as the fourth plane identification code.
6. A user plane configuration device, characterized in that: include: A receiving module, configured to receive a configuration request, wherein the configuration request carries a first user bearer quantity for configuring a target user plane; An acquisition module, configured to acquire, in response to the configuration request, a first plane identification code corresponding to the target user plane and a number of second user bearers currently supported; a determination module, configured to, when determining that the number of the second user bearers is less than the number of the first user bearers, change the number of the second user bearers corresponding to the target user plane to the number of the first user bearers, and determine at least one second plane identification code aggregated with the first plane identification code according to the number of the first user bearers; an aggregation module, configured to aggregate the first plane identification code and at least one of the second plane identification codes to obtain a target plane identification code, wherein the target plane identification code is used to form a user identification; The determining module comprises: An acquisition submodule, used to acquire a corresponding relationship between a preset user carrying quantity and an aggregated quantity of plane identification codes; A query submodule, configured to determine a target aggregation quantity corresponding to the first user bearer quantity based on the corresponding relationship and the first user bearer quantity; a processing submodule, configured to determine at least one second plane identification code to be aggregated with the first plane identification code according to a target aggregation quantity; The processing submodule is specifically used to determine the first plane identification code as an initial aggregation value, calculate the sum of the initial aggregation value and the target aggregation quantity, and determine the value between the initial aggregation value and the sum as a second plane identification code.
7. A user plane query device, applied to the user plane configuration device according to claim 6, characterized in that: include: A receiving module, configured to receive a query request, wherein the query request carries a user identification to be processed, and the user identification includes: a user type code, a third plane identification code, and a user identification code; A calling module, configured to call a user plane corresponding to the third plane identification code according to the third plane identification code; An acquisition module, configured to acquire plane information corresponding to the user plane based on the user plane; A determination module, configured to determine, based on the plane information, a fourth plane identification code actually corresponding to the user identification; The determination module is specifically configured to query the aggregation record corresponding to the user plane from the plane information, wherein the aggregation record includes at least two plane identification codes; and determine the smallest plane identification code in the aggregation record as the fourth plane identification code.
Citation Information
Patent Citations
Cross identity registration method for co-group users of time division-long term evolution-based (TD-LTE-based) public network and cluster
CN103237342A
Reduction of user plane congestion
CN105594246A
Method and system for information verification based on information identification code
CN106846506A
Two-dimensional code generation and verification method, device, equipment and readable medium
CN113011864A
Source-agnostic correlation of consumer telephone numbers and user identifiers
US20180165688A1
