IpTraf

From LQWiki
Jump to navigation Jump to search

IpTraf allows you to analyze your network traffic regarding package size, protocol (e.g. IP, TCP and UDP), port and network interface.

Start it

Start IpTraf with the command

iptraf

Screenshots

Analysis by protocol

This shows how iptraf details the packages displayed by protocol.

IPTraf

┌ Statistics for eth1 ──────────────────────────────────────────────────────────────────────────────┐
│                                                                                                   │
│               Total      Total    Incoming   Incoming    Outgoing   Outgoing                      │
│             Packets      Bytes     Packets      Bytes     Packets      Bytes                      │
│ Total:       414404    387289K      135158   10516386      279246    376773K                      │
│ IP:          414404    381487K      135158    8623974      279246    372863K                      │
│ TCP:         414145    381460K      135029    8606095      279116    372854K                      │
│ UDP:            259      27006         129      17879         130       9127                      │
│ ICMP:             0          0           0          0           0          0                      │
│ Other IP:         0          0           0          0           0          0                      │
│ Non-IP:           0          0           0          0           0          0                      │
│                                                                                                   │
│                                                                                                   │
│ Total rates:      16490.4 kbits/sec        Broadcast packets:            0                        │
│                    2190.0 packets/sec      Broadcast bytes:              0                        │
│                                                                                                   │
│ Incoming rates:     431.2 kbits/sec                                                               │
│                     709.0 packets/sec                                                             │
│                                            IP checksum errors:           0                        │
│ Outgoing rates:   16059.2 kbits/sec                                                               │
│                    1481.0 packets/sec                                                             │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
└ Elapsed time:   0:03 ─────────────────────────────────────────────────────────────────────────────┘
 X-exit

Analysis by package size

 IPTraf
┌ Packet Distribution by Size ──────────────────────────────────────────────────────────────────────┐
│                                                                                                   │
│ Packet size brackets for interface eth1                                                           │
│                                                                                                   │
│                                                                                                   │
│ Packet Size (bytes)      Count     Packet Size (bytes)     Count                                  │
│     1 to   75:           46398      751 to  825:             612                                  │
│    76 to  150:           13891      826 to  900:             530                                  │
│   151 to  225:             831      901 to  975:             585                                  │
│   226 to  300:             717      976 to 1050:             746                                  │
│   301 to  375:             563     1051 to 1125:             694                                  │
│   376 to  450:             535     1126 to 1200:             622                                  │
│   451 to  525:             749     1201 to 1275:             634                                  │
│   526 to  600:            2132     1276 to 1350:             650                                  │
│   601 to  675:             569     1351 to 1425:             709                                  │
│   676 to  750:             455     1426 to 1500+:          92661                                  │
│                                                                                                   │
│                                                                                                   │
│ Interface MTU is 1500 bytes, not counting the data-link header                                    │
│ Maximum packet size is the MTU plus the data-link header length                                   │
│ Packet size computations include data-link headers, if any                                        │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
│                                                                                                   │
└ Elapsed time:   0:01 ─────────────────────────────────────────────────────────────────────────────┘
 X-exit

WebSite

See also