Professional Documents
Culture Documents
External Adapters
External Adapters
External adapter are also known as wall
warts.
Disadvantage of IP Phones: If power
failure the IP Phone will fail.
Unlike the old days.
Detecting a Powered
Device
Switch always keeps the power disabled when a switch port is down (a device is
not powered up).
Switch will continuously try to detect if a device is connected.
Because there are two PoE methods Cisco switches try both methods to detect
for a powered device.
The differences include:
the amount of power that is available to the connected device
the method used for device discovery
the way that power is removed from the wire when a powered device is
removed
http://www.cisco.com/warp/public/cc/so/neso/bbssp/poeie_wp.pdf
6
http://www.cisco.com/en/US/products/hw/phones/ps379/products_qanda_item09186a00808996f3.shtml
IEEE 802.3af
IEEE 802.3af
Switch supplies a small voltage across the transmit and receive
pairs of the UTP cable.
It measures the resistance across the pairs to detect whether
current is being drawn by the device.
If so, the powered device is detected as present.
7
IEEE 802.3af
Cisco ILP
Configuring PoE
Switch(config)# interface type mod/num
Switch(config-if)# power inline {auto [max milli-watts] | never |
static [max milli-watts]}
auto
Default
Device and power budget are automatically discovered
Default power budget for a switch port is 15.4W
Can be changed with max milli-watts
static
Configures a static power budget for a switch port
For devices that cannot use either power discovery method
never
If you want to disable PoE on a switch port
Power will never be offered and powered devices will never be
10
detected
Configuring PoE
Switch(config)# interface fastethernet 0/1
Switch(config-if)# power inline auto
Switch# show power inline fastethernet 0/1
Available:677(w) Used:11(w) Remaining:666(w)
Interface Admin Oper
Power(Watts)
Device
Class
From PS
To Device
--------- ------ ---------- ---------- ---------- ------------------- ----Fa0/1
auto
on
11.2
10.0
Ieee PD
0
Interface AdminPowerMax
AdminConsumption
(Watts)
(Watts)
---------- --------------- -------------------Fa0/1
15.4
10.0
Switch#
http://www.poweroverethernet.com/
12
Voice VLANs
Voice VLANs
Most Cisco IP Phones contain a three
port switch:
Connecting to the upstream port
Connection to PC (usually)
Internal VoIP data stream
The internal VoIP and external PC
ports:
Access ports
Upstream data port:
Access port (single VLAN) or
802.1Q trunk (well, kind of)
14
Voice:
Untagged: Access VLAN
Data:
Untagged: Access VLAN
Voice:
Tagged as VLAN 0
802.1Q trunk
CoS in 802.1p bits
Data:
Untagged: Native VLAN
Recommended Option
802.1Q trunk
CoS in 802.1p bits
Data:
Untagged: Native VLAN
16
17
802.1Q trunk
CoS in 802.1p bits
Data:
Untagged: Native VLAN
19
Recommended Option
802.1Q trunk
CoS in 802.1p bits
Data:
Untagged: Native VLAN
20
Voice:
Untagged: Access VLAN
Data:
Untagged: Access VLAN
Voice:
Tagged as VLAN 0
802.1Q trunk
CoS in 802.1p bits
Data:
Untagged: Native VLAN
Recommended Option
802.1Q trunk
CoS in 802.1p bits
Data:
Untagged: Native VLAN
21
Recommended Option
802.1Q trunk
CoS in 802.1p bits
Data:
Untagged: Native VLAN
Tagged as VLAN 200
More to come!
22
http://cciepursuit.wordpress.com/2009/01/01/group-study-good-expla
nation-of-the-voice-vlan/
23
24
26
trunking
27
Overview
Overview
Quality of Service
defined
The goal is to move information from one point to another and the
characteristics that define the quality of this movement are:
Delay
Delay Variation (also known as Jitter)
Loss
32
Loss
Loss
TCP Header
UDP Header
Delay or latency
38
39
Network availability
Provisioning
Best-Effort service
(single interface outbound queue)
44
Best-Effort service
(single interface outbound queue)
Best-Effort service
This would be like a fire truck having to wait in normal traffic lanes
with everyone else.
No priority.
46
48
Differentiated services
50
ToS
Class
Selector
Drop
Precendence
ToS
IP DSCP value is the first 6 bits
IP Precedence value is the first 3 bits
The IP Precedence value is actually part of the IP DSCP value.
Therefore, both values cannot be set simultaneously.
DSCP supersedes IP Precedence.
A maximum of:
8 different IP precedence markings
64 different IP DSCP markings
53
CoS
We are going to discuss configuring QoS for voice shortly but for
now I just want to discuss trusting the CoS value.
These slides will have a blue header.
57
58
Assigning CoS on
a per-port basis
60
May be desirable not to trust any CoS value that may be present
in frames sourced from an edge device.
Override parameter - ignores any existing CoS value
Apply the default value. (Default = 0)
End of tangent
61
Traffic marking
Layer 2
Layer 3
The decision of whether to mark traffic at layers 2 or 3 or both is not trivial
and should be made after consideration of the following points:
Layer 2 marking of frames can be performed for non IP traffic.
Layer 2 marking of frames is the only QoS option available for
switches that are not IP aware
Layer 3 marking will carry the QoS information end-to-end
Older IP equipment may not understand DSCP
62
When a frame is marked with DSCP, for example, and it needs to traverse a
series of Layer 2 switches or 802.1Q Trunks.
How will it be queued in these Layer 2 devices?
To accomplish this, there is a mapping that takes place between the Layer 3
mapping field (TOS) and the Layer 2 CoS fields.
I will show how this works soon.
Mapping is vendor specific.
On Cisco devices, this is taken care of for you through a mapping
63
process.
64
Routine
Default class, Class 0
Offers only best-effort delivery
65
Class 6 and 7 are used for operations necessary to keep the network functioning properly.
68etc.
Used by routers and switches for packets containing STP, routing protocols,
When a frame is marked with DSCP, and it needs to traverse a series of Layer 2
switches or 802.1Q Trunks how will it be queued in these Layer 2 devices?
Mapping that takes place between the Layer 3 DSCP (or ToS) to the Layer 2 CoS
fields.
The CoS value is the value of the 3 ToS bits or the first 3 bits of the DSCP (same
72
values) with the last three bits of 000.
Classification
Trust
A switch can decide to whether or not to trust the ToS, DSCP or CoS
values already assigned it the inbound packet (from the device or
another switch).
If the QoS values are not trusted they can be reassigned or
overruled.
Set to a trusted value which falls within the QoS policies.
This prevents users (or applications) from falsely setting the ToS
or DSCP values of the packets to receive higher priority.
75
Trust boundary
Public Network
Trust Boundary
Trust Boundary
78
If Cisco IP Phone is not detected, the QoS parameter from the device will
not be trusted.
79
4. (Optional) Instruct the IP phone to extend its trust boundary to the PC data port
Switch(config-if)# switchport priority extend {cos value | trust}
Normally, the QoS value from the PC connected to the IP Phone should not
be trusted.
If the CoS value from the data port cannot be trusted they should be
overwritten to a CoS value of 0.
This is the default.
By default, the switch instructs the attached IP Phone to consider the
PC port as untrusted and to overwrite the CoS value to 0.
If the CoS value from the data port can be trusted use the trust keyword
to forward these frames unmodified.
cos valueConfigure the IP phone to override the priority received from the
PC or the attached device with the specified CoS value.
80
5. Configure the switch uplink ports (ports between switches) to trust the CoS
Switch(config-if)# mls qos trust cos
81
Sample configuration
Only if you want to trust the CoS from the PC data port
switchport priority extend trust
82
Default is none
83
Auto QoS
Cisco switches and routers support a variety of other QoS mechanisms and
parameters.
These can be overwhelming and complex.
This is one reason why the bulk of QoS is no longer covered in the
SWITCH course/exam.
To reduce the complexity, Cisco introduced the Auto-QoS feature on most
switch platforms.
Auto-QoS is a macro command that enters many other configuration
command.
Auto-QoS is not meant to be used on all switches, mostly on access level
84
switches.
Auto QoS
Switch(config)# interface type mod/num
Switch(config-if)# auto qos voip {cisco-phone | cisco-softphone |
trust}
Cisco Softphone
86
Auto QoS
Switch(config)# interface FastEthernet0/15
Switch(config-if)# switchport access vlan 100
Switch(config-if)# switchport voice vlan 200
Switch(config-if)# auto qos voip cisco-phone
Switch# show run
interface FastEthernet0/15
switchport access vlan 100
switchport voice vlan 200
srr-queue bandwidth share 10 10 60 20
srr-queue bandwidth shape 10 0 0 0
mls qos trust device cisco-phone
Otherwise manually configured
mls qos trust cos
auto qos voip cisco-phone
Portfast is automatically enabled
spanning-tree portfast
with voice VLAN.
Queuing overview
89
Queuing
overview
Generalizations on Queuing:
If there is no congestion on the WAN link, traffic prioritization is not
necessary.
If a WAN link is constantly congested, traffic prioritization may not
resolve the problem.
Adding bandwidth might be the appropriate solution.
91
92
Custom
CBWFQ
Priority
LLQ (PQ/CBFQ)
WFQ
93
FQ Fair Queuing
(single interface outbound queue)
96
Weighted fair queuing (WFQ) is an automated method that provides fair bandwidth
allocation to all network traffic.
Provides traffic priority management that dynamically sorts traffic into
conversations, or flows.
Then breaks up a stream of packets within each conversation to ensure that
bandwidth is shared fairly between individual conversations.
There are four types of weighted fair queuing:
Flow-based Default (WFQ)
Distributed - Runs on Versatile Interface Processor (not discussed)
Class-based Next section
Distributed class-based (Not discussed)
97
Flow Based WFQ schedules delay-sensitive traffic to the front of a queue to reduce
response time, and also shares the remaining bandwidth fairly among highbandwidth flows.
By breaking up packet trains, WFQ assures that:
Low-volume traffic is transferred in a timely fashion.
Gives low-volume traffic, such as Telnet sessions, priority over high-volume
traffic, such as File Transfer Protocol (FTP) sessions.
Gives concurrent file transfers balanced use of link capacity.
Automatically adapts to changing network traffic conditions.
98
T3
Flow #3
17
15 14
10
WFQ starts by sorting traffic that arrives on an egress interface into conversation
flows.
The router determines what the actual flows are
The administrator cannot influence this decision.
Conversations are based on a hash (combination) of:
Source/destination network address
Source/destination Media Access Control (MAC) address
Source/destination port or socket numbers
Frame Relay data-link connection identifier (DLCI) value
Quality of service/type of service (QoS/ToS) value
102
IP Precedence
Our Value
32768
16384
10920
8192
6552
5456
4680
4096
103
0-8
Flow #2
3-5
Flow #3
0-8
17
15 14
10
0-8
Flow #2
3-5
Flow #3
0-8
17
15 14
0-8
0-8
10
Lowest wins!
Dispatch = Finish time x Our Value (weight)
First packet: 17 x 8 = 136
Last
Second packet: 15 x 5 = 75
Lowest
Third packet: 14 x 8 = 112
Next lowest
105
3-5
0-8
Flow #2
3-5
Flow #3
3-5
20
3-5
0-8
0-8
3-5
0-8
17
15 14
10
IP Telephony