systemadmin.es > Redes > Estadísticas por cada protocolo

Estadísticas por cada protocolo

Mediante netstat podemos obtener muchas estadísticas relacionadas con la red, incluso separadas por protocolo.

Podemos ver las estadísticas por cada protocolo ejecutando netstat -s

# netstat -s
Ip:
    149351739 total packets received
    389222 forwarded
    2 with unknown protocol
    0 incoming packets discarded
    148961609 incoming packets delivered
    191891280 requests sent out
    4463 outgoing packets dropped
    5 fragments dropped after timeout
    235 reassemblies required
    115 packets reassembled ok
    5 packet reassembles failed
    18 fragments failed
Icmp:
    224761 ICMP messages received
    84 input ICMP message failed.
    ICMP input histogram:
        destination unreachable: 216875
        timeout in transit: 277
        wrong parameters: 6
        source quenches: 73
        redirects: 135
        echo requests: 7390
        echo replies: 1
    234901 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
        destination unreachable: 227511
        echo replies: 7390
IcmpMsg:
        InType0: 1
        InType3: 216875
        InType4: 73
        InType5: 135
        InType8: 7390
        InType11: 277
        InType12: 6
        OutType0: 7390
        OutType3: 227511
Tcp:
    3160249 active connections openings
    7551482 passive connection openings
    25767 failed connection attempts
    225135 connection resets received
    26 connections established
    147876479 segments received
    187152561 segments send out
    2938972 segments retransmited
    1671 bad segments received.
    1485723 resets sent
Udp:
    631452 packets received
    227531 packets to unknown port received.
    2 packet receive errors
    1174984 packets sent

El caso de UDP puede ser especialmente interesante en servidores syslog, ya que si vemos demasiados “packet receive errors” puede ser que el servidor no sea capaz de procesar tantos paquetes, por lo que sea necesario repartir la carga con otro servidor.

Deja un comentario:

XHTML - Tags permitidos:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>