Information collection method and device of base station, storage medium, program product and computer device
Patent Information
- Application Number
- CN202510499157.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-21
- Publication Date
- 2026-10-23
AI Technical Summary
然而,由于基站数量多、数据量大、用户发现异常不及时等原因,导致由基站采集并上报的在异常出现时的时间段内的数据可能已经被覆盖或删除了
[0033]采用本申请实施例,通过对所述基站进行异常检测;在检测到所述基站发生异常的情况下,确定与所发生的异常对应的报文输出点;生成所述报文输出点对应的开启命令,并调用所述开启命令,其中,所述开启命令用于指示采集所述报文输出点的目标数据,从而可以实现基站对异常进行自动检测并精准收集与所发生的异常相关的数据,以便于后续的异常分析。
Smart Images

Figure CN122970548A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method, apparatus, storage medium, program product, and computer equipment for collecting information from a base station. Background Technology
[0002] In order to confirm whether a base station is malfunctioning and, if so, to pinpoint the problem, users typically need to retrieve and analyze the data collected and reported by the base station from the data storage server.
[0003] In related technologies, a single data storage server often corresponds to multiple base stations. However, due to limitations in the storage space of the data storage server, the number and / or size of data files reported by each base station are typically limited, and data from previous time periods is cyclically overwritten or deleted. However, due to the large number of base stations, the large volume of data, and the delayed detection of anomalies by users, data collected and reported by the base stations within the time period when the anomaly occurred may have already been overwritten or deleted. Summary of the Invention
[0004] To address the aforementioned technical problems, embodiments of this application propose a base station information collection method, apparatus, storage medium, program product, and computer equipment, which enables the base station to automatically detect anomalies and accurately collect data related to the anomalies that have occurred, in order to facilitate subsequent anomaly analysis.
[0005] In a first aspect, embodiments of this application provide a method for collecting information from a base station, applicable to the base station, the method comprising:
[0006] Anomaly detection is performed on the base station;
[0007] If an anomaly is detected in the base station, determine the message output point corresponding to the anomaly.
[0008] Generate an enable command corresponding to the message output point and invoke the enable command, wherein the enable command is used to instruct the collection of target data of the message output point.
[0009] Optionally, determining the message output point corresponding to the occurred exception includes:
[0010] The anomalies that occurred were classified as anomalies;
[0011] The message output point is determined based on the anomaly classification results.
[0012] Optionally, determining the message output point based on the anomaly classification result includes at least one of the following:
[0013] If the anomaly classification result indicates that the connection status of the interface of the base station is abnormal, it is determined that the message output point includes a first message output point corresponding to the interface;
[0014] If the anomaly classification result indicates that the control plane of the base station is abnormal, it is determined that the message output point contains a second message output point corresponding to the control plane of the base station;
[0015] If the anomaly classification result indicates that the user plane of the base station is abnormal, it is determined that the message output point includes a third message output point corresponding to the user plane of the base station.
[0016] Optionally, the number of message output points is at least one, and the step of generating the start command corresponding to the message output point includes:
[0017] Generate an enable command corresponding to each of the aforementioned message output points, wherein the enable command is adapted to indicate the message output mode to be adopted by the corresponding message output point, the message output mode being determined by the type to which the corresponding message output point belongs, the type including a base station internal message output point or a non-base station internal message output point.
[0018] Optionally, the non-base station internal message output point includes an underlying network interface card (NIC), the base station is communicatively connected to the server, and the invocation of the enable command includes:
[0019] If each of the aforementioned message output points includes a lower-level network interface card (NIC) output point, an enable command corresponding to the lower-level NIC output point is invoked to instruct the server to collect data from the lower-level NIC output point, thereby generating the target data of the lower-level NIC output point. Here, the lower-level NIC output point refers to a message output point of the type of the lower-level NIC.
[0020] Optionally, the method further includes:
[0021] After the start command corresponding to the message output point is invoked, a stop command corresponding to the message output point is generated when the predetermined stop condition is met, and the stop command is invoked. The stop command is used to stop the collection of target data of the message output point.
[0022] Optionally, the predetermined stopping condition includes at least one of the following:
[0023] The collection time for the target data at the message output point reaches the maximum duration threshold.
[0024] The anomaly that occurred has been detected and resolved.
[0025] Secondly, embodiments of this application provide an information collection device for a base station, applicable to the base station, the device comprising:
[0026] The detection module is used to detect anomalies in the base station;
[0027] The message output point determination module is used to determine the message output point corresponding to the detected abnormality in the base station.
[0028] The command module is used to generate an enable command corresponding to the message output point and to invoke the enable command, wherein the enable command is used to instruct the collection of target data of the message output point.
[0029] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the information collection method for a base station as described above.
[0030] Fourthly, embodiments of this application provide a computer program product, including computer instructions, which, when executed by a processor, implement the steps of the base station information collection method described in any of the above claims.
[0031] Fifthly, embodiments of this application provide a computer device including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the steps of the base station information collection method described in any of the preceding claims.
[0032] In summary, the embodiments of this application have at least the following beneficial effects:
[0033] By employing the embodiments of this application, anomaly detection is performed on the base station; when an anomaly is detected in the base station, the message output point corresponding to the anomaly is determined; an enable command corresponding to the message output point is generated and the enable command is invoked, wherein the enable command is used to instruct the collection of target data of the message output point, thereby enabling the base station to automatically detect anomalies and accurately collect data related to the anomalies, so as to facilitate subsequent anomaly analysis. Attached Figure Description
[0034] Figure 1 This is a flowchart illustrating the information collection method for a base station provided in an embodiment of this application;
[0035] Figure 2 This is a schematic diagram of the structure of the information collection device for a base station provided in an embodiment of this application;
[0036] Figure 3This is a schematic diagram of the computer device provided in the embodiments of this application. Detailed Implementation
[0037] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0038] In the description of this application, the terms "first," "second," "third," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined with "first," "second," "third," etc., may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more. In the description of this application, the term "comprising" and its variations are open-ended, meaning "including but not limited to." The term "based on" means "at least partially based on." The term "according to" means "at least partially according to." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments."
[0039] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0040] In the description of this application, it should be noted that, unless otherwise defined, all technical and scientific terms used in this application have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in this application is for the purpose of describing specific embodiments only and is not intended to limit the application. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances.
[0041] Firstly, see [the following] Figure 1 The diagram illustrates a flowchart of a base station information collection method according to an embodiment of this application. This method is applicable to the base station and includes steps S101-S103, as detailed below:
[0042] S101, Perform anomaly detection on the base station;
[0043] In one example, the above-mentioned anomaly detection may include, but is not limited to, at least one of the following: anomaly detection of connection status of each interface, anomaly detection of indicators, and alarm detection inside the base station. The indicators detected by the anomaly detection of indicators include: the number of cell users of the base station, throughput, service interruption duration, access success rate, disconnection rate of the connected terminal and / or handover success rate.
[0044] The anomaly detection result can be determined based on the first anomaly detection result and / or the second anomaly detection result. The first anomaly detection result is obtained by comparing the value of the detected indicator with the corresponding indicator threshold (for example, when the value of the detected indicator exceeds the corresponding indicator threshold, the first anomaly detection result indicates that there is an anomaly). The second anomaly detection result is obtained by analyzing and processing the value of the detected indicator. This analysis and processing may include trend analysis processing for continuous periods.
[0045] S102, if an anomaly is detected in the base station, determine the message output point corresponding to the anomaly.
[0046] In one example, the above message output point may include, but is not limited to, at least one of the following:
[0047] RRC (Radio Resource Control) distributes configurations to the corresponding output points at each layer.
[0048] The interface includes the NG (Next Generation Interface), Xn (Xn Interface), and / or F1 (F1 Interface). The NG interface is used to connect the 5G base station to the 5G core network, the Xn interface is used to support communication between different 5G base stations, and the F1 interface is used to connect the CU (Central Unit) and DU (Distributed Unit) of the 5G base station.
[0049] UU Interface (Uu Interface) is the air interface / wireless communication interface between the base station and the user equipment.
[0050] The FAPI (Front-haul Application Programming) interface is used to connect DU and RRU (Remote Radio Unit) or AAU (Active Antenna Unit), and can be used to achieve interoperability between hardware from different vendors.
[0051] Prequel;
[0052] The PDCP (Packet Data Convergence Protocol) layer can be used to: receive data packets from the upper layer via the downlink, and / or send data packets to the lower layer via the downlink, and / or receive data packets from the lower layer via the uplink, and / or send data packets to the upper layer via the uplink. Here, the anomaly detection of the corresponding functions of the PDCP layer can be achieved by detecting the receiving / sending of the corresponding data packets.
[0053] The RLC (Radio Link Control) layer can be used to: receive data from the upper layer via the downlink, and / or send data to the lower layer via the downlink, and / or receive data from the lower layer via the uplink, and / or send data to the upper layer via the uplink. Here, anomaly detection of the corresponding functions of the PDCP layer can be achieved by detecting the reception / transmission of the corresponding data.
[0054] S103, generate an enable command corresponding to the message output point and invoke the enable command, wherein the enable command is used to instruct the collection of target data from the message output point. Thus, this embodiment can also minimize the overwriting of information at the time of the problem corresponding to the occurrence of the anomaly, ensure timely data collection, prevent missing information at the time of the problem, reduce repetitive workload, save personnel time, and improve the quality of personnel work.
[0055] In one optional implementation, determining the message output point corresponding to the occurred exception includes:
[0056] The anomalies that occurred were classified as anomalies;
[0057] The message output point is determined based on the anomaly classification results.
[0058] In this embodiment, the message output point corresponding to the above-mentioned abnormality can be determined more accurately and efficiently by classifying the abnormality that occurred.
[0059] In one example, the anomaly can be classified into any of the following categories: interface connection status anomaly, indicator anomaly, or base station internal alarm, and then the corresponding message output point can be determined according to the classified category.
[0060] In one optional implementation, determining the message output point based on the anomaly classification result includes at least one of the following:
[0061] If the anomaly classification result indicates that the connection status of the interface of the base station is abnormal, it is determined that the message output point includes a first message output point corresponding to the interface; for example, the first message output point may include at least one of the following: the interface with abnormal connection status, and the underlying network interface card corresponding to the interface.
[0062] If the anomaly classification result indicates that the control plane of the base station is abnormal, it is determined that the message output point includes a second message output point corresponding to the control plane of the base station; for example, the second message output point may include at least one of the following: the output point corresponding to the configuration issued by RRC to each layer and / or the network card corresponding to the output point, the UU interface and / or the network card corresponding to the UU interface, the NG interface and / or the network card corresponding to the NG interface, the Xn interface and / or the network card corresponding to the Xn interface, the FAPI interface and / or the network card corresponding to the FAPI interface.
[0063] If the anomaly classification result indicates that the user plane of the base station is abnormal, it is determined that the packet output point includes a third packet output point corresponding to the user plane of the base station; for example, the third packet output point may include at least one of the following: FAPI interface and / or network card corresponding to FAPI interface, PDCP layer and / or network card corresponding to PDCP layer, RLC layer and / or network card corresponding to RLC layer, NGU interface (NG User Plane Interface) and / or network card corresponding to NGU interface.
[0064] In this embodiment, by further classifying the anomalies, the problems existing in the base station can be located more accurately, so as to more accurately determine the message output point corresponding to the anomaly.
[0065] It should be noted that the C-plane (Control Plane) and U-plane (User Plane) in this embodiment are obtained by dividing the mobile communication system according to the protocol stack.
[0066] In one example, when a problem related to access, dropped calls, and / or handover is detected at a base station, the anomaly classification result can typically be determined as indicating a control plane anomaly of the base station.
[0067] In one example, when a problem related to throughput and / or service interruption is detected at a base station, the anomaly classification result can typically be identified as indicating a user plane anomaly of the base station.
[0068] In one optional implementation, the number of message output points is at least one, and the step of generating the start command corresponding to the message output point includes:
[0069] Generate an enable command corresponding to each of the aforementioned message output points, wherein the enable command is adapted to indicate the message output mode to be adopted by the corresponding message output point, the message output mode being determined by the type to which the corresponding message output point belongs, the type including a base station internal message output point or a non-base station internal message output point.
[0070] In one example, all enable commands can be invoked simultaneously to instruct all message output points to enable and collect target data at the same time.
[0071] In one example, for an internal message output point of type base station internal message output point, the enable command corresponding to the internal message output point can be included in the inter-module message. Thus, the base station can call the enable command corresponding to the internal message output point, so that the controller in the base station sends the inter-module message to the internal message output point to notify the internal message output point to be enabled.
[0072] In one example, the filename corresponding to the aforementioned internal message output point (e.g., the filename of the file carrying the target data corresponding to the aforementioned internal message output point) can be "time_tracking point", or it can be "tracking point_time".
[0073] In one example, the message output method required for the aforementioned internal message output point may include packet capture and / or message output to a text file, so that the base station can obtain the target data corresponding to the aforementioned internal message output point based on the data collected by the message output method.
[0074] In one optional implementation, the non-base station internal message output point includes an underlying network interface card (NIC), the base station is communicatively connected to the server, and the invocation of the enable command includes:
[0075] If each of the aforementioned message output points includes a lower-level network interface card (NIC) output point, an enable command corresponding to the lower-level NIC output point is invoked to instruct the server to collect data from the lower-level NIC output point, thereby generating the target data of the lower-level NIC output point. Here, the lower-level NIC output point refers to a message output point of the type of the lower-level NIC.
[0076] In one example, the aforementioned underlying network interface card (NIC) may include a NIC managed by DPDK (Data Plane Development Kit). DPDK is an open-source suite that provides high-performance packet processing libraries and drivers, designed to optimize the execution efficiency of network functions in user space. By using DPDK, the NIC can be "managed," meaning it is separated from the Linux kernel and taken over by DPDK to achieve more efficient packet processing. For DPDK-managed NICs, DPDK provides the general packet capture tools dpdk-pdump and dpdk-dumpcap. Therefore, in this embodiment, the base station can use the dpdk-pump or dpdk-dumpcap tools to construct packet capture commands. When the enable command corresponding to the output point of this underlying NIC is invoked, the packet capture command can be directly executed in the base station system.
[0077] In one example, the underlying network interface card mentioned above may also include network interfaces that are not managed by DPDK. In this case, the tcpdump tool can be used to construct the corresponding packet capture command.
[0078] It should be noted that if using the dpdk-pump tool, you usually only need to construct the corresponding packet capture command based on the information of the network interface card (NIC) being managed. If using the dpdk-dumpcap tool / tcpdump tool, you usually need to construct the packet capture command based on the NIC information, IP address, and / or port number corresponding to the underlying NIC output point.
[0079] In one example, the base station can directly execute a pre-constructed packet capture command by calling an enable command corresponding to the output point of the underlying network interface card (NIC). This packet capture command, when executed, instructs the server to collect data from the output point of the underlying NIC, thereby generating target data for the output point of the underlying NIC. Here, the generated target data for the output point of the underlying NIC is stored in the server.
[0080] In one example, before performing anomaly detection on the base station, the method may further include: recording network interface card (NIC) information after the base station is started and during IP (Internet Protocol) configuration or underlying NIC initialization.
[0081] In one example, the filename corresponding to the output point of the underlying network interface card (e.g., the filename of the file that carries the target data corresponding to the output point of the underlying network interface card) can be "time_corresponding interface name.pcap", or it can be "corresponding interface name_time.pcap".
[0082] In an optional implementation, the method further includes:
[0083] After the start command corresponding to the message output point is invoked, a stop command corresponding to the message output point is generated when the predetermined stop condition is met, and the stop command is invoked. The stop command is used to stop the collection of target data of the message output point.
[0084] It should be noted that the function and implementation principle of the stop command in this embodiment can be referred to the relevant exemplary description of the start command corresponding to the stop command in this application, and will not be repeated here.
[0085] In one example, after all stop commands have been invoked, the method may further include: sending / transferring the collected target data (i.e., the target data collected in response to the anomaly) and log files to a data storage server, which may include an FTP (File Transfer Protocol) server. Here, before performing anomaly detection on the base station, the method may further include: configuring a corresponding data storage server for the base station. The log files may contain the anomaly time period corresponding to the target data (e.g., the time period in which the anomaly occurred is included within the anomaly time period) and log information within that anomaly time period. Thus, the time information in this embodiment is unified, facilitating analysis and improving problem localization efficiency.
[0086] It should be noted that the aforementioned "transfer to data storage server" can include two scenarios. First, if target data corresponding to the aforementioned internal message output point is collected, and this target data is collected by the base station itself, the base station can directly send / transfer it to the data storage server. Second, if target data from the underlying network interface card output point is collected, and this target data is collected by the corresponding server and can generally be directly stored on that server, the base station can command the server to send / transfer the target data to the data storage server. Thus, this embodiment will not excessively occupy the storage space of the data storage server.
[0087] In one alternative implementation, the predetermined stopping condition includes at least one of the following:
[0088] The collection time for the target data at the message output point reaches the maximum duration threshold.
[0089] The anomaly that occurred has been detected and resolved.
[0090] In one example, the maximum duration threshold mentioned above can be preset by the user, for example, it can be 1 minute.
[0091] The following is a specific implementation example using a high-capacity performance scenario.
[0092] 1. When the base station initializes the network card, it records the corresponding network port information such as NG, F1, and fapi.
[0093] 2. Base station monitoring metrics such as cell user count, cell access success rate, and service throughput. When a metric drops to a threshold, an anomaly is identified in the current scenario. If the access success rate metric shows an anomaly, it's necessary to capture packets from the RRC-issued configuration, fapi, NG, UU, and corresponding network interface cards.
[0094] 3. Construct a packet capture command for the network card managed by DPDK. An example of the constructed packet capture command is as follows: . / dpdk-pdump----pdump'port=0,queue=*,rx-dev= / tmp / 202410172315_fapi_rx.pcap'.
[0095] 4. Notify the packet capture point (message output point) inside the base station to start packet capture by sending inter-module messages. At this time, the packet capture file name is as follows: 202410172315+RRC.pcap.
[0096] 5. Once the base station detection indicators recover (indicating that the anomaly has been resolved) and / or the packet capture duration reaches the maximum duration threshold (e.g., 1 minute), construct different stop commands for each packet capture point.
[0097] 6. The base station periodically transfers its own and / or the server's packet capture files and module text logs to a pre-configured FTP server.
[0098] Secondly, correspondingly, this application also provides an information collection device for a base station, which can implement all the processes of the information collection method for a base station provided in the above embodiments.
[0099] See Figure 2 The diagram shows a schematic of the structure of an information collection device for a base station provided in an embodiment of this application. This information collection device is applicable to the base station and includes:
[0100] Detection module 201 is used to perform anomaly detection on the base station;
[0101] The message output point determination module 202 is used to determine the message output point corresponding to the abnormality when an abnormality is detected in the base station.
[0102] Command module 203 is used to generate an enable command corresponding to the message output point and call the enable command, wherein the enable command is used to instruct the collection of target data of the message output point.
[0103] In one optional implementation, determining the message output point corresponding to the occurred exception includes:
[0104] The anomalies that occurred were classified as anomalies;
[0105] The message output point is determined based on the anomaly classification results.
[0106] In one optional implementation, determining the message output point based on the anomaly classification result includes at least one of the following:
[0107] If the anomaly classification result indicates that the connection status of the interface of the base station is abnormal, it is determined that the message output point includes a first message output point corresponding to the interface;
[0108] If the anomaly classification result indicates that the control plane of the base station is abnormal, it is determined that the message output point contains a second message output point corresponding to the control plane of the base station;
[0109] If the anomaly classification result indicates that the user plane of the base station is abnormal, it is determined that the message output point includes a third message output point corresponding to the user plane of the base station.
[0110] In one optional implementation, the number of message output points is at least one, and the step of generating the start command corresponding to the message output point includes:
[0111] Generate an enable command corresponding to each of the aforementioned message output points, wherein the enable command is adapted to indicate the message output mode to be adopted by the corresponding message output point, the message output mode being determined by the type to which the corresponding message output point belongs, the type including a base station internal message output point or a non-base station internal message output point.
[0112] In one optional implementation, the non-base station internal message output point includes an underlying network interface card (NIC), the base station is communicatively connected to the server, and the invocation of the enable command includes:
[0113] If each of the aforementioned message output points includes a lower-level network interface card (NIC) output point, an enable command corresponding to the lower-level NIC output point is invoked to instruct the server to collect data from the lower-level NIC output point, thereby generating the target data of the lower-level NIC output point. Here, the lower-level NIC output point refers to a message output point of the type of the lower-level NIC.
[0114] In an optional embodiment, the apparatus further includes a stop command module, the stop command module being used to:
[0115] After the start command corresponding to the message output point is invoked, a stop command corresponding to the message output point is generated when the predetermined stop condition is met, and the stop command is invoked. The stop command is used to stop the collection of target data of the message output point.
[0116] In one alternative implementation, the predetermined stopping condition includes at least one of the following:
[0117] The collection time for the target data at the message output point reaches the maximum duration threshold.
[0118] The anomaly that occurred has been detected and resolved.
[0119] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the information collection method for a base station as described above.
[0120] Fourthly, embodiments of this application provide a computer program product, including computer instructions, which, when executed by a processor, implement the steps of the base station information collection method described in any of the above claims.
[0121] Fifthly, embodiments of this application provide a computer device including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the steps of the base station information collection method described in any of the preceding claims.
[0122] See Figure 3 The computer device in this embodiment includes a processor 301, a memory 302, and a computer program stored in the memory 302 and executable on the processor 301, such as a base station information collection program. When the processor 301 executes the computer program, it implements the steps in the various base station information collection method embodiments described above, for example... Figure 1 The steps S101-S103 are shown.
[0123] For example, the computer program may be divided into one or more modules / units, which are stored in the memory 302 and executed by the processor 301 to complete this application. The one or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the execution process of the computer program in the computer device.
[0124] The computer device may be a desktop computer, laptop, handheld computer, or cloud server, etc. The computer device may include, but is not limited to, a processor 301 and a memory 302. Those skilled in the art will understand that the schematic diagram is merely an example of a computer device and does not constitute a limitation on the computer device. It may include more or fewer components than shown, or combine certain components, or different components. For example, the computer device may also include input / output devices, network access devices, buses, etc.
[0125] The processor 301 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or the processor 301 can be any conventional processor. The processor 301 is the control center of the computer device, connecting various parts of the entire computer device through various interfaces and lines.
[0126] The memory 302 can be used to store the computer programs and / or modules. The processor 301 implements various functions of the computer device by running or executing the computer programs and / or modules stored in the memory 302 and calling the data stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the mobile phone (such as audio data, phonebook, etc.). In addition, the memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital card (SD) card, flash card, at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0127] Wherein, if the modules / units integrated into the computer device are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by the processor 301, it can implement the steps of the various method embodiments described above. Wherein, the computer program includes computer program code, which can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc.
[0128] In summary, the embodiments of this application have at least the following beneficial effects:
[0129] By employing the embodiments of this application, anomaly detection is performed on the base station; when an anomaly is detected in the base station, the message output point corresponding to the anomaly is determined; an enable command corresponding to the message output point is generated and the enable command is invoked, wherein the enable command is used to instruct the collection of target data of the message output point, thereby enabling the base station to automatically detect anomalies and accurately collect data related to the anomalies, so as to facilitate subsequent anomaly analysis.
[0130] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary hardware platforms, or it can be implemented entirely by hardware. Based on this understanding, all or part of the technical solutions of this application that contribute to the background technology can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM (Read-Only Memory) / RAM (Random Access Memory), magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.
[0131] The above description is the preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications are also considered to be within the scope of protection of this application.
Claims
1. A method for collecting information from a base station, characterized in that, Applicable to the base station, the method includes: Anomaly detection is performed on the base station; If an anomaly is detected in the base station, determine the message output point corresponding to the anomaly. Generate an enable command corresponding to the message output point and invoke the enable command, wherein the enable command is used to instruct the collection of target data of the message output point.
2. The method according to claim 1, characterized in that, The determination of the message output point corresponding to the occurrence of the anomaly includes: The anomalies that occurred were classified as anomalies; The message output point is determined based on the anomaly classification results.
3. The method according to claim 2, characterized in that, The step of determining the message output point based on the anomaly classification result includes at least one of the following: If the anomaly classification result indicates that the connection status of the interface of the base station is abnormal, it is determined that the message output point includes a first message output point corresponding to the interface; If the anomaly classification result indicates that the control plane of the base station is abnormal, it is determined that the message output point contains a second message output point corresponding to the control plane of the base station; If the anomaly classification result indicates that the user plane of the base station is abnormal, it is determined that the message output point includes a third message output point corresponding to the user plane of the base station.
4. The method according to claim 1, characterized in that, The number of message output points is at least one, and the generation of the start command corresponding to the message output point includes: Generate an enable command corresponding to each of the aforementioned message output points, wherein the enable command is adapted to indicate the message output mode to be adopted by the corresponding message output point, the message output mode being determined by the type to which the corresponding message output point belongs, the type including a base station internal message output point or a non-base station internal message output point.
5. The method according to claim 4, characterized in that, The non-base station internal message output point includes an underlying network interface card (NIC). The base station is communicatively connected to the server. The invocation of the enable command includes: If each of the aforementioned message output points includes a lower-level network interface card (NIC) output point, an enable command corresponding to the lower-level NIC output point is invoked to instruct the server to collect data from the lower-level NIC output point, thereby generating the target data of the lower-level NIC output point. Here, the lower-level NIC output point refers to a message output point of the type of the lower-level NIC.
6. The method according to any one of claims 1-5, characterized in that, The method further includes: After the start command corresponding to the message output point is invoked, a stop command corresponding to the message output point is generated when a predetermined stop condition is met, and the stop command is invoked. The stop command is used to stop collecting target data of the message output point.
7. The method according to claim 6, characterized in that, The predetermined stopping condition includes at least one of the following: The collection time for the target data at the message output point reaches the maximum duration threshold. The anomaly that occurred has been detected and resolved.
8. An information collection device for a base station, characterized in that, The device, applicable to the base station, includes: The detection module is used to perform anomaly detection on the base station; The message output point determination module is used to determine the message output point corresponding to the detected abnormality in the base station. The command module is used to generate an enable command corresponding to the message output point and to invoke the enable command, wherein the enable command is used to instruct the collection of target data of the message output point.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the information collection method for the base station according to any one of claims 1-7.
10. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, they implement the information collection method for the base station according to any one of claims 1-7.
11. A computer device, characterized in that, The system includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the processor executes the computer program to implement the information collection method for a base station as described in any one of claims 1-7.