Friday, August 24, 2012

IP Precedence / DSCP / CoS relationships


A Table showing the relationship between IP Precedence and DSCP:
Per Hop Behaviour DSCP
DSCP (binary value) DSCP (decimal value) IP Precedence IP Precedence (binary)
Default (no qos) BE 000000 0 0 000







AF11 001010 10


AF12 001100 12 1 001

AF13 001110 14








AF21 010010 18


AF22 010100 20 2 010

AF23 010110 22

Assured Forwarding





AF31 011010 26


AF32 011100 28 3 011

AF33 011110 30








AF41 100010 34


AF42 100100 36 4 100

AF43 100110 38







Expedited Forwarding EF 101110 46 5 101

PHB DSCP (binary value) / Decimal CoS
Default (BE) 000000 0 0
Class Selector 1 (CS1) 001000 8 1
Class Selector 2 (CS2) 010000 16 2
Class Selector 3 (CS3) 011000 24 3
Class Selector 4 (CS4) 100000 32 4
Class Selector 5 (CS5) 101000 40 5
Class Selector 6 (CS6) 110000 48 6
Class Selector 7 (CS7) 111000 56 7

Sunday, August 5, 2012

Remember ... Priority-queue ...

Strict Priority Queue

A strict priority queue is always emptied first. So, as soon as there is a packet in the strict priority queue, the packet is forwarded. After each packet is forwarded from one of the WRR queues, the strict priority queue is checked and emptied if necessary.
A strict priority queue is specially designed for delay/jitter-sensitive traffic, such as voice. A strict priority queue can eventually cause starvation of the other queues. Packets that are placed in the three other WRR queues are never forwarded if a packet waits in the strict priority queue.

QOS DSCP and AF mechanisms

Well, just some quick notes about DSCP and AF PHB mechanisms before going further into study of 3750 switch QOS.


Background Theory

Differentiated Services (DiffServ) is a new model in which traffic is treated by intermediate systems with relative priorities based on the type of services (ToS) field. Defined in RFC 2474 leavingcisco.com and RFC 2475 leavingcisco.com, the DiffServ standard supersedes the original specification for defining packet priority described in RFC 791 leavingcisco.com. DiffServ increases the number of definable priority levels by reallocating bits of an IP packet for priority marking.
The DiffServ architecture defines the DiffServ (DS) field, which supersedes the ToS field in IPv4 to make per-hop behavior (PHB) decisions about packet classification and traffic conditioning functions, such as metering, marking, shaping, and policing.
The RFCs do not dictate the way to implement PHBs; this is the responsibility of the vendor. Cisco implements queuing techniques that can base their PHB on the IP precedence or DSCP value in the IP header of a packet. Based on DSCP or IP precedence, traffic can be put into a particular service class. Packets within a service class are treated the same way.

Conventions

For more information on document conventions, refer to Cisco Technical Tips Conventions.

Differentiated Services Code Point

The six most significant bits of the DiffServ field is called as the DSCP. The last two Currently Unused (CU) bits in the DiffServ field were not defined within the DiffServ field architecture; these are now used as Explicit Congestion Notification (ECN) bits. Routers at the edge of the network classify packets and mark them with either the IP Precedence or DSCP value in a Diffserv network. Other network devices in the core that support Diffserv use the DSCP value in the IP header to select a PHB behavior for the packet and provide the appropriate QoS treatment.
The diagrams in this section show a comparison between the ToS byte defined by RFC 791 leavingcisco.com and the DiffServ field.
ToS Byte
P2
P1
P0
T2
T1
T0
CU1
CU0

  • IP precedence—three bits (P2 to P0)
  • Delay, Throughput and Reliability—three bits (T2 to T0)
  • CU (Currently Unused)—two bits(CU1-CU0)
DiffServ Field
DS5
DS4
DS3
DS2
DS1
DS0
ECN
ECN

  • DSCP—six bits (DS5-DS0)
  • ECN—two bits
The standardized DiffServ field of the packet is marked with a value so that the packet receives a particular forwarding treatment or PHB, at each network node.
The default DSCP is 000 000. Class selector DSCPs are values that are backward compatible with IP precedence. When converting between IP precedence and DSCP, match the three most significant bits. In other words:
IP Prec 5 (101) maps to IP DSCP 101 000
ToS Byte
1
0
1
T2
T1
T0
CU2
CU0

DiffServ Field
1
0
1
0
0
0
ECN
ECN

The DiffServ standard utilizes the same precedence bits (the most significant bits—DS5, DS4 and DS3) for priority setting, but further clarifies the definitions, offering finer granularity through the use of the next three bits in the DSCP. DiffServ reorganizes and renames the precedence levels (still defined by the three most significant bits of the DSCP) into these categories (the levels are explained in greater detail in this document):
Precedence Level
Description
7
Stays the same (link layer and routing protocol keep alive)
6
Stays the same (used for IP routing protocols)
5
Express Forwarding (EF)
4
Class 4
3
Class 3
2
Class 2
1
Class 1
0
Best effort

With this system, a device prioritizes traffic by class first. Then it differentiates and prioritizes same-class traffic, taking the drop probability into account.
The DiffServ standard does not specify a precise definition of "low," "medium," and "high" drop probability. Not all devices recognize the DiffServ (DS2 and DS1) settings; and even when these settings are recognized, they do not necessarily trigger the same PHB forwarding action at each network node. Each node implements its own response based on how it is configured.

Assured Forwarding

RFC 2597 leavingcisco.com defines the assured forwarding (AF) PHB and describes it as a means for a provider DS domain to offer different levels of forwarding assurances for IP packets received from a customer DS domain. The Assured Forwarding PHB guarantees a certain amount of bandwidth to an AF class and allows access to extra bandwidth, if available. There are four AF classes, AF1x through AF4x. Within each class, there are three drop probabilities. Depending on a given network's policy, packets can be selected for a PHB based on required throughput, delay, jitter, loss or according to priority of access to network services.
Classes 1 to 4 are referred to as AF classes. The following table illustrates the DSCP coding for specifying the AF class with the probability. Bits DS5, DS4 and DS3 define the class; bits DS2 and DS1 specify the drop probability; bit DS0 is always zero.
Drop
Class 1
Class 2
Class 3
Class 4
Low
001010
AF11
DSCP 10
010010
AF21
DSCP 18
011010
AF31
DSCP 26
100010
AF41
DSCP 34
Medium
001100
AF12
DSCP 12
010100
AF 22
DSCP 20
011100
AF32
DSCP 28
100100
AF42
DSCP 36
High
001110
AF13
DSCP 14
010110
AF23
DSCP 22
011110
AF33
DSCP 30
100110
AF43
DSCP 38

Expedited Forwarding

RFC 2598 leavingcisco.com defines the Expedited Forwarding (EF) PHB: "The EF PHB can be used to build a low loss, low latency, low jitter, assured bandwidth, end-to-end service through DS (Diffserv) domains. Such a service appears to the endpoints like a point-to- point connection or a "virtual leased line." This service has also been described as Premium service." Codepoint 101110 is recommended for the EF PHB, which corresponds to a DSCP value of 46.
Again, vendor-specific mechanisms need to be configured to implement these PHBs. Refer to RFC 2598 leavingcisco.com for more information about EF PHB.

Reference : http://www.cisco.com/en/US/tech/tk543/tk757/technologies_tech_note09186a00800949f2.shtml

Friday, August 3, 2012

Cisco IP Phone Bootup Process

IP Phone Boot-up process (from www.cisco.com)


1.      Inline Power (ILP)
o   Inline Power Initialization


On Phone: Mute, Headset, Speaker Buttons Are Illuminated
2.      Cisco Discovery Protocol (CDP) or Link Layer Discovery Protocol-Media Endpoint Discovery (LLDP-MED)
o   ILP Negotiation, Voice VLAN ID


Phone displays:“Configuring VLAN”
Phone settings:Settings=>NetCfg=>“Operational VLAN ID”
NOTE: LLDP-MED is supported as of IP Phone Firmware 8.3(3)

3.      Dynamic Host Configuration Protocol (DHCP)
o   IP Assignment, TFTP Server Allocation, DNS (optional)


Phone displays: “Configuring IP”(DNS is optional)
Phone settings: Settings=>NetCfg=>“DHCP Server”Settings=>NetCfg=>“IP Address”Settings=>NetCfg=>“TFTP Server X”

4.      Trivial File Transfer Protocol (TFTP)
o   Configuration File, IP Phone Firmware


  1. Obtain power from the switch: If you are using a Cisco switch that is capable of providing Cisco inline power, the switch will send a Fast Link Pulse (FLP) signal. The switch uses the FLP to determine if the attached device is an unpowered Cisco IP Phone. In the unpowered state, a Cisco IP Phone loops back the FLP, signaling the switch to send -48 V DC power down the line.
  2. Load the stored phone image: The Cisco IP Phone has nonvolatile Flash memory in which it stores firmware images and user-defined preferences. At startup, the phone runs a bootstrap loader that loads a phone image stored in Flash memory. Using this image, the phone initializes its software and hardware.
  3. Configure VLAN: After the IP Phone receives power and boots up, the switch sends a Cisco Discovery Protocol packet to the IP Phone. This Cisco Discovery Protocol packet provides the IP Phone with voice VLAN information, if that feature has been configured.
  4. Obtain IP address and TFTP server address: Next, the IP Phone broadcasts a request to a DHCP server. The DHCP server responds to the IP Phone with a minimum of an IP address, a subnet mask, and the IP address of the Cisco TFTP
  5. Contact TFTP server for configuration: The IP Phone then contacts the Cisco TFTP server. The TFTP server has configuration files (.cnf file format or .cnf.xml) for telephony devices, which define parameters for connecting to Cisco CallManager. The TFTP server sends the configuration information for that IP Phone, which contains an ordered list of up to three Cisco CallManagers. In general, any time you make a change in Cisco CallManager that requires a phone (device) to be reset, a change has been made to the configuration file of that phone. If a phone has an XML-compatible load, it requests an XMLDefault.cnf.xml format configuration file; otherwise, it requests a .cnf file.
    If you have enabled auto-registration in Cisco CallManager, the phones access a default configuration file (sepdefault.cnf.xml) from the TFTP server. If you have manually entered the phones into the Cisco CallManager database, the phone accesses a .cnf.xml file that corresponds to its device name. The .cnf.xml file also contains the information that tells the phone which image load that it should be running. If this image load differs from the one that is currently loaded on the phone, the phone contacts the TFTP server to request the new image file, which is stored as a .bin file.
  6. Register with Cisco CallManager: After obtaining the file from the TFTP server, the phone attempts to make a TCP connection to the highest-priority Cisco CallManager on the list.

Thursday, August 2, 2012

CCNP Voice Certified ...

Ok now guys, so I am CCNP Voice Certified now ... I am starting now the journey to the highly desired CCIE Voice certificate, starting today along INE's CCIE Voice products.
I will firstly start by watching and taking notes from the Deep Dive Modules ... 21 modules ... 21 weeks !!
See you there ! ! !

Ciprian
CCIE Voice # XXXXX

Monday, July 16, 2012

Show must go on ...

Hi mates ! The show is about to start, today I have passed the 4th exam from CCNP Voice track, CAPPS v8.0. In about 2-3 weeks I'll have the last piece from my CCNP-V exam series, feeling pretty tired after a 4 months marathon of studying, and studying, and stydying ...

I have managed to purchase all the needed equipments for using l2vpn on connecting to INE racks, the best solution for emulating the lab exam day, as I've read.

Here is a pic with my side of the rack :

I will be focusing on the study plan that Mark Snow suggested :
http://blog.ine.com/2011/07/29/from-ccna-voice-to-ccie-voice-in-a-year-2/

Will keep you posted all the way to the cert !!!

Ciprian
CCIE Voice # XXXXX