check_ping_QoS

License:

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place – Suite 330, Boston, MA 02111-1307, USA.

Versions:

Date: 19.09.2010

Version: 0.9b

First release

 

Description:

Usage: ./check_ping_QOS.sh -H <remote_host_IP> -t <TOS> -p <optional-the_packet_numbers> -w <warning_value_in_ms> -c <critical_value_in_ms>

If you do not set the number of packets the program will take the default option = 5 packets
This plugin is useful if you want to check the QoS rules provided by your ISP. It can be used for example to check the VoIP rules in your contract by tagging your packet to the specific type of service.

From the PING MAN:
tos Set Quality of Service -related bits in ICMP datagrams. tos can be either decimal or hex number. Traditionally (RFC1349), these have been interpreted as: 0 for reserved (currently being redefined as congestion control), 1-4 for Type of Service and 5-7 for Precedence.
Possible settings for Type of Service are: minimal cost: 0x02, reliability: 0x04, throughput: 0x08, low delay: 0x10. Multiple TOS bits should not be set simultaneously.
Possible settings for special Precedence range from priority (0x20) to net control (0xe0). You must be root (CAP_NET_ADMIN capability) to use Critical or higher precedence value.
You cannot set bit 0x01 (reserved) unless ECN has been enabled in the kernel. In RFC2474, these fields has been redefined as 8-bit Differentiated Services (DS), consisting of: bits 0-1 of separate data (ECN will be used, here), and bits 2-7 of Differentiated Services Codepoint (DSCP).


Download the plugin!
Please leave in the comments:

  • any feedback you might have
  • the bugs /or features that you find / you wish for
  • how did you used the script (so I could implement your checks in the future versions)!

Mihai out!

Leave a Reply