Академический Документы
Профессиональный Документы
Культура Документы
by Silviu Angelescu
John Wiley & Sons (US). (c) 2010. Copying Prohibited.
CCNACertificationAllInOneForDummies
JohnWiley&Sons(US),WileyPublishing,Inc.(c)2010,CopyingProhibited
CCNACertificationAllInOneForDummies
got lost in the transmission. IP phones are more sensitive to IP packet transmission errors and delays. If an IP packet
carrying part of a sound gets lost, the IP phone can either render the conversation without that sound, in which case the
sound breaks off, or the IP phone can request a retransmit of that packet, in which case you hear a pause in the
conversation. In both cases, the sound quality is poor. This is why IP telephony packets are always sent with the highest
priority. This is also why you need to configure your switch and your access port to support the VoIP VLAN and to enable
QoS on the switch and on the access port.
VoIP uses QoS at two OSI layers:
n
Both values are set by default to 0. VoIP sets them to 5: higher priority.
Class of Service (CoS) (IEEE 802.1p)
Data-link (Layer 2) frames can be configured with a certain class of service (CoS). By default, CoS is set to 0. Data-link
frames carrying VoIP traffic are usually configured with CoS 5 (higher priority). A switch always processes and sends a
VoIP data-link frame with CoS 5 before a regular data-link frame with CoS 0.
The class of service (CoS) data-link (Layer 2) option is defined in the IEEE 802.1p standard. Data-link frames are tagged
with the VLAN ID, either by the Cisco ISL VLAN ID tagging method or by the IEEE 802.1q (dot1q) VLAN ID tagging
standard to identify the VLAN each data link belongs to. The CoS value is the priority field in the 802.1q (do1q) VLAN tag
field. Hence, every data-link frame carries a VLAN ID and a CoS value in the VLAN ID 802.1q tag.
Cisco IP Phone
The Cisco IP phone is an end device that connects to a switch access port configured for VoIP. You see how to configure
the switch access port for VoIP later in this chapter. Here you discover a bit about the Cisco IP phone device. Figure 6-1
illustrates a Cisco IP phone.
JohnWiley&Sons(US),WileyPublishing,Inc.(c)2010,CopyingProhibited
CCNACertificationAllInOneForDummies
The Cisco IP phone is also a three-port Layer 2 switch. Here are the three ports and their usage:
n
Uplink (10/100 SW) connection: This port is reserved to connect upstream to the network switch access port.
PC (10/100 PC) connection: This port can be used to connect a computer host to the phone.
Internal connection: The third port is an internal port that connects to the IP phone(tm)s central processing unit
(CPU).
Page 4 / 8
ReprintedforCSC/ccolombo2,CSC
JohnWiley&Sons(US),WileyPublishing,Inc.(c)2010,CopyingProhibited
CCNACertificationAllInOneForDummies
Figure 6-3: Cisco IP phone and computer connected to a single upstream access port.
The Cisco IP phone builds data-link frames carrying VoIP and sets the CoS at 5 (high priority). It tags the VoIP data-link
frames with the VoIP VLAN ID. Next, the Cisco IP phone sends the VoIP frames out on the uplink port to the upstream
switch access port.
You would think that the upstream switch processes the VoIP frames with high priority and forwards them to the Cisco VoIP
gateway as quickly as possible. Unfortunately, by default, this is not the case. You must specifically configure the upstream
switch to trust the IP priority (5) and CoS level (5) set by the Cisco IP phone in the VoIP packets. By default, in untrusted
mode, switches override IP priority and CoS values they receive, with the default low priority value (0). You see how to
configure the upstream switch in the section "Configuring VoIP on Cisco Switches," later in this chapter.
The Cisco IP phone may receive data frames from the PC port if a computer host is connected. The Cisco IP phone leaves
the CoS at 0, the default low-priority value. The Cisco IP phone tags these frames with the data VLAN ID. Next, it sends the
data frames on the uplink port to the upstream switch access port. The upstream switch processes the data frames with
normal (low) priority and forwards them to the appropriate outgoing switch port.
This is the typical operation flow. You can change the typical operation flow by changing the following:
n
These configuration options are beyond the scope of the CCNA test, but you do need to know how to configure the
upstream switch to trust the IP priority and CoS level set by the Cisco IP phone in the VoIP packets.
Cisco Discovery Protocol (CDP)
Cisco created the Cisco Discovery Protocol (CDP), which allows a Cisco switch to discover the devices connected to its
ports. CDP is enabled by default on Cisco switches. CDP is also enabled by default on Cisco IP phones. This protocol is
useful in VoIP environments. CDP allows the upstream switch to discover the Cisco IP phone and to negotiate
interconnection parameters that are optimum for VoIP.
Negotiating VLAN
The upstream switch communicates with the Cisco IP phone using CDP to set up an interconnection link that allows the
Cisco IP phone to send VoIP packets on its uplink port back to the upstream switch, either in the VoIP VLAN or in the data
VLAN.
Negotiating CoS
The upstream switch also communicates with the Cisco IP phone using CDP to set up an interconnection link that allows
the Cisco IP phone to send VoIP packets on its uplink port back to the upstream switch, either with default CoS level 0 or
with high-priority CoS level 5.
Negotiating Cisco IP Phone PC Port
You can connect a computer host to the PC port on the Cisco IP phone. The computer host operates in the data VLAN
Page 5 / 8
ReprintedforCSC/ccolombo2,CSC
JohnWiley&Sons(US),WileyPublishing,Inc.(c)2010,CopyingProhibited
CCNACertificationAllInOneForDummies
configured on the upstream switch access port. By default, the Cisco IP phone leaves the CoS at 0 on data frames
received from the PC port. This default option can be changed on the Cisco IP phone. It can also by changed by the
upstream switch. The upstream switch can communicate with the Cisco IP phone using CDP to set up the PC port to be
trusting or nontrusting:
n
A trusting PC port on the Cisco IP phone trusts the IP priority and CoS level set on incoming IP packets by the
computer host connected to the PC port.
If, for example, the computer host connected in the Cisco IP phone PC port sets the IP priority and the CoS level at 3,
and the Cisco IP phone PC port is trusting, it will keep the IP priority and the CoS level at 3.
A nontrusting PC port on the Cisco IP phone does not trust the IP priority and CoS level set on incoming IP packets by
the computer host connected to the PC port.
If, for example, the computer host connected in the Cisco IP phone PC port sets the IP priority and the CoS level at 3,
and the Cisco IP phone PC port is nontrusting, the Cisco IP phone will reset the IP priority and the CoS level at 0, the
default value for IP data packets.
JohnWiley&Sons(US),WileyPublishing,Inc.(c)2010,CopyingProhibited
CCNACertificationAllInOneForDummies
Here, you configure the upstream switch access port to use CoS to determine the priority of incoming IP packets.
You also set the port to be an access port, and you enable two VLANs on the access port: a VoIP VLAN with VLAN ID 5
and a data VLAN with VLAN ID 7.
Prep Test
1. What is VoIP?
A. A group of network applications and protocols that carries voice over IP networks
B. A group of network applications and protocols that allows a Cisco switch port to connect to a Cisco IP
phone
C. A group of network applications and protocols that allows cell phone service providers to use Cisco IP
B. VoIP packets with high priority and data packets with either default priority or priority set by the
the PC port
D. VoIP packets with default priority and data packets with high priority
Answers
1. A. VoIP is a group of network applications and protocols that carries voice over IP networks. Refer to "Introducing Voice
over IP (VoIP)."
Page 7 / 8
ReprintedforCSC/ccolombo2,CSC
JohnWiley&Sons(US),WileyPublishing,Inc.(c)2010,CopyingProhibited
CCNACertificationAllInOneForDummies
2. D. VoIP traffic requires quality of service (QoS) to ensure that VoIP packets are transmitted orderly and efficiently to
avoid sound deterioration. Review "VoIP Requires Quality of Service (QoS)."
3. C. The priority of VoIP packets is determined by the combination of IP priority setting on IP packets and CoS setting on
data frames. Check out "VoIP Requires Quality of Service (QoS)."
4. B. The Cisco IP phone sends VoIP packets with high priority and data packets with either default priority or priority set
by the computer host connected to the PC port. Read "Cisco IP Phone."
5. D. All of the above. CDP allows the switch to discover devices connected to its ports. After a device is discovered, CDP
helps the switch to get the MAC address of this device and update its MAC address table. The switch also uses CDP to
communicate with devices connected to its ports, to negotiate connection parameters and other settings. Look over
"Cisco Discovery Protocol (CDP)."
Page 8 / 8
ReprintedforCSC/ccolombo2,CSC
JohnWiley&Sons(US),WileyPublishing,Inc.(c)2010,CopyingProhibited