 some ways to solve it by discussing the way QoS works, and how different types of QoS might be deployed. Types of QoS Internet Building A Building B Figure 29-4. Simple two-building VoIP network QoS Mechanics QoS is usually deployed by first marking packets, then policing the packets, and, finally, scheduling the packets. Marking refers to deciding what priority a packet should be and labeling it accordingly. For example, a voice RTP stream would have the highest priority. Policing refers to the actions the router takes based on how the packets are marked. For example, we might specify that any packet marked with the highest priority should be guaranteed 10 percent of the overall link's available band- width. Scheduling refers to the interface actually serving the packets, in the order determined by how the marked packets are policed. In other words, in the case of high-priority voice RTP packets, we will deliver them first, and then deliver all other packets according to their priorities (if applicable). All of these steps can be carried out on the same device, or on separate devices. For example, Cisco IP phones can automatically set their voice RTP packets to a high pri- ority. This means you don't have to test for that packet type on the router. Marking on a router adds CPU load, SO if it can be offloaded to a device that can do it natively, that's generally a good idea. Priorities Every IP packet has a field in it called the Type of Service (TOS) field. This eight-bit field is split up into a couple of sections that can be a little confusing. The beauty of the design is buried in its logic, SO hang in there. Two primary types of IP prioritization are used at layer three: IP precedence and differential services (diffserv). Chapter 29: Introduction to QoS IP precedence goes way back to the early days of the Internet. Diffserv is much newer. The values for diffserv are called differential service code point (DSCP) values. The TOS field is illustrated in Figure 29-5. DiffServ IP precedence TOS field Figure 29-5