Network sniffer based on socket and method thereof

A technology of network sniffing and sockets, which is applied in the field of network sniffers, can solve problems such as complex requests, and achieve the effect of small development workload, low cost, and rich data collection

Inactive Publication Date: 2016-01-13
YANCHENG INST OF TECH
View PDF4 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] The requests processed by connection servers are often more complex, which cannot be solved by one-off request responses, and are often concurrent servers

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Network sniffer based on socket and method thereof
  • Network sniffer based on socket and method thereof
  • Network sniffer based on socket and method thereof

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0053] Specific to the programming implementation of the network sniffer, the setting of the promiscuous mode of the network card is realized through the raw socket rawsocket, which is also different from the commonly used data stream socket and datagram socket. After creating the original socket, you need to set the IP datagram header operation option through the setsockopt() function, and then bind the original socket to the local network card through the binding function bind() function. In order for the original socket to accept all data, it needs to be set through the function ioctlsocket(), and it can also be specified whether to process the IP header by itself.

[0054] At this point, sniffing of network data packets can actually be started, and the acquisition of data packets is still done through the receiving function recv() function like a stream socket or a datagram socket. However, unlike the other two sockets, the data packets captured by the original socket ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a network sniffer based on a socket. The network sniffer includes a data packet capture module, a data packet analysis module and a data packet display module; the data packet capture module is used for setting the socket and capturing a data packet; the data packet analysis module is used for analyzing a data packet header and a sub-protocol; the data packet display module includes a List output control and an Edit output control, the List output control displays a data packet header analysis result in an interface, and the Edit output control outputs a data packet content analysis result. The development workload is small, and the cost is low.

Description

technical field [0001] The invention relates to a network sniffer, in particular to a socket-based network sniffer and a method thereof. Background technique [0002] With the popularization of the Internet, more and more network applications and information resources are placed on the Internet. At the same time, the complexity of the Internet and the growth of cyber crimes have brought enormous pressure to the stability and security of the network. Network security and reliability are becoming increasingly important. Therefore, the demand for tool software capable of analyzing and diagnosing networks and testing network stability and security is becoming more and more urgent. As the basis of network management, system stability and network security, network sniffer has always played a vital role. On the one hand, attackers can use it to monitor data in the network to achieve the purpose of illegally obtaining information. On the other hand, network managers can also use ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/26H04L29/06
CPCH04L43/04H04L43/18H04L69/162
Inventor 周刚
Owner YANCHENG INST OF TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products