A method for obtaining IP mapping relationship between mobile network control plane and user plane
By obtaining the IP mapping relationship between the control plane and the user plane in the mobile network, efficient shunt processing of 4G and 5G network data is achieved, which solves the problem of equipment performance degradation and improves processing capabilities.
Patent Information
- Application Number
- CN202411033417.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-07-30
AI Technical Summary
In mobile 4G and 5G networks, the user plane data is large and requires diversion processing, which causes the device to need to access a full amount of control plane data, resulting in a degradation of equipment performance.
By analyzing the control plane interface data of 4G and 5G networks, the mapping relationship between the control plane and the user plane IP of the network element is obtained, and the corresponding diversion of the control plane and the user plane is achieved, reducing the consumption of device memory and processing resources.
It significantly reduces the consumption of device memory and processing resources, optimizes data shunt and association strategies, and improves the processing capabilities of DPI devices.
Smart Images

Figure CN118748666B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of mobile communications, and in particular to a method for acquiring an IP mapping relationship between a control plane and a user plane of a mobile network. Background Art
[0002] Mobile 4G and 5G networks have the advantages of high-speed transmission and stable connection, and have become the mainstream of modern mobile communications. Among them, 5G networks provide lower latency, larger network capacity and more connectivity compared to 4G networks. How to process mobile network data more efficiently and realize visual real-time monitoring of network traffic has become a key issue in enterprise and government data governance.
[0003] Both 4G and 5G networks use an architecture that separates the control plane and the user plane. The control plane carries authentication information, and the user plane carries behavior information. Only after the two are associated can more valuable data be generated. According to the timing of the association mechanism, the association means are divided into pre-association and post-association. Pre-association is to associate with the control plane while processing user plane data, and directly generate user behavior call records with authentication information. Post-association is to process the user plane and control plane data separately and generate call records, and then associate and backfill based on the call records of both parties. Due to the large amount of user plane data, the user plane data needs to be diverted to multiple devices for joint processing. If the pre-association means is used, the control plane data corresponding to the current user plane cannot be known before the diversion. In order to ensure the data association effect, each device needs to access the full amount of control plane data, resulting in reduced device performance. Summary of the invention
[0004] In view of the above problems, the present invention provides a method for acquiring the IP mapping relationship between the control plane and the user plane of a mobile network, so as to perform corresponding traffic diversion on both the control plane and the user plane and reduce resource occupation of device memory.
[0005] According to one aspect of the present invention, a method for acquiring an IP mapping relationship between a mobile network control plane and a user plane is provided, comprising:
[0006] Based on the signaling process of the 4G network control plane interfaces S1-MME and S11, obtain the control plane IP addresses of the network elements MME and SGW and the user plane IP address of the SGW; determine the IP mapping relationship between the 4G network control plane and the user plane based on the control plane IP addresses of the MME and SGW and the user plane IP address of the SGW;
[0007] Based on the signaling process of the 5G network control plane interfaces N1 / N2, N11 and N4, obtain the control plane IP addresses of network elements AMF, SMF and UPF and the user plane IP address of UPF; based on the control plane IP addresses of the AMF, SMF and UPF and the user plane IP address of UPF, determine the IP mapping relationship between the 5G network control plane and the user plane.
[0008] The above technical solution, by clarifying the IP mapping relationship between the control plane and the user plane, enables network devices to only process control plane data related to them, avoiding the situation where all devices process the full amount of control plane data, thereby significantly reducing the consumption of memory and processing resources.
[0009] Optionally, in the method for obtaining the IP mapping relationship between the control plane and user plane of the mobile network provided by the present invention, the message type and interface type of the S11 interface are parsed according to the GTPv2-C protocol specification; when the message type value of the S11 interface is 33 and the interface type value is 1, the control plane IP address of the SGW and the user plane IP address of the SGW are obtained; the message type and process type of the S1-MME interface are parsed according to the S1AP protocol specification; when the message type value of the S1-MME interface is 0 and the process type value is 9, the control plane IP address of the MME and the user plane IP address of the SGW are obtained.
[0010] This protocol specification-based IP mapping acquisition method provides an efficient, secure and standards-compliant way to process and optimize data flows in mobile networks.
[0011] Optionally, in the method for obtaining the IP mapping relationship between the mobile network control plane and the user plane provided by the present invention, when the S11 interface message type value is 33, it indicates that the message is a session creation request initiated by the MME to the SGW; when the interface type value contained in the message is 1, it indicates that the message carries the IP address of the SGW in S1-U, and the IP address of the SGW user plane is obtained; the IP address of the SGW control plane is obtained based on the source address of the message.
[0012] Optionally, in the method for obtaining the IP mapping relationship between the mobile network control plane and the user plane provided by the present invention, when the message type value of the S1-MME interface is 0 and the process type value is 9, it indicates that the message is a request to establish an initial context; the transport layer address in the request to establish the initial context is parsed to obtain the IP address of the SGW user plane; and the IP address of the MME control plane is obtained based on the source address of the message.
[0013] Optionally, in the method for acquiring the IP mapping relationship between the mobile network control plane and the user plane provided by the present invention, the message type and the data packet source of the N4 interface are parsed according to the PFCP protocol specification; when the message type value is 50 and the data packet source value is 0, the control plane IP address of the UPF and the UPF user plane IP address are obtained;
[0014] According to HTTP2 and AMF network element specifications, parse the HTTP2 request method and URL of the N11 interface; when the HTTP2 request method is POST and the URL conforms to the specified pattern, obtain the SMF control plane IP address and UPF user plane IP address;
[0015] According to the NGAF protocol specification, parse the message type and process type of the N1 / N2 interface; when the message type value of the N1 / N2 interface is 0 and the process type value is 29, obtain the control plane IP address of the AMF and the user plane IP address of the UPF.
[0016] In a dynamically changing network environment, the above technical solution can quickly respond to changes in network equipment and services, update and adjust IP address information in real time, and improve the adaptability and elasticity of the network.
[0017] Optionally, in the method for obtaining the IP mapping relationship between the mobile network control plane and the user plane provided by the present invention, when the message type value of the N4 interface is 50, it indicates that the message is a request to establish a session on the UPF; the source of the data packet in the message packet detection rule is parsed, and when the value of the data packet source interface is 0, it indicates that the data packet comes from the base station; the IP address of the UPF user plane is obtained from the message for creating the packet detection rule; and the IP address of the UPF control plane is obtained based on the destination address of the message.
[0018] Optionally, in the method for obtaining the IP mapping relationship between the mobile network control plane and the user plane provided by the present invention, when the request method of HTTP2 is POST and the URL conforms to the pattern / namf-comm / v1 / ue-contexts / imsi-xxxxx / n1-n2-messages, it indicates that the message is an information transmission request; the transport layer address in the message content is parsed to obtain the IP address of the UPF user plane; and the IP address of the SMF control plane is obtained based on the source address of the message.
[0019] Optionally, in the method for obtaining the IP mapping relationship between the mobile network control plane and the user plane provided by the present invention, when the message type value of the N1 / N2 interface is 0 and the process type value is 29, it indicates that the message is a PDU session resource establishment request; parse the transport layer address of the PDU session resource establishment request to obtain the IP address of the UPF user plane; obtain the IP address of the AMF control plane based on the source address of the message.
[0020] The present invention also provides a computing device, comprising: at least one processor and a memory storing program instructions, wherein the program instructions are configured to be suitable for execution by at least one processor, and the program instructions include instructions for executing the above-mentioned method for obtaining the IP mapping relationship between the mobile network control plane and the user plane.
[0021] The present invention also provides a readable storage medium storing program instructions. When the program instructions are read and executed by a computing device, the computing device executes the above-mentioned method for acquiring the IP mapping relationship between the mobile network control plane and the user plane.
[0022] According to the method for obtaining the IP mapping relationship between the control plane and the user plane of the mobile network provided by the present invention, by analyzing the control plane interface data of the 4G network and the 5G network, the mapping relationship between the control plane and the user plane IP of the network element can be accurately obtained, and then the data traffic of the user plane and the control plane corresponding to the IP address can be allocated to the DPI service processing device according to the IP mapping relationship between the control plane and the user plane of the 4G network or the IP mapping relationship between the control plane and the user plane of the 5G network. For the pre-association mechanism, each device only needs to access the control plane data that matches the current user plane, and the device memory and processing pressure will be significantly reduced. For the post-association mechanism, the user plane call list does not need to query the full amount of control plane data, and only focuses on the control plane related to it for backfilling. Therefore, this solution can optimize data diversion and association strategies and improve the processing capabilities of DPI devices.
[0023] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0025] Figure 1 A block diagram of a computing device 100 according to an embodiment of the present invention is shown;
[0026] Figure 2 A schematic flow chart of a method 200 for acquiring an IP mapping relationship between a mobile network control plane and a user plane according to an embodiment of the present invention is shown;
[0027] Figure 3A schematic diagram of a 4G network deep packet inspection acquisition interface is shown;
[0028] Figure 4 A schematic diagram of an S11 interface message processing flow according to an embodiment of the present invention is shown;
[0029] Figure 5 A schematic diagram of 4G network S11 interface message is shown;
[0030] Figure 6 A schematic diagram of an S1-MME interface message processing flow according to an embodiment of the present invention is shown;
[0031] Figure 7 A schematic diagram of a 4G network S1-MME interface message is shown;
[0032] Figure 8 A schematic diagram of a 5G network deep packet inspection acquisition interface is shown;
[0033] Fig. 9 A schematic diagram of the N4 interface message processing flow is shown;
[0034] Fig.10 A schematic diagram of 5G network N4 interface message is shown;
[0035] Fig.11 A schematic diagram of the N11 interface message processing flow is shown;
[0036] Fig.12 A schematic diagram of 5G network N11 interface message is shown;
[0037] Fig.13 A schematic diagram of the N1 / N2 interface message processing flow is shown;
[0038] Fig.14 A schematic diagram of 5G network N1 / N2 interface messages is shown. DETAILED DESCRIPTION
[0039] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0040] This solution obtains the IP correspondence between user plane network elements and control plane network elements by identifying and analyzing specific network control plane interfaces and performing message decoding. It can more effectively divert and manage data according to the different needs of the user plane and control plane, thereby improving data transmission and processing efficiency.
[0041] Figure 1 FIG. 1 shows a block diagram of a computing device 100 according to an embodiment of the present invention. Figure 1 As shown, computing device 100 may include memory 106 and processor 104. Memory bus 108 may be used for communication between processor 104 and system memory 106.
[0042] Memory 106 may include operating system 120, applications 122, and program data 124. Applications 122 may be arranged to be executed on the operating system by one or more processors 104 using program data 124. Applications 122 include program instructions for implementing various user desired functions.
[0043] When the computing device 100 starts running, the processor 104 reads and executes the program instructions of the operating system 120 from the memory 106. The application 122 runs on the operating system 120 and uses the interfaces provided by the operating system 120 and the underlying hardware to implement various functions desired by the user. When the user starts the application 122, the application 122 is loaded into the memory 106, and the processor 104 reads and executes the program instructions of the application 122 from the memory 106.
[0044] The computing device 100 also includes a storage device 132 and an output device 142 connected to a storage interface bus 134. An interface bus 140 facilitates communication from various interface devices (eg, output device 142, peripheral interface 144, and communication device 146) via the bus / interface controller 130.
[0045] The peripheral interface 144 may include a serial interface controller 154 and a parallel interface controller 156, which may be configured to facilitate communication with external devices such as input devices (e.g., keyboards, mice, pens, voice input devices, touch input devices) or other peripherals (e.g., printers, scanners, etc.) via one or more I / O ports 158. The communication device 146 may include a network controller 160, which may be arranged to facilitate communication with one or more other computing devices 162 via a network communication link via one or more communication ports 164. In the computing device 100 according to the present invention, the application 122 includes instructions for executing the method 200 for obtaining the IP mapping relationship between the mobile network control plane and the user plane of the present invention.
[0046] The control plane interface of the 4G network is mainly composed of S1-MME and S11, and the user plane interface is mainly composed of S1-U, which is responsible for transmitting user data. The control plane interface of the 5G network is more decentralized and flexible, including N11, N1, N2 and N4, and the user plane interface N3 is responsible for transmitting user data. The deep management and control of network traffic can be achieved by analyzing data packets through DPI (deep packet inspection) technology.
[0047] Figure 2 FIG. 2 is a flow chart showing a method 200 for acquiring an IP mapping relationship between a mobile network control plane and a user plane according to an embodiment of the present invention. Figure 2 As shown, in step S210, based on the signaling process of the 4G network control plane interfaces S1-MME and S11, the control plane IP addresses of the network elements MME and SGW and the user plane IP address of the SGW are obtained.
[0048] Figure 3 The figure shows a schematic diagram of the 4G network deep packet inspection collection interface. Figure 3 As shown in the figure, the packet detection and collection interfaces of the 4G network include S1-MME and S11. S1-MME is the interface between E-UTRAN and MME, and S11 is the interface between MME and SGW. The S1-U interface is the reference interface between E-UTRAN and SGW, and contains the user plane data to be processed.
[0049] For the base station, the IP address of the SGW in S1-U is suitable for diversion. At the same time, according to the corresponding IP address of the SGW in S11, the data of the control plane S11 can be diverted to the DPI service equipment, or, according to the corresponding IP address of the MME in S1-MME, the data of the control plane S1-MME can be diverted to the DPI service equipment.
[0050] In order to obtain the control plane IP address and user plane IP address of the network element MME and SGW, the message type and interface type of the S11 interface can be parsed according to the GTPv2-C protocol specification; when the message type value of the S11 interface is 33 and the interface type value is 1, the control plane IP address and user plane IP address of the SGW are obtained.
[0051] Among them, the GTPv2-C protocol specification defines a standardized method for control plane communications in mobile networks, including message types (such as requests, responses, and notifications) and specific fields (such as message sequence numbers, message types, etc.).
[0052] Figure 4 FIG. 2 shows a schematic diagram of an S11 interface message processing flow according to an embodiment of the present invention. Figure 4As shown, first, for the S11 interface, the data decoding message type, according to the GTPv2-C (GPRS Tunneling Protocol Version2-Control plane) protocol specification, when the message type (MessageType) value is 33, that is, Create SessionResponse, it indicates that the MME initiates a session creation request to the SGW.
[0053] Then, decode the interface type: In the Create Session Response message, find Bearer Contexts->F-TEID (Fully Qualified Tunnel Endpoint Identifier)->Interface Type. When this value is 1, it means that the message contains the user plane IP address of the SGW (the IP address of the SGW in S1-U). Therefore, by decoding the S1-U bearer information, the IP address of the SGW user plane can be obtained: SGW-U_IP. Decode the source address of the message. The source IP address in the message indicates the control plane IP address SGW-C_IP of the SGW in the S11 interface.
[0054] Figure 5 Figure 4 shows a schematic diagram of the 4G network S11 interface message. Figure 5 As shown, by decoding the CreateSession Response of the S11 interface (in response to the CreateSession Request initiated by the MME), the IP address SGW-C_IP of the SGW control plane is the source address Src: 10.2.2.2. The IP address SGW-U_IP of the SGW user plane is 109.0.0.1.
[0055] Then, the message type and process type of the S1-MME interface are parsed according to the S1AP protocol specification; when the message type value of the S1-MME interface is 0 and the process type value is 9, the control plane IP address and user plane IP address of the MME are obtained.
[0056] Among them, the S1AP (S1 Application Protocol) protocol is used for communication between base station nodes and MME (Mobility Management Entity), and between base station nodes and SGW (Serving Gateway).
[0057] Specifically, when the message type value of the S1-MME interface is 0 and the process type value is 9, it indicates that the message is an Initial Context Setup Request (request to establish an initial context); parse the E-RABToBeSetupListCtxtSUReq ->E-RABToBeSetupItemCtxtSUReq ->transportLayerAddress information element (transport layer address) in the Initial Context SetupRequest message. The transportLayerAddress information element carries the IP address of the SGW in S1-U; obtain the IP address of the MME control plane based on the source address of the information element.
[0058] Figure 6 FIG. 2 shows a schematic diagram of an S1-MME interface message processing flow according to an embodiment of the present invention. Figure 6 As shown, for S1-MME interface data, the message type and procedure type are first decoded. According to the S1AP protocol specification, when the message type (MessageType) is 0 and the procedure type (Procedure Code) is 9, that is, Initial Context SetupRequest, it means that this message is used for the initial context setup request.
[0059] Parse the transportLayerAddress information element, which contains the user plane IP address SGW-U_IP of the SGW on the S1-U interface. Finally, decode the source address of the message, which represents the control plane IP address MME_IP of the MME on the S1-MME interface, so that the correspondence between [MME_IP, SGW-U_IP] can be determined.
[0060] Figure 7 Figure 4 shows a schematic diagram of the 4G network S1-MME interface message. Figure 7 As shown, by decoding the S1-MME interface Initial Context Setup Request message (response to the request for establishing an initial context initiated by the MME), the MME control plane IP address MME_IP obtained is: 100.65.255.72, and the SGW-U_IP is 100.65.251.145.
[0061] In step S220, the IP mapping relationship between the control plane and the user plane of the 4G network is determined based on the control plane IP addresses of the MME and the SGW and the user plane IP address of the SGW.
[0062] In an embodiment of the present invention, the acquired IP mapping relationship between the control plane and the user plane of the 4G network is [SGW-C_IP, SGW-U_IP] and [MME_IP, SGW-U_IP].
[0063] In step S230, based on the signaling process of the 5G network control plane interfaces N1 / N2, N11 and N4, the control plane IP addresses of network elements AMF, SMF and UPF and the user plane IP address of UPF are obtained.
[0064] Figure 8 The figure shows a schematic diagram of the 5G network deep data packet detection collection interface. Figure 8 As shown, for 5G networks, N1 / N2, N11 and N4 interface data can be collected, where the N1 / N2 interface is the interface between the base station and the core network, and is used to transmit control signaling and user data related to AMF. The N4 interface is used to transmit control plane data. The N11 interface is used to transmit control signaling and user data related to SMF. The N3 interface contains user plane data to be processed, similar to the S1-U interface of the 4G network. It is suitable to use the IP address of UPF in N3 when diverting, which means that the data packet is routed and processed by UPF.
[0065] At the same time, according to the IP address of the corresponding UPF on the N4 interface, the data of the control plane N4 is diverted to the DPI service equipment; or according to the IP address of the corresponding SMF on the N11 interface, the data of the N11 interface is diverted to the DPI service equipment; or according to the IP address of the corresponding AMF on the N1 / N2 interface, the data of the N1 / N2 interface is diverted to the DPI service equipment.
[0066] In order to obtain the control plane IP address and user plane IP address of network elements AMF, SMF and UPF, the message type and data packet source of the N4 interface can be parsed according to the PFCP protocol specification; when the message type value is 50 and the data packet source value is 0, the control plane IP address and user plane IP address of UPF are obtained.
[0067] Among them, the PFCP protocol specification is a protocol used to control user plane functions in 5G networks, allowing the control functions of the core network to be independent of the processing and forwarding of user data.
[0068] Fig. 9 FIG. 4 shows a schematic diagram of the N4 interface message processing flow. Fig. 9As shown, for the N4 interface, first decode the message type. According to the PFCP protocol specification, when the message type Message Type takes the value of 50, it means that the message is a PFCPSession Establishment Request (session establishment request on UPF). Parse the packet detection rule PDR and obtain the source of the data packet targeted by the rule (Create PDRPDISource Interface). When the Source Interface takes the value of 0, it means that the data packet is sent from the base station direction, and the bearer information to be created is also for the N3 interface. From Create PDRPDIF-TEID, you can get the IP address UPF-U_IP of UPF in N3. At the same time, the destination address of the message itself is the IP address UPF-C_IP of UPF in N4.
[0069] Fig.10 Figure 5 shows a schematic diagram of 5G network N4 interface message. Fig.10 As shown, when the N4 interface message is PFCPSession Establishment Request, the decoded UPF-C_IP is 213.31.5.100 and the UPF-U_IP is 192.168.102.2.
[0070] Then, according to the HTTP2 and AMF network element specifications, the HTTP2 request method and URL of the N11 interface are parsed; when the HTTP2 request method is POST and the URL conforms to the specified pattern, the control plane IP address and user plane IP address of the SMF are obtained.
[0071] Fig.11 FIG. 1 shows a schematic diagram of the N11 interface message processing flow. Fig.11 As shown, for the N11 interface, the HTTP2Method and URL are decoded. According to the HTTP2 and AMF network element specifications, when the HTTP2 Method is POST and the URL conforms to the pattern / namf-comm / v1 / ue-contexts / imsi-xxxxx / n1-n2-messages, it indicates that the message is N1N2MessageTransfer.
[0072] Parse the transportLayerAddress information element contained in the message content: (PDUSessionResourceSetupRequestTransferUL-NGU-UP-TNLInformationtransportLayerAddress) to obtain the IP address UPF-U_IP of UPF at N3. At the same time, the source address of the message itself is the IP address SMF_IP of SMF at N11.
[0073] Fig.12 Figure 5 shows a schematic diagram of 5G network N11 interface message. Fig.12 As shown, by decoding the N1N2MessageTransfer message, it can be obtained that the SMF_IP is 213.31.5.30 and the UPF-U_IP is 192.168.102.2.
[0074] Finally, according to the NGAF protocol specification, the message type and process type of the N1 / N2 interface are parsed; when the message type value of the N1 / N2 interface is 0 and the process type value is 29, the control plane IP address and user plane IP address of the AMF are obtained.
[0075] Among them, the NGAP protocol specification is the application layer protocol of the 5G network, which is used for communication between the 5G core network and base stations, mainly including user equipment management, session management, mobility management, etc.
[0076] Fig.13 FIG. 1 shows a schematic diagram of the N1 / N2 interface message processing flow. Fig.13 As shown, for the N1 / N2 interface, the message type and process type are parsed. According to the NGAP protocol specification, when the message type MessageType takes the value of 0 and the process type Procedure Code takes the value of 29, it indicates that the message is a PDU Session Resource Setup Request. Parse PDUSessionResourceSetupListSUReqPDUSessionResourceSetupItemSUReqPDUSessionResourceSetupRequestTransferUL-NGU-UP-TNLInformationtransportLayerAddress. This information element carries the IP address UPF-U_IP of UPF in N3. At the same time, the source address of the message itself is the IP address AMF_IP of AMF in N1 / N2.
[0077] Fig.14A schematic diagram of 5G network N1 / N2 interface message is shown. Fig.14 As shown, by decoding the PDU SessionResource Setup Request message, the AMF_IP can be obtained as 213.31.5.120 and the UPF-U_IP is 192.168.102.2.
[0078] In step S240, the IP mapping relationship between the control plane and the user plane of the 5G network is determined based on the control plane IP addresses of the AMF, SMF and UPF and the user plane IP address of the UPF.
[0079] In an embodiment of the present invention, the IP mapping relationship between the control plane and the user plane of the 5G network can finally be obtained as [AMF_IP, UPF-U_IP], [SMF_IP, UPF-U_IP], [UPF-C_IP, UPF-U_IP].
[0080] According to the present invention, a method for obtaining the IP mapping relationship between the control plane and the user plane of a mobile network is provided. By analyzing the control plane interface data of the 4G network and the 5G network through GTPv2-C and PFCP decoding, S1AP and NGAP decoding, and HTTP2 decoding, the mapping relationship between the control plane and the user plane IP of the network element can be accurately obtained, and then according to the IP mapping relationship between the control plane and the user plane of the 4G network or the IP mapping relationship between the control plane and the user plane of the 5G network, the data traffic of the user plane and the control plane corresponding to the IP address can be allocated to the DPI service processing device.
[0081] For the pre-association mechanism, each device only needs to access the control plane data that matches the current user plane, and the device memory and processing pressure will be significantly reduced. For the post-association mechanism, the user plane call record does not need to query the full amount of control plane data, and only needs to focus on the control plane related to it for backfilling. Therefore, this solution can optimize data diversion and association strategies and improve the processing capacity of DPI equipment.
[0082] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.
[0083] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.
Claims
1. A method for obtaining an IP mapping relationship between a mobile network control plane and a user plane, characterized in that: include: Based on the signaling process of the 4G network control plane interfaces S1-MME and S11, obtain the control plane IP addresses of the network element MME and SGW and the user plane IP address of the SGW; Determine a mapping relationship between a 4G network element control plane and a user plane IP based on the control plane IP addresses of the MME and the SGW and the user plane IP address of the SGW; Based on the signaling process of the 5G network control plane interfaces N1 / N2, N11 and N4, obtain the control plane IP addresses of the network elements AMF, SMF and UPF and the user plane IP address of UPF; Determine the mapping relationship between the control plane and user plane IP of the 5G network element based on the control plane IP addresses of the AMF, SMF and UPF and the user plane IP address of the UPF; The steps of obtaining the control plane IP addresses of the network element MME and the SGW and the user plane IP address of the SGW based on the signaling process of the 4G network control plane interfaces S1-MME and S11 include: Parse the message type and interface type of the S11 interface according to the GTPv2-C protocol specification; When the message type value of the S11 interface is 33 and the interface type value is 1, obtain the control plane IP address of the SGW and the user plane IP address of the SGW; Parse the message types and process types of the S1-MME interface according to the S1AP protocol specification; When the message type value of the S1-MME interface is 0 and the process type value is 9, obtain the control plane IP address of the MME and the user plane IP address of the SGW; The steps of obtaining the control plane IP addresses of network elements AMF, SMF and UPF and the user plane IP address of UPF based on the signaling process of the 5G network control plane interfaces N1 / N2, N11 and N4 include: Parse the message type and data packet source of the N4 interface according to the PFCP protocol specification; When the message type value is 50 and the packet source value is 0, obtain the control plane IP address of the UPF and the user plane IP address of the UPF; Parse the HTTP2 request method and URL of the N11 interface according to HTTP2 and AMF network element specifications; When the HTTP2 request method is POST and the URL conforms to the specified pattern, obtain the control plane IP address of the SMF and the user plane IP address of the UPF; According to the NGAF protocol specification, parse the message type and process type of the N1 / N2 interface; When the message type value of the N1 / N2 interface is 0 and the process type value is 29, obtain the control plane IP address of AMF and the user plane IP address of UPF.
2. The method for obtaining the IP mapping relationship between the mobile network control plane and the user plane according to claim 1, characterized in that: When the message type value of the S11 interface is 33 and the interface type value is 1, the step of obtaining the control plane IP address of the SGW and the user plane IP address of the SGW includes: When the S11 interface message type value is 33, it indicates that the message is a session creation request initiated by the MME to the SGW; When the interface type value contained in the message is 1, it means that the message carries the IP address of the SGW in S1-U, and the IP address of the SGW user plane is obtained; The IP address of the SGW control plane is obtained based on the source address of the message.
3. The method for obtaining the IP mapping relationship between the mobile network control plane and the user plane according to claim 1, characterized in that: When the message type value of the S1-MME interface is 0 and the process type value is 9, the step of obtaining the control plane IP address of the MME and the user plane IP address of the SGW includes: When the message type value of the S1-MME interface is 0 and the process type value is 9, it means that the message is a request to establish an initial context; Parse the transport layer address in the request to establish the initial context and obtain the IP address of the SGW user plane; The IP address of the MME control plane is obtained based on the source address of the message.
4. The method for obtaining the IP mapping relationship between the mobile network control plane and the user plane according to claim 1, characterized in that: When the message type value is 50 and the data packet source value is 0, the step of obtaining the control plane IP address of the UPF and the user plane IP address of the UPF includes: When the message type value of the N4 interface is 50, it means that the message is a request to establish a session on the UPF; Parse the source of the data packet in the message packet detection rule. When the value of the data packet source interface is 0, it means that the data packet comes from the base station. Get the IP address of the UPF user plane from the message of creating the packet inspection rule; Obtain the IP address of the UPF control plane based on the destination address of the message.
5. The method for acquiring the IP mapping relationship between the mobile network control plane and the user plane according to claim 1, characterized in that: When the request method of HTTP2 is POST and the URL conforms to the specified mode, the step of obtaining the control plane IP address of SMF and the user plane IP address of UPF includes: When the HTTP2 request method is POST and the URL matches the pattern / namf-comm / v1 / ue-contexts / imsi-xxxxx / n1-n2-messages, it indicates that the message is an information transmission request; Parse the transport layer address in the message content and obtain the IP address of the UPF user plane; Get the IP address of the SMF control plane based on the source address of the message.
6. The method for acquiring the IP mapping relationship between the mobile network control plane and the user plane according to claim 1, characterized in that: When the message type value of the N1 / N2 interface is 0 and the process type value is 29, the step of obtaining the control plane IP address of the AMF and the user plane IP address of the UPF includes: When the message type value of the N1 / N2 interface is 0 and the process type value is 29, it indicates that the message is a PDU session resource establishment request; Parse the transport layer address of the PDU session resource establishment request to obtain the IP address of the UPF user plane; Get the IP address of the AMF control plane based on the source address of the message.
7. A computing device comprising: at least one processor; A memory storing program instructions, wherein the program instructions are configured to be suitable for execution by the at least one processor, and the program instructions include instructions for executing a method for acquiring an IP mapping relationship between a mobile network control plane and a user plane as described in any one of claims 1-6.
8. A readable storage medium storing program instructions, when the program instructions are read and executed by a computing device, the computing device executes the method for acquiring the IP mapping relationship between the control plane and the user plane of a mobile network as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Information processing method and device
CN110417840A
Communication method and device
CN113132322A