CCIE Voice Training, Environment the DSCP or TOS Area
The answer to this dilemma is determined by the type of site traffic distinctions you are looking for in making, in addition the edition of IOS that you are running in the routers. CCIE Voice Training
There have to be some thing that defines the different forms of site visitors that you desire to prioritize. Generally speaking, the less complicated the distinctions are to create, the higher. This is because all of the exams consider router resources and introduce processing delays. The most common rules for distinguishing somewhere between page views sorts make use of the packet's input interface and straightforward IP header related information this sort of as TCP port quantities. The subsequent examples exhibit learn how to set an IP Precedence value of rapid (2) for all FTP control visitors that arrives thru the serial0/0 interface, and an IP Precedence of concern (1) for all FTP info page views. This distinction is feasible mainly because FTP command potential customers takes advantage of TCP port 21, and FTP knowledge works by using port 20.
The brand new system for configuring this uses course maps. Cisco very first launched this feature in IOS Version twelve.0(five)T. This method earliest defines a class-map that specifies how the router will detect this type of website traffic. It then defines a policy-map that actually helps make the improvements towards the packet's TOS discipline:
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 before IOS versions, where exactly class-maps have been not accessible, you've gotten to utilize policy-based routing to change the TOS discipline in the packet. Applying this coverage into the interface tells the router to use 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#
Earlier than you can still tag a packet for distinctive procedure, you may have to own a particularly obvious plan of what sorts of targeted visitors must have exclusive treatment, and also specifically what sort of unique treatment they may demand. Inside example, we now have chose to give a exclusive concern to FTP page views obtained on the unique serial interface. We present the way to try this utilising the two the aged and new configuration strategies.
This will likely seem to become a considerably synthetic illustration. After all, why would you care about tagging inbound traffic which you have already received from a low-speed interface? Truly, one of many most critical concepts for applying QoS in a very network is usually that it's best to often tag the packet as early as you can, ideally at the edges on the network. Then, since it passes with the network, just about every router only must evaluate the tag, and does not need to do any added classification. In cases like this, we might be certain the FTP site traffic returning within the other direction is tagged by to begin with router that receives it. So the outbound page views has previously been tagged, and it is a waste of router resources to reclassify the outbound packets.
A lot of organizations actually get this concept of marking on the edges a single stage further, and remark just about every received packet. This may help to make sure that end users aren't requesting distinctive QoS privileges they aren't permitted to obtain. Nevertheless, you have to be mindful of this on the grounds that it could actually now and again disrupt authentic markings. For instance, a real-time software can use RSVP to order bandwidth through the network. It can be fundamental which the packets for this software have the acceptable Expedited Forwarding (EF) DSCP marking or even the network won't take care of them adequately. Having said that, additionally you will not choose to let other non-real-time purposes from this same exact resource have the exact same EF priority degree. So, in case you are going to configure your routers to remark all incoming packets in the edges, make sure you fully understand what incoming markings are legitimate.
In that situation, the routers are jogging DLSw to bridge SNA page views as a result of an IP network. And so the routers by themselves ultimately formulate the IP packets. This makes an extra challenge given that there exists no incoming interface. So that recipe uses localized policy-based routing. The fact the router creates the packets also offers it an essential advantage seeing that it does not have to contemplate any DLSw packets that may just happen to go through.
The benefits of the newer class-map technique are not evident in such a instance, but one of several primary great merits appears in order for you make use of the greater present day DSCP tagging scheme. As the older policy-based routing process isn't going to immediately assistance DSCP, you have to fake it by setting equally the IP Precedence and therefore the TOS independently 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 useful later within this chapter after we talk about class-based weighted truthful queuing and class-based targeted traffic shaping.
It will be important to notice that all through this whole case in point, we now have only place a exclusive price to the packet's TOS or DSCP discipline. This, by alone, does not have an effect on how the packet is forwarded by the network. To accomplish that, you have to be sure that as every single router inside network forwards these marked packets, the interface queues will react appropriately to this important information.
Eventually, we must always notice that although this recipe reveals two invaluable solutions of marking packets, working with Dedicated Access Price (Motor vehicle) options. Car tends to become extra productive on bigger velocity interfaces.