xref: /titanic_52/usr/src/man/man7ipp/flowacct.7ipp (revision 25c28e83beb90e7c80452a7c818c5e6f73a07dc8)
te
Copyright (c) 2004, Sun Microsystems Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
FLOWACCT 7IPP "Sep 29, 2004"
NAME
flowacct - Flow Accouting module
DESCRIPTION

The flow accounting module flowacct enables you to record flow details. You use flow details to gather statistics and/or for billing purposes. Accounting consists of recording flow details in a location you designate and in a format that you can retrieve at a later stage. IPQoS accounting relies on the exacct mechanism to store and retrieve flow information.

A flow is defined by the 5-tuple - saddr, sport, daddr, dport and protocol.

Typically, the accounting module is the last datapath element in a sequence of actions. Flow attributes include ToS/DS, user id, project id, creation time (time the flow was created), last seen (when pkts for the flow were last seen), action name (instance that recorded the flow information), nbytes and npackets. Attributes are split into groups entitled basic and extended. The basic group records only the nbytes, npackets and action name, while the extended group is a superset of the basic group and records all attributes. The attributes to be recorded, in addition to the accounting file that contains flow details, are selected using acctadm(1M). The flowacct module does not provide a mechanism to retrieve flow information from the accounting file nor to interpret the retrieved information.

STATISTICS

The flowacct module exports the following statistics available through kstat:

module: flowacct instance: <action id>
 name: Flowacct statistics class <action name>
 bytes_in_tbl <bytes in the flow table>
 epackets <packets in error>
 flows_in_tbl <flow records in the flow table>
 nbytes <number of bytes through this instance>
 npackets <number of packets>
 usedmem <memory, in bytes, used by the flow table>
FILES
/kernel/ipp/sparcv9/flowacct

64-bit module (SPARC only.)

SEE ALSO

ipqosconf(1M), acctadm(1M), libexacct3LIB, dlcosmk(7ipp), dscpmk(7ipp), ipqos(7ipp), ipgpc(7ipp), tokenmt(7ipp), tswtclmt(7ipp)