CCIE Voice Training, Environment the DSCP or TOS Discipline
The answer to this concern depends on the type of site traffic distinctions you choose to create, likewise the model of IOS you may be operating with your routers. CCIE Voice Training
There have to be anything that defines the different kinds of targeted visitors that you just wish to prioritize. Generally, the easier the distinctions are to help make, the better. It is because all of the checks get router assets and introduce processing delays. The most prevalent guidelines for distinguishing around targeted traffic varieties utilize the packet's input interface and basic IP header info like as TCP port numbers. The subsequent examples show simple tips to set an IP Precedence price of instantaneous (2) for all FTP management site visitors that arrives by using the serial0/0 interface, and an IP Precedence of concern (1) for all FTP data targeted traffic. This distinction is possible considering that FTP manage customers works by using TCP port 21, and FTP info utilizes port twenty.
The brand new technique for configuring this employs class maps. Cisco earliest introduced this element in IOS Edition 12.0(5)T. This method foremost defines a class-map that specifies how the router will recognize this type of page views. It then defines a policy-map that truly makes the changes for the packet's TOS field:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#access-list 101 permit any eq ftp any
Router(config)#access-list 101 permit any any eq ftp
Router(config)#access-list 102 permit any eq ftp-data any
Router(config)#access-list 102 permit any any eq ftp-data
Router(config)#class-map match-all ser00-ftpcontrol
Router(config-cmap)#description branch ftp control traffic
Router(config-cmap)#match input-interface serial0/0
Router(config-cmap)#match access-group 101
Router(config-cmap)#exit
Router(config)#class-map match-all ser00-ftpdata
Router(config-cmap)#description branch ftp data traffic
Router(config-cmap)#match input-interface serial0/0
Router(config-cmap)#match access-group 102
Router(config-cmap)#exit
Router(config)#policy-map serialftppolicy
Router(config-pmap)#description branch ftp traffic policy
Router(config-pmap)#class ser00-ftpcontrol
Router(config-pmap-c)#set ip precedence immediate
Router(config-pmap-c)#exit
Router(config-pmap)#class ser00-ftpdata
Router(config-pmap-c)#set ip precedence priority
Router(config-pmap-c)#exit
Router(config-pmap)#exit
Router(config)#interface serial0/0
Router(config-if)#ip route-cache policy
Router(config-if)#service-policy input serialftppolicy
Router(config-if)#exit
Router(config)#end
Router#
For previously IOS variations, where exactly class-maps ended up not offered, you will have make use of policy-based routing to change the TOS discipline inside of a packet. Applying this policy for the interface tells the router make use of this coverage to test all incoming packets on this interface and rewrite those that match the route map:Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#access-list 101 permit any eq ftp any
Router(config)#access-list 101 permit any any eq ftp
Router(config)#access-list 102 permit any eq ftp-data any
Router(config)#access-list 102 permit any any eq ftp-data
Router(config)#route-map serialftp-rtmap permit 10
Router(config-route-map)#match ip address 101
Router(config-route-map)#set ip precedence immediate
Router(config-route-map)#exit
Router(config)#route-map serialftp-rtmap permit 20
Router(config-route-map)#match ip address 102
Router(config-route-map)#set ip precedence priority
Router(config-route-map)#exit
Router(config)#interface serial0/0
Router(config-if)#ip policy route-map serialftp-rtmap
Router(config-if)#ip route-cache policy
Router(config-if)#exit
Router(config)#end
Router#
Previously it's possible to tag a packet for exceptional treatment method, you've to own an incredibly distinct idea of what styles of visitors desire exceptional treatment method, and also exactly what sort of particular treatment method they will have. Within the illustration, we now have decided to give a amazing concern to FTP page views obtained on the special serial interface. We display how one can do this employing each the old and new configuration procedures.
This will appear to get a fairly synthetic case in point. Once all, why would you care about tagging inbound targeted visitors that you simply have by now obtained from a low-speed interface? Genuinely, among the most critical ideas for employing QoS inside of a network is make sure you generally tag the packet as early as is possible, ideally with the edges on the network. Then, because it passes with the network, every single router only must examine the tag, and doesn't need to do any more classification. In this instance, we would ensure that the FTP site traffic returning within the other fonction publique is tagged because of the to start with router that receives it. So the outbound site traffic has currently been tagged, and this is a waste of router resources to reclassify the outbound packets.
Countless organizations seriously get this concept of marking on the edges an individual stage further, and remark every last received packet. This can help to guarantee that people are not requesting specific QoS privileges they are not authorized to own. Still, you should be mindful of this since it could actually often times disrupt legitimate markings. By way of example, a real-time software could possibly use RSVP to reserve bandwidth in the network. Its relevant that the packets for this software have the suitable Expedited Forwarding (EF) DSCP marking or even the network may not manage them the right way. Still, additionally you do not want to let other non-real-time purposes from this identical source possess the exact EF concern amount. So, if you're going to configure your routers to remark all incoming packets for the edges, make certain you realize what incoming markings are legit.
In that circumstance, the routers are jogging DLSw to bridge SNA site visitors by means of an IP network. So the routers themselves in reality make the IP packets. This produces an additional problem due to the fact that there is certainly no incoming interface. So that recipe makes use of lieu policy-based routing. The very fact the router makes the packets also provides it a very important gain due to the fact that it doesn't have to take into account any DLSw packets that may just take place to pass through.
The advantages of this more recent class-map methodology are not noticeable on this example, but among the list of initially huge advantages seems if you want to implement the greater modern day DSCP tagging scheme. As the more mature policy-based routing method isn't going to straight assist DSCP, you could have to faux it by environment each the IP Precedence also, the TOS separately as follows.
Router(config)#route-map serialftp-rtmap permit 10
Router(config-route-map)#match ip address 115
Router(config-route-map)#set ip precedence immediate
Router(config-route-map)#set ip tos max-throughput
In this case, the packet will wind up with an IP Precedence value of immediate, or 2 (010 in binary), and TOS of max-throughput, or 4 (0100 in binary).
Doing the same thing with the class-map method is much more direct:
Router(config)#policy-map serialftppolicy
Router(config-pmap)#class serialftpclass
Router(config-pmap-c)#set ip dscp af21
Class-maps may even be practical afterwards in this particular chapter when we discuss class-based weighted truthful queuing and class-based targeted traffic shaping.
It can be crucial to notice that throughout this entire illustration, we have now only set a distinctive price into the packet's TOS or DSCP area. This, by itself, will not affect how the packet is forwarded by way of the network. To do that, you must ensure that as every single router from the network forwards these marked packets, the interface queues will react appropriately to this material.
Finally, we must always be aware that even when this recipe demonstrates two handy methods of marking packets, utilizing Committed Accessibility Fee (Car) characteristics. Autobus tends for being even more productive on higher pace interfaces.