Scout Module API

Per-Slice Information

Per-Slice Information

More detailed traffic breakdowns for each slice can be found in /proc/scout/accounts/[slice id]. Each row in the table gives the counts for a particular socket type:

  • tcp: standard TCP sockets

  • udp: standard UDP sockets

  • raw_tcp: safe raw TCP sockets

  • raw_udp: safe raw UDP sockets

  • raw_icmp: safe raw ICMP sockets

  • misc: unclassified sockets

  • loopback: all loopback sockets for any protocol

Each column in the table lists counts for that socket type. Counts maintained are:

  • sent_pkts: packets sent by the slice

  • rcvd_pkts: packets received by the slice

  • drop_pkts: packets destined for the slice but discarded by the Scout module (currently only raw sockets)

  • sent_bytes: bytes sent by the slice

  • rcvd_bytes: bytes received by the slice

  • drop_bytes: byte count of packets discarded by the Scout module (currently only raw sockets)

  • opened_sock: number of sockets that the slice has opened

  • closed_sock: number of sockets that the slice has closed

For instance, in the sent_pkts column, the raw_udp row counts the packets sent by the slice on safe raw sockets bound to UDP ports, and the udp row counts the packets sent on standard UDP sockets. Together they reflect the total number of UDP packets sent by the slice. The misc socket type catches packets sent by the slice that do not fall into one of the other socket categories. Currently drop_pkts and drop_bytes are only used for safe raw sockets.