C2960: ingress priority-queue and CoS/DSCP mapping
I have read the C2960 manuals for a few times, but I don't seem to find an answer.
You can enable the priority queue on the ingress interface which has two available input queues for QoS-services.
What seems to be missing from the manuals is that how can I map/direct the traffic (CoS & DSCP values) to the priority queue?
I can map traffic to two other WRR (SRR) queues with command: "mls qos srr-queue input cos-map queue queue-id threshold threshold-id cos1...cos8", but there is nothing about the priority queue.
So is the CoS/DSCP values for the priority queue fixed or how/what traffic is directed to it?
Thanks,
Miska
What seems to be missing from the manuals is that how can I map/direct the traffic (CoS & DSCP values) to the priority queue?
A: By default, the priority queue is queue 2, and 10 percent of the bandwidth is allocated to it.
?For queue-id, the range is 1 to 2.
Map DSCP or CoS values to an ingress queue and to a threshold ID.
By default, DSCP values 0-39 and 48-63 are mapped to queue 1 and threshold 1. DSCP values 40-47 are mapped to queue 2 and threshold 1.
By default, CoS values 0-4, 6, and 7 are mapped to queue 1 and threshold 1. CoS value 5 is mapped to queue 2 and threshold 1.
?For queue-id, the range is 1 to 2.
?For threshold-id, the range is 1 to 3. The drop-threshold percentage for threshold 3 is predefined. It is set to the queue-full state.
?For dscp1...dscp8, enter up to eight values, and separate each value with a space. The range is 0 to 63.
?For cos1...cos8, enter up to eight values, and separate each value with a space. The range is 0 to 7.
What above is saying is queue 2 is priority queue, you can use the CoS/DSCP mapping to queue to move certain CoS?DSCP to either queue 1 or queue 2.
I can map traffic to two other WRR (SRR) queues with command: "mls qos srr-queue input cos-map queue queue-id threshold threshold-id cos1...cos8", but there is nothing about the priority queue.
So is the CoS/DSCP values for the priority queue fixed or how/what traffic is directed to it?
A; See above.
For more info:
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat2960/12225see/scg/swqos.htm#wp1161845
Please rate all posts.
Similar Messages
-
Egress queueing - priority-queues and queue-sets
If I use the priority-queue out command on an interface 3750 does this treat queue1 as the priority queue?
How can I tell which traffic is sent to each queue by default? Or do I have to specifically define it such as
mls qos srr-queue output dscp-map queue 1 threshold 3 40 41 42 43 44 45 46 47
I really want dscp 40-47 to go priority and the rest to be spread evenly across the other 3 queues as the vast majority of the rest of the traffic will be 0. Is there a command that lets the other 3 queues be best effort?
Also, is this an OK config to use with priority-queueing? I don't actually want a large amount of bandwidth for the priority traffic, just for it to be expidited.
Queueset: 2
Queue : 1 2 3 4
buffers : 10 30 30 30
threshold1: 100 200 100 100
threshold2: 100 200 100 100
reserved : 50 50 50 50
maximum : 400 400 400 400
Any help very gratefully received.
Thanks, JSorry, just bouncing this to see if anyone around today can help :)
-
Is it possible to configure non-default NX7K CoS-DSCP map?
NX7K QoS has system defined table maps for CoS to DSCP mapping, DSCP to CoS mapping, etc. Those table maps can be used in qos policy maps. I was wondering if I can change, for example, CoS to DSCP mapping to something different from the default values.
Somthing similar to Catalyst switch command "mls qos map cos-dscp 0 10 18 24 34 46 48 56", where you can define any CoS to DSCP values. I don't think this is possible in NX7K QoS, but just curious.
Thanks
GaryHi Raymond,
Based on my research, we can use Group Policy and Internet Options to configure default mail client.
How to make Outlook the default mail client
http://support.microsoft.com/kb/223877/en-us
How to configure the default e-mail client using Group Policy
http://support.microsoft.com/kb/2008044
Best Regards,
Amy
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
Here's A Question Using A Priority Queue and a DLL
Ifm trying to make a method that compares two objects that go into a DLL using a priority Queue. SO in other words lets say i have "5" go ino the DLL and then i have "2" that goes in i need to swap the 2 and the 5. And this goes on for any other objects inserted
private Comparable minPosition() throws EmptyPriorityQueueException {
if (size() == 0)
throw new EmptyPriorityQueueException ("No Elements In The Queue");
else
now this is what i got so far....but i know that i have toi make to vaiables and compare them? little help please?
ThanksUm, well im using the adapter class, List. so ive gone a bit further, but im not sure on what to do.....
private Comparable minPosition() throws EmptyPriorityQueueException {
if (size() == 0)
throw new EmptyPriorityQueueException ("No Elements In The Queue");
while (isEmpty()==false)
r = ((Comparable)elements.first());
s = ((Comparable)elements.next(elements));
then i can make r=s and make s serach for the next element,?
Can the experienced programmers help me out? Doesn't seem to be a tuff question. -
Hello,
I'm working on a 4500-x and the command "show qos maps" is not accepted. Is there a way to show the COS-DSCP mapping? The only show qos command accepted is the show qos interface.
Thanks,
SamBro Davis, this is based on the license that u use in ur switch, because there r some features r supported on specific license while it is not supported on the others, so u have to check ur license at the first, if ur license support this feature u can issue this command: show mls qos map cos
ex:
4500-x #show mls qos map cos
CoS-DSCP Mapping Table
CoS: 0 1 2 3 4 5 6 7
DSCP: 0 8 16 26 34 46 48 56
BR.
Mostafa. -
Low priority and high priority queue
Hi
we have high priority and low priority queue's. Functionality wise i know that time critical messages will be sent through high priority queue's and low priority messages will be sent
through low priority queues. But like to know what technicality makes this separation of
low priority and high priority queue's ? The crus of the question is what technical setting(s)
makes the queue as high priority and what technical setting(s) makes the queue as low priority
queue.
Thanks
kumari Michal
I am talking abt queue prioritization on Integration eninge only.
I am good with queue prioritization and am able to successfully implement
the same. We are using only PI7.0.
My question is what is the technical difference between high priority
and low priority queues ? what technical setting makes it a high priority
queue and what technical setting makes a low priority queue ?
Your answer:
how the system reacts to new messages if almost all queues are already blocked
for some types of messages
My comment: what setting makes the system to behave like that ? what property
of that queue makes them to behave like that ?
Thanks
kumar -
Java provides PriorityQueue, and I have gone through its API.
The implementation of PriorityQueue in Java does not provide method for increase or decrease key,
and there must be a reason for it.
But, when i go through books on data strucutre, a lot of them talk about the increase/decrease key function
of the PriorityQueue.
So I am just wondering, why is it that increase/decrease function not provided in PriorityQueue. I cannot come up with a reason for it, but i think there must be. Does anybody have any thought on this. Or is it just
because the designers thought its not needed?
I checked the source for the Priority Queue and the heapify() method was declared private.lupansansei wrote:
I have used Java's priority queue an I have written my own but I have never come accros the terms "increase or decrease key". Do you mean something like 'upheap' or 'downheap' in relation to a 'heap' implementation meaning move an entry to it correct position if the key changes? If so then one should make the 'key' immutable so that the functions are not needed.
Yes, i mean 'upheap' or 'downheap' by increase or decrease key. Sorry
maybe my choice of words was not correct.
I couldn't get what you mean by 'key' immutable. Can you please explain it. If the key cannot change (i.e. it is immutable) then there is no need to ever change the position of an element.
>
Correct. Since the PriorityQueue does not need to implemented using a 'heap' there is no need for the heapify() method to be exposed. If one implemented using a balanced tree or a skip list the heapify() method would not be applicable.I am using PriorityQueue and i need to update the priority of the elements and i was wondering whether to implement the whole queue
myself or look for a better way of using the PriorityQueue class.
Do you have any suggestions for efficiently updating the priority of element?I have a priority queue implementation where elements know they are in a heap and know where they are in the heap. By doing this I can modify 'keys' and then move a value to it's correct place in the queue in a very short time. The limitations this feature imposes on the elements and the possibility of corrupting the heap means I don't often use this these days. It is far too error prone.
These days in my simulations I normally remove an element from the queue, process the element and then create new elements and insert them back in the queue. This sometimes takes 2 lots of Log(n) operations where my specialized priority queue just takes Log(n) operations. The code is just so much more maintainable and I accept the hit. -
i have to make a priority queue that uses generics. i already had written a priority queue, and making the key, which was a Comparable, generic was easy, but i don't know how to do it for the data, which is an object. If someone could tell me how that'd be great. here is my code:
public class PriorityQueue<K>{
private int size;
Node first;
//Post: A class to store data, key and next to be used in the PriorityQueue
protected class Node{
Comparable key;
Object data;
Node next;
Node(Comparable k, Object d, Node n){
key = k;
data = d;
next = n;
//Post: Creates an empty queue.
PriorityQueue(){
first = new Node(null, null, null);
//Pre: size() >= 1
//Post: returns the highest priority data item
public Object peekData(){
return first.next.data;
//Pre: size() >= 1
//Post: returns the highest priority key
public Comparable <K> peekKey(){
return first.next.key;
//Post: Inserts the data into the queue at the correct spot based on
// priority determined by its key
public void insert(Comparable <K> key, Object data){
Node newNode = new Node(key, data, null);
Node current = first;
size++;
while(current.next != null && (newNode.key.compareTo(current.next.key)) > 0){
current = current.next;
newNode.next = current.next;
current.next = newNode;
//Pre: size() >= 1
//Post: Deletes the highest priority key and data item
public void remove(){
first.next = first.next.next;
size--;
//Post: returns the number of elements in the queue
public int size(){
return size;
}Pretty much as Stefan says. Here's some code:
public class PriorityQueue<K extends Comparable<K>, D> {
private int size;
private Node first;
// Post: A class to store data, key and next to be used in the PriorityQueue
protected class Node {
K key;
D data;
Node next;
Node(K k, D d, Node n) {
key = k;
data = d;
next = n;
// Post: Creates an empty queue.
PriorityQueue() {
first = new Node(null, null, null);
// Pre: size() >= 1
// Post: returns the highest priority data item
public D peekData() {
return first.next.data;
// Pre: size() >= 1
// Post: returns the highest priority key
public K peekKey() {
return first.next.key;
// Post: Inserts the data into the queue at the correct spot based on
// priority determined by its key
public void insert(K key, D data) {
Node newNode = new Node(key, data, null);
Node current = first;
size++;
while (current.next != null
&& (newNode.key.compareTo(current.next.key)) > 0) {
current = current.next;
newNode.next = current.next;
current.next = newNode;
// Pre: size() >= 1
// Post: Deletes the highest priority key and data item
public void remove() {
first.next = first.next.next;
size--;
//Post: returns the number of elements in the queue
public int size() {
return size;
} -
Question about 3750 mls qos map dscp-output-q and cos-output-q
1. If a egress packet has both Cos and Dscp setting, which map should this packet used to put into queue?
2. The 3750 is doing ip route. After the packet is routed, will the packet keep the DSCP and COS? Or it will just keep the DSCP and using the dscp-cos map to create a new COS.Apologies for the confusion with the terminalogy.
The question is where you have configured the trust boundaries, do you necessarily trust the DSCP value prior to being routed across your network?
Therefore, although you have explicity trusted the DSCP value, do you still trust the value at the remote peer.
For example, you connect into an MPLS with QoS enabled, you know that the values you are trusting are correct within your network, however at the remote peer/branch they could be remarked by the provider. Therefore do you 'believe' the values, or do you simply not trust them and then reclassify on ingress.
Regards
Allan.
Hope this makes sense.. -
DSCP and CoS mapping to use uAPSD
Hi CISCO experts, I'm trying to map some traffic to a DSCP and CoS priority. The fact is that doesn't work.
Steps:
1.Set personal filter (myfilter)to forward from specific IP.
2.Set QoS policy: my_policy --> myfilter-CoS (4).
3. Add policy to 802.11g.
When I look up the IP traces DSCP is allways 0x00 (Best Efford).
If I map DSCP (best efford) to DSCP (vocie) doesnt work either.
What can I do? Im trying to emulate AC_VO or AC_VE so I can force the uAPSD protocol to work.
Best regardsAre you using a Cisco WLAN controller or autonomous AP?
You would need to ensure that the RTP (voice) packets to the AP has DSCP = EF.
There is an auto policy in the WLAN controller to map EF to UP6.
For autonomous, will need to create a QoS policy to do this.
But you do not want to map DSCP = 0 to UP6!
This defeats the purpose.
Will only want RTP packets to be marked as EF.
See the WLAN SRND and 7921G Deployment Guides for more info.
http://www.cisco.com/application/pdf/en/us/guest/netsol/ns279/c649/ccmigration_09186a00808d9330.pdf
http://www.cisco.com/en/US/docs/voice_ip_comm/cuipph/7921g/5_0/english/install/guide/7921dply.pdf -
CoS/DSCP to queue mapping in Cat 3750
Hi..
Cat 3750 supports mapping of CoS to queue as well as mapping DSCP to queue.
WOuld like to understand which one will the switch use when actually placing packets in the queue..
thanks
Eng WeeMy apologies, that was not a very good explanation :-)
Here is what really happens:
- when a frame is received on a port, the switch maps the CoS or DSCP in the packet to a QoS label to distinguish one kind of traffic from another. If the port is set to trust CoS, the CoS value is used to generate the QoS label. If the port is set to trust DSCP, the DSCP value is used to generate the QoS label.
- The QoS label that is generated identifies all future QoS actions to be performed on this packet.
- when the packet is switched to the egress interface, an output queue is selected based on the QoS label. If the QoS label was based on DSCP, the DSCP-to-queue mapping is used. If the QoS label was based on CoS, the CoS-to-queue mapping is used.
Hope that helps - pls rate the post if it does.
Paresh -
QoS - can u trust dscp and cos?
Hello,
is it possible to trust DSCP and COS at the same time?
If so, which one wins?G'day,
It does not really make sense to trust both DSCP and CoS at the same time. You configure your switch to trust one or none of these.
As an example, if you did have the capability to trust both DSCP and CoS, imagine what would happen if you received a frame with DSCP EF and CoS 0 ? You would be faced with a conflicting situation ... if you trusted CoS, you would give a potentially high-priority packet lesser service. Whereas if you trusted DSCP, you could end up giving a potentially low-priority packet voice-like service... So the option of trusting both is not allowed.
Hope that helps - pls rate the post if it does.
Paresh -
J2EE client mapping in WL6 - continued : jms queues and topics
How can one use "generic" (i.e. "java:comp/env/jms/myQueue") names in client
code for jms queues and topics,
since neither application-client.xml nor WL's myjarname.runtime.xml
have elements for them ?
I mean, jms managed objects are not env-entries (application-client.dtd
specifies that only primitive wrapper types can be valid env-entry-value)
nor resources (which I understand are all connection factories, for jdbc,
jms or mail ...).
In my ejb-jar.xml I use the resource-env-ref element :
<resource-env-ref>
<resource-env-ref-name>jms/CreationErrorQueue</resource-env-ref-name>
<resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
</resource-env-ref>
which can be mapped in weblogic-ejb-jar.xml
<resource-env-description>
<res-env-ref-name>jms/CreationErrorQueue</res-env-ref-name>
<jndi-name>jms.aregon.CreationErrorQueue</jndi-name>
</resource-env-description>
but I don't know how to map the jndi of such objects in a client
application.
EdoHi Sachin --
In the 10.1.3.1 release, a set of new commands have been added to admin_client.jar to support the command line creation of JMS resources:
-addJMSConnectionFactory -domain <domain> -jndiLocation <jndiLocation> [options]
-removeJMSConnectionFactory -jndiLocation <jndiLocation>
-getJMSConnectionFactories
-addDestination -domain <domain> -name <name> -jndiLocation <jndiLocation> [options]
-removeDestination -name <name> [options]
-getDestinations
You can read about it in the doc:
http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28950/adminclient.htm#CHDDFJJA
cheers
-steve- -
Does 3750 switch still need command "priority-queue out"? I noticed when I apply " auto qos voip cisco-phone", it doesn't auto generate "priority-queue out" any more. I know this command is useful in 3550 to prioritize the voice traffic.
This release contains these new switch features or enhancements:
Quality of service (QoS) egress priority queue on a port. Shaped round robin (SRR) services the priority queue until it is empty before servicing the other three queues. You enable the egress priority queue by using the priority-queue out interface configuration command.
QoS Differentiated Services Code Point (DSCP) transparency allows the user to prevent the switch from rewriting the DSCP field in the user IP packet when QoS is enabled.
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat3750m/12114ax/ol464603.htm -
Priority queue out handling.
We're testing the reference system shown in the figure below.
System Description
Four 2960 switches are used for transport;
Equipment 1 and Equipment 2 exchange packets for synchronization;
To reach synchronization Equipment 1 and 2 must exchange data with a very low jitter.
2960 Configuration details
Four our test puprose, we're using 100Mbit/s ports (22 and 23) as trunk.
In order to obtain minimum jitter We performed these configurations:
We Enabled QoS;
We Marked Synchronization packets with CoS 7 and DSCP 63;
We marked other kind of traffic inserted in different ports) with CoS 0;
We set "trust DSCP" on trunk ports;
On the trunk ports we mapped traffic with CoS 7/DSCP 63 (and only this) on output queue 1;
We enabled the expedite queue (priority-queue out).
Question
With these settings we aim at forcing our synchronization packtes to precede other kind of traffic and go from Equipment 1 to Equipment 2 with minimum jitter.
Unfortunately we experienced high jitter when both synchronization packets and other traffic are sent through the systems.
What is wrong in our assumptions or configurations?
What is the real behaviour of the expedit queue?Seems the right config.
This is the my configuration and it works well:
#global level
mls qos srr-queue input priority-queue 2 bandwidth 20
mls qos srr-queue input cos-map queue 1 threshold 3 0 1 2 3 4
mls qos srr-queue input cos-map queue 2 threshold 3 5 6 7
mls qos srr-queue output cos-map queue 1 threshold 3 5 6 7
mls qos srr-queue output cos-map queue 2 threshold 3 4
mls qos srr-queue output cos-map queue 3 threshold 3 2 3
mls qos srr-queue output cos-map queue 4 threshold 3 0 1
mls qos
#port level
mls qos trust dscp
priority-queue out
What is your IOS version?
Can you use the 2960 Gigabit port?
Regards.
Maybe you are looking for
-
I wish to replicate the behavior of IE (heresy - I know!) when opening the drop-down Bookmarks (i.e., Favorites) menu so that I don't have to repeatedly "drill-down" into one or more subfolders in order to select the same bookmark as before or to sel
-
Still image issues (I've already read the other similar post- didn't apply)
Still having issues with still images in my timeline. Viewer they're fine, Canvas they're repulsive. Seq. settings are NTSC, 29.97, 48k. I have tried several different extensions for the stills and have even tried importing them at different sizes. I
-
hi friends, i hav one issue regarding a FM in HR module. i hav start time BEGUZ & end time ENDUZ respectively. then the difference fields is TDDURATION. The problem here is BEGUZ & ENDUZ are of type T (TIMS) fields & TDDURATION is DEC type. so, pleas
-
Reversing monthly re-instatement in FAGL_FC_VAL
Hi We executed foreign exchange fluctuation re-instatement in FAGL_FC_VAL. But i want to know about system behaviour if we run FAGL_FC_VAL at the last month of the fiscal year. I learnt that its not posting reversing if we run it on the last month of
-
How to create automatically users&roles in CUA and in chlid systems?
Hi, i have a CUA on a 2 chlid R/3 systems (test and training) and 2 portal systems (test and training). i need to create a web application to create automatically users test and users training in CUA and see them in the R/3 chlid systems and at the s