The solution to this obstacle depends on the kind of traffic distinctions you want for making, too the edition of IOS that you are jogging on your routers. CCIE Voice Training
There ought to be a little something that defines the different varieties of targeted traffic that you desire to prioritize. Generally speaking, the simpler the distinctions are to produce, the better. It's because all of the tests consider router resources and introduce processing delays. The most prevalent guidelines for distinguishing around potential customers kinds use the packet's input interface and easy IP header related information this kind of as TCP port quantities. The next examples clearly show the best ways to set an IP Precedence worth of speedy (2) for all FTP management website traffic that arrives by means of the serial0/0 interface, and an IP Precedence of priority (1) for all FTP information website traffic. This distinction is possible because FTP command customers employs TCP port 21, and FTP information takes advantage of port 20.
The brand new method for configuring this works by using course maps. Cisco foremost launched this aspect in IOS Edition 12.0(five)T. This method earliest defines a class-map that specifies how the router will identify this sort of page views. It then defines a policy-map that really helps make the adjustments on the packet's TOS area:
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 versions, wherever class-maps happen to be not offered, you will have to implement policy-based routing to alter the TOS field within a packet. Making use of this coverage on the interface tells the router to use this policy to check all incoming packets on this interface and rewrite the ones 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#
Previous to you are able to tag a packet for unique therapy, you've got to acquire a particularly distinct thought of what varieties of targeted traffic will be needing wonderful treatment method, combined with precisely what kind of exclusive treatment they're going to will be needing. Inside example, now we have decided to give a extraordinary priority to FTP customers acquired on a distinct serial interface. We clearly show tips on how to try this utilising both equally the aged and new configuration techniques.
This may seem to get a rather synthetic illustration. After all, why would you treatment about tagging inbound targeted visitors which you have already obtained from a low-speed interface? Genuinely, among the list of most critical principles for applying QoS in a network is be certain to consistently tag the packet as early as you possibly can, ideally for the edges with the network. Then, because it passes from the network, just about every router only must evaluate the tag, and isn't going to really need to do any increased classification. In this instance, we might be sure which the FTP traffic returning from the other administration is tagged by the to begin with router that gets it. So the outbound traffic has definitely been tagged, and it is a waste of router resources to reclassify the outbound packets.
Loads of organizations really just take this concept of marking in the edges just one move even more, and remark each individual acquired packet. This can help to be sure that users aren't requesting amazing QoS privileges that they aren't allowed to get. However, you ought to be thorough of this due to the fact that it could now and again disrupt legitimate markings. Such as, a real-time application may possibly use RSVP to reserve bandwidth through the network. It can be important and vital which the packets for this software possess the suitable Expedited Forwarding (EF) DSCP marking or the network might not tackle them appropriately. Still, additionally you do not prefer to allow other non-real-time purposes from this similar source hold the identical EF concern level. So, if you're going to configure your routers to remark all incoming packets at the edges, ensure that you realize what incoming markings are genuine.
In that scenario, the routers are operating DLSw to bridge SNA page views via an IP network. Therefore the routers by themselves definitely make the IP packets. This generates an additional challenge simply because there exists no incoming interface. To ensure recipe makes use of nearby policy-based routing. The fact which the router results in the packets also provides it a significant advantage as a result of it does not have to look at any DLSw packets that may just occur to pass through.
The advantages within the more recent class-map strategy aren't obvious in such a example, but one of many to start with large advantages seems if you would like to employ the more modern DSCP tagging scheme. Because the older policy-based routing methodology isn't going to right support DSCP, you've to faux it by environment equally the IP Precedence together with 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 also be useful later on within this chapter once we discuss class-based weighted reasonable queuing and class-based website traffic shaping.
It is important to notice that all over this whole illustration, we've got only put a exclusive value into your packet's TOS or DSCP industry. This, by itself, does not have an effect on how the packet is forwarded by way of the network. To do that, you must make sure that as just about every router within the network forwards these marked packets, the interface queues will react appropriately to this knowledge.
At last, we should be aware that while this recipe exhibits two valuable ways of marking packets, utilising Dedicated Accessibility Charge (Car or truck) capabilities. Car tends to be alot more reliable on bigger velocity interfaces.