Your software release may not support all of the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to http://www.cisco.com/go/cfn. An account on Cisco.com is not required.
Information About
Application Visibility and Control
Application Visibility
and Control (AVC) classifies applications using deep packet inspection
techniques with the Network-Based Application Recognition
engine, and provides application-level visibility
and control into Wi-Fi networks. After the applications are recognized, the AVC
feature enables you to either drop or mark the data traffic.
Using AVC, we can
detect more than 1000 applications. AVC enables you to perform real-time
analysis and create policies to reduce network congestion, costly network link
usage, and infrastructure upgrades.
Restrictions for
Application Visibility and Control
Configuring
Application Visibility and Control (CLI)
To configure AVC,
follow these general steps:
Create a flow record by
specifying keys and non-key fields to the flow.
Create an optional flow
exporter by specifying the flow record as an option.
Create a flow monitor based
on the flow record and flow exporter.
Configure WLAN to apply
flow monitor in IPv4 input or output direction.
Creating a Flow
Record
By default,
wireless avc
basic (flow record) is available. When you click
Apply from the GUI, then the record is mapped to the
flow monitor.
Default flow record
cannot be edited or deleted. If you require a new flow record, you need to
create one and map it to the flow monitor from CLI.
SUMMARY STEPS
1.configureterminal
2.flowrecordflow_record_name
3.descriptionstring
4.matchipv4protocol
5.matchipv4sourceaddress
6.matchipv4destinationaddress
7.matchtransportsource-port
8.matchtransportdestination-port
9.matchflowdirection
10.matchapplicationname
11.matchwirelessssid
12.collectcounterbyteslong
13.collectcounterpacketslong
14.collectwirelessapmacaddress
15.collectwirelessclientmacaddress
16.end
DETAILED STEPS
Command or Action
Purpose
Step 1
configureterminal
Example:
Switch# configure terminal
Enters global configuration mode.
Step 2
flowrecordflow_record_name
Example:
Switch(config)# flow record record1Switch (config-flow-record)#
Enters flow
record configuration mode.
Step 3
descriptionstring
Example:
Switch(config-flow-record)# description IPv4flow
(Optional)
Describes the flow record as a maximum 63-character string.
Step 4
matchipv4protocol
Example:
Switch (config-flow-record)# match ipv4 protocol
Specifies a
match to the IPv4 protocol.
Step 5
matchipv4sourceaddress
Example:
Switch (config-flow-record)# match ipv4 source address
Specifies a
match to the IPv4 source address-based field.
Step 6
matchipv4destinationaddress
Example:
Switch (config-flow-record)# match ipv4 destination address
Specifies a
match to the IPv4 destination address-based field.
Step 7
matchtransportsource-port
Example:
Switch (config-flow-record)# match transport source-port
Specifies a
match to the transport layer source-port field.
Step 8
matchtransportdestination-port
Example:
Switch (config-flow-record)# match transport destination-port
Specifies a
match to the transport layer destination-port field.
Step 9
matchflowdirection
Example:
Switch (config-flow-record)# match flow direction
Specifies a
match to the direction the flow was monitored in.
Step 10
matchapplicationname
Example:
Switch (config-flow-record)# match application name
Specifies a
match to the application name.
Step 11
matchwirelessssid
Example:
Switch (config-flow-record)# match wireless ssid
Specifies a
match to the SSID name identifying the wireless network.
Step 12
collectcounterbyteslong
Example:
Switch (config-flow-record)# collect counter bytes long
Specifies to
collect counter fields total bytes.
Step 13
collectcounterpacketslong
Example:
Switch (config-flow-record)# collect counter bytes long
Specifies to
collect counter fields total packets.
Step 14
collectwirelessapmacaddress
Example:
Switch (config-flow-record)# collect wireless ap mac address
Specifies to
collect the BSSID with MAC addresses of the access points that the wireless
client is associated with.
Step 15
collectwirelessclientmacaddress
Example:
Switch (config-flow-record)# collect wireless client mac address
Specifies to
collect MAC address of the client on the wireless network.
Step 16
end
Example:
Switch(config)# end
Returns to privileged EXEC mode. Alternatively, you can also press Ctrl-Z to exit global configuration mode.
Creating a Flow
Exporter (Optional)
You can create a
flow export to define the export parameters for a flow. This is an optional
procedure for configuring flow parameters.
Specifies to
configure flow cache parameters. You can configure for a time period of 1 to
604800 seconds (optional).
Note
To achieve
optimal result for the AVC flow monitor, we recommend you to configure the
inactive cache timeout value to be greater than 90 seconds.
Step 7
end
Example:
Switch(config)# end
Returns to privileged EXEC mode. Alternatively, you can also press Ctrl-Z to exit global configuration mode.
Step 8
show flow
monitor
Example:
Switch # show flow monitor
Verifies your
configuration.
Configuring WLAN to
Apply Flow Monitor in IPV4 Input/Output Direction
SUMMARY STEPS
1.configureterminal
2.wlanwlan-id
3.ip flow monitormonitor-name{input | output}
4.end
DETAILED STEPS
Command or Action
Purpose
Step 1
configureterminal
Example:
Switch# configure terminal
Enters global configuration mode.
Step 2
wlanwlan-id
Example:
Switch (config) # wlan 1
Enters WLAN
configuration submode. For
wlan-id,
enter the WLAN ID. The range is 1 to 64.
Step 3
ip flow monitormonitor-name{input | output}
Example:
Switch (config-wlan) # ip flow monitor flow-monitor-1 input
Associates a
flow monitor to the WLAN for input or output packets.
Step 4
end
Example:
Switch(config)# end
Returns to privileged EXEC mode. Alternatively, you can also press Ctrl-Z to exit global configuration mode.
Configuring
Application Visibility and Control (GUI)
You can apply the
default flow record (wireless avc
basic) to the default flow monitor (wireless-avc-basic).
If you are using the
flow record and flow monitor you have created, then the record name and monitor
name should be same. This is specific only for configuring AVC from GUI and not
for the CLI configuration.
You can use the flow
monitor you have created either for upstream or downstream, or both, but ensure
that you use the same record name while mapping with the flow monitor.
Step 1
Choose
Configuration > Wireless > WLAN.
The
WLAN page appears.
Step 2
Click on
corresponding WLAN ID to open WLAN Edit page and click
AVC.
The
Application Visibility page appears.
Select the
Application Visibility Enabled check box to enable
AVC on a WLAN.
In the
Upstream Profile text box, enter the name of the AVC
profile.
In the
Downstream Profile text box, enter the name of the
AVC profile.
To enable AVC,
you need to enter the profile names for the upstream and downstream profiles.
The profile names are the flow monitor names. By default, the flow monitor
names (wireless-avc-basic) appear in the
Upstream Profile and
Downstream Profile text boxes. For the default flow
monitor, the default flow record (wireless avc basic)
will be taken. The default flow record is generated by the system and is
available.
You can change
the profile names for the upstream and downstream profiles but ensure that the
same flow records are available for the flow monitors.
The upstream and
downstream profiles can have different profile names but there should be flow
records available for the flow monitors.
Step 3
Click
Apply
to apply AVC on the WLAN.
Step 4
Uncheck the
Application Visibility Enabled check box on the
WLAN page.
AVC is disabled
on WLAN.
Step 5
Click
Apply.
Monitoring
Application Visibility and Control (CLI)
This section
describes the new commands for application visibility.
The following
commands can be used to monitor application visibility on the
switch and access points.
Table 1 Monitoring
Application Visibility Commands on the
switch
Command
Purpose
show avc clientclient-mactopnapplication[aggregate|upstream|downstream]
Displays
information about top "N" applications for the given client MAC.
show avc wlanssidtopnapplication[aggregate|upstream|downstream]
Displays
information about top "N" applications for the given SSID.
show wlanidwlan-id
Displays
information whether AVC is enabled or disabled on a particular WLAN.
Monitoring
Application Visibility and Control (GUI)
You can view AVC information on a WLAN in a single shot using a
AVC on WLAN pie chart on the
Home page of the
switch.
The pie chart displays the AVC data (Aggregate - Application Cumulative usage
%) of the first WLAN. In addition, the top 5 WLANs based on clients are
displayed first. Click on any one of the WLANs to view the corresponding pie
chart information. If AVC is not enabled on the first WLAN, then the
Home page does not display the AVC pie chart.
Step 1
Choose
Monitor > Controller > AVC > WLANs.
The
WLANs page appears.
Step 2
Click the
corresponding WLAN profile.
The
Application Statistics page appears.
From the
Top
Applications drop-down list, choose the number of top applications
you want to view and click
Apply. The valid range is between 5 to 30, in
multiples of 5.
On the
Aggregate, Upstream, and Downstream tabs, you can view the application
cumulative and last 90 seconds statistics and usage percent with the following
fields:
Click
Client
MAC Address and then click
AVC
Statistics tab.
The
Application Visibility page appears.
On the Aggregate, Upstream, and Downstream tabs, you can view
the application cumulative and last 90 seconds statistics and usage percent
with the following fields:
Application name
Packet count
Byte count
Average packet size
usage (%)
Examples:
Application Visibility and Control Configuration
This example shows
how to create a flow record, create a flow monitor, apply the flow record to
the flow monitor, and apply the flow monitor on a WLAN:
Switch# configure terminalSwitch(config)# flow record fr_v4Switch(config-flow-record)# match ipv4 protocolSwitch(config-flow-record)# match ipv4 source addressSwitch(config-flow-record)# match ipv4 destination addressSwitch(config-flow-record)# match transport destination-portSwitch(config-flow-record)# match flow directionSwitch(config-flow-record)# match application nameSwitch(config-flow-record)# match wireless ssidSwitch(config-flow-record)# collect counter bytes longSwitch(config-flow-record)# collect counter packets longSwitch(config-flow-record)# collect wireless ap mac addressSwitch(config-flow-record)# collect wireless client mac addressSwitch(config)#endSwitch# configure terminalSwitch# flow monitor fm_v4Switch(config-flow-monitor)# record fr_v4Switch(config-flow-monitor)# cache timeout active 1800Switch(config)#endSwitch(config)#wlan wlan1Switch(config-wlan)#ip flow monitor fm_v4 inputSwitch(config-wlan)#ip flow mon fm-v4 outputSwitch(config)#end
Additional References for Application Visibility and Control
The Cisco Support website provides extensive online resources,
including documentation and tools for troubleshooting and
resolving technical issues with Cisco products and technologies.
To receive security and technical information about your
products, you can subscribe to various services, such as the
Product Alert Tool (accessed from Field Notices), the Cisco
Technical Services Newsletter, and Really Simple Syndication
(RSS) Feeds.
Access to most tools on the Cisco Support website requires a
Cisco.com user ID and password.