Data frame collection method and apparatus
A data frame and data frame type technology, applied in the field of data processing, can solve the problems of data frames not being sent out, missing data frames, and unable to capture data frames, etc., to achieve the effect of avoiding missing data frames
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0053] refer to figure 1 , which shows a flow chart of a method for collecting data frames in Embodiment 1 of the present invention, which may specifically include the following steps:
[0054] Step 101, acquiring a data frame sent or received by a terminal device;
[0055] It should be noted that the terminal device in the embodiment of the present invention may be a device capable of implementing the present invention, such as a mobile phone, a tablet computer, a set-top box, or a wireless router, which is not limited in the embodiment of the present invention.
[0056] In a specific implementation, the terminal device may be connected to other devices through data lines or wirelessly (such as Wi-Fi), and after the terminal device is connected to other devices, it may receive or send data frames with other devices.
[0057] In the embodiment of the present invention, the data frame can be obtained from various functions of the terminal device that manage the data frame, tha...
Embodiment 2
[0098] refer to image 3 , which shows a flow chart of a method for collecting data frames according to Embodiment 2 of the present invention, which may specifically include the following steps:
[0099] Step 201, acquiring a data frame at an interface where the terminal device sends or receives a data frame;
[0100] In the embodiment of the present invention, in order to ensure that the cached data frames are stored according to the actual order received or sent by the terminal device, the hook function can be placed at the initial interface where the terminal device normally receives and sends data frames, and at the same time, it can also obtain the Or send the current system time corresponding to the data frame.
[0101] Step 202, buffering the data frame into a preset data structure;
[0102] Step 203, saving the cached arrays in the preset type structure array to a preset circular queue in sequence;
[0103] In the embodiment of the present invention, the obtained da...
Embodiment 3
[0156] refer to Figure 5 , which shows a structural block diagram of a data frame acquisition device according to Embodiment 3 of the present invention, and the device may specifically include the following modules:
[0157] An acquisition module 301, configured to acquire a data frame sent or received by a terminal device;
[0158] In a preferred embodiment of the present invention, the acquiring module 301 may include the following submodules:
[0159] A data frame acquisition submodule, configured to acquire a data frame at an interface where the terminal device sends or receives a data frame;
[0160] In a preferred embodiment of the present invention, the device may also include the following modules:
[0161] The system time obtaining module is used to obtain the current system time.
[0162] A cache module 302, configured to cache the data frame into a preset data structure;
[0163] In a preferred embodiment of the present invention, the data frame may include a d...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 