Packet capturing method, device and equipment for Internet of Things service data analysis and storage medium

By using the collaborative work of modules such as customer business screening, business positioning, whitelist protocol, and device configuration management in the 5G IoT private network, the accuracy problem of packet capture analysis of network equipment faults is solved, and fault data packet capture is improved. efficiency, simplifying the fault analysis process.

CN118647046APending Publication Date: 2024-09-13INSPUR TIANYUAN COMM INFORMATION SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410875681.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

Existing technology lacks accuracy in fault packet capture analysis of networking equipment in 5G IoT private networks, and cannot effectively support developers and technology developers in locating faults through data packets, resulting in low troubleshooting efficiency.

Method used

A packet capture method for Internet of Things business data analysis is adopted, including a customer business screening module, a business positioning device module, a whitelist protocol module, a device configuration management module, and a packet capture authorization module. Through signaling analysis, business positioning, and whitelisting Protocol filtering and device configuration analysis realize business-level resource filtering and configuration management in secondary network networking, simplifying the fault analysis process.

Benefits of technology

It greatly improves the efficiency of 5G IoT business fault data packet capture, meets the requirements for refined fault analysis, simplifies the tedious packet capture process, and improves the accuracy of fault location and troubleshooting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118647046A
    Figure CN118647046A
Patent Text Reader

Abstract

The invention relates to the technical field of data analysis, in particular to a packet capturing method and device for Internet of Things service data analysis, equipment and a storage medium, and the method comprises the following steps: executing whether a user accesses an IP / URL to arrange a sub-scene in equipment configuration or not; executing a first node of the arrangement process: judging and analyzing according to the content of the complaint list; realizing customer service screening module logic; realizing a service positioning equipment module; implementing a white list protocol module; implementing an equipment configuration management module; a package capture authorization module is realized; according to the technical scheme of the invention, through the cooperative work of the customer service screening module, the service positioning equipment module, the white list protocol module, the equipment configuration management module, the packet capture authorization module and other functions, the service is analyzed through signaling. The service positioning device, the white list protocol filtering, the device configuration analysis and the packet capturing function complete the resource filtering and configuration management capability of the service level in the middle and private network networking.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data analysis, and in particular to a packet capture method, device, equipment and storage medium for Internet of Things business data analysis. Background Art

[0002] With the development of 5G technology, 5G IoT private network services have been widely used. In general 5G IoT topology monitoring, fault packet capture and analysis of problematic devices has become a huge and tedious task.

[0003] The existing model lacks accuracy in capturing all packets of networking devices, and cannot support developers and technical personnel in locating and troubleshooting faults through data packets.

[0004] Therefore, a method is needed that can filter the whitelist and accurately locate the device from the business entrance to complete the packet capture function through device configuration management, which can meet the needs of refined 5G IoT business usage scenarios and help improve the efficiency of data packet capture. Summary of the invention

[0005] The purpose of the present invention is to provide a packet capture method, device, equipment and storage medium for IoT business data analysis to solve the problems raised in the above-mentioned background technology.

[0006] To achieve the above object, the present invention provides the following technical solution: a packet capture method for IoT business data analysis, the method comprising the following steps:

[0007] Execution, whether the user accesses the IP / URL in the sub-scenario arranged in the device configuration;

[0008] Execute the first node of the orchestration process: make judgments and analyses based on the content of the complaint form;

[0009] Implement the logic of customer business screening module;

[0010] Implement business positioning equipment module;

[0011] Implement whitelist protocol module;

[0012] Implement the device configuration management module;

[0013] Implement the packet capture authorization module.

[0014] Preferably, the first node of the execution arrangement process: the specific operations of judging and analyzing the content of the complaint form include:

[0015] Get the complaint content in the complaint ticket according to the regular expression: r'\d+\.\d+\.\d+\.\d+' and the regular expression:

[0016] r"(?:http[s]?: / / )?([a-zA-Z][a-zA-Z0-9.-]+\.[a-zA-Z]{2,})(?: / [^\s]*)?"; Determine whether the specific processing method is IP, URL, IP and URL, or neither;

[0017] Query the URL excluding APN, query through the background interface: dpi_iot_gen_msisdn_with_apn and dpi_5g_n1n2_msisdn_with_dnn tables, obtain APN and DNN information respectively, compare and judge based on the results, and obtain the subsequent execution logic judgment conditions. If the IP and URL do not exist, go directly to the conclusion integration link and no longer execute the subsequent logic. Otherwise, perform subsequent operations.

[0018] Preferably, the specific operations for implementing the customer service screening module logic include:

[0019] Sort out and integrate the complaint form content, analyze and obtain a data set containing four fields: bussess_code, msisdn, strartTime, and endTime; call the query capability to pass in the summarized data set as a parameter, query: dpi_iot_http_user_url_m15 table, obtain the data of HTTP / HTTPS / GEN dimensions, use array objects to summarize the three data sets into one data set, and then loop through the IP and URL fields in the data set, use regular expressions to determine whether they are included, and finally form an IP / URL data list to return.

[0020] Preferably, the specific operations of implementing the service positioning device module include:

[0021] Use the query result data to assemble the correspondence between the business code and the returned result through loop processing, and obtain the overall information displayed by the business code; use the query result data to create two empty arrays to store the IP and URL respectively, loop the query data result set, take out the specific IP and URL and put them into the empty array, and before each loop, determine whether the IP and URL of the current result exist in the created array. If so, they will not be put in repeatedly to achieve the purpose of deduplication; summarize the data and output it for subsequent logical judgment processing.

[0022] Preferably, the specific operations of implementing the whitelist protocol module include:

[0023] Get the assembled data, and assemble it into an array set containing the fields: url, bussess_code, startTime, endTime, msisdn, neType as parameters according to business requirements, and add specific query SQL, then call the backend interface, use the abnormal multi-threading method, and execute query operations in multiple ways at the same time to improve processing efficiency;

[0024] Get the returned result data, parse the data set in a loop, get the URL, PROTOCOL, IP_ADDRESS, CH_P field information in the set and assemble it into a new data set object;

[0025] Get the returned result data, loop the data set, use regular expressions to match qualified URLs, and determine whether the business code is equal to the value of the CODE field in the set separated by an underscore (_) to analyze and obtain the URL, IP address, and access protocol information in the whitelist, and create an empty matched_urls array to store the data set in the whitelist.

[0026] Preferably, the specific operations of implementing the device configuration management module include:

[0027] Get the returned data collection object, plus the judgment DNS SNIFFER query SQL to pass it to the background interface, use abnormal multi-threading method, execute query operations in multiple ways at the same time to improve processing efficiency, and judge whether to enable the DNS SNIFFER function based on the query results. If the value of IS_DNS_SNIFFER is yes, it is enabled, otherwise it is not enabled.

[0028] Preferably, the specific operations of implementing the packet capture authorization module include:

[0029] Get the returned data collection object, determine whether the device type is PGW or PCF, and assemble the parameter object to include the following three fields: url / bussess_code / equipe_name, where the equipe_name parameter assembly logic is: "XFMPGW0"+str(i+1)+"AHW", str(i+1) is the index increment. If the device type is UPF or PCRF, the assembly parameter object also includes the following three fields: url / bussess_code / equipe_name, where the equipe_name parameter assembly logic is: "CQUPFm00"+str(i+3)+"BHW", str(i+1) is the index increment.

[0030] Get the assembled parameter object, call the backend interface, query the data in the tblggsn_fil_gro_hw table based on equipmentName and businessCode as conditions, and obtain MEMBER and GROUPS information;

[0031] Get the assembled parameter object, call the background interface, query the data of the TBLGGSN_HOST_HW table based on equipmentName and url as conditions, and get the HOST_NAME and URL information;

[0032] Get the output data results, use equipmentName and hostname as conditions, query tblggsn_filter_host_hw to get the result set of the MEMBER field;

[0033] Get the result set of MEMBER and GROUPS information, HOST_NAME and URL information and the MEMBER field. If the result of MEMBER and GROUPS information is not empty, output: After verification, the DNS SNIFFER function is not enabled in the existing network configuration. If the result of HOST_NAME and URL information is not empty, output: After verification, the DNS SNIFFER function is not enabled in the existing network configuration. Compare the results of the MEMBER and GROUPS information with the results of the MEMBER field. If the data in the result set of the MEMBER field appears in the result set of MEMBER and GROUPS information, output: After verification, the DNS SNIFFER function has been enabled in the existing network configuration.

[0034] A packet capture device for Internet of Things business data analysis, the device comprising a customer business screening module, a business positioning device module, a whitelist protocol module, a device configuration management module and a packet capture authorization module;

[0035] The customer service screening module selects the service information accessed within a specific time range in the core network signaling through 5G IoT customers or APNs to obtain key fault URLs;

[0036] Business location device module locates the problem DNS device through fault URL resolution;

[0037] A whitelist protocol module, including any one of FDDI protocol, HTTP protocol, POP3 protocol, SMTP protocol, FTP protocol, and DNS protocol, or a combination thereof to determine the device;

[0038] The device configuration management module verifies the packet capture capability and configures the packet capture scheme through management configuration;

[0039] The packet capture authorization module implements packet capture solution deployment and authorization.

[0040] A packet capture device for Internet of Things business data analysis comprises a packet capture apparatus for Internet of Things business data analysis.

[0041] A storage medium for packet capture of Internet of Things business data analysis, including a packet capture device for Internet of Things business data analysis.

[0042] Compared with the prior art, the present invention has the following beneficial effects:

[0043] The packet capture method, device, equipment and storage medium for IoT business data analysis proposed in the present invention realizes the service-level resource filtering and configuration management capabilities in the secondary network through the coordinated work of functions such as the customer business screening module, the business positioning device module, the whitelist protocol module, the device configuration management, and the packet capture authorization module, through the signaling analysis service, the business positioning device, the whitelist protocol filtering, the device configuration analysis, and the packet capture function. In the 5G IoT private network fault analysis scenario, it plays a key role in clearing and simplifying the cumbersome packet capture, which can meet the needs of refined 5G IoT business fault analysis and greatly improve the efficiency of fault data packet capture. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a schematic diagram of the relationship between modules of the present invention;

[0045] Figure 2 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0046] In order to make the purpose and technical solution of the present invention clearly and completely described, and the advantages more clearly understood, the embodiments of the present invention are further described in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are part of the embodiments of the present invention, rather than all of the embodiments, and are only used to explain the embodiments of the present invention, and are not used to limit the embodiments of the present invention. All other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] Embodiment 1

[0048] See also Figure 2 The present invention provides a technical solution: a packet capture method for IoT business data analysis, the method comprising the following steps:

[0049] Step 1: Execution, whether the user accesses the IP / URL in the sub-scenario arranged in the device configuration

[0050] Step 2: Execute the first node of the orchestration process: judge and analyze based on the content of the complaint

[0051] 2.1: Get the complaint content in the complaint ticket, according to the regular expression: r'\d+\.\d+\.\d+\.\d+' and the regular expression:

[0052] r"(?:http[s]?: / / )?([a-zA-Z][a-zA-Z0-9.-]+\.[a-zA-Z]{2,})(?: / [^\s]*)?"

[0053] To determine whether the specific processing method is IP, URL, IP and URL, or neither.

[0054] 2.2: Query the URL excluding APN through the background interface:

[0055] The dpi_iot_gen_msisdn_with_apn and dpi_5g_n1n2_msisdn_with_dnn tables obtain the APN and DNN information respectively, and compare and judge according to the results of 2.1 and 2.2 to obtain the subsequent execution logic judgment conditions. If the IP and URL do not exist, go directly to the conclusion integration link and no longer execute the subsequent logic. Otherwise, perform subsequent operations.

[0056] Step 3: Implement customer business screening module logic

[0057] 3.1: Sort and integrate the complaint form content, and analyze to obtain a data set containing four fields: bussess_code, msisdn, strartTime, and endTime

[0058] 3.2: Call the query capability and pass in the data set summarized in 3.1 as a parameter to query:

[0059] dpi_iot_http_user_url_m15 table, get the data of HTTP / HTTPS / GEN and other dimensions, use array objects to aggregate the three data sets into one data set, and then loop through the IP and URL fields in the data set, use regular expressions to determine whether they are included, and finally form an IP / URL data list to return.

[0060] Step 4: Implement the business positioning device module

[0061] 4.1: Use the result data of query 3.2, assemble the corresponding relationship between business code and returned result through loop processing, and obtain the business code to display the overall information

[0062] 4.2: Use the result data of the query in 3.2 to create two empty arrays to store IP and URL respectively. Loop through the query data result set, take out the specific IP and URL and put them into the empty array. Before each loop, determine whether the IP and URL of the current result exist in the created array. If so, do not put them in again to achieve the purpose of deduplication.

[0063] 4.3: Aggregate the data of 4.1 and 4.2 and output them for subsequent logical judgment processing.

[0064] Step 5: Implement the whitelist protocol module

[0065] 5.1: Get the data assembled in 4.3, and assemble it into an array set containing fields such as url, bussess_code, startTime, endTime, msisdn, neType, etc. as parameters according to business requirements, and add specific query SQL, then call the background interface, use abnormal multi-threading, and execute query operations in multiple ways at the same time to improve processing efficiency.

[0066] 5.2: Get the result data returned by 5.1, parse the data set in a loop, get the URL, PROTOCOL, IP_ADDRESS, CH_P and other field information in the set and assemble it into a new data set object.

[0067] 5.3: Get the result data returned by 5.2, loop the data set, use regular expressions to match qualified URLs, and determine whether the business code is equal to the value of the CODE field in the set separated by an underscore (_) to analyze and obtain the URL, IP address, access protocol and other information in the whitelist, and create an empty matched_urls array to store the data set in the whitelist.

[0068] Step 6: Implement the device configuration management module

[0069] 6.1: Get the data collection object returned in 5.3, add the judgment DNS SNIFFER query SQL and pass it to the background interface. Use the abnormal multi-threading method to execute the query operation in multiple ways at the same time to improve the processing efficiency. According to the query results, judge whether to enable the DNS SNIFFER function. If the value of IS_DNS_SNIFFER is yes, it is enabled, otherwise it is not enabled.

[0070] Step 7: Implement the packet capture authorization module

[0071] 7.1: Get the data collection object returned in 5.3, determine whether the device type is PGW or PCF, and assemble the parameter object to include the following three fields: url / bussess_code / equipe_name, where the equipe_name parameter assembly logic is: "XFMPGW0"+str(i+1)+"AHW", str(i+1) is the index increment. If the device type is UPF or PCRF, the assembly parameter object also includes the following three fields: url / bussess_code / equipe_name, where the equipe_name parameter assembly logic is: "CQUPFm00"+str(i+3)+"BHW", str(i+1) is the index increment.

[0072] 7.2: Get the parameter object assembled in 7.1, call the background interface, query the data in the tblggsn_fil_gro_hw table based on equipmentName and businessCode as conditions, and obtain the MEMBER and GROUPS information.

[0073] 7.3: Get the parameter object assembled in 7.1, call the background interface, query the data in the TBLGGSN_HOST_HW table based on equipmentName and url as conditions, and obtain the HOST_NAME and URL information.

[0074] 7.4: Get the data output in 7.3, and query tblggsn_filter_host_hw based on equipmentName and hostname as conditions to get the result set of the MEMBER field

[0075] 7.5: Get the results of 7.2, 7.3, and 7.4. If the result of 7.2 is not empty, output: After verification, the DNS SNIFFER function is not enabled in the existing network configuration. If the result of 7.3 is not empty, output: After verification, the DNS SNIFFER function is not enabled in the existing network configuration. Compare the results of 7.2 and 7.4. If the data in the result set of 7.4 appears in the result set of 7.2, output: After verification, the DNS SNIFFER function is enabled in the existing network configuration.

[0076] Embodiment 2

[0077] On the basis of the first embodiment, a device for a packet capture method for IoT service data analysis is proposed, the device comprising a customer service screening module, a service positioning device module, a whitelist protocol module, a device configuration management module and a packet capture authorization module;

[0078] The customer service screening module selects the service information accessed within a specific time range in the core network signaling through 5G IoT customers or APNs to obtain key fault URLs;

[0079] Business location device module locates the problem DNS device through fault URL resolution;

[0080] A whitelist protocol module, including any one of FDDI protocol, HTTP protocol, POP3 protocol, SMTP protocol, FTP protocol, and DNS protocol, or a combination thereof to determine the device;

[0081] The device configuration management module verifies the packet capture capability and configures the packet capture scheme through management configuration;

[0082] The packet capture authorization module implements packet capture solution deployment and authorization.

[0083] Embodiment 3

[0084] On the basis of the second embodiment, a packet capture device for IoT business data analysis is proposed, including a packet capture apparatus for IoT business data analysis.

[0085] Embodiment 4

[0086] On the basis of the third embodiment, a storage medium for packet capture of IoT business data analysis is proposed, including a packet capture device for IoT business data analysis.

[0087] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A packet capture method for IoT service data analysis, characterized in that: The method comprises the following steps: Execution, whether the user accesses the IP / URL in the sub-scenario arranged in the device configuration; Execute the first node of the orchestration process: make judgments and analyses based on the content of the complaint form; Implement the customer business screening module logic; Implement business positioning equipment module; Implement whitelist protocol module; Implement the device configuration management module; Implement the packet capture authorization module.

2. The packet capture method for IoT service data analysis according to claim 1, characterized in that: The first node of the execution arrangement process: The specific operations of judging and analyzing the content of the complaint form include: Get the complaint content in the complaint ticket according to the regular expression: r'\d+\.\d+\.\d+\.\d+' and the regular expression: r"(?:http[s]?: / / )?([a-zA-Z][a-zA-Z0-9.-]+\.[a-zA-Z]{2,})(?: / [^\s]*)?"; Determine whether the specific processing method is IP, URL, IP and URL, or neither; Query the URL excluding APN, query through the background interface: dpi_iot_gen_msisdn_with_apn and dpi_5g_n1n2_msisdn_with_dnn tables, obtain APN and DNN information respectively, compare and judge based on the results, and obtain the subsequent execution logic judgment conditions. If the IP and URL do not exist, go directly to the conclusion integration link and no longer execute the subsequent logic. Otherwise, perform subsequent operations.

3. The packet capture method for IoT service data analysis according to claim 1, characterized in that: The specific operations to implement the customer business screening module logic include: Sort out and integrate the complaint form content, analyze and obtain a data set containing four fields: bussess_code, msisdn, strartTime, and endTime; call the query capability to pass in the summarized data set as a parameter, query: dpi_iot_http_user_url_m15 table, obtain the data of HTTP / HTTPS / GEN dimensions, use array objects to summarize the three data sets into one data set, and then loop through the IP and URL fields in the data set, use regular expressions to determine whether they are included, and finally form an IP / URL data list to return.

4. The packet capture method for IoT service data analysis according to claim 3 is characterized in that: The specific operations to implement the business positioning device module include: Use the query result data to assemble the correspondence between the business code and the returned result through loop processing, and obtain the overall information displayed by the business code; use the query result data to create two empty arrays to store the IP and URL respectively, loop the query data result set, take out the specific IP and URL and put them into the empty array, and before each loop, determine whether the IP and URL of the current result exist in the created array. If so, they will not be put in repeatedly to achieve the purpose of deduplication; summarize the data and output it for subsequent logical judgment processing.

5. The packet capture method for IoT service data analysis according to claim 4 is characterized in that: The specific operations to implement the whitelist protocol module include: Get the assembled data, and assemble it into an array set containing the fields: url, bussess_code, startTime, endTime, msisdn, neType as parameters according to business requirements, and add specific query SQL, then call the backend interface, use the abnormal multi-threading method, and execute query operations in multiple ways at the same time to improve processing efficiency; Get the returned result data, parse the data set in a loop, get the URL, PROTOCOL, IP_ADDRESS, CH_P field information in the set and assemble it into a new data set object; Get the returned result data, loop the data set, use regular expressions to match qualified URLs, and determine whether the business code is equal to the value of the CODE field in the set separated by an underscore (_) to analyze and obtain the URL, IP address, and access protocol information in the whitelist, and create an empty matched_urls array to store the data set in the whitelist.

6. The packet capture method for IoT service data analysis according to claim 1, characterized in that: The specific operations to implement the device configuration management module include: Get the returned data collection object, plus the judgment DNS SNIFFER query SQL to pass it to the background interface, use abnormal multi-threading method, execute query operations in multiple ways at the same time to improve processing efficiency, and judge whether to enable the DNS SNIFFER function based on the query results. If the value of IS_DNS_SNIFFER is yes, it is enabled, otherwise it is not enabled.

7. The packet capture method for IoT service data analysis according to claim 5 is characterized in that: The specific operations to implement the packet capture authorization module include: Get the returned data collection object, determine whether the device type is PGW or PCF, and assemble the parameter object to include the following three fields: url / bussess_code / equipe_name, where the equipe_name parameter assembly logic is: "XFMPGW0"+str(i+1)+"AHW", str(i+1) is the index increment. If the device type is UPF or PCRF, the assembly parameter object also includes the following three fields: url / bussess_code / equipe_name, where the equipe_name parameter assembly logic is: "CQUPFm00"+str(i+3)+"BHW", str(i+1) is the index increment. Get the assembled parameter object, call the backend interface, query the data in the tblggsn_fil_gro_hw table based on equipmentName and businessCode as conditions, and obtain MEMBER and GROUPS information; Get the assembled parameter object, call the backend interface, query the data in the TBLGGSN_HOST_HW table based on equipmentName and url as conditions, and get the HOST_NAME and URL information; Get the output data results, use equipmentName and hostname as conditions, query tblggsn_filter_host_hw to get the result set of the MEMBER field; Get the result set of MEMBER and GROUPS information, HOST_NAME and URL information and the MEMBER field. If the result of MEMBER and GROUPS information is not empty, output: After verification, the DNS SNIFFER function is not enabled in the existing network configuration. If the result of HOST_NAME and URL information is not empty, output: After verification, the DNS SNIFFER function is not enabled in the existing network configuration. Compare the results of the MEMBER and GROUPS information with the results of the MEMBER field. If the data in the result set of the MEMBER field appears in the result set of MEMBER and GROUPS information, output: After verification, the DNS SNIFFER function has been enabled in the existing network configuration.

8. A device for the packet capture method for IoT service data analysis according to any one of claims 1 to 7, characterized in that: The device includes a customer service screening module, a service positioning device module, a whitelist protocol module, a device configuration management module and a packet capture authorization module; The customer service screening module selects the service information accessed within a specific time range in the core network signaling through 5G IoT customers or APNs to obtain key fault URLs; Business location device module locates the problem DNS device through fault URL resolution; A whitelist protocol module, including any one of FDDI protocol, HTTP protocol, POP3 protocol, SMTP protocol, FTP protocol, and DNS protocol, or a combination thereof to determine the device; The device configuration management module verifies the packet capture capability and configures the packet capture scheme through management configuration; The packet capture authorization module implements packet capture solution deployment and authorization.

9. A packet capture device for IoT business data analysis, characterized in that: A packet capture device for analyzing Internet of Things business data comprising the above-mentioned claim 8.

10. A storage medium for packet capture of IoT business data analysis, characterized in that: A packet capture device for analyzing Internet of Things business data including the above-mentioned claim 9.