Data processing method, device, electronic device and storage medium

By generating the unique identification and mapping relationship table of the terminal equipment, the problem of accurate control of the terminal equipment cannot be accurately controlled according to the random MAC address, and the control efficiency is improved.

CN116112464BActive Publication Date: 2025-01-28WUHAN GREENET INFORMATION SERVICE
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310030450.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-10
Publication Date
2025-01-28
Estimated Expiration
2043-01-10

AI Technical Summary

Technical Problem

Random MAC technology causes gateway devices to be unable to accurately control terminal devices based on random MAC addresses, affecting business development and control efficiency.

Method used

By obtaining the target message generated by the terminal device to access the target application, the characteristics of the target are extracted, the unique identity corresponding to the terminal device is generated, and the unique logo and the target characteristics are associated to obtain the mapping relationship table for identifying the terminal equipment.

Benefits of technology

Realizing the characteristics generated by the application of the gateway device based on the mapping relationship table and the current terminal equipment, identify and accurately control the terminal equipment, and improve the control efficiency of the gateway equipment to the terminal equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116112464B_ABST
    Figure CN116112464B_ABST
Patent Text Reader

Abstract

The present invention discloses a data processing method, device, electronic device and storage medium, the method comprising obtaining a target message generated when a terminal device accesses a target application, extracting a target feature from the target message, generating a unique identifier corresponding to the terminal device according to the target feature, and associating the unique identifier with the target feature to obtain a mapping relationship table for identifying the terminal device. By adopting the embodiment of the present invention, a mapping relationship table constructed by a unique identifier can be generated for the terminal device, so that the gateway device can identify the terminal device according to the mapping relationship table and the features generated by the application currently accessed by the terminal device, solving the technical problem that the gateway device cannot accurately control the terminal device according to the random MAC address, and improving the control efficiency of the gateway device over the terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data processing method, device, electronic equipment and storage medium. Background Art

[0002] Existing gateway devices, such as optical modems, routers and other devices, usually use MAC (Media Access Control, Media Access Control / Physical Address) address to identify an independently accessed terminal device, so as to perform precise push, control and other operations on the terminal device according to the specific MAC address, such as setting speed limit for the terminal device, or placing advertisements on the terminal device.

[0003] With the rapid development of network technology, the security of terminal devices has become more important. In order to ensure the security and privacy of terminal devices and prevent them from being exploited by criminals, major platform systems provide random MAC technology: after the terminal device accesses the network, it can choose to use a random MAC address to access the gateway device, so that it can access the network normally without exposing the real MAC address.

[0004] However, random MAC technology has the following defects: if the terminal device uses a different MAC address each time it accesses the network, the gateway device will issue a new configuration for each different MAC address, which will cause certain problems for the development of the business. Summary of the invention

[0005] The purpose of the embodiments of the present invention is to provide a data processing method, device, electronic device and storage medium to solve the technical problems existing in the above-mentioned random MAC technology.

[0006] In a first aspect, to achieve the above-mentioned purpose, an embodiment of the present invention provides a data processing method, including:

[0007] Obtain the target message generated when the terminal device accesses the target application;

[0008] Extracting target features from the target message;

[0009] Generating a unique identifier corresponding to the terminal device according to the target feature;

[0010] The unique identifier is associated with the target feature to obtain a mapping relationship table for identifying the terminal device.

[0011] Furthermore, the step of obtaining a target message generated when the terminal device accesses a target application includes:

[0012] Obtain several messages generated when the terminal device accesses the target application;

[0013] The message type corresponding to each of the messages is detected to obtain a target message belonging to a target message type.

[0014] Further, extracting the target feature from the target message includes:

[0015] Extracting relevant message information related to the terminal device from the target message;

[0016] Target message information is determined from the relevant message information, and the target message information is used as a target feature. The target message information is message information generated by the target application performing identification processing on the terminal device.

[0017] Further, generating a unique identifier corresponding to the terminal device according to the target feature includes:

[0018] A unique identifier is randomly generated as the identification identifier of the terminal device.

[0019] Further, generating a unique identifier corresponding to the terminal device according to the target feature includes:

[0020] Extracting the target features to obtain corresponding target feature information;

[0021] A corresponding unique identifier is generated according to the target feature information, and the unique identifier is used as an identification identifier of the terminal device.

[0022] Further, the target application includes a plurality of applications, one application corresponds to one target message, and one target message corresponds to one target feature;

[0023] The step of extracting the target feature to obtain corresponding target feature information includes:

[0024] Extracting features from each of the target features to obtain multiple feature information;

[0025] A weighted sum process is performed on the plurality of feature information to obtain corresponding target feature information.

[0026] Furthermore, the data processing method further includes:

[0027] When detecting that the terminal device accesses an application, obtaining an application feature corresponding to a message generated by the accessed application, the application feature belonging to the target feature;

[0028] If the mapping relationship between the application feature and the unique identifier does not exist in the mapping relationship table, the application feature and the unique identifier are associated with each other, and the mapping relationship table is updated.

[0029] In a second aspect, in order to solve the same technical problem, an embodiment of the present invention provides a data processing device, including:

[0030] An acquisition module, used to acquire a target message generated when a terminal device accesses a target application;

[0031] An extraction module, used to extract target features from the target message;

[0032] A generating module, used to generate a unique identifier corresponding to the terminal device according to the target feature;

[0033] An association module is used to associate the unique identifier with the target feature to obtain a mapping relationship table for identifying the terminal device.

[0034] In a third aspect, in order to solve the same technical problem, an embodiment of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the memory is coupled to the processor, and when the processor executes the computer program, the steps in any one of the above-mentioned data processing methods are implemented.

[0035] In a fourth aspect, in order to solve the same technical problem, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to perform the steps in any one of the above-mentioned data processing methods.

[0036] The embodiment of the present invention provides a data processing method, device, electronic device and storage medium. The method obtains the target message generated when the terminal device accesses the target application, extracts the target feature from the target message, and then generates a unique identifier corresponding to the terminal device according to the target feature, and associates the unique identifier with the target feature to obtain a mapping relationship table for identifying the terminal device. By adopting the embodiment of the present invention, a mapping relationship table constructed by a unique identifier can be generated for the terminal device, so that the gateway device can identify the terminal device according to the mapping relationship table and the features generated by the application currently accessed by the terminal device, which solves the technical problem that the gateway device cannot accurately control the terminal device according to the random MAC address, and improves the control efficiency of the gateway device over the terminal device. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 It is a flow chart of a data processing method provided by an embodiment of the present invention;

[0038] Figure 2is another flow chart of a data processing method provided by an embodiment of the present invention;

[0039] Figure 3 This is a schematic diagram of a process for generating a unique identifier of a terminal device provided by an embodiment of the present invention;

[0040] Figure 4 is a structural schematic diagram of a data processing device provided by an embodiment of the present invention;

[0041] Figure 5 is another structural schematic diagram of a data processing device provided by an embodiment of the present invention;

[0042] Figure 6 is a structural schematic diagram of an electronic device provided by an embodiment of the present invention;

[0043] Figure 7 This is another structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0046] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0047] In the related art, if a terminal device uses a different MAC address each time it accesses the network, the gateway device will issue a new configuration for each different MAC address, which will cause certain troubles to the development of the business and affect the gateway device's precise control over the terminal device.

[0048] In order to solve the technical problems existing in the related art, the embodiment of the present invention provides a data processing method, which is mainly applied to a gateway device. For details, see Figure 1 , Figure 1 is a flow chart of a data processing method provided by an embodiment of the present invention, such as Figure 1 As shown, the data processing method provided by the embodiment of the present invention includes steps 101 to 104;

[0049] Step 101, obtaining a target message generated when a terminal device accesses a target application.

[0050] In this embodiment, the target application is the application accessed by the terminal device. The target message is a variety of messages generated by the terminal device when accessing the target application, such as messages about application interaction, messages about information transmission, and messages about generating traffic.

[0051] Among them, after many actual investigations and tests, it was determined that when a terminal device accesses an application, the application will generate unique flags for different terminal devices to identify different terminal devices, rather than identifying the terminal device according to the MAC address. When the terminal device accesses the application and generates and holds traffic, the application will carry the unique flag it generates, that is, the identification of the terminal device, in the traffic message. Based on this, the embodiment of the present invention can obtain the identification of the terminal device by the target application by obtaining multiple different messages generated when the terminal device accesses the target application, and then obtain the traffic message therefrom.

[0052] Step 102: extract target features from the target message.

[0053] In this embodiment, the target feature is a unique flag generated by an application for a terminal device. Therefore, this embodiment mainly extracts the unique flag generated by the target application for the terminal device from the traffic message.

[0054] Step 103: Generate a unique identifier corresponding to the terminal device according to the target feature.

[0055] In this embodiment, in order to ensure the uniqueness of the terminal device, this embodiment generates a corresponding unique identifier for the terminal device, so that the gateway device can accurately identify the corresponding terminal device based on the unique identifier, thereby effectively ensuring the configuration solidification and business development of the terminal device.

[0056] Specifically, the step of generating a unique identifier corresponding to the terminal device according to the target feature is specifically: randomly generating a unique identifier as the identification identifier of the terminal device. In this way, by randomly generating a unique identifier and using it as the identification identifier of the terminal device, the generation rate of the identification identifier of the terminal device can be increased.

[0057] The unique identifier may be an identifier composed of a digital object, an identifier composed of a symbolic object, or an identifier composed of a number and a symbol. As long as the identifier of the terminal device can be unique, no specific limitation is made here.

[0058] Step 104: associate the unique identifier with the target feature to obtain a mapping relationship table for identifying the terminal device.

[0059] In this embodiment, after obtaining the unique identification of the terminal device, it is also necessary to associate the unique application features carried in the traffic message generated by the application accessed by the terminal device with the unique identification. Among them, the unique application features carried in the traffic message are the target features. Therefore, after obtaining the unique identification of the terminal device, this embodiment establishes a mapping relationship between the target features and the unique identification, so as to obtain a mapping relationship table for identifying the terminal device, so that the gateway device can identify the terminal device according to the mapping relationship table and the features generated by the application accessed by the current terminal device, which solves the technical problem that the gateway device cannot accurately control the terminal device according to the random MAC address, and improves the control efficiency of the gateway device over the terminal device.

[0060] See also Figure 2 , Figure 2 is another flow chart of the data processing method provided by the embodiment of the present invention, such as Figure 2 As shown, the data processing method provided by the embodiment of the present invention includes steps 201 to 209;

[0061] Step 201, obtaining a number of messages generated when a terminal device accesses a target application.

[0062] In this embodiment, since the terminal device generates multiple messages when accessing the target application, this embodiment captures these messages so as to obtain the flow message from these messages later.

[0063] Step 202: Detect the message type corresponding to each of the messages to obtain a target message belonging to the target message type.

[0064] Among them, the message types provided in this embodiment include flow message types, application information message types, information transmission message types, etc., to which the types of messages generated by the terminal device when accessing the application belong. Specifically, this embodiment is mainly for obtaining flow messages, therefore, the target message type provided in this embodiment is the flow message type, and the target message is also the flow message.

[0065] After determining that the required message type is a flow message type, this embodiment detects the message type corresponding to each message to determine the message type to which each message belongs, and then obtains a target message belonging to the flow message type, namely, a flow message, from these messages.

[0066] Step 203: extract relevant message information related to the terminal device from the target message.

[0067] In this embodiment, after obtaining the required traffic packets, since the traffic packets contain a large amount of data, in order to improve the efficiency of obtaining the unique application characteristics carried in the traffic packets generated when the terminal device accesses the application, this embodiment first extracts the relevant message information related to the terminal device from the traffic packets, so that it is convenient to subsequently select the message information corresponding to the application characteristics from these relevant message information.

[0068] Step 204: determine target message information from the relevant message information, and use the target message information as a target feature.

[0069] The target message information is message information generated by the target application performing identification processing on the terminal device.

[0070] Specifically, since the traffic message generated when the terminal device accesses the application carries unique application characteristics, and the application characteristics exist in the traffic message in the form of message information, after obtaining the application characteristics existing in the traffic message in the form of message information, that is, after obtaining the target message information, this embodiment needs to first parse the target message information, and then use the application characteristics obtained after parsing as the target characteristics.

[0071] Step 205: extract the target features to obtain corresponding target feature information.

[0072] In this embodiment, the target application may be one application or multiple applications, and one application provided in this embodiment corresponds to one target message, and one target message corresponds to one target feature. Specifically, the above embodiment mainly describes the application scenario when the target application is one application, and the following embodiment will be described in detail with reference to the application scenario when the target application is multiple applications.

[0073] As an optional embodiment, the target application includes multiple applications, and the step of performing feature extraction on the target features to obtain corresponding target feature information is specifically: performing feature extraction on each of the target features to obtain multiple feature information; performing weighted summation processing on the multiple feature information to obtain corresponding target feature information.

[0074] Among them, since each application accessed by the terminal device will generate a traffic message, that is, each application accessed by the terminal device corresponds to an application feature (i.e., target feature), and the identification identifier required by the terminal device can only be unique, therefore, this embodiment can fuse all application features (target features), and then use the feature information represented by the fused features as the basis for generating the unique identifier of the terminal device.

[0075] Specifically, this embodiment mainly extracts features from each application feature (target feature) to obtain multiple feature information, and then performs weighted sum processing on the feature information to obtain the feature information corresponding to the fusion of all application features (target features).

[0076] Step 206: Generate a corresponding unique identifier according to the target feature information, and use the unique identifier as the identification identifier of the terminal device.

[0077] In this embodiment, after the target characteristic information is obtained, a corresponding unique identifier can be generated according to the target characteristic information, and the unique identifier can be used as the identification identifier of the terminal device. Specifically, in this embodiment, the information contained in the target characteristic information can be used as the unique identifier, or the information contained in the target characteristic information can be encrypted to generate the corresponding unique identifier. Specifically, the information contained in the target characteristic information can be numbers and / or symbols.

[0078] Step 207: associate the unique identifier with the target feature to obtain a mapping relationship table for identifying the terminal device.

[0079] In this embodiment, after generating the unique identifier corresponding to the terminal device, since the target application provided by this embodiment includes multiple applications, this embodiment needs to establish a mapping relationship between the application characteristics (target characteristics) corresponding to each application and the unique identifier of the terminal device, so as to obtain a mapping relationship table for identifying the terminal device, and then the gateway device can identify the terminal device according to the mapping relationship table and the target characteristics corresponding to the application accessed by the current terminal device, thereby solving the technical problem that the gateway device cannot accurately control the terminal device according to the random MAC address, and improving the control efficiency of the gateway device over the terminal device.

[0080] For details, see Figure 3 , Figure 3 is a schematic diagram of a process for generating a unique identifier of a terminal device provided by an embodiment of the present invention, such as Figure 3As shown, when a terminal device accesses an application, traffic will be generated, and the traffic generated carries unique application features generated by the application for the terminal device in the traffic message. Therefore, this embodiment captures the traffic message through an intermediate forwarding device, and forwards the traffic message to the gateway device through the intermediate forwarding device. When the gateway device receives the corresponding traffic message, the traffic message is identified by the application feature identification module in the gateway device to identify the unique application features carried in the traffic message. After the application feature is identified, the application feature is stored and then sent to the terminal unique identification module to generate a unique identification. After the terminal unique identification module completes the generation of the unique identification of the terminal device, it is necessary to establish a mapping relationship between the application features corresponding to the application accessed by the terminal device and the unique identification of the terminal device in turn, thereby generating a mapping relationship table for identifying the terminal device. After that, the traffic message is returned to the intermediate forwarding device by the original route so that the intermediate forwarding device can continue to perform subsequent work.

[0081] Step 208: When it is detected that the terminal device accesses an application, the corresponding application feature in the message generated by the accessed application is obtained.

[0082] Among them, the application feature belongs to the target feature.

[0083] Step 209: If the mapping relationship between the application feature and the unique identifier does not exist in the mapping relationship table, the application feature and the unique identifier are associated and the mapping relationship table is updated.

[0084] As an optional embodiment, the above embodiment mainly describes the specific process of generating the unique identification of the terminal device for the first time. When the gateway device has stored the unique identification of the terminal device and the corresponding mapping relationship table, and still detects that the terminal device accesses the application, the traffic message generated when the terminal device accesses the application is also obtained, and then the corresponding application characteristics are identified. At this time, it is necessary to first query whether the application feature has been stored. If it has not been stored, a new table entry is created to store the application feature, and the application feature is associated with the unique identification of the terminal device, and the mapping relationship table of the terminal device is updated at the same time. In this way, by associating the application features corresponding to all applications accessed by the terminal device with its unique identification, and updating the mapping relationship table of the terminal device in real time, the gateway device can improve the accuracy of determining the corresponding unique identification according to the application features in the traffic message and determining the terminal device according to the unique identification, thereby achieving the purpose of precise control of the terminal device.

[0085] In some embodiments, when an application feature corresponding to an application changes, the present embodiment may also update the changed application feature according to the established mapping relationship table, thereby improving the accuracy of the mapping relationship in the mapping relationship table.

[0086] By adopting the data processing method provided by the embodiment of the present invention, a corresponding unique identifier and mapping relationship table can be generated for the terminal device, and the unique identifier in the mapping relationship table has a one-to-many mapping relationship with the application characteristics of multiple applications, so that even if a certain application characteristic changes, the unique identifier of the terminal device can be determined through other application characteristics and mapping relationship tables. In this way, the terminal device can still use a random MAC address to access the network, so that the real MAC address of the terminal device will not be leaked during the network transmission process, and the privacy and Internet security of the terminal device can be effectively protected; and the same terminal device can use unused MAC addresses to go online multiple times, and the terminal device can also be uniquely identified according to the application characteristics generated when it accesses the application, so that the administrator can accurately limit the speed, blacklist, and offline operations on the terminal device, which also facilitates the gateway device to provide more and efficient value-added services to terminal users, and provides effective guarantees for the development of highly customized services.

[0087] In summary, the embodiment of the present invention provides a data processing method, including obtaining a target message generated when a terminal device accesses a target application, extracting a target feature from the target message, generating a unique identifier corresponding to the terminal device according to the target feature, and associating the unique identifier with the target feature to obtain a mapping relationship table for identifying the terminal device. By adopting the embodiment of the present invention, a mapping relationship table constructed by a unique identifier can be generated for the terminal device, so that the gateway device can identify the terminal device according to the mapping relationship table and the features generated by the application currently accessed by the terminal device, solving the technical problem that the gateway device cannot accurately control the terminal device according to the random MAC address, and improving the control efficiency of the gateway device over the terminal device.

[0088] According to the method described in the above embodiments, this embodiment will be further described from the perspective of a data processing device. The data processing device can be implemented as an independent entity or integrated into an electronic device, such as a terminal. The terminal can include a mobile phone, a tablet computer, etc.

[0089] In order to solve the same technical problem as that solved by the above method embodiment, the embodiment of the present invention provides a data processing device. For details, see Figure 4 , Figure 4 is a structural diagram of a data processing device provided by an embodiment of the present invention, such as Figure 4As shown, the data processing device 400 provided in this embodiment of the present invention includes:

[0090] The acquisition module 401 is used to acquire the target message generated when the terminal device accesses the target application.

[0091] In this embodiment, the acquisition module 401 is specifically used to: acquire a number of messages generated when the terminal device accesses the target application; and detect the message type corresponding to each of the messages to acquire a target message belonging to the target message type.

[0092] The extraction module 402 is used to extract target features from the target message.

[0093] In this embodiment, the extraction module 402 is specifically used to: extract relevant message information related to the terminal device from the target message; determine the target message information from the relevant message information, and use the target message information as the target feature, wherein the target message information is the message information generated by the target application when identifying the terminal device.

[0094] The generating module 403 is used to generate a unique identifier corresponding to the terminal device according to the target feature.

[0095] In one implementation, the generating module 403 is specifically configured to randomly generate a unique identifier as an identification identifier of the terminal device.

[0096] In another embodiment, the generation module 403 is further specifically used for: extracting the target feature to obtain corresponding target feature information; generating a corresponding unique identifier according to the target feature information, and using the unique identifier as an identification identifier of the terminal device.

[0097] In some embodiments, the target application includes multiple applications, one application corresponds to one target message, and one target message corresponds to one target feature. The generation module 403 is further used to: extract features from each target feature to obtain multiple feature information; perform weighted summation processing on multiple feature information to obtain corresponding target feature information.

[0098] The association module 404 is used to associate the unique identifier with the target feature to obtain a mapping relationship table for identifying the terminal device.

[0099] See also Figure 5 , Figure 5 is another structural diagram of a data processing device provided by an embodiment of the present invention, such as Figure 5 As shown, the data processing device 400 provided in this embodiment of the present invention further includes:

[0100] The detection module 405 is used to obtain the corresponding application features in the message generated by the accessed application when detecting that the terminal device accesses the application.

[0101] Among them, the application feature belongs to the target feature.

[0102] The updating module 406 is configured to associate the application feature with the unique identifier and update the mapping relationship table if the mapping relationship between the application feature and the unique identifier does not exist in the mapping relationship table.

[0103] During specific implementation, the above modules and / or units can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same or several entities. The specific implementation of the above modules and / or units can refer to the previous method embodiments. The specific beneficial effects that can be achieved can also refer to the beneficial effects in the previous method embodiments, which will not be repeated here.

[0104] Also, see Figure 6 , Figure 6 1 is a schematic diagram of a structure of an electronic device provided by an embodiment of the present invention, and the electronic device may be a mobile terminal such as a smart phone, a tablet computer, or the like. Figure 6 As shown, the electronic device 600 includes a processor 601 and a memory 602. The processor 601 is electrically connected to the memory 602.

[0105] The processor 601 is the control center of the electronic device 600. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device 600 and processes data by running or loading applications stored in the memory 602 and calling data stored in the memory 602, thereby monitoring the electronic device 600 as a whole.

[0106] In this embodiment, the processor 601 in the electronic device 600 loads instructions corresponding to the processes of one or more application programs into the memory 602 according to the following steps, and the processor 601 runs the application programs stored in the memory 602 to implement various functions:

[0107] Obtain the target message generated when the terminal device accesses the target application;

[0108] Extracting target features from the target message;

[0109] Generating a unique identifier corresponding to the terminal device according to the target feature;

[0110] The unique identifier is associated with the target feature to obtain a mapping relationship table for identifying the terminal device.

[0111] The electronic device 600 can implement the steps in any embodiment of the data processing method provided in the embodiments of the present invention, and therefore can achieve the beneficial effects that can be achieved by any data processing method provided in the embodiments of the present invention. Please refer to the previous embodiments for details and will not be repeated here.

[0112] See also Figure 7 , Figure 7 is another structural schematic diagram of an electronic device provided by an embodiment of the present invention, such as Figure 7 As shown, Figure 7 The electronic device 700 is a block diagram of a specific structure of an electronic device provided by an embodiment of the present invention, and the electronic device can be used to implement the data processing method provided in the above embodiment. The electronic device 700 can be a mobile terminal such as a smart phone or a laptop computer.

[0113] The RF circuit 710 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 710 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity module (SIM) cards, memories, etc. The RF circuit 710 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices through wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The above-mentioned wireless networks can use various communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Data GSM Environment (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (such as Institute of Electrical and Electronics Engineers standards IEEE 802.11a, IEEE 802.11b, IEEE802.11g and / or IEEE802.11n), Voice over Internet Protocol (VoIP), Worldwide Interoperability for Microwave Access (Wi-Max), other protocols for email, instant messaging and short messages, and any other suitable communication protocols, even those that have not yet been developed.

[0114] The memory 720 may be used to store software programs and modules, such as program instructions / modules corresponding to the data processing method in the above-mentioned embodiment. The processor 780 executes various functional applications and data processing by running the software programs and modules stored in the memory 720, that is, realizing the following functions:

[0115] Obtain the target message generated when the terminal device accesses the target application;

[0116] Extracting target features from the target message;

[0117] Generating a unique identifier corresponding to the terminal device according to the target feature;

[0118] The unique identifier is associated with the target feature to obtain a mapping relationship table for identifying the terminal device.

[0119] The memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 720 may further include a memory remotely arranged relative to the processor 780, and these remote memories may be connected to the electronic device 700 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0120] The input unit 730 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 730 may include a touch-sensitive surface 731 and other input devices 732. The touch-sensitive surface 731, also known as a touch display screen or touch pad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 731), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 731 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch-sensitive surface 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 731, the input unit 730 may further include other input devices 732. Specifically, the other input devices 732 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.

[0121] The display unit 740 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the electronic device 700, which can be composed of graphics, text, icons, videos and any combination thereof. The display unit 740 may include a display panel 741, and optionally, the display panel 741 may be configured in the form of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, the touch-sensitive surface 731 may cover the display panel 741, and when the touch-sensitive surface 731 detects a touch operation on or near it, it is transmitted to the processor 780 to determine the type of the touch event, and then the processor 780 provides corresponding visual output on the display panel 741 according to the type of the touch event. Although in the figure, the touch-sensitive surface 731 and the display panel 741 are implemented as two independent components to implement input and output functions, in some embodiments, the touch-sensitive surface 731 and the display panel 741 can be integrated to implement input and output functions.

[0122] The electronic device 700 may also include at least one sensor 750, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may generate an interrupt when the flip cover is closed or closed. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the electronic device 700, they will not be repeated here.

[0123] The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the electronic device 700. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, which is converted into a sound signal for output; on the other hand, the microphone 762 converts the collected sound signal into an electrical signal, which is received by the audio circuit 760 and converted into audio data, and then the audio data is output to the processor 780 for processing, and then sent to another terminal through the RF circuit 710, or the audio data is output to the memory 720 for further processing. The audio circuit 760 may also include an earplug jack to provide communication between an external headset and the electronic device 700.

[0124] The electronic device 700 can help the user receive requests, send information, etc. through the transmission module 770 (such as a Wi-Fi module), which provides the user with wireless broadband Internet access. Although the transmission module 770 is shown in the figure, it is understandable that it is not a necessary component of the electronic device 700 and can be omitted as needed without changing the essence of the invention.

[0125] The processor 780 is the control center of the electronic device 700. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 720, and calling data stored in the memory 720, it executes various functions of the electronic device 700 and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 780 may include one or more processing cores; in some embodiments, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the above-mentioned modem processor may not be integrated into the processor 780.

[0126] The electronic device 700 also includes a power supply 790 (such as a battery) for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 780 through a power management system, so that the power management system can manage charging, discharging, and power consumption management. The power supply 790 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0127] Although not shown, the electronic device 700 also includes a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit of the electronic device is a touch screen display, and the mobile terminal also includes a memory, and one or more programs, wherein one or more programs are stored in the memory, and are configured to be executed by one or more processors. One or more programs include instructions for performing the following operations:

[0128] Obtain the target message generated when the terminal device accesses the target application;

[0129] Extracting target features from the target message;

[0130] Generating a unique identifier corresponding to the terminal device according to the target feature;

[0131] The unique identifier is associated with the target feature to obtain a mapping relationship table for identifying the terminal device.

[0132] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined and implemented as the same or several entities. The specific implementation of the above modules can be found in the previous method embodiments, which will not be repeated here.

[0133] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present invention provides a storage medium, which stores a plurality of instructions, and the instructions can be loaded by a processor to execute the steps of any embodiment of the data processing method provided in the embodiment of the present invention.

[0134] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0135] Since the instructions stored in the storage medium can execute the steps in any embodiment of the data processing method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any data processing method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0136] The above is a detailed introduction to a data processing method, device, electronic device and storage medium provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and its core idea of ​​the present application. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application. Moreover, for those of ordinary skill in the art, without departing from the principles of the present invention, several improvements and modifications can be made, and these improvements and modifications are also regarded as the protection scope of the present invention.

Claims

1. A data processing method, characterized in that: The data processing method is applied to a gateway device, comprising: Acquire a target message generated when a terminal device accesses a target application, wherein the target message is a flow message, wherein the flow message is captured by an intermediate forwarding device, and the flow message is forwarded to the gateway device by the intermediate forwarding device, so that the gateway device acquires the flow message; Extracting an application feature from the target message, where the application feature is a unique flag generated by the target application for the terminal device, and one target message corresponds to one application feature; Generate a unique identifier corresponding to the terminal device according to the application characteristics; Associating the unique identifier with the application feature to obtain a mapping relationship table for identifying the terminal device, so that the gateway device can identify the terminal device according to the mapping relationship table and the feature generated by the application accessed by the terminal device; The traffic message is returned to the intermediate forwarding device via the original path, so that the intermediate forwarding device can perform subsequent work.

2. The data processing method according to claim 1, characterized in that: The obtaining of the target message generated when the terminal device accesses the target application includes: Obtain several messages generated when the terminal device accesses the target application; The message type corresponding to each of the messages is detected to obtain a target message belonging to a target message type.

3. The data processing method according to claim 1, characterized in that: The extracting the application feature from the target message includes: Extracting relevant message information related to the terminal device from the target message; The target message information is determined from the relevant message information, and the target message information is used as an application feature. The target message information is message information generated by the target application performing identification processing on the terminal device.

4. The data processing method according to claim 1, characterized in that: The generating, according to the application feature, a unique identifier corresponding to the terminal device includes: A unique identifier is randomly generated as the identification identifier of the terminal device.

5. The data processing method according to claim 1, characterized in that: The generating, according to the application feature, a unique identifier corresponding to the terminal device includes: Extracting the application features to obtain corresponding target feature information; A corresponding unique identifier is generated according to the target feature information, and the unique identifier is used as an identification identifier of the terminal device.

6. The data processing method according to claim 5, characterized in that: The target application includes a plurality of applications, and one application corresponds to one target message; The extracting the application features to obtain corresponding target feature information includes: Extracting features from each of the application features to obtain multiple feature information; A weighted sum process is performed on the plurality of feature information to obtain corresponding target feature information.

7. The data processing method according to claim 1, characterized in that: Also includes: When detecting that the terminal device accesses an application, obtaining application features corresponding to the message generated by the accessed application; If the mapping relationship between the application feature and the unique identifier does not exist in the mapping relationship table, the application feature and the unique identifier are associated with each other, and the mapping relationship table is updated.

8. A data processing device, characterized in that: Applied to gateway devices, including: An acquisition module, used to acquire a target message generated when a terminal device accesses a target application, wherein the target message is a flow message, wherein the flow message is captured by an intermediate forwarding device, and the flow message is forwarded to the gateway device by the intermediate forwarding device, so that the gateway device acquires the flow message; An extraction module, used to extract an application feature from the target message, wherein the application feature is a unique mark generated by the target application for the terminal device, and one target message corresponds to one application feature; A generating module, used to generate a unique identifier corresponding to the terminal device according to the application characteristics; an association module, configured to associate the unique identifier with the application feature to obtain a mapping relationship table for identifying the terminal device, so that the gateway device can identify the terminal device according to the mapping relationship table and the feature generated by the application accessed by the terminal device; The traffic message is returned to the intermediate forwarding device via the original path, so that the intermediate forwarding device can perform subsequent work.

9. An electronic device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein the memory is coupled to the processor, and when the processor executes the computer program, the steps in the data processing method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the steps in the data processing method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and apparatus for generating terminal identifying information

    CN105357204A

  • Equipment identifier providing method and device and risk control method and device

    CN109951435A