Ifx-based base station id acquisition and drift positioning method and system
By automatically parsing IFX traffic packets to generate a user dictionary and comparing it with base station IDs, the problem of high manpower consumption and untimely location caused by manual analysis in existing technologies is solved, and the automatic collection and real-time location of base station IDs is realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI HENGWEI INTELLIGENT TECH CO LTD
- Filing Date
- 2025-01-13
- Publication Date
- 2026-07-03
AI Technical Summary
Existing technologies rely on manual analysis to obtain and record base station ID information, resulting in high manpower requirements, slow speed, and untimely positioning.
A base station ID collection and drift location method based on IFX is adopted. The IFX traffic packets are parsed through an automated packet capture process to generate a user dictionary and store base station ID information. The data is then compared with a list of expected base station IDs to achieve automated collection and location.
It enables automated collection and real-time location of base station ID information, reducing manpower requirements, improving analysis efficiency, lowering the knowledge requirements for operation and maintenance personnel, and avoiding problems such as missed collection and inaccurate statistics.
Smart Images

Figure CN119892669B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data communication technology, specifically to a base station ID acquisition and drift positioning method and system based on IFX. Background Technology
[0002] The system acquires call and internet access information of users at the target location via the core network. Traffic is then transmitted to an x86 server via aggregation and distribution equipment. The processing software running on the server identifies and retrieves user information for the target location, while simultaneously monitoring the spread of sensitive information such as fraud, violence, and pyramid schemes. Once identified, if a user sends fraudulent information via SMS, the system immediately blocks the source of that information to prevent adverse effects. To ensure accurate identification of users only at the target location, the base station IDs of that location must be collected in advance, and newly emerging base station IDs must be promptly located and recorded to avoid omissions.
[0003] However, the current method relies on maintenance personnel to be on duty throughout the process to analyze and obtain and record base station ID information, which has the disadvantages of consuming manpower, requiring specific knowledge, slow manual analysis speed, and untimely positioning. Summary of the Invention
[0004] To help solve the above-mentioned technical problems, this application provides a base station ID acquisition and drift positioning method and system based on IFX.
[0005] Firstly, this application provides a base station ID acquisition and drift positioning method based on IFX, employing the following technical solution:
[0006] A method for base station ID acquisition and drift positioning based on IFX, wherein the method includes:
[0007] Read configuration data, which includes configuration files and configuration information. The configuration data includes file storage directory configuration data, base station ID list configuration data, log file name configuration data, packet name configuration data, and packet capture duration configuration data.
[0008] Determine if a file storage directory exists; if not, create the file storage directory based on the file storage directory configuration data.
[0009] Start the packet capture process, which includes a main packet capture process and a slave packet capture process, and simultaneously start the main packet capture process and the slave packet capture process;
[0010] The packet capture main process includes:
[0011] Parse IFX traffic packets to generate a user dictionary, which stores base station ID information;
[0012] Determine whether the base station ID list configuration data has a value. If there is no value, output the base station ID information to the log file corresponding to the log file name. If there is a value, output the comparison result between the base station ID information and the currently valuable base station ID list configuration data to the log file corresponding to the log file name.
[0013] The packet capture process includes:
[0014] Determine whether the packet capture time has been reached based on the packet capture duration configuration data; if so, stop the packet capture process.
[0015] The IFX traffic packets are stored in the file storage directory as packet files, and the packet files are named according to the packet name configuration data.
[0016] Preferably, in the process of reading configuration data, the configuration data further includes network interface name configuration data. The process of starting the packet capture process includes a packet capture master process and a packet capture slave process. Simultaneously starting the packet capture master process and the packet capture slave process includes: the ifx traffic packets are connected to the network interface corresponding to the network interface name configuration data.
[0017] Preferably, in the process of parsing the IFX traffic packets and generating a user dictionary, the user dictionary stores base station ID information, and the IFX traffic packets include the user's International Mobile Subscriber Identity (IMSI), Mobile Station International User Directory Number (MSIN), and base station ID information.
[0018] Preferably, in the process of parsing IFX traffic packets and generating a user dictionary, the user dictionary stores base station ID information, as well as the International Mobile Subscriber Identity (IMSI) information, the mobile station international user directory number information, the base station ID information, timestamp information, and network standard information.
[0019] Secondly, this application provides a base station ID acquisition and drift positioning system based on IFX, which adopts the following technical solution:
[0020] A base station ID acquisition and drift positioning system based on IFX, wherein the system uses the method as described in any one of the preceding first aspects, the system is installed in an x86 server, and the system includes:
[0021] A configuration data module is configured, wherein the configuration data is set in the configuration data, and the configuration data includes:
[0022] The network port name configuration data represents the name of the network port through which IFX traffic accesses;
[0023] The packet capture duration configuration data represents the time spent capturing IFX traffic;
[0024] The file storage directory configuration data represents the entry point for storing log files and packet capture files;
[0025] The message name configuration data represents the file name where the message is stored;
[0026] Log file name configuration data, which records the file name of the log file;
[0027] Base station ID list configuration data: A list of base station IDs representing the expected mission location.
[0028] Preferably, the system further includes a file storage directory module, which is used to perform the determination of whether a file storage directory exists, and if not, to create a file storage directory according to the file storage directory configuration data.
[0029] Preferably, the system further includes a packet capture module, which includes a packet capture main process submodule and a packet capture slave process submodule. The packet capture main process submodule is used to execute the packet capture main process, and the packet capture slave process submodule is used to execute the packet capture slave process.
[0030] In summary, this application has the following advantages:
[0031] 1. By automating the entire data collection and analysis process, a significant amount of manpower has been freed up.
[0032] 2. Operations and maintenance personnel can obtain results by analyzing the recorded logs, without needing to analyze the original traffic, thus reducing the knowledge requirements for operations and maintenance personnel.
[0033] 3. Compared to manual location analysis, the tool can perform real-time analysis and comparison, and there is no risk of missing data or understating statistics. Attached Figure Description
[0034] Figure 1 This is a schematic block diagram of an embodiment of the base station ID acquisition and drift positioning method based on IFX according to this application;
[0035] Figure 2 This is a flowchart illustrating an embodiment of an IFX-based base station ID acquisition and drift positioning method of this application. Detailed Implementation
[0036] The present application will be further described below with reference to the accompanying drawings. The structure and principle of the present application are very clear to those skilled in the art. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
[0037] Figure 1This is a schematic block diagram of an embodiment of the base station ID acquisition and drift positioning method based on IFX according to this application. Figure 2 This is a flowchart illustrating an embodiment of an IFX-based base station ID acquisition and drift positioning method of this application.
[0038] Combination Figure 1 and Figure 2 It is understood that the methods in this application may include:
[0039] Step S11: Read configuration data. The configuration data includes configuration files and configuration information. The configuration data includes file storage directory configuration data, base station ID list configuration data, log file name configuration data, packet name configuration data, and packet capture duration configuration data.
[0040] Step S12: Determine if a file storage directory exists. If not, create the file storage directory based on the file storage directory configuration data.
[0041] Step S13: Start the packet capture process, which includes a main packet capture process and a slave packet capture process. Both the main and slave packet capture processes are started simultaneously. In step S13, ifx traffic packets are connected to the network interface corresponding to the network interface name configuration data.
[0042] The main packet capture process includes:
[0043] Step S21: Parse the ifx traffic packets to generate a user dictionary. The user dictionary stores base station ID information, International Mobile Subscriber Identity (IMSI) information, mobile station international subscriber directory number information, base station ID information, timestamp information, and network standard information. In step S21, the ifx traffic packets include the user's IMSI information, mobile station international subscriber directory number information, and base station ID information.
[0044] Step S22: Determine if the base station ID list configuration data has a value. If there is no value, output the base station ID information to the log file corresponding to the log file name. If there is a value, output the comparison result between the base station ID information and the currently valuable base station ID list configuration data to the log file corresponding to the log file name.
[0045] Packet capture processes include:
[0046] Step S31: Determine whether the packet capture time has been reached based on the packet capture duration configuration data. If so, stop the packet capture process.
[0047] Step S32: Store the IFX traffic packets in the file storage directory as packet files, and name the packet files according to the packet name configuration data.
[0048] Specifically, the procedural steps of the method in this application are as follows:
[0049] First, read the configuration file, or configuration information. The configuration information includes the following:
[0050] Network port name: The name of the network port for traffic access, which can be configured. The default is enp61s0f1;
[0051] Packet capture duration: The time for capturing IFX traffic, configurable, default 3600s;
[0052] File storage directory: The gateway for storing log files and packet capture files; configurable, default is / home.
[0053] Message name: The file name for storing messages, configurable, default is ifx.pcap;
[0054] log name: The name of the file where logs are recorded. It is configurable and the default is obtain_cellID.log.
[0055] Base station ID list: A list of base station IDs for the expected mission location. Configurable. Default is [].
[0056] Next, create a file storage directory:
[0057] Create the corresponding directory based on the "File storage directory" in the configuration. If the directory already exists, it will not be created.
[0058] Then, the packet capture process is started:
[0059] Based on the parameters in the configuration, the main process parses the input IFX traffic and simultaneously starts a packet capture slave process;
[0060] The main process steps are as follows:
[0061] Parse IFX traffic packets to generate a user dictionary. A sample implementation is shown below:
[0062] {
[0063] "460XXXXX": {
[0064] "MSISDN" : "137XXXXXXX",
[0065] "CellID" : {
[0066] "29954" : ["20241110-152010", "4G"],
[0067] }
[0068] }
[0069] }
[0070] As described in the example, this dictionary stores the following information:
[0071] IMSI, MSISDN, base station ID, timestamp, network standard;
[0072] Check if the "Base Station ID List" in the configuration file has a value;
[0073] If there is no value, i.e. no expectation, then output the collected base station ID to the log file;
[0074] Timestamp: IMSI-MSISDN-Base Station ID-Network Standard;
[0075] 20241110-152010: 460XXXXX-137XXXXXXX-29954-4G;
[0076] If there is a value, that is, the expectation, then output the comparison result to the log file;
[0077] Timestamp: IMSI-MSISDN-Base Station ID-Network Standard-NotMatch | Match;
[0078] 20241110-152010:460XXXXX-137XXXXXXX-29954-4G-Match.
[0079] The steps from the process are as follows:
[0080] Determine if the packet capture time has been reached; if so, stop the packet capture program.
[0081] If the conditions are met, the packet capture process will stop.
[0082] Store the messages in a directory and name them according to the message names in the configuration file.
[0083] This application provides a base station ID acquisition and drift positioning system based on IFX. The system uses the aforementioned method and is configured on an x86 server. The system may include:
[0084] The configuration data module contains configuration data, which includes:
[0085] The network port name configuration data represents the name of the network port through which IFX traffic accesses;
[0086] The packet capture duration configuration data represents the time spent capturing IFX traffic;
[0087] The file storage directory configuration data represents the entry point for storing log files and packet capture files;
[0088] The message name configuration data represents the file name where the message is stored;
[0089] Log file name configuration data, which records the file name of the log file;
[0090] Base station ID list configuration data: A list of base station IDs representing the expected mission location.
[0091] In addition, the system also includes a file storage directory module and a packet capture module. The file storage directory module is used to determine whether a file storage directory exists. If it does not exist, it creates the file storage directory according to the file storage directory configuration data. The packet capture module includes a packet capture main process submodule and a packet capture slave process submodule. The packet capture main process submodule is used to execute the packet capture main process, and the packet capture slave process submodule is used to execute the packet capture slave process.
[0092] The system described in this application aims to assist in collecting base station ID information at the task location. A base station ID is a unique identifier for a mobile communication base station, crucial for ensuring the accuracy and stability of communication connections. To meet new service requirements, we need to collect this base station ID information, which this system can effectively obtain by analyzing IFX packets. When a base station ID other than the preset one appears at the task location, i.e., when base station drift occurs, the system can promptly locate and record the new base station ID information.
[0093] IFX messages are call detail records (CDRs) output by the signaling parsing component after parsing the core network signaling. These CDRs contain key information such as the user's IMSI, MSISDN, and base station ID. IMSI stands for International Mobile Subscriber Identity, while MSISDN is equivalent to a mobile phone number used for everyday dialing. This system runs on an x86 server, capable of parsing and obtaining relevant configuration information and continuously parsing received IFX traffic. The main process is responsible for storing user information in a dictionary and outputting the collected base station ID information; simultaneously, when a list of expected base stations is available, the system compares the data and outputs the comparison results.
[0094] To fully support the collection of base station ID information and the determination of base station drift, the system also includes a process-level function for packet persistence. After the packet capture time is met, the system stores the corresponding packets for subsequent analysis. Maintenance personnel can easily obtain base station ID information or determine whether a base station has drifted by analyzing the recorded log files. Furthermore, if in-depth analysis of the corresponding raw IFX traffic is required, the system will automatically store it in a designated directory, providing convenience for maintenance personnel.
Claims
1. An ifx-based base station ID acquisition and drift positioning method, characterized in that, The method includes: Read configuration data, which includes configuration files and configuration information. The configuration data includes file storage directory configuration data, base station ID list configuration data, log file name configuration data, packet name configuration data, and packet capture duration configuration data. The base station ID list configuration data represents a list of base station IDs for the expected task location. Determine if a file storage directory exists; if not, create the file storage directory based on the file storage directory configuration data. Start the packet capture process, which includes a main packet capture process and a slave packet capture process, and simultaneously start the main packet capture process and the slave packet capture process; The packet capture main process includes: Parse IFX traffic packets to generate a user dictionary, which stores base station ID information; in the process of parsing IFX traffic packets to generate a user dictionary, which stores base station ID information, the IFX traffic packets include the user's International Mobile Subscriber Identity (IMSI) information, the mobile station's International User Directory Number (IMDN) information, and the base station ID information. The user dictionary also stores the IMSI information, the IMDN information, the base station ID information, timestamp information, and network standard information. Determine whether the base station ID list configuration data has a value. If there is no value, output the base station ID information to the log file corresponding to the log file name. If there is a value, output the comparison result between the base station ID information and the currently valuable base station ID list configuration data to the log file corresponding to the log file name. The packet capture process includes: Determine whether the packet capture time has been reached based on the packet capture duration configuration data; if so, stop the packet capture process. The IFX traffic packets are stored in the file storage directory as packet files, and the packet files are named according to the packet name configuration data.
2. The method of claim 1, wherein, The configuration data read includes network port name configuration data. The packet capture process is started, which includes a main packet capture process and a slave packet capture process. Simultaneously starting the main packet capture process and the slave packet capture process includes: the IFX traffic packets are connected to the network port corresponding to the network port name configuration data.
3. An ifx-based base station ID acquisition and drift location system, comprising: The system uses the method as described in claim 1 or 2, the system is configured in an x86 server, and the system includes: A configuration data module is configured, wherein the configuration data is set in the configuration data, and the configuration data includes: The network port name configuration data represents the name of the network port through which IFX traffic accesses; The packet capture duration configuration data represents the time spent capturing IFX traffic; The file storage directory configuration data represents the entry point for storing log files and packet capture files; The message name configuration data represents the file name where the message is stored. Log file name configuration data, which records the file name of the log file; Base station ID list configuration data: A list of base station IDs representing the expected mission location.
4. The system of claim 3, wherein, The system also includes a file storage directory module, which is used to perform the determination of whether a file storage directory exists, and if it does not exist, to create a file storage directory according to the file storage directory configuration data.
5. The system according to claim 3, characterized in that, The system also includes a packet capture module, which includes a packet capture main process submodule and a packet capture slave process submodule. The packet capture main process submodule is used to execute the packet capture main process, and the packet capture slave process submodule is used to execute the packet capture slave process.