JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: IP Services     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information

Preface

Part I TCP/IP Administration

1.  Planning an IPv4 Addressing Scheme (Tasks)

2.  Planning an IPv6 Addressing Scheme (Overview)

3.  Planning an IPv6 Network (Tasks)

4.  Configuring TCP/IP Network Services and IPv4 Addressing (Tasks)

5.  Enabling IPv6 on a Network (Tasks)

6.  Administering a TCP/IP Network (Tasks)

7.  Configuring IP Tunnels

8.  Troubleshooting Network Problems (Tasks)

9.  TCP/IP and IPv4 in Depth (Reference)

10.  IPv6 in Depth (Reference)

Part II DHCP

11.  About DHCP (Overview)

12.  Planning for DHCP Service (Tasks)

13.  Configuring the DHCP Service (Tasks)

14.  Administering DHCP (Tasks)

15.  Configuring and Administering the DHCP Client

16.  Troubleshooting DHCP (Reference)

17.  DHCP Commands and Files (Reference)

Part III IP Security

18.  IP Security Architecture (Overview)

19.  Configuring IPsec (Tasks)

20.  IP Security Architecture (Reference)

21.  Internet Key Exchange (Overview)

22.  Configuring IKE (Tasks)

23.  Internet Key Exchange (Reference)

24.  IP Filter in Oracle Solaris (Overview)

25.   IP Filter (Tasks)

Part IV Networking Performance

26.  Integrated Load Balancer Overview

27.  Configuration of Integrated Load Balancer Tasks

28.  Virtual Router Redundancy Protocol (Overview)

29.  VRRP Configuration (Tasks)

30.  Implementing Congestion Control

Part V IP Quality of Service (IPQoS)

31.  Introducing IPQoS (Overview)

32.  Planning for an IPQoS-Enabled Network (Tasks)

33.  Creating the IPQoS Configuration File (Tasks)

34.  Starting and Maintaining IPQoS (Tasks)

35.  Using Flow Accounting and Statistics Gathering (Tasks)

Setting Up Flow Accounting (Task Map)

Recording Information About Traffic Flows

How to Create a File for Flow-Accounting Data

Gathering Statistical Information

36.  IPQoS in Detail (Reference)

Glossary

Index

Recording Information About Traffic Flows

You use the IPQoS flowacct module to collect information about traffic flows. For example, you can collect source and destination addresses, number of packets in a flow, and similar data. The process of accumulating and recording information about flows is called flow accounting.

The results of flow accounting on traffic of a particular class are recorded in a table of flow records. Each flow record consists of a series of attributes. These attributes contain data about traffic flows of a particular class over an interval of time. For a list of the flowacct attributes, refer to Table 36-4.

Flow accounting is particularly useful for billing clients as is defined in their service-level agreements (SLAs). You can also use flow accounting to obtain flow statistics for critical applications. This section contains tasks for using flowacct with the Oracle Solaris extended accounting facility to obtain data on traffic flows.

The following information is contained in sources outside this chapter:

How to Create a File for Flow-Accounting Data

Before you add a flowacct action to the IPQoS configuration file, you must create a file for flow records from the flowacct module. You use the acctadm command for this purpose. acctadm can record either basic attributes or extended attributes in the file. All flowacct attributes are listed in Table 36-4. For detailed information about acctadm, refer to the acctadm(1M) man page.

  1. Create a basic flow-accounting file.

    The following example shows how to create a basic flow-accounting file for the premium web server that is configured in Example 33-1.

    # /usr/sbin/acctadm -e basic -f /var/ipqos/goldweb/account.info flow
    acctadm -e

    Invokes acctadm with the -e option. The -e option enables the arguments that follow.

    basic

    States that only data for the eight basic flowacct attributes is to be recorded in the file.

    /var/ipqos/goldweb/account.info

    Specifies the fully qualified path name of the file to hold the flow records from flowacct.

    flow

    Instructs acctadm to enable flow accounting.

  2. View information about flow accounting on the IPQoS system by typing acctadm without arguments.

    acctadm generates the following output:

    Task accounting: inactive
           Task accounting file: none
         Tracked task resources: none
       Untracked task resources: extended
             Process accounting: inactive
        Process accounting file: none
      Tracked process resources: none
    Untracked process resources: extended,host,mstate
                Flow accounting: active
           Flow accounting file: /var/ipqos/goldweb/account.info
         Tracked flow resources: basic
       Untracked flow resources: dsfield,ctime,lseen,projid,uid

    All entries but the last four are for use with the Solaris Resource Manager feature. The next table explains the entries that are specific to IPQoS.


    Entry
    Description
    Flow accounting: active
    Indicates that flow accounting is turned on.
    Flow accounting file: /var/ipqos/goldweb/account.info
    Gives the name of the current flow-accounting file.
    Tracked flow resources: basic
    Indicates that only the basic flow attributes are tracked.
    Untracked flow resources: dsfield,ctime,lseen,projid,uid
    Lists the flowacct attributes that are not tracked in the file.
  3. (Optional) Add the extended attributes to the accounting file.
    # acctadm -e extended -f /var/ipqos/goldweb/account.info flow
  4. (Optional) Return to recording only the basic attributes in the accounting file.
    # acctadm -d extended -e basic -f /var/ipqos/goldweb/account.info

    The -d option disables extended accounting.

  5. View the contents of a flow-accounting file.

    Instructions for viewing the contents of a flow-accounting file are in Perl Interface to libexacct in System Administration Guide: Oracle Solaris Zones, Oracle Solaris 10 Containers, and Resource Management.

See Also