Jump to content

Packet analyzer

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 193.84.90.3 (talk) at 10:19, 27 November 2007 (External links). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A packet sniffer (also known as a network analyzer or protocol analyzer or, for particular types of networks, an Ethernet sniffer or wireless sniffer) is computer software or computer hardware that can intercept and log traffic passing over a digital network or part of a network. As data streams flow across the network, the sniffer captures each packet and eventually decodes and analyzes its content according to the appropriate RFC or other specifications.

Capabilities

On wired broadcast LANs, depending on the network structure (hub or switch), one can capture traffic on all or just parts of the traffic from a single machine within the network; however, there are some methods to avoid traffic narrowing by switches to gain access to traffic from other systems on the network (e.g. ARP spoofing). For network monitoring purposes it may also be desirable to monitor all data packets in a LAN by using a network switch with a so-called monitoring port, whose purpose is to mirror all packets passing through all ports of the switch. When systems (computers) are connected to a switch port rather than a hub the analyzer will be unable to read the data due to the intrinsic nature of switched networks. In this case a shadow port must be created in order for the sniffer to capture the data.

On wireless LANs, one can capture traffic on a particular channel.

On wired broadcast and wireless LANs, in order to capture traffic other than unicast traffic sent to the machine running the sniffer software, multicast traffic sent to a multicast group to which that machine is listening, and broadcast traffic, the network adapter being used to capture the traffic must be put into promiscuous mode; some sniffers support this, others don't. On wireless LANs, even if the adapter is in promiscuous mode, packets not for the service set for which the adapter is configured will usually be ignored; in order to see those packets, the adapter must be put into monitor mode.

Uses

The versatility of packet sniffers means they can be used to:

  • Analyze network problems.
  • Detect network intrusion attempts.
  • Gain information for effecting a network intrusion.
  • Monitor network usage.
  • Gather and report network statistics.
  • Filter suspect content from network traffic.
  • Spy on other network users and collect sensitive information such as passwords (depending on any content encryption methods which may be in use)
  • Reverse engineer protocols used over the network.
  • Debug client/server communications.
  • Debug network protocol implementations.

Example uses

  • A packet sniffer for a token ring network could detect that the token has been lost or the presence of too many tokens (verifying the protocol).
  • A packet sniffer could detect that messages are being sent to a network adapter; if the network adapter did not report receiving the messages then this would localize the failure to the adapter.
  • A packet sniffer could detect excessive messages being sent by a port, detecting an error in the implementation.
  • A packet sniffer could collect statistics on the amount of traffic (number of messages) from a process detecting the need for more bandwidth or a better method.
  • A packet sniffer could be used to extract messages and reassemble into a complete form the traffic from a process, allowing it to be reverse engineered.
  • A packet sniffer could be used to diagnose operating system connectivity issues like web,ftp,sql,active directory,etc.
  • A packet sniffer could be used to analyse data sent to and from secure systems in order to understand and circumvent security measures, for the purposes of penetration testing or illegal activities.
  • A packet sniffer can passively capture data going between a web visitor and the web servers, decode it at the HTTP and HTML level and create web log files as a substitute for server logs and page tagging for web analytics.

See also