Network traceability method, device, terminal and medium

By generating and storing offline records from intermediate messages, the method addresses the challenge of tracing users with long online durations, enhancing tracing efficiency and reducing time requirements.

CN115955500BActive Publication Date: 2025-07-15CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211667999.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-23
Publication Date
2025-07-15
Estimated Expiration
2042-12-23

AI Technical Summary

Technical Problem

When the existing technology traces the source of online users for a long time, the traceability difficulty and time cost are relatively high, making it difficult to effectively reduce it.

Method used

By generating and storing offline records corresponding to intermediate messages, using preset offline databases to quickly query target offline records, extract user data information, and avoid traversing all offline messages within a long span.

Benefits of technology

It reduces the difficulty of traceability and time required for traceability, and improves the efficiency and accuracy of the traceability process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115955500B_ABST
    Figure CN115955500B_ABST
Patent Text Reader

Abstract

This application belongs to the field of network technologies, and particularly relates to a network traceability method, apparatus, terminal, and medium. The network traceability method includes: generating an offline record corresponding to the terminal according to a message sent by the terminal, where the message type of the message includes an online message sent when the terminal goes online, an intermediate message sent when the terminal is online, and an offline message sent when the terminal goes offline; storing the offline record in a preset offline database; in response to a traceability request, querying, in the preset offline database, a target offline record corresponding to the time information included in the traceability request; and extracting user data information corresponding to the target offline record as a traceability result. In this way, in the traceability process of this application, it is not necessary to traverse all offline messages within a relatively long time period to obtain the traceability result, thereby reducing the traceability difficulty and the time required for traceability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network technologies, and in particular, to a network traceability method, apparatus, terminal, and medium. Background Art

[0002] Currently, the implementation mode of network address translation services mainly involves sending an online message when a terminal goes online, providing user data information including an IP address, and sending a corresponding offline message and generating an offline record when the terminal goes offline; on this basis, network traceability for user data information requires querying and extracting the corresponding offline record.

[0003] However, with the development of network services, there are users who do not go offline for a long time or never go offline; the IP addresses of these users have a long usage period, and the time span between the online message and the offline message is large, greatly increasing the difficulty and time required for traceability.

[0004] Therefore, when tracing users with a long online time, how to reduce the difficulty and time required for traceability is a problem that urgently needs to be solved in the current field of network technologies. Summary of the Invention

[0005] The main objective of the present invention is to provide a network traceability method, apparatus, terminal, and medium, aiming to generate and store a corresponding offline record according to an intermediate message sent by a terminal, so that during the traceability process, the offline record of the corresponding intermediate message can be directly queried according to the time information included in the traceability request, and user data information can be extracted, without having to traverse all offline messages within a long time span to obtain the traceability result, thereby reducing the difficulty and time required for traceability.

[0006] According to an aspect of an embodiment of the present application, a network traceability method is disclosed, including:

[0007] Generating an offline record corresponding to the terminal according to a message sent by the terminal, where the message type of the message includes an online message sent when the terminal goes online, an intermediate message sent when the terminal is online, and an offline message sent when the terminal goes offline;

[0008] Storing the offline record in a preset offline database;

[0009] In response to a traceability request, querying a target offline record corresponding to the time information included in the traceability request in the preset offline database;

[0010] Extracting user data information corresponding to the target offline record as a traceability result.

[0011] In some embodiments of the present application, based on the above technical solutions, storing the offline record in a preset offline database includes:

[0012] Generating a data packet identifier corresponding to the message type of the message, where the data packet identifier includes an intermediate packet identifier corresponding to the intermediate message and an end packet identifier corresponding to the offline message;

[0013] Associating the data packet identifier with the offline record;

[0014] Storing the associated data packet identifier and offline record in the preset offline database.

[0015] In some embodiments of the present application, based on the above technical solutions, generating an offline record corresponding to the terminal according to the message sent by the terminal includes:

[0016] In response to the message sent by the terminal, detecting whether there is user data information corresponding to the message in the preset online database;

[0017] If there is no user data information corresponding to the message in the preset online database, generating an offline record corresponding to the terminal according to the message.

[0018] In some embodiments of the present application, based on the above technical solutions, when the message type of the message is the online message, after detecting whether there is user data information corresponding to the message in the preset online database in response to the message sent by the terminal, the network traceability method further includes:

[0019] If there is first user data information corresponding to the message in the preset online database, deleting the first user data information and generating second user data information corresponding to the terminal in the online database according to the message;

[0020] Generating an offline record corresponding to the first user data information.

[0021] In some embodiments of the present application, based on the above technical solutions, when the message type of the message is the intermediate message or the offline message, after detecting whether there is user data information corresponding to the message in the preset online database in response to the message sent by the terminal, the network traceability method further includes:

[0022] If there is third user data information corresponding to the message in the preset online database, extracting the third user data information so that the third user data information has a corresponding relationship with the offline record generated according to the message.

[0023] In some embodiments of the present application, based on the above technical solutions, when the message type of the message is the intermediate message, if there is no user data information corresponding to the message in the preset online database, an offline record corresponding to the terminal is generated according to the message, including:

[0024] If there is no fourth user data information corresponding to the message in the preset online database, fifth user data information corresponding to the terminal is generated in the online database according to the message, and an offline record corresponding to the fifth user data information is generated.

[0025] In some embodiments of the present application, based on the above technical solutions, querying for a target offline record corresponding to the time information included in the traceability request in the preset offline database includes:

[0026] Querying for two traceability offline records adjacent to the time information included in the traceability request before and after in the preset offline database;

[0027] If the user data information corresponding to the two traceability offline records is the same, it is determined that the two traceability offline records are the target offline records.

[0028] According to one aspect of the embodiments of the present application, a network traceability device is disclosed, and the network traceability device includes:

[0029] A record generation module, configured to generate an offline record corresponding to the terminal according to a message sent by the terminal, where the message types of the message include an online message sent when the terminal goes online, an intermediate message sent when the terminal is online, and an offline message sent when the terminal goes offline;

[0030] A record storage module, configured to store the offline record in a preset offline database;

[0031] A record query module, configured to, in response to a traceability request, query for a target offline record corresponding to the time information included in the traceability request in the preset offline database;

[0032] An information extraction module, configured to extract user data information corresponding to the target offline record as a traceability result.

[0033] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the network traceability method in the above technical solutions.

[0034] The network traceability method provided by this application generates an offline record corresponding to the terminal according to the message sent by the terminal and stores it in a preset offline database. The message types of the messages include online messages, intermediate messages, and offline messages. Since the intermediate messages are continuously sent at fixed time intervals during the online period of the terminal, the offline records generated according to the intermediate messages can continuously and regularly record the user data information corresponding to the terminal. When receiving a traceability request and making a response, the corresponding target offline record can be quickly queried in the preset offline database according to the time information included in the traceability request, and then the user data information corresponding to the target offline record is extracted as the traceability result.

[0035] In this way, the network traceability method provided by this application can generate corresponding offline records according to the intermediate messages sent by the terminal and store them, so that during the traceability process, the offline records of the corresponding intermediate messages can be directly queried according to the time information included in the traceability request and the user data information can be extracted, without having to traverse all the offline messages within a relatively long time span to obtain the traceability result, thereby reducing the traceability difficulty and the time required for traceability.

[0036] It should be understood that the above general description and the following detailed description are only exemplary and do not limit this application. Brief Description of the Drawings

[0037] The drawings herein are incorporated into the specification and form a part of this specification, showing embodiments consistent with this application, and are used together with the specification to explain the principles of this application. Obviously, the drawings in the following description are only some embodiments of this application, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.

[0038] Figure 1 Shows the application environment diagram of the traceability system based on the implementation mode of the existing network address translation service in an embodiment of this application.

[0039] Figure 2 Shows the flowchart of the steps of the network traceability method in an embodiment of this application.

[0040] Figure 3 Shows the flowchart of the steps of the implementation mode of the existing network address translation service in an embodiment of this application.

[0041] Figure 4 Shows the application flowchart of the network traceability method in an embodiment of this application.

[0042] Figure 5 Schematically shows the structural block diagram of the network traceability device provided by the embodiment of this application.

[0043] Figure 6 A block diagram of a computer system of an electronic device suitable for implementing the embodiments of the present application is schematically shown. Detailed implementation manners

[0044] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more complete and comprehensive, and will fully convey the concept of the example embodiments to those skilled in the art.

[0045] In addition, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present application. However, those skilled in the art will realize that the technical solutions of the present application can be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. can be employed. In other cases, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the present application.

[0046] The block diagrams shown in the accompanying drawings are only functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0047] The flowcharts shown in the accompanying drawings are only illustrative and do not necessarily include all the contents and operations / steps, nor do they necessarily need to be executed in the described order. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to the actual situation.

[0048] The technical solutions such as the network traceability method, device, terminal, and medium provided by the present application will be described in detail below in combination with the specific implementation manners.

[0049] Figure 1 Shows an application environment diagram of a traceability system based on the implementation mode of the existing network address translation service. As Figure 1 shown, the data stream arrives at the collection and synthesis system in the form of message pushing, and the collection and synthesis system performs an inbound operation in the traceability database according to the message, such as writing online information to the online database or writing offline records to the offline database, etc. When there is a traceability requirement, relevant information is extracted from the above-mentioned traceability database through the traceability system as the traceability result. In addition, the third-party storage platform can also obtain data from the traceability database for data analysis.

[0050] Figure 2 The flowchart of the steps of the network traceability method in an embodiment of the present application is shown. As Figure 2 shown, the network traceability method mainly includes the following steps S100 to S400.

[0051] Step S100: Generate an offline record corresponding to the terminal according to the message sent by the terminal. The message types of the message include the online message sent when the terminal goes online, the intermediate message sent when the terminal is online, and the offline message sent when the terminal goes offline.

[0052] Step S200: Store the offline record in a preset offline database.

[0053] Step S300: In response to the traceability request, query the target offline record corresponding to the time information included in the traceability request in the preset offline database.

[0054] Step S400: Extract the user data information corresponding to the target offline record as the traceability result.

[0055] For the network traceability method provided by the present application, an offline record corresponding to the terminal is generated according to the message sent by the terminal and stored in a preset offline database. The message types of the message include the online message, the intermediate message, and the offline message. Since the intermediate message is continuously sent at fixed time intervals during the online period of the terminal, the offline record generated according to the intermediate message can continuously and regularly record the user data information corresponding to the terminal. When responding to the traceability request, the corresponding target offline record can be quickly queried in the preset offline database according to the time information included in the traceability request, so as to extract the user data information corresponding to the target offline record as the traceability result.

[0056] In this way, for the network traceability method provided by the present application, an offline record corresponding to the intermediate message sent by the terminal can be generated and stored, so that during the traceability process, the offline record of the corresponding intermediate message can be directly queried according to the time information included in the traceability request and the user data information can be extracted, without having to traverse all the offline messages within a relatively long time period to obtain the traceability result, thereby reducing the traceability difficulty and the time required for traceability.

[0057] The following will respectively make a detailed description of each method step in the network traceability method.

[0058] Step S100: Generate an offline record corresponding to the terminal according to the message sent by the terminal. The message types of the message include the online message sent when the terminal goes online, the intermediate message sent when the terminal is online, and the offline message sent when the terminal goes offline.

[0059] Specifically, an offline record corresponding to the terminal is generated according to the message sent by the terminal. The message types of the message include an online message, an intermediate message, and an offline message. Since the intermediate message is continuously sent at fixed time intervals during the online period of the terminal, the offline record generated according to the intermediate message can continuously and regularly record the user data information corresponding to the terminal.

[0060] As an optional embodiment, when the terminal is in an online state, an intermediate message is sent once every 2 hours until an offline message is sent when going offline. The traceability system will generate corresponding offline records in response to both the intermediate message and the offline message to record the user data information of the terminal.

[0061] Step S200, store the offline record in a preset offline database.

[0062] Specifically, the offline record generated according to the message is stored in a preset offline database to facilitate querying the corresponding offline record in the preset offline database during subsequent traceability.

[0063] Step S300, in response to a traceability request, query the target offline record corresponding to the time information included in the traceability request in the preset offline database.

[0064] Specifically, when receiving and responding to a traceability request, obtain the time information included in the traceability request, and query and determine the target offline record corresponding to the time information among multiple offline records in the preset offline database; since in this embodiment, the traceability system will generate offline records based on intermediate messages, the update times corresponding to multiple offline records will be relatively close, facilitating matching the time information included in the traceability request.

[0065] For example, if the traceability request is to trace the user data information corresponding to a certain IP address at a certain time point, obtain that time point and query and determine the offline record corresponding to that time point in the preset offline database as the target offline record.

[0066] Step S400, extract the user data information corresponding to the target offline record as the traceability result.

[0067] Specifically, after determining the target offline record, extract the user data information corresponding to the target offline record as the traceability result to complete the traceability process, thereby avoiding traversing all offline messages within a relatively long time period during the traceability process, reducing the traceability difficulty and the time required for traceability, and improving the accuracy of the traceability result.

[0068] Further, based on the above embodiments, storing the offline record in the preset offline database in the above step S200 includes the following steps S201 to S203.

[0069] Step S201, generating a data packet identifier corresponding to the message type of the message, where the data packet identifier includes an intermediate packet identifier corresponding to the intermediate message and an end packet identifier corresponding to the offline message.

[0070] Step S202, associating the data packet identifier with the offline record.

[0071] Step S203, storing the associated data packet identifier and offline record in the preset offline database.

[0072] Specifically, in the existing implementation mode of the network address translation service, an offline record corresponding to the offline message is generated only when the terminal goes offline and sends an offline message; while in this application, an offline record corresponding to the intermediate message is also generated. To avoid confusing the offline record generated according to the intermediate message with the offline record generated according to the offline message, distinguish whether the terminal is in the intermediate processing stage or is actually offline, and facilitate further analysis of the traceability user usage cycle in the future, it is necessary to distinguish the offline records stored in the preset offline database.

[0073] Therefore, in this embodiment, when the traceability system generates an offline record according to the message, it will generate a data packet identifier corresponding to the message. For example, when the message type of the message is an intermediate message, the traceability system will generate an intermediate packet identifier; when the message type of the message is an offline message, the traceability system will generate an end packet identifier. Then, by associating the data packet identifier corresponding to the same message with the offline message and storing it in the preset offline database, it is possible to distinguish in the subsequent traceability process according to the data packet identifier whether the offline record associated with the data packet identifier corresponds to an intermediate message or an offline message, so as to distinguish whether the terminal is in the intermediate processing stage or is actually offline, and facilitate further analysis of the traceability user usage cycle in the future.

[0074] Further, based on the above embodiments, generating an offline record corresponding to the terminal according to the message sent by the terminal in the above step S100 includes the following steps S101 and S102.

[0075] Step S101, in response to the message sent by the terminal, detecting whether there is user data information corresponding to the message in the preset online database.

[0076] Step S102: If there is no user data information corresponding to the message in the preset online database, generate an offline record corresponding to the terminal according to the message.

[0077] Specifically, in the existing implementation mode of network address translation service, online information and corresponding user data information are written into the preset online database according to the online message to record the online status of the terminal; among them, the user data information in the preset online database has a corresponding relationship with the offline record generated subsequently according to the message. In this embodiment, in response to the message sent by the terminal, if no user data information corresponding to the message is detected in the preset online database, it means that the online message has not arrived. At this time, the offline record is not generated by reading the user data information in the preset online database, but is generated by reverse inference according to the message.

[0078] Further, on the basis of the above embodiments, when the message type of the message is the online message, after detecting whether there is user data information corresponding to the message in the preset online database in step S101 of responding to the message sent by the terminal, the network traceability method further includes the following steps S103 and S104.

[0079] Step S103: If there is first user data information corresponding to the message in the preset online database, delete the first user data information and generate second user data information corresponding to the terminal in the online database according to the message.

[0080] Step S104: Generate an offline record corresponding to the first user data information.

[0081] Specifically, under normal circumstances, before the traceability system responds to the online message sent by the terminal, the traceability system should have received an offline message, and the traceability system will delete the online information and the first user data information that previously existed in the preset online database based on the offline message. In this embodiment, if the traceability system responds to the online message sent by the terminal and detects that there is already first user data information in the preset online database, it means that the terminal has abnormally gone offline and has not sent the corresponding offline message; on this basis, trigger the anti-hang-up mechanism, delete the online information and the first user data information that already exist in the preset online database, write new online information and second user data information corresponding to the online message into the preset online database according to the online message, and generate an offline record corresponding to the first user data information for storage for subsequent traceability operations.

[0082] As an alternative embodiment, it can be understood that when the traceability system responds to the online message sent by the terminal and detects that there is no user data information in the preset online database, it indicates that the terminal was normally logged off and sent an offline message before. Then, the online information and the corresponding user data information are directly written into the preset online database according to the current online message.

[0083] In this way, this embodiment provides a specific information processing process for the traceability system to trigger the anti-loss mechanism in the case of abnormal terminal logout in response to the online message, improves the information processing mechanism of the preset online database and the preset offline database, and enhances the practicality of the technical solution of this application.

[0084] Furthermore, based on the above embodiments, when the message type of the message is the intermediate message or the offline message, after detecting whether there is user data information corresponding to the message in the preset online database in step S101 of responding to the message sent by the terminal, the network traceability method further includes the following step S105.

[0085] Step S105, if there is third user data information corresponding to the message in the preset online database, then extract the third user data information to establish a corresponding relationship between the third user data information and the offline record generated according to the message.

[0086] Specifically, when the traceability system responds to the intermediate message sent by the terminal and detects that there is corresponding third user data information in the preset online database, then extract the third user data information, generate an offline record according to the third user data information, and the intermediate packet identifier corresponding to the intermediate message, and store them in the preset offline database.

[0087] When the traceability system responds to the offline message sent by the terminal and detects that there is corresponding third user data information in the preset online database, then extract the third user data information, generate an offline record according to the third user data information, and the end packet identifier corresponding to the offline message, and store them in the preset offline database, and delete the online information and the third user data information in the preset online database.

[0088] In this way, this embodiment provides a specific information processing process for the traceability system in response to the intermediate message and the offline message when there is corresponding user data information in the preset online database, and improves the practicality of the technical solution of this application.

[0089] Further, based on the above embodiments, when the message type of the message is the intermediate message, if there is no user data information corresponding to the message in the preset online database in step S102 above, an offline record corresponding to the terminal is generated according to the message, including the following step S1021.

[0090] Step S1021, if there is no fourth user data information corresponding to the message in the preset online database, generate fifth user data information corresponding to the terminal in the online database according to the message, and generate an offline record corresponding to the fifth user data information.

[0091] When the traceability system responds to an intermediate message sent by the terminal and detects that there is no corresponding fourth user data information in the preset online database, it means that the online message has not arrived. At this time, the offline record is not generated by reading the user data information in the preset online database, but is inferred backward according to this intermediate message. Generate fifth user data information and online information corresponding to the terminal in the preset online database, and generate an offline record corresponding to the fifth user data information, as well as an intermediate packet identifier corresponding to the intermediate message, and store them in the preset offline database.

[0092] Further, based on the above embodiments, in step S300 above, querying the target offline record corresponding to the time information included in the traceability request in the preset offline database includes the following steps S301 and S302.

[0093] Step S301, query two traceability offline records adjacent to the time information included in the traceability request before and after in the preset offline database.

[0094] Step S302, if the user data information corresponding to the two traceability offline records is the same, determine the two traceability offline records as the target offline record.

[0095] Specifically, when the terminal is in an online state, it will continuously send intermediate messages at fixed time intervals, and the traceability system will generate corresponding offline records each time it responds to an intermediate message and store them in the preset offline database. On this basis, in response to a traceability request, obtain the time information included in the traceability request, and select two traceability offline records adjacent to the time information before and after from the offline records on the day and the next day corresponding to the time information included in the traceability request in the preset offline database. If the user data information corresponding to the two traceability offline records is the same, it means that the terminal has no offline behavior during this period, and the traceability request successfully matches the above two traceability offline records. Then the two traceability offline records are the target offline records, and the user data information corresponding to the target offline records is extracted as the traceability result corresponding to the traceability request.

[0096] As an alternative embodiment, for example, assume that the intermediate message sending period is 2 hours per time. The most extreme intermediate message is sent at 22:00 on the same day, and the next intermediate message will not be sent until 00:00 the next day, resulting in the situation where the intermediate message crosses days. Therefore, when querying the date of the offline record, it is necessary to query the current day and the next day corresponding to the time point parameter provided by the traceability request. During the traceability process, obtain the time point parameter provided by the traceability request, that is, to find out which user used the IP address at this time point. The time point parameter is the "Internet access time point", and according to this time point, match the "allocation time" and "release time" in the offline record. Among them, the "allocation time" is the time point with an earlier update time, and the "release time" is the time point with a later update time. If the "Internet access time point" is between the two and the IP addresses of the offline records corresponding to the "allocation time" and the "release time" are the same, it means that the traceability request successfully matches this offline record.

[0097] For the sake of easy understanding, here the technical solution of the present application is comprehensively compared and described with the implementation mode of the existing network address translation service in the overall process.

[0098] Figure 3 The step flowchart of the implementation mode of the existing network address translation service is shown. As Figure 3 shown, in the existing mode, offline records are only generated in response to the billing end message, and during the traceability process, it is necessary to traverse all the offline records between the current time and the time information included in the traceability request to obtain an accurate traceability result.

[0099] Figure 4 The application flowchart of an embodiment of the present application is shown, including step S401 to step S404.

[0100] Step S401, receive and parse the message sent by the terminal.

[0101] Step S402, determine the message type of the message, so as to perform information processing on the traceability database, that is, the preset online database and the preset offline database, according to the message type.

[0102] Step S403, determine whether the preset online database already has online information and user data information, and perform corresponding information processing operations according to the judgment result. It can be understood that steps S401 to S403 are basically the same as the implementation mode of the existing network address translation service.

[0103] Step S404: When the message type is an online message, if user data information is detected in the preset online database, the anti-hanging mechanism is triggered to delete the old online information and user data information, write the new online information and user data information according to the current online message, and supplement and generate an offline record and an end packet identifier and store them in the preset offline database. When the message type is an intermediate message, regardless of whether user data information is detected in the preset online database, an offline record and an intermediate packet identifier are generated and stored in the preset offline database for subsequent traceability. When the message type is an offline message, an offline record and an end packet identifier are generated and stored in the preset offline database.

[0104] It can be seen that in step S404 of this embodiment, corresponding offline records are generated in response to intermediate messages and offline messages and stored in the preset offline database. Since the intermediate messages are sent at fixed time intervals during the terminal's online period, the difficulty and time required for traceability can be greatly reduced during the traceability process, which is the main difference from the existing mode.

[0105] The following introduces the apparatus embodiment of the present application, which can be used to execute the network traceability method in the above embodiments of the present application. Figure 5 Schematically shows the structural block diagram of the network traceability apparatus provided by the embodiment of the present application. As Figure 5 shown, the network traceability apparatus 500 includes:

[0106] A record generation module 510, configured to generate an offline record corresponding to the terminal according to the message sent by the terminal, where the message type of the message includes an online message sent when the terminal goes online, an intermediate message sent when the terminal is online, and an offline message sent when the terminal goes offline;

[0107] A record storage module 520, configured to store the offline record in a preset offline database;

[0108] A record query module 530, configured to query, in response to a traceability request, a target offline record corresponding to the time information included in the traceability request in the preset offline database;

[0109] An information extraction module 540, configured to extract user data information corresponding to the target offline record as a traceability result.

[0110] In an embodiment of the present application, based on the above embodiments, the record storage module includes:

[0111] An identifier generation unit, configured to generate a data packet identifier corresponding to the message type of the message, where the data packet identifier includes an intermediate packet identifier corresponding to the intermediate message and an end packet identifier corresponding to the offline message;

[0112] An association unit, configured to associate the data packet identifier with the offline record;

[0113] A storage unit, configured to store the associated data packet identifier and offline record in the preset offline database.

[0114] In an embodiment of the present application, based on the above embodiment, the record generation module includes:

[0115] An information detection unit, configured to detect whether there is user data information corresponding to the message in the preset online database in response to the message sent by the terminal;

[0116] A first record generation unit, configured to generate an offline record corresponding to the terminal according to the message if there is no user data information corresponding to the message in the preset online database.

[0117] In an embodiment of the present application, based on the above embodiment, the record generation module further includes:

[0118] A second record generation unit, configured to delete the first user data information if there is first user data information corresponding to the message in the preset online database, and generate second user data information corresponding to the terminal in the online database according to the message; and generate an offline record corresponding to the first user data information.

[0119] In an embodiment of the present application, based on the above embodiment, the record generation module further includes:

[0120] A third record generation unit, configured to extract the third user data information if there is third user data information corresponding to the message in the preset online database, so that the third user data information has a corresponding relationship with the offline record generated according to the message.

[0121] In an embodiment of the present application, based on the above embodiment, the first record generation unit includes:

[0122] A first record generation subunit, configured to generate fifth user data information corresponding to the terminal in the online database according to the message and generate an offline record corresponding to the fifth user data information if there is no fourth user data information corresponding to the message in the preset online database.

[0123] In an embodiment of the present application, based on the above embodiment, the record query module includes:

[0124] A record query unit, configured to query two traceability offline records adjacent to the time information included in the traceability request before and after in the preset offline database respectively; and, if the user data information corresponding to the two traceability offline records is the same, determine the two traceability offline records as target offline records.

[0125] Figure 6 Schematically shows a computer system block diagram of an electronic device for implementing the embodiments of the present application.

[0126] It should be noted that Figure 6 The computer system 600 of the shown electronic device is only an example and should not bring any limitations to the functions and usage scope of the embodiments of the present application.

[0127] As Figure 6 shown, the computer system 600 includes a central processing unit 601 (Central Processing Unit, CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 602 (Read-Only Memory, ROM) or the program loaded from the storage section 608 into the random access memory 603 (Random Access Memory, RAM). In the random access memory 603, various programs and data required for system operation are also stored. The central processing unit 601, the read-only memory 602, and the random access memory 603 are connected to each other via a bus 604. The input / output interface 605 (Input / Output interface, i.e., I / O interface) is also connected to the bus 604.

[0128] The following components are connected to the input / output interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including, for example, a cathode ray tube (Cathode Ray Tube, CRT), a liquid crystal display (Liquid Crystal Display, LCD), etc. and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a local area network card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that the computer program read from it can be installed into the storage section 608 as needed.

[0129] In particular, according to an embodiment of the present application, the processes described in each method flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product that includes a computer program carried on a computer-readable medium, and the computer program includes program code for performing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication section 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit 601, various functions defined in the system of the present application are performed.

[0130] It should be noted that the computer-readable medium shown in the embodiments of the present application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer-readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, apparatus, or device. In the present application, the computer-readable signal medium can include a data signal propagated in a baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium can also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable medium can send, propagate, or transmit a program for use by or in combination with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0131] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, as well as combinations of blocks in the block diagram or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0132] It should be noted that although several modules or units of devices for action execution are mentioned in the above detailed description, such a division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more of the above-mentioned modules or units can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0133] From the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described herein can be implemented by software, or can be implemented by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a portable hard drive, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the methods according to the embodiments of the present application.

[0134] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include well-known common general knowledge or conventional technical means in the technical field not disclosed in the present application.

[0135] It should be understood that the present application is not limited to the exact structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the present application is only limited by the appended claims.

Claims

1. A network traceability method, characterized in that, The network traceability method includes: Generating an offline record corresponding to the terminal according to the message sent by the terminal, where the message types of the message include the online message sent when the terminal goes online, the intermediate message sent when the terminal is online, and the offline message sent when the terminal goes offline. Among them, the offline record generated according to the intermediate message can continuously and regularly record the user data information corresponding to the terminal; Storing the offline record in a preset offline database; In response to a traceability request, querying the target offline record corresponding to the time information included in the traceability request in the preset offline database; Extracting the user data information corresponding to the target offline record as the traceability result.

2. The network traceability method according to claim 1, wherein Storing the offline record in a preset offline database includes: Generating a data packet identifier corresponding to the message type of the message, where the data packet identifier includes an intermediate packet identifier corresponding to the intermediate message and an end packet identifier corresponding to the offline message; Associating the data packet identifier with the offline record; Storing the associated data packet identifier and offline record in the preset offline database.

3. The network traceability method according to claim 1, wherein Generating an offline record corresponding to the terminal according to the message sent by the terminal includes: In response to the message sent by the terminal, detecting whether there is user data information corresponding to the message in a preset online database; If there is no user data information corresponding to the message in the preset online database, generating an offline record corresponding to the terminal according to the message.

4. The network traceability method according to claim 3, wherein, When the message type of the message is the online message, after detecting whether there is user data information corresponding to the message in the preset online database in response to the message sent by the terminal, the network traceability method further includes: If there is first user data information corresponding to the message in the preset online database, deleting the first user data information and generating second user data information corresponding to the terminal in the online database according to the message; Generating an offline record corresponding to the first user data information.

5. The network traceability method according to claim 3, wherein When the message type of the message is the intermediate message or the offline message, after detecting whether there is user data information corresponding to the message in the preset online database in response to the message sent by the terminal, the network traceability method further includes: If there is third user data information corresponding to the message in the preset online database, extracting the third user data information so that the third user data information has a corresponding relationship with the offline record generated according to the message.

6. The network traceability method according to claim 3, wherein When the message type of the message is the intermediate message, if there is no user data information corresponding to the message in the preset online database, generating an offline record corresponding to the terminal according to the message includes: If there is no fourth user data information corresponding to the message in the preset online database, generating fifth user data information corresponding to the terminal in the online database according to the message and generating an offline record corresponding to the fifth user data information.

7. The network traceability method according to claim 1, wherein Query the target offline record corresponding to the time information included in the traceability request in the preset offline database, including: Query two traceability offline records adjacent to the time information included in the traceability request before and after respectively in the preset offline database; If the user data information corresponding to the two traceability offline records is the same, determine the two traceability offline records as the target offline record.

8. A network traceability device, characterized in that, The network traceability device includes: A record generation module configured to generate an offline record corresponding to the terminal according to a message sent by the terminal, where the message type of the message includes an online message sent when the terminal goes online, an intermediate message sent when the terminal is online, and an offline message sent when the terminal goes offline. Among them, the offline record generated according to the intermediate message can continuously and regularly record the user data information corresponding to the terminal; A record storage module configured to store the offline record in a preset offline database; A record query module configured to, in response to a traceability request, query the target offline record corresponding to the time information included in the traceability request in the preset offline database; An information extraction module configured to extract the user data information corresponding to the target offline record as the traceability result.

9. An electronic device, characterized in that, The electronic device includes: a memory, a processor, and a network traceability program stored on the memory and executable on the processor. When the network traceability program is executed by the processor, it implements the network traceability method according to any one of claims 1 to 7.

10. A storage medium, characterized in that, A computer program is stored on the storage medium. When the computer program is executed by the processor, it implements the network traceability method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and system for traceability of user identity in broadband network and traceability device

    CN108234139A

  • Statistical method for online state consistency

    CN114189551A