hping wiki

Differences for page ICMP

Current version compared with version Mon Oct 11 09:06:35 GMT 2004

...
  These are used to convey information about another packet sent. Whenever a packet or a connection has problems on the IP layer (and sometimes even higher), these are reported using an ICMP error packet.
  
  
- Typical messages seen on the internet:
+ *Typical messages seen on the internet:*
  
- Time to live expired (mostly seen during traceroutes) - type 11 code 0
+ Time to live expired (mostly seen during traceroutes)   - type 11 code 0
  
- Fragmentation needed but don't fragment set - type 3 code 4 (see below)
+ Fragmentation needed but don't fragment set             - type 3 code 4 (see below)
  
  Port unreachable (UDP connection to non-listening port) - type 3 code 3
  
...
  ===Standalone ICMP packets===
  These are packets that are potentially unrelated to any other connection. They mean to perform an operation in and on themselves. These packets are usually defined in pairs, where one is the "request", and the other is the "response". 
  
- Typical messages seen on the internet
+ 
+ *Typical messages seen on the internet:*
+ 
  Echo request/reply (Ping) - type 8 (request) and type 0 (reply)
  
+ 
  Typically, the response message has a type that is one more than the request message. The noteable exception to this rule is the "echo request" message (aka "ping"), that is type 8, while the echo reply message is type 0.
  ===Common ICMP related connectivity problems===
  Tunneled connections, such as ADSL PPPoE or PPTP connections, typically lower the maximum transfer unit [MTU]. This means a packet needs to be fragmented in order to fit the narrower pipe of the tunneled connection. Many hosts employ an algorithm called "path MTU discovery", or [PMTU]. This algorithm relies heavilly on dropped packets being reported using the ICMP "Fragmentation needed but don't fragment set" message (type 3 code 4). Sadly, some over-eager firewall admins block all ICMP messages, type 3 code 4 included. This results in attempts to download large files/email to hang indefenitely, as big packets are repeatedly sent, repeatedly dropped, and the ICMP that reports this drop is dropped as well. Worse, this problem only happend with some sites, as the problem is really not on the user's end at all.
...

The following is the old page content