Solaris Bandwidth Manager 1.5 Administration Guide

Configuring Solaris Bandwidth Manager

To configure Solaris Bandwidth Manager you must create a group of classes that will be used to determine how network traffic is handled. Classes are defined in terms of the filters that are used to allocate traffic to a particular class, and filters are composed of a a number of elements. Therefore, you must create both the filter elements and the filters you require before you can create classes. All classes are assigned to a particular physical interface, so you must also define the interface(s) that you want to use in your configuration.

If you configure Solaris Bandwidth Manager using batool, the configuration is stored, by default, in the file /etc/opt/SUNWconn/ba/ba.conf. If you start Solaris Bandwidth Manager from batool and specify a different configuration file to be used, ba_config.location is updated automatically to contain the name of this configuration file. The name of the configuration file must be in the form *.conf.

When the Solaris Bandwidth Manager policy agent starts, it reads the file named in ba_config.location. If ba_config.location does not exist or cannot be read, the policy agent uses the ba.conf configuration file. If the configuration changes while the policy agent is running, it can be re-read by the policy agent (see "Dynamic Reconfiguration").

You can also load a configuration stored in a directory service, by specifying a URL. Use the Open URL option of the File menu, and enter the URL of the directory you want to use. Use the format ldap://host:port/distinguishedName. The distinguishedName parameter is the entry in the directory tree that holds the configuration information in a series of sub-entries and attributes.

There are two ways of modifying the values of configuration parameters using batool:

Viewing the Configuration Overview

The Overview window displays the definitions for the current configuration in a hierarchical format. The parameters and values for each definition are displayed in the adjacent rows and can be easily modified. The Overview window is displayed by default when batool is started. Otherwise, select Overview from the tab menu to display it.

The definitions are displayed as a hierarchy from left to right, in the following order:

Select a definition to display its parameters and values in the adjacent table.

Definitions that contain other definitions are displayed as folders.

In the table, the following interface parameters are displayed:

Bandwidth 

The total available bandwidth for the interface expressed in bits per second. 

Activation Mode 

The level of statistics logging expressed as stats, stats & tos, stats tos & scheduling or no.

Default Class 

Indicates the presence of a default class, expressed as Yes or No. 

IP Transparency 

Indicates the IP transparency mode, expressed as Yes or No. 

In the table, the following class parameters are displayed:

Bandwidth 

The bandwidth allocated to the class, expressed as a percentage. 

Priority 

The level of priority assigned to the class, expressed as a value between 1 and 7. 

TOS Mask 

The Type of Service, expressed as a value between 0 and 255. 

Flow events 

Indicates whether "flow added" events are generated when a new flow is detected in the class.  

Filters 

Click the filter cell to display the currently selected filters for the class. 

You can use the Edit menu or icon bar to create, delete, move, copy and modify these definitions.

Editing the Configuration

To display the Configuration window, click the Configuration tab. The Configuration window contains six definition windows. A tab appears for each one when you display the Configuration window. The definitions can be configured in any order but should be completed in sequence from left to right to avoid forward references to other definitions:

To display a definition window, click its tab.

Defining Interfaces

The Interface definition specifies an interface device name, its flow direction, and the bandwidth to be associated with it.

Figure 5-1 Interfaces Window

Graphic

The Interface List in the left hand column displays all the currently configured interface device names. To display configuration information for an interface, click its name. The relevant parameters and values are displayed in the interface panel.

The configurable parameters are:

You can also use the Interface window to disable Solaris Bandwidth Manager. Select No in the Active panel.

Defining URL Groups

The URL Group definition is a list of one or more URLs (Uniform Resource Locator). These are typically made use of in the URL block of the Filter definition. See "Filter Definition".

Figure 5-2 URL Group Window

Graphic

The URL Group list in the left hand column displays all the currently configured URL groups. To display configuration information for a particular URL group, click its name.

The configurable parameters are:

To add a definition to the URL group:

  1. Double-click the empty line below the last URL entry.

    The text editing mode starts, indicated by a cursor in the empty line.

  2. Type the URL you want to include in the URL group.

    Specify the URLs in the format protocol://username:password@host:port/path where:

    • username is the login of a user

    • password is the password corresponding to the user login

    • protocol is the transport protocol used. For example, http, ftp, nntp

    • host is the host machine. You can use an asterisk (*) as a wildcard to include a particular pattern, for example, *.sun.com

    • port is the port used. You can use an asterisk (*) to indicate any protocol. If no value is specified, 80 is used.

    • path is the path of the URL. You can use an asterisk (*) as a wildcard to include a particular pattern, for example, *.htm.

  3. Click Apply.

Configuring Host and Subnet Groups

A host or subnet group is a list of IP addresses (in dotted decimal format) or of host names that will be resolved by the systems host's database or networks table. A subnet group also contains a subnet mask.

Figure 5-3 Host and Subnet Group Window

Graphic

The Group List in the left hand column displays all the currently configured Host and Subnet groups. Configurable parameters are:

To add an address to a host or subnet group:

  1. From the Group List, select the group you want to add an address to.

    The addresses currently contained in the group are displayed in the adjacent address list panel.

  2. In the Address List panel, double-click in the empty line below the last address entry.

    The text editing mode starts, indicated by a cursor in the empty line.

  3. Type the address you want to include in the group.

    The address can be specified as a hostname or IP address.

  4. Click Apply.

    The address is added to the group.

Defining Services

A service definition provides a mapping between a service defined in application layer terms and the protocol and ports used. A number of services are pre-defined in the file /opt/SUNWconn/ba/lib/services.def. You do not need to carry out any configuration to use these services. "Configuration Examples" shows the pre-defined classes.

Figure 5-4 Services Window

Graphic

The Services Lists in the left hand column display all the currently configured services. The configurable parameters for user defined services are:

To add port information:

  1. From the Services List, select the service you want to add port information to.

    The service is highlighted. The ports currently used by the service are displayed in the TCP/UDP panel.

  2. In the TCP/ UDP panel, double-click in the empty line below the last address entry. Complete both the Local and Remote port columns.

    The text editing mode starts, indicated by a cursor in the empty line.

  3. Type the ports you want to include in the Service.

    Use an asterisk (*) to indicate any port.

  4. Click Apply.

    The port information is added to the service.

Defining Filters

The filter definition contains local and remote information and a service, and is used to determine the class of a packet. It can also contain URL information and a Type of Service value.

Figure 5-5 Filters Window

Graphic

The Filter List in the left hand column displays all the currently configured Filters. The configurable parameters are:

Defining Classes

A class definition contains the parameters for the class, including the filters that cause packets to be placed in this class.

Figure 5-6 Classes Window

Graphic

The classes are displayed as an expandable tree structure in the Class Tree, together with the interface name and the flow direction. Classes that contain other classes are displayed as folders.

The definitions are presented as a hierarchy, from left to right, in the following order:

The parameters and values for each class are displayed in the adjacent class panel.

New classes are added as a child or sibling of the currently selected class. Use the Edit menu to choose which. A new class is created with the temporary name new. To change this name, type a new name in the Class Name field and click Apply.

The configurable parameters for a class are: