HP-UX IPQoS A.01.00 Administrator's Guide (October 2005)

Table Of Contents
HP-UX IPQoS Configuration File Examples
Example 1: Premium Services Class Web Server
Appendix B 119
Example 1: Premium Services Class Web Server
This example shows a configuration file that provides differentiated service for three traffic
classes:
http (port 80)
videosrv (assumes this exists in /etc/services on the local host)
all (other) IPv4 traffic
####
# Sample file of a three-policy HP-UX IPQoS configuration.
# One policy is for HTTP (port 80) traffic. It is assured 45% of bandwidth, and
# is allowed to send up to 100% of bandwidth.
# Another policy is for video traffic; it is also assured 45% of bandwidth and
# is allowed to send up to 100% of bandwidth.
# The third policy is for all other IPv4 traffic. It is assured only
# a small amount of bandwidth (50Kpbs) but is allowed to send up to 100Kbps.
# Note that the policy specified for all other IPv4 traffic provides more
# reserve bandwidth (50Kbps) than would have been provided by the implicit default
# policy (5Kbps), had it not been defined.
#
# The DSCP settings are arbitrary and are only shown to illustrate syntax.
#
filter webselect {
srcport http/tcp
priority 1
}
filter videoselect {
srcport videosrv/udp # assumes /etc/services has “videosrv/udp”)
priority 2
}
filter other_v4 {
netproto 0x800 # selects all IPv4 traffic
priority 99999 #low priority, because only for “other” IPv4 traffic
#if matches either of other filters, want the
#policy those are attached to, to be selected
}
policy premwebservice_p1 {
uses webselect
res 45%
max 100%
dscp 46
}