A method and device for identifying data packets
An identification method and data packet technology, applied in the field of communication, can solve the problems of consumption, multi-processing resources, and low recognition rate of encrypted data packets
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] Such as figure 1 What is shown is a schematic diagram of the steps of a method for identifying a data packet in Embodiment 1 of the present invention. The method mainly includes the following steps:
[0047] Step 101: Receive a data packet.
[0048] The data packet received in this step 101 may be a P2P data packet or may not be a P2P data packet.
[0049] Step 102: Search for the specific identifier contained in the data packet from the preset Cache. If it can be found, go to step 103; if it cannot be found, go to step 104.
[0050] The specific identifier in this step 102 is the IP address and port number of the source node that sent the data packet, or the IP address and port number of the destination node that received the data packet, which can be obtained from the network layer data of the data packet (including the source node And the IP address of the destination node) and transport layer data (including the port number of the source node and destination node).
[0051] ...
Embodiment 2
[0084] The second embodiment is a data packet identification device that belongs to the same inventive concept as the first embodiment, such as figure 2 As shown, the device includes:
[0085] The receiving module 11 is used to receive data packets.
[0086] The searching module 12 is used to search for the specific identifier contained in the data packet from the preset Cache, and if it can be found, determine that the data packet is a data packet encapsulated using the P2P protocol, and according to the data packet in the Cache The specific identifier corresponds to the stored APP ID to determine the application that uses the P2P protocol to encapsulate the data packet; the specific identifier is the Internet Protocol IP address and port number of the source node that sends the data packet, or receives the data The IP address and port number of the destination node of the packet; wherein, the Cache contains: the IP address and port number of the node that transmits the data pack...
Embodiment 3
[0097] In order to enable those skilled in the art to better understand the foregoing solutions provided by the embodiments of the present invention, a specific embodiment is used for detailed description below. Among them, the Cache in the embodiment of the present invention is specifically a peer-cache table. The peer-cache table stores the IP address and port number of the P2P node that has been identified to send the P2P data packet, and the application identification APP of the specific P2P application. ID and timestamp. APPID corresponds to P2P applications. The solution of the embodiment of the present invention can set different APP IDs for different P2P applications. For example, the APP ID of the BT application can be set to 1 and the APP ID of the Thunder application is 2. , The APP ID of Baidu video application is 3, the APP ID of PPlive application is 4, the APP ID of skype application is 5, and the APP ID of emule application is 6.
[0098] The execution body of the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


