Information matching method and device, electronic equipment, storage medium and computer program product
By extracting and matching business attribute information in user behavior data, and using rule expressions and information matching rules to determine the relationship between user behavior data and targeted services, the problem of inability to finely match in the prior art is solved, and efficient user behavior is achieved The data matches targeted services, improving traffic billing transparency and user experience.
Patent Information
- Application Number
- CN202410930567.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-26
AI Technical Summary
The prior art cannot achieve refined matching between user behavior data and targeted services, and cannot correspond to targeted services on user behavior data.
By matching the first service attribute information under the setting network extracted from the user behavior data with the service code and the corresponding second service attribute information, the set rule expression and information matching rules determine whether the information belongs to the targeted service. Realize refined matching between user behavior data and targeted services.
Improve the accuracy and efficiency of matching user behavior data with targeted services, and can clarify whether the traffic of the Internet service used by users is targeted traffic, enhance the transparency of the 5G targeted traffic billing process, and improve the efficiency of user experience and operation process. .
Smart Images

Figure CN119030864A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to an information matching method, device, electronic device, storage medium and computer program product. Background Art
[0002] Users generate a large amount of user behavior data while surfing the Internet, and existing technologies cannot achieve refined matching of user behavior data and targeted services. Summary of the invention
[0003] To solve related technical problems, embodiments of the present application provide an information matching method, device, electronic device, storage medium and computer program product.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] The present invention provides an information matching method, which includes:
[0006] Matching the first information with the second information to obtain a matching result; wherein the first information includes first service attribute information under a set network extracted from the user behavior data, and the second information includes a service code and corresponding second service attribute information;
[0007] Based on the matching result, it is determined whether the first information belongs to the directional service or not.
[0008] In the above solution, matching the first information with the second information to obtain a matching result includes:
[0009] Based on the third information, the first information is matched with the second information to obtain a matching result; the third information includes a set regular expression and / or a set information matching rule.
[0010] In the above solution, the first information is matched with the second information based on the third information to obtain a matching result, including:
[0011] Based on the set regular expression and / or the first relationship, the first information is matched with the second information to obtain a matching result; wherein,
[0012] The first relationship is established based on a set information matching rule, wherein the set information matching rule is used to indicate the conditions for establishing the first relationship and the information category included in the first relationship, and the mapping relationship between the information category of the first business attribute information and the information category of the second business attribute information included in the first relationship.
[0013] In the above scheme, the set information matching rules include a first rule, which is used to indicate that a first relationship is established when the data under the Uniform Resource Locator (URL) category, Internet Protocol (IP) address category and port category in the second information is not empty; the first relationship includes a mapping relationship between URL categories, a mapping relationship between IP address categories and a mapping relationship between port categories.
[0014] In the above solution, the set information matching rule includes the second rule and / or the third rule; wherein,
[0015] The second rule is used to indicate that when the data under the IP address category and the port category in the second information is empty and the data under the URL category is not empty, a first relationship is established; the first relationship includes a mapping relationship between URL categories;
[0016] The third rule is used to indicate that a first relationship is established when the data under the IP category in the second information is not empty and the data under the URL category and / or port category in the second information is empty; the first relationship at least includes a mapping relationship between IP address categories.
[0017] In the above solution, the priority of the first rule is higher than that of the second rule, and the priority of the second rule is higher than that of the third rule.
[0018] In the above solution, the set regular expression includes one or more of the following:
[0019] The first three fields of the Internet Protocol version 4 (IPv4) address are used as key information;
[0020] Use the Internet Protocol Version 6 (IPv6) address as key information;
[0021] Use fixed ports as key information;
[0022] The maximum port and the minimum port in the range of ports are used as key information;
[0023] Use the IP address contained in the URL as key information;
[0024] Using a specific field in a URL beginning with a specific field as key information; the specific field includes HTTP and / or HTTPS and / or set characters;
[0025] A URL that does not include an IP address and does not begin with a specific field is used as key information; the specific field includes HTTP and / or HTTPS and / or set characters.
[0026] In the above solution, determining, based on the matching result, whether the first information belongs to a directional service or not, includes:
[0027] In a case where the first service attribute information matches part or all of the second service attribute information, determining whether the first information belongs to a directional service or not based on the service code corresponding to the matched information; or
[0028] When the first service attribute information does not match all the second service attribute information, it is determined that the first information does not belong to a directional service.
[0029] In the above solution, the first information also includes user information; and the method further includes:
[0030] In the case that the first information belongs to a directional service, the directional flow size corresponding to the first information is determined based on the user information and fourth information, and the fourth information includes a service identifier and a service flow size.
[0031] The present application also provides an information matching device, the device comprising:
[0032] A matching module, used to match the first information with the second information to obtain a matching result; wherein the first information includes first service attribute information under a set network extracted from the user behavior data, and the second information includes a service code and corresponding second service attribute information;
[0033] A determination module is used to determine whether the first information belongs to a directional service or does not belong to a directional service based on the matching result.
[0034] An embodiment of the present application also provides an electronic device, including a processor and a memory for storing a computer program that can be run on the processor, wherein the processor is used to execute the steps of any one of the above methods when running the computer program.
[0035] An embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0036] An embodiment of the present application further provides a computer program product, including a computer program, which implements the steps of any of the above methods when executed by a processor.
[0037] In the information matching method, device, electronic device, storage medium and computer program product provided in the embodiments of the present application, the first information is matched with the second information to obtain a matching result; wherein the first information includes the first service attribute information under the set network extracted from the user behavior data, and the second information includes the service code and the corresponding second service attribute information; based on the matching result, it is determined whether the first information belongs to a targeted service or not. The above scheme matches the first information with the second information through the corresponding relationship between the first service attribute information and the second service attribute information, and the matching result includes the service code, so as to determine whether the first information belongs to a targeted service, thereby realizing a refined matching between the user behavior data and the targeted service. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 This is a flow chart of an information matching method according to an embodiment of the present application;
[0039] Figure 2 This is a schematic diagram of the implementation process of the information matching method of the embodiment of the present application;
[0040] Figure 3 This is a schematic diagram of the structure of the information matching device according to an embodiment of the present application;
[0041] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0042] Various Internet apps have become an indispensable part of users' lives. When using Internet apps, users generate a large amount of user behavior data, such as images, voices, and videos. The amount of these user behavior data is huge, so it is worth paying attention to mining the added value of user behavior data.
[0043] Currently, deep packet inspection (DPI) technology is mostly used to process user behavior data, mainly in two directions: one is to analyze and apply data of various dimensions in user behavior data based on deep packet inspection, such as user portrait dimension and business promotion and marketing dimension; the other is to identify Internet business based on deep packet inspection method.
[0044] Specifically, Direction 1 is to analyze and apply data of various dimensions based on the user behavior data identified by deep packet detection. The existing technology mainly focuses on the analysis of user behavior preferences, aggregating the user behavior data of one or more users, and then analyzing the business preferences of target customer categories, and then conducting a series of tasks such as user profiling, business marketing assistance, user in-depth insights and satisfaction prediction.
[0045] Direction 2 uses deep packet inspection technology to identify Internet services. Existing technical solutions mostly focus on scenarios such as increased encrypted traffic, identification and filtering of special protocol traffic, smaller and finer service identification granularity, and improved identification efficiency. Deep packet inspection technology is improved by introducing machine learning, thereby improving the accuracy and completeness of service identification and detection, and focusing on deep packet inspection technology.
[0046] The above two directions, firstly, there is no identification association between targeted services and user behavior data, and secondly, they can only focus on the identification of targeted services at the Internet service level, and cannot correspond the targeted services to user behavior data.
[0047] Based on this, in various embodiments of the present application, the first information is matched with the second information to obtain a matching result; wherein the first information includes the first service attribute information under the set network extracted from the user behavior data, and the second information includes the service code and the corresponding second service attribute information; based on the matching result, it is determined whether the first information belongs to a directional service or not. The above scheme matches the first information with the second information through the corresponding relationship between the first service attribute information and the second service attribute information, and the matching result includes the service code, thereby determining whether the first information belongs to a directional service, and realizing a refined matching between the user behavior data and the directional service.
[0048] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.
[0049] The embodiment of the present application provides an information matching method, which is applied to an electronic device, the electronic device may have a display screen or display function, or may be connected to a display screen; the electronic device includes a terminal and / or a device having a display screen or display function. Figure 1 As shown, the method includes:
[0050] Step 101: Match the first information with the second information to obtain a matching result.
[0051] The first information includes first service attribute information under a set network extracted from user behavior data, and the second information includes a service code and corresponding second service attribute information.
[0052] Here, user behavior data refers to the data generated by the target user on the electronic device within a set time period. The set time period can be any time period, can be adjusted manually, and can also be set according to actual needs, without specific limitations. The target user can be any user, and can also be determined according to actual needs, without specific limitations. The set network includes networks corresponding to different operators, and / or networks corresponding to different regions and / or different frequency bands. For example, the set network is China Mobile Network (CMNET).
[0053] The first service attribute information represents the attribute information corresponding to the service involved in the user behavior data under the set network. The first service attribute information includes one or more of the following: URL, IP address, port, application type and application port type, and may include more, which are not limited here. The application type and application port type are used to indicate the specific service corresponding to the user behavior data. The first service attribute information can be represented by the field content, for example, the URL corresponds to the Host (main) field content, the IP address corresponds to the App Server IP_IPv4 (application server Internet communication protocol version 4 IP address) field content and / or the App Server IP_IPv6 (application server Internet communication protocol version 6 IP address) field content, the port corresponds to the App Server Port (application server port) field content, the application type corresponds to the App_Type (application type) field content, and the application subtype corresponds to the App_Sub_Type (application subtype) field content. Specifically, taking the URL as "https: / / RRRRR" as an example, the corresponding Host field content is "RRRRR". The service code is the code corresponding to all the services that can be realized by the user on the electronic device under the set network. The second service attribute information represents the attribute information of the service corresponding to the service code. The second service attribute information includes one or more of the following: URL, IP address and port, and may include more, which are not limited here.
[0054] The method for acquiring the first information may be to acquire user behavior data generated by the target user using an electronic device such as a terminal device during a set time period, parse the application layer protocol field in the user behavior data through deep packet inspection to obtain the first business attribute information corresponding to the user behavior data, identify characteristic attributes through network access technology (APN, Access Point Name), filter and obtain the first business attribute information under the set network, and unify the data format of the first business attribute information under the set network to obtain the first information. The specific method for acquiring the first information is not limited.
[0055] Here, matching the first information with the second information may be matching all of the first information with all of the second information, or matching part of the first information with part of the second information, or matching the first information with the second information by setting a rule, without specific limitation.
[0056] Step 102: Based on the matching result, determine whether the first information belongs to a directional service or does not belong to a directional service.
[0057] The matching result includes a service code and / or a matching success or failure flag. The matching success or failure flag indicates whether the first information and the second information are successfully matched.
[0058] Here, determining whether the first information belongs to a directional service or not based on the matching result can be based on the service code, or based on a matching success or failure indicator.
[0059] It should be understood that the first information belongs to a directional service, that is, the first information uses directional traffic.
[0060] In this embodiment, the first information is matched with the second information through the correspondence between the first business attribute information and the second business attribute information, and whether the first information belongs to a targeted business is determined based on the matching result, thereby achieving refined matching between user behavior data and targeted business.
[0061] In one embodiment, matching the first information with the second information to obtain a matching result includes:
[0062] Based on the third information, the first information is matched with the second information to obtain a matching result; the third information includes a set regular expression and / or a set information matching rule.
[0063] Specifically, when the third information is a set regular expression, the first information is matched with the second information based on the set regular expression to obtain a matching result, including:
[0064] The first service attribute information and the second service attribute information are processed based on a set regular expression, and the processed first service attribute information is matched with the corresponding processed second service attribute information to obtain a matching result.
[0065] In the case where the third information is a set information matching rule, the first information is matched with the second information based on the set information matching rule to obtain a matching result, including:
[0066] Based on the first relationship, the first information is matched with the second information to obtain a matching result; the first relationship is established based on a set information matching rule, and the set information matching rule is used to indicate the conditions for establishing the first relationship and the information category contained in the first relationship, and the mapping relationship between the information category of the first business attribute information and the information category of the second business attribute information contained in the first relationship.
[0067] In the case where the third information is a set regular expression and a set information matching rule, the first business attribute information and the second business attribute information are processed based on the set regular expression, and the processed first business attribute information is matched with the corresponding processed second business attribute information based on the first relationship; the first relationship is established based on the set information matching rule, and the set information matching rule is used to indicate the conditions for establishing the first relationship and the information category contained in the first relationship, and the mapping relationship between the information category of the first business attribute information and the information category of the second business attribute information contained in the first relationship.
[0068] In this embodiment, the first information is matched with the second information through a set regular expression and / or a set information matching rule, so that the first information and the second information can be matched more specifically, thereby improving matching efficiency and matching accuracy.
[0069] In one embodiment, matching the first information with the second information based on the third information to obtain a matching result includes:
[0070] Based on the set regular expression and / or the first relationship, the first information is matched with the second information to obtain a matching result; wherein,
[0071] The first relationship is established based on a set information matching rule, wherein the set information matching rule is used to indicate the conditions for establishing the first relationship and the information category included in the first relationship, and the mapping relationship between the information category of the first business attribute information and the information category of the second business attribute information included in the first relationship.
[0072] Here, the first information is matched with the second information based on the first relationship, that is, the first information is matched with the second information through the mapping relationship between the information category of the first business attribute information and the information category of the second business attribute information.
[0073] In this embodiment, the method of matching the first information with the second information through the set information matching rules is further refined. Under certain conditions, the first information and the second information are matched by using the mapping relationship between the information category of the first business attribute information and the information category of the second business attribute information, which can further improve the matching efficiency and matching accuracy.
[0074] In one embodiment, the set information matching rules include a first rule, which is used to indicate that a first relationship is established when the data under the URL category, IP address category and port category in the second information is not empty; the first relationship includes a mapping relationship between URL categories, a mapping relationship between IP address categories and a mapping relationship between port categories.
[0075] The IP address category includes an IPv4 address category and / or an IPv6 address category.
[0076] Here, the set information matching rules may be numbered. For example, when the IP address category is the IPv4 address category, the rule number corresponding to the first rule is A.1.
[0077] When the IP address class is the IPv6 address class, the rule number corresponding to the first rule is B.1.
[0078] It should be understood that this is only an example, and the set information matching rules may not be numbered, and the specific rule numbers may not be limited.
[0079] In this embodiment, the first rule indicates that a mapping relationship needs to be established between the three categories of URL category, IP address category and port category, that is, the data under the three categories must correspond to each other in order to achieve the matching of the first information and the second information, which can improve the accuracy of the matching results.
[0080] In one embodiment, the set information matching rule includes a second rule and / or a third rule; wherein,
[0081] The second rule is used to indicate that when the data under the IP address category and the port category in the second information is empty and the data under the URL category is not empty, a first relationship is established; the first relationship includes a mapping relationship between URL categories;
[0082] The third rule is used to indicate that a first relationship is established when the data under the IP category in the second information is not empty and the data under the URL category and / or port category in the second information is empty; the first relationship at least includes a mapping relationship between IP address categories.
[0083] Specifically, the third rule is used to indicate that when the data under the URL category and the port category in the second information is empty and the data under the IP address category is not empty, a first relationship is established, and the first relationship includes a mapping relationship between IP address categories; and / or
[0084] Indicates that when the data under the URL category in the second information is empty, and the data under the IP address category and the port category are not empty, a first relationship is established, wherein the first relationship includes a mapping relationship between IP address categories and a mapping relationship between port categories; and / or
[0085] Indicates that when the data under the port category in the second information is empty and the data under the IP address category and the URL category are not empty, a first relationship is established, wherein the first relationship includes a mapping relationship between URL categories and a mapping relationship between IP address categories.
[0086] The IP address category includes an IPv4 address category and / or an IPv6 address category. As above, the set information matching rules can be numbered. When the IP address category is an IPv4 address category, the rule number corresponding to the second rule is A.2, and the rule number corresponding to the third rule is A.3, A.4, and A.5; when the IP address category is an IPv6 address category, the rule number corresponding to the second rule is B.2, and the rule number corresponding to the third rule is B.3, B.4, and B.5.
[0087] It is worth noting that, based on the second rule, the first information is matched with the second information, and the service code included in the obtained matching result can be identified as free flow.
[0088] In this embodiment, the second rule indicates that only a mapping relationship between URL categories is established to match the first information with the second information, which can improve matching efficiency. The third rule corresponds to multiple situations, which can avoid information omission and improve matching accuracy.
[0089] In one embodiment, the first rule has a higher priority than the second rule, and the second rule has a higher priority than the third rule.
[0090] In this embodiment, in the process of matching the first information with the second information based on the set information matching rule, if the first information is successfully matched with the second information based on the first rule, the matching result is directly obtained without using the second rule and the third rule to continue matching the first information with the second information. Setting the priority between the rules can avoid useless matching processes and improve matching efficiency. Setting the priority of the first rule higher than the second rule and the priority of the second rule higher than the third rule can improve matching accuracy.
[0091] In one embodiment, the set regular expression includes one or more of the following:
[0092] The first three fields of the IPv4 address are used as key information;
[0093] Use IPv6 address as key information;
[0094] Use fixed ports as key information;
[0095] The maximum port and the minimum port in the range of ports are used as key information;
[0096] Use the IP address contained in the URL as key information;
[0097] Using a specific field in a URL beginning with a specific field as key information; the specific field includes HTTP and / or HTTPS and / or set characters;
[0098] A URL that does not include an IP address and does not begin with a specific field is used as key information; the specific field includes HTTP and / or HTTPS and / or set characters.
[0099] The set characters include * or other characters, which are not specifically limited.
[0100] For the range port, as long as the maximum port in the first information is less than or equal to the maximum port in the second information and the minimum port in the first information is greater than or equal to the minimum port in the second information, the first information is considered to match the second information successfully.
[0101] In this embodiment, the key information in the first business attribute information and the second business attribute information can be determined based on the set rule expression. In this way, in the process of matching the first information with the second information, only the key information needs to be matched, which can greatly improve the matching efficiency and eliminate the influence of invalid information, helping to improve the matching accuracy.
[0102] In one embodiment, determining, based on the matching result, whether the first information belongs to a directional service or does not belong to a directional service includes:
[0103] In a case where the first service attribute information matches part or all of the second service attribute information, determining whether the first information belongs to a directional service or not based on the service code corresponding to the matched information; or
[0104] When the first service attribute information does not match all the second service attribute information, it is determined that the first information does not belong to a directional service.
[0105] Here, in the case where the first service attribute information matches part or all of the second service attribute information, determining whether the first information belongs to a directional service or not based on a service code corresponding to the matched information includes:
[0106] In the case where the first service attribute information and the second service attribute information only match in port, the service code is filled with a null value to determine that the first information does not belong to a directional service.
[0107] It should be understood that, based on the service code corresponding to the matched information, determining whether the first information belongs to a directional service or not is configured based on whether the service corresponding to the service code belongs to a directional service. Exemplarily, the service code corresponding to the directional service is configured as 1750000000, when the service code corresponding to the matched information is 1750000000, then the first information belongs to the directional service; the service code corresponding to the non-directional service is configured as 2000000000, when the service code corresponding to the matched information is 2000000000, then the first information does not belong to the directional service.
[0108] In a case where the first service attribute information does not match all the second service attribute information, determining that the first information does not belong to a directional service includes:
[0109] In the case where the first service attribute information does not match all the second service attribute information, the service code is backfilled with a null value to determine that the first information does not belong to a directional service.
[0110] In this embodiment, whether the first information belongs to a directional service or not is clearly determined based on the service code, which can reduce the difficulty of determining whether the first information belongs to a directional service and improve the efficiency of determining whether the first information belongs to a directional service.
[0111] In one embodiment, the first information further includes user information; and the method further includes:
[0112] In the case that the first information belongs to a directional service, the directional flow size corresponding to the first information is determined based on the user information and fourth information, and the fourth information includes a service identifier and a service flow size.
[0113] Among them, the user information represents the information of the target user. The user information includes the target user's telephone number, which is not specifically limited. The fourth information represents the billing data corresponding to the target user. The service identifier indicates a specific service. The service identifier may correspond to the service code. The fourth information also includes one or more of the following: user telephone number, service start time, service end time, and service cost information.
[0114] In this embodiment, the size of the directional traffic corresponding to the first information can be determined based on the fourth information, so that the subsequent operator can check the size of the directional traffic corresponding to the first information of the target user, making the user's traffic usage more transparent and improving the user experience.
[0115] Here, the information matching method provided by the present application is described in the form of a specific embodiment. Figure 2As shown, the information matching method includes processing user behavior data based on deep packet inspection to obtain first information, constructing a first data set from the first information, and obtaining second information through billing network element bureau data; in a mapping library, based on a set regular expression and / or a set information matching rule, matching the first information with the second information to obtain a matching result; constructing a second data set from the matching result and the first data set, matching the billing call record data with the second data set, and determining the relationship between the user behavior, i.e., the first information, and the directional traffic, i.e., the directional traffic corresponding to the directional service. Wherein, processing user behavior data based on deep packet inspection to obtain first information, and constructing a first data set from the first information, includes:
[0116] Obtain user behavior data generated by a target user using an electronic device such as a terminal device during a set time period, parse the application layer protocol field in the user behavior data through deep packet inspection, obtain first business attribute information corresponding to the user behavior data, perform feature attribute recognition through network access technology (APN, Access Point Name), filter and obtain the first business attribute information under the set network, i.e., CMNET, and unify the data format of the first business attribute information under the set network to obtain first information; the first information includes the fields Host, App Server IP_IPv4, AppServer IP_IPv6, App Server Port, App_Type, and App_Sub_Type.
[0117] The second information is obtained through the data of the billing network element office, and the second information includes a service code, a usage method, an IP address, a port, and a URL. The usage method is used to indicate the usage form of the service. For example, the usage method includes one or more of the following: a mobile client, a multimedia message, and a hypertext (H5, HTML5.0), which are not specifically limited.
[0118] In the mapping library, based on a set regular expression and / or a set information matching rule, the first information is matched with the second information to obtain a matching result.
[0119] The set regular expression is used to set matching expressions for IP addresses, ports, and URLs. Specifically, the regular expression for IP addresses includes taking the first three fields of the IPv4 address as key values and the IPv6 address as key values; the regular expression for ports includes taking the fixed port as the key value and the maximum port and minimum port in the range of ports as key values; the regular expression for URLs includes taking the IP address contained in the URL as the key value, taking the specific field in the URL that starts with a specific field as the key value, and taking the URL that does not contain an IP address and does not start with a specific field as the key value, and the specific fields include HTTP and / or HTTPS and / or *. Among them, the key value corresponds to key information.
[0120] The set information matching rules include the first rule, the second rule and the third rule. The first rule is to establish a mapping relationship between the URL category (Host) of the first business attribute information and the URL category of the second business attribute information, a mapping relationship between the IP address category (App Server IP_IPv4 and / or App Server IP_IPv6) of the first business attribute information and the IP address category of the second business attribute information, and a mapping relationship between the port category (App Server Port) of the first business attribute information and the port category of the second business attribute information when the data under the URL category, IP address category and port category in the second information are not empty. The second rule is to establish a mapping relationship between the URL category of the first business attribute information and the URL category of the second business attribute information when the data under the IP address category and port category in the second information are empty and the data under the URL category is not empty. The third rule includes one or more of the following: when the data under the URL category and the port category in the second information is empty and the data under the IP address category is not empty, a mapping relationship between the IP address category of the first business attribute information and the IP address category of the second business attribute information is established; when the data under the URL category in the second information is empty and the data under the IP address category and the port category is not empty, a mapping relationship between the IP address category of the first business attribute information and the IP address category of the second business attribute information, and a mapping relationship between the port category of the first business attribute information and the port category of the second business attribute information are established; when the data under the port category in the second information is empty and the data under the IP address category and the URL category is not empty, a mapping relationship between the URL category of the first business attribute information and the URL category of the second business attribute information, and a mapping relationship between the IP address category of the first business attribute information and the IP address category of the second business attribute information are established. The first rule has a higher priority than the second rule, and the second rule has a higher priority than the third rule.
[0121] The second data set is constructed from the matching result and the first data set, and the billing data is matched with the second data set to determine the relationship between the user behavior, i.e., the first information, and the directional traffic, i.e., the directional traffic size corresponding to the directional service. The second data set may also include a rule number.
[0122] The information matching method provided in the embodiment of the present application establishes an effective association between user behavior data, billing network element bureau data and billing call record data through set regular expressions and / or set information matching rules, thereby realizing refined matching between user behavior data and directional services, that is, it can be determined whether the traffic generated by a certain functional behavior of a certain Internet service used by the user is directional traffic, thereby enhancing the transparency of the 5G directional traffic billing process, ensuring efficient support for the operation process and improving user satisfaction.
[0123] In order to implement an information matching method provided in an embodiment of the present application, an information matching device is also provided in an embodiment of the present application, such as Figure 3 As shown, the device comprises:
[0124] The matching module 301 is used to match the first information with the second information to obtain a matching result; wherein the first information includes the first service attribute information under the set network extracted from the user behavior data, and the second information includes the service code and the corresponding second service attribute information;
[0125] The determination module 302 is configured to determine, based on the matching result, whether the first information belongs to a directional service or not.
[0126] In one embodiment, the matching module 301 is specifically configured to match the first information with the second information based on the third information to obtain a matching result; the third information includes a set regular expression and / or a set information matching rule.
[0127] In one embodiment, the matching module 301 is specifically used to match the first information with the second information based on a set regular expression and / or a first relationship to obtain a matching result; wherein,
[0128] The first relationship is established based on a set information matching rule, wherein the set information matching rule is used to indicate the conditions for establishing the first relationship and the information category included in the first relationship, and the mapping relationship between the information category of the first business attribute information and the information category of the second business attribute information included in the first relationship.
[0129] In one embodiment, the set information matching rules include a first rule, which is used to indicate that a first relationship is established when the data under the URL category, IP address category and port category in the second information is not empty; the first relationship includes a mapping relationship between URL categories, a mapping relationship between IP address categories and a mapping relationship between port categories.
[0130] In one embodiment, the set information matching rule includes a second rule and / or a third rule; wherein,
[0131] The second rule is used to indicate that when the data under the IP address category and the port category in the second information is empty and the data under the URL category is not empty, a first relationship is established; the first relationship includes a mapping relationship between URL categories;
[0132] The third rule is used to indicate that a first relationship is established when the data under the IP category in the second information is not empty and the data under the URL category and / or port category in the second information is empty; the first relationship at least includes a mapping relationship between IP address categories.
[0133] In one embodiment, the priority of the first rule is higher than that of the second rule, and the priority of the second rule is higher than that of the third rule.
[0134] In one embodiment, the set regular expression includes one or more of the following:
[0135] The first three fields of the IPv4 address are used as key information;
[0136] Use IPv6 address as key information;
[0137] Use fixed ports as key information;
[0138] The maximum port and the minimum port in the range of ports are used as key information;
[0139] Use the IP address contained in the URL as key information;
[0140] Using a specific field in a URL beginning with a specific field as key information; the specific field includes HTTP and / or HTTPS and / or set characters;
[0141] A URL that does not include an IP address and does not begin with a specific field is used as key information; the specific field includes HTTP and / or HTTPS and / or set characters.
[0142] In one embodiment, the determination module 302 is specifically configured to determine, when the first service attribute information matches part or all of the second service attribute information, whether the first information belongs to a directional service or not based on a service code corresponding to the matched information; or
[0143] When the first service attribute information does not match all the second service attribute information, it is determined that the first information does not belong to a directional service.
[0144] In one embodiment, the first information further includes user information; and the device further includes:
[0145] A directional module is used to determine the directional flow size corresponding to the first information based on the user information and fourth information when the first information belongs to a directional service, and the fourth information includes a service identifier and a service flow size.
[0146] In actual application, the matching module 301, the determination module 302 and the orientation module can be implemented by a processor in the information matching device.
[0147] It should be noted that: the above embodiment provides an information matching device, and only uses the division of the above program modules as an example to illustrate when performing information matching. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the information matching device and the information matching method embodiment provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0148] Based on the hardware implementation of the above program modules, and in order to implement an information matching method provided in an embodiment of the present application, an embodiment of the present application further provides an electronic device, such as Figure 4 As shown, the electronic device 400 includes:
[0149] Communication interface 401, capable of exchanging information with other network nodes;
[0150] The processor 402 is connected to the communication interface 401 to implement information exchange with other network nodes, and is used to execute the method provided by one or more technical solutions when running a computer program. The computer program is stored in the memory 403.
[0151] Specifically, the processor 402 is used to match the first information with the second information to obtain a matching result; wherein the first information includes first service attribute information under the set network extracted from the user behavior data, and the second information includes a service code and corresponding second service attribute information;
[0152] Based on the matching result, it is determined whether the first information belongs to the directional service or not.
[0153] In one embodiment, the processor 402 is further configured to match the first information with the second information based on third information to obtain a matching result; the third information includes a set regular expression and / or a set information matching rule.
[0154] In one embodiment, the processor 402 is further configured to match the first information with the second information based on a set regular expression and / or a first relationship to obtain a matching result; wherein,
[0155] The first relationship is established based on a set information matching rule, wherein the set information matching rule is used to indicate the conditions for establishing the first relationship and the information category included in the first relationship, and the mapping relationship between the information category of the first business attribute information and the information category of the second business attribute information included in the first relationship.
[0156] In one embodiment, the set information matching rules include a first rule, which is used to indicate that a first relationship is established when the data under the URL category, IP address category and port category in the second information is not empty; the first relationship includes a mapping relationship between URL categories, a mapping relationship between IP address categories and a mapping relationship between port categories.
[0157] In one embodiment, the set information matching rule includes a second rule and / or a third rule; wherein,
[0158] The second rule is used to indicate that when the data under the IP address category and the port category in the second information is empty and the data under the URL category is not empty, a first relationship is established; the first relationship includes a mapping relationship between URL categories;
[0159] The third rule is used to indicate that a first relationship is established when the data under the IP category in the second information is not empty and the data under the URL category and / or port category in the second information is empty; the first relationship at least includes a mapping relationship between IP address categories.
[0160] In one embodiment, the priority of the first rule is higher than that of the second rule, and the priority of the second rule is higher than that of the third rule.
[0161] In one embodiment, the set regular expression includes one or more of the following:
[0162] The first three fields of the IPv4 address are used as key information;
[0163] Use IPv6 address as key information;
[0164] Use fixed ports as key information;
[0165] The maximum port and the minimum port in the range of ports are used as key information;
[0166] Use the IP address contained in the URL as key information;
[0167] Using a specific field in a URL beginning with a specific field as key information; the specific field includes HTTP and / or HTTPS and / or set characters;
[0168] A URL that does not include an IP address and does not begin with a specific field is used as key information; the specific field includes HTTP and / or HTTPS and / or set characters.
[0169] In one embodiment, the processor 402 is further configured to determine, when the first service attribute information matches part or all of the second service attribute information, whether the first information belongs to a directional service or not based on a service code corresponding to the matched information; or
[0170] When the first service attribute information does not match all the second service attribute information, it is determined that the first information does not belong to a directional service.
[0171] In one embodiment, the first information also includes user information; the processor 402 is also used to determine the directional traffic size corresponding to the first information based on the user information and fourth information when the first information belongs to a directional service, and the fourth information includes a service identifier and a service traffic size.
[0172] It should be noted that the specific processing process of the processor 402 and the communication interface 401 can be understood by referring to the above method.
[0173] Of course, in actual application, the various components in the electronic device 400 are coupled together through the bus system 404. It can be understood that the bus system 404 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 404 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Figure 4 Various buses are labeled as bus system 404 .
[0174] The memory 403 in the embodiment of the present application is used to store various types of data to support the operation of the electronic device 400. Examples of such data include: any computer program used to operate on the electronic device 400.
[0175] The method disclosed in the above embodiment of the present application can be applied to the processor 402, or implemented by the processor 402. The processor 402 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of the hardware in the processor 402 or an instruction in the form of software. The above-mentioned processor 402 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 402 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the memory 403, and the processor 402 reads the information in the memory 403 and completes the steps of the above method in combination with its hardware.
[0176] In an exemplary embodiment, the electronic device 400 can be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA), general processor, controller, microcontroller (MCU), microprocessor, or other electronic components to execute the aforementioned method.
[0177] It can be understood that the memory 403 of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a ferromagnetic random access memory, a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAMbus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 403 described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memories.
[0178] In an exemplary embodiment, the present application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, a memory 403 storing a computer program, and the computer program can be executed by a processor 402 of an electronic device 400 to complete the steps of the aforementioned method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.
[0179] An embodiment of the present application further provides a computer program product, including a computer program, which implements the steps of any of the above methods when executed by a processor.
[0180] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "one or more" in this article represents any combination of at least two of any one or more of a plurality. For example, including one or more of A, B, and C can represent including any one or at least two or more elements selected from the set consisting of A, B, and C.
[0181] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.
[0182] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.
Claims
1. An information matching method, characterized in that: The method comprises: Matching the first information with the second information to obtain a matching result; wherein the first information includes first service attribute information under a set network extracted from the user behavior data, and the second information includes a service code and corresponding second service attribute information; Based on the matching result, it is determined whether the first information belongs to the directional service or not.
2. The method according to claim 1, characterized in that The matching of the first information with the second information to obtain a matching result includes: Based on the third information, the first information is matched with the second information to obtain a matching result; the third information includes a set regular expression and / or a set information matching rule.
3. The method according to claim 2, characterized in that The matching of the first information with the second information based on the third information to obtain a matching result includes: Based on the set regular expression and / or the first relationship, the first information is matched with the second information to obtain a matching result; wherein, The first relationship is established based on a set information matching rule, wherein the set information matching rule is used to indicate the conditions for establishing the first relationship and the information category contained in the first relationship, and the mapping relationship between the information category of the first business attribute information and the information category of the second business attribute information contained in the first relationship.
4. The method according to claim 3, characterized in that The set information matching rule includes a first rule, wherein the first rule is used to indicate that a first relationship is established when the data under the Uniform Resource Locator URL category, the Internet Protocol IP address category, and the port category in the second information is not empty; The first relationship includes a mapping relationship between URL categories, a mapping relationship between IP address categories, and a mapping relationship between port categories.
5. The method according to claim 3 or 4, characterized in that: The set information matching rule includes the second rule and / or the third rule; wherein, The second rule is used to indicate that when the data under the IP address category and the port category in the second information is empty and the data under the URL category is not empty, a first relationship is established; the first relationship includes a mapping relationship between URL categories; The third rule is used to indicate that a first relationship is established when the data under the IP category in the second information is not empty and the data under the URL category and / or port category in the second information is empty; the first relationship at least includes a mapping relationship between IP address categories.
6. The method according to claim 5, characterized in that The first rule has a higher priority than the second rule, and the second rule has a higher priority than the third rule.
7. The method according to claim 2 or 3, characterized in that: The set regular expression includes one or more of the following: The first three fields of the Internet Protocol version 4 (IPv4) address are used as key information; Use the Internet Protocol version 6 (IPv6) address as key information; Use fixed ports as key information; The maximum port and the minimum port in the range of ports are used as key information; Use the IP address contained in the URL as key information; Using a specific field in a URL beginning with a specific field as key information; the specific field includes HTTP and / or HTTPS and / or set characters; A URL that does not include an IP address and does not begin with a specific field is used as key information; the specific field includes HTTP and / or HTTPS and / or set characters.
8. The method according to any one of claims 1 to 4 and 6, characterized in that: The determining, based on the matching result, that the first information belongs to a directional service or does not belong to a directional service includes: In a case where the first service attribute information matches part or all of the second service attribute information, determining whether the first information belongs to a directional service or not based on the service code corresponding to the matched information; or When the first service attribute information does not match all the second service attribute information, it is determined that the first information does not belong to a directional service.
9. The method according to any one of claims 1 to 4 and 6, characterized in that: The first information also includes user information; the method also includes: In the case that the first information belongs to a directional service, the directional flow size corresponding to the first information is determined based on the user information and fourth information, and the fourth information includes a service identifier and a service flow size.
10. An information matching device, characterized in that: The device comprises: A matching module, used to match the first information with the second information to obtain a matching result; wherein the first information includes first service attribute information under a set network extracted from the user behavior data, and the second information includes a service code and corresponding second service attribute information; A determination module is used to determine whether the first information belongs to a directional service or does not belong to a directional service based on the matching result.
11. An electronic device, characterized in that: comprising a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 1 to 9.
12. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Data analysis method and device, electronic equipment and storage medium
CN116016284A
Network traffic identification system and method based on user behavior association, and medium
CN117376034A
