QoS: NBAR Configuration Guide, Cisco IOS Release 15M&T

http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/qos_nbar/configuration/15-mt/qos-nbar-15-mt-book.html




Protocol Discovery Functionality


NBAR determines which protocols and applications are currently running on your network. NBAR includes a feature called Protocol Discovery. Protocol Discovery provides an easy way of discovering the application protocols that are operating on an interface so that appropriate quality of service (QoS) features can be applied. With Protocol Discovery, you can discover any protocol traffic that is supported by NBAR and obtain statistics that are associated with that protocol.
Protocol Discovery maintains the following per-protocol statistics for enabled interfaces:
  • Total number of input packets and bytes
  • Total number of output packets and bytes
  • Input bit rates
  • Output bit rates
The statistics can then be used when you later define classes and traffic policies (sometimes known as policy maps) for each traffic class. The traffic policies (policy maps) are used to apply specific QoS features and functionality to the traffic classes.




Enabling Protocol Discovery on an Interface

The ip nbar protocol-discoverycommand is used to enable Protocol Discovery on an interface. With Cisco IOS Release 12.2(18)ZYA, intended for use on the Cisco 6500 series switch that is equipped with a Supervisor 32/PISA, the ip nbar protocol-discovery command is supported on both Layer 2 and Layer 3 Etherchannels.
To enable Protocol Discovery on an interface, perform the following steps.
SUMMARY STEPS
    1.    enable 
    2.    configure terminal 
    3.    interface type number [name-tag]
    4.    ip nbar protocol-discovery 
    5.    end 

DETAILED STEPS
    Command or ActionPurpose
    Step 1enable 


    Example:

    Router> enable
     
    Enables privileged EXEC mode.

    • Enter your password if prompted.
    Step 2configure terminal 


    Example:

    Router# configure terminal
     
    Enters global configuration mode.
    Step 3interface type number [name-tag]


    Example:

    Router(config)# interface ethernet 2/4 
     
    Configures an interface type and enters interface configuration mode.

    • Enter the interface type and the interface number.
    Step 4ip nbar protocol-discovery 


    Example:

    Router(config-if)# ip nbar protocol-discovery
     
    Configures NBAR to discover traffic for all protocols known to NBAR on a particular interface.
    Step 5end 


    Example:

    Router(config-if)# end
     
    (Optional) Exits interface configuration mode.

    Reporting Protocol Discovery Statistics

    To display a report of the Protocol Discovery statistics per interface, perform the following steps.
    SUMMARY STEPS
      1.    enable 
      2.    show policy-map interface type number 
      3.    show ip nbar protocol-discovery [interface type number] [stats {byte-count | bit-rate | packet-countmax-bit-rate}] [protocol protocol-name | top-nnumber
      4.    exit 

    DETAILED STEPS
      Command or ActionPurpose
      Step 1enable 


      Example:

      Router> enable
       
      Enables privileged EXEC mode.

      • Enter your password if prompted.
      Step 2show policy-map interface type number 


      Example:

      Router# show policy-map interface Fastethernet 6/0
       
      (Optional) Displays the packet and class statistics for all policy maps on the specified interface.

      • Enter the interface type and the interface number.
      Step 3show ip nbar protocol-discovery [interface type number] [stats {byte-count | bit-rate | packet-countmax-bit-rate}] [protocol protocol-name | top-n number


      Example:

      Router# show ip nbar protocol-discovery interface Fastethernet 6/0
       
      Displays the statistics gathered by the NBAR Protocol Discovery feature.

      • (Optional) Enter keywords and arguments to fine-tune the statistics displayed.
      Step 4exit 


      Example:

      Router# exit
       
      (Optional) Exits privileged EXEC mode.

      Visio tool for automation for creating drawings using CISCO CDP protocol.

      The Ultimate Network Scripting Tool
      Pretty Good Terminal is an Enterprise Network Device Scripting Tool designed to mass configure thousands of devices. Available for Windows platforms supporting the .NET 4 framework.

      It is a lightweight, scriptable, programmable and extensible .NET based network configuration utility designed to mass-configure networking devices, such as Cisco routers or switches and supports SSH / Telnet connections over multiple jump servers. PGT version 7.0.0 has also introduced NETCONF connection protocol.

      Supports Python scripting and script debugging for Visual Scripts and standard Python script files.

      http://www.prettygoodterminal.com/