Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.
View this topic in a long page with up to 500 replies per page Create new topic
1 | 2 | 3 


2230 posts

Uber Geek
+1 received by user: 623


  Reply # 1492410 15-Feb-2016 08:57
Send private message

fe31nz:

 

I now have my EdgeRouter Lite sending my VOIP packets with VLAN PRI set to 5, which seems to be what Chorus want for traffic to use the committed bandwidth and have priority over other traffic on the fibre.  This is the command I had to add to my config:

 

set interfaces ethernet eth0 vif 10 egress-qos "1:5 2:5 3:5 4:5 5:5 6:5 7:5"

 

It seems like that command will make all packets with a non-zero DSCP value have a VLAN PRI of 5, but I am still not sure how the settings work.  I have no way of verifying that the packets are actually using my CIR bandwidth either - I will only find out when there is bad congestion happening sometime in the future.

 

I also noticed that the 2D/Snap VOIP packets I am receiving do not have the VLAN PRI field set.  I really think they need to fix that, so that when everyone is on fibre, the VOIP traffic will have priority.  They do have the DSCP field set - the SIP packets are set to CS3, and the RTP packets to EF.

 

 

Are you sure it shouldn't be:

 

set interfaces ethernet eth0 vif 10 pppoe 0 egress-qos "1:5 2:5 3:5 4:5 5:5 6:5 7:5"

 

Also, if the command is doing what you suggest, wouldn't this only work if all your VoIP traffic is already tagged with a value of 1-7?




2230 posts

Uber Geek
+1 received by user: 623


  Reply # 1492412 15-Feb-2016 09:01
Send private message

Paul1977:

 

fe31nz:

 

I now have my EdgeRouter Lite sending my VOIP packets with VLAN PRI set to 5, which seems to be what Chorus want for traffic to use the committed bandwidth and have priority over other traffic on the fibre.  This is the command I had to add to my config:

 

set interfaces ethernet eth0 vif 10 egress-qos "1:5 2:5 3:5 4:5 5:5 6:5 7:5"

 

It seems like that command will make all packets with a non-zero DSCP value have a VLAN PRI of 5, but I am still not sure how the settings work.  I have no way of verifying that the packets are actually using my CIR bandwidth either - I will only find out when there is bad congestion happening sometime in the future.

 

I also noticed that the 2D/Snap VOIP packets I am receiving do not have the VLAN PRI field set.  I really think they need to fix that, so that when everyone is on fibre, the VOIP traffic will have priority.  They do have the DSCP field set - the SIP packets are set to CS3, and the RTP packets to EF.

 

 

Are you sure it shouldn't be:

 

set interfaces ethernet eth0 vif 10 pppoe 0 egress-qos "1:5 2:5 3:5 4:5 5:5 6:5 7:5"

 

Also, if the command is doing what you suggest, wouldn't this only work if all your VoIP traffic is already tagged with a value of 1-7?

 

 

Oh wait, is this the EdgeRouter you have connected to the Internet, or the second one?


352 posts

Ultimate Geek
+1 received by user: 72


  Reply # 1492718 15-Feb-2016 16:18
Send private message

Paul1977:

 

fe31nz:

 

I now have my EdgeRouter Lite sending my VOIP packets with VLAN PRI set to 5, which seems to be what Chorus want for traffic to use the committed bandwidth and have priority over other traffic on the fibre.  This is the command I had to add to my config:

 

set interfaces ethernet eth0 vif 10 egress-qos "1:5 2:5 3:5 4:5 5:5 6:5 7:5"

 

It seems like that command will make all packets with a non-zero DSCP value have a VLAN PRI of 5, but I am still not sure how the settings work.  I have no way of verifying that the packets are actually using my CIR bandwidth either - I will only find out when there is bad congestion happening sometime in the future.

 

I also noticed that the 2D/Snap VOIP packets I am receiving do not have the VLAN PRI field set.  I really think they need to fix that, so that when everyone is on fibre, the VOIP traffic will have priority.  They do have the DSCP field set - the SIP packets are set to CS3, and the RTP packets to EF.

 

 

Are you sure it shouldn't be:

 

set interfaces ethernet eth0 vif 10 pppoe 0 egress-qos "1:5 2:5 3:5 4:5 5:5 6:5 7:5"

 

Also, if the command is doing what you suggest, wouldn't this only work if all your VoIP traffic is already tagged with a value of 1-7?

 

 

No, the VLAN tagging is done on the VLAN, not the PPPoE interface.  The VLAN header is where the PRI field is - not in any of the PPPoE headers or packets.  The egress-qos option is not valid on the pppoe settings - it must be on the VLAN (vif 10) settings.

 

As I said, I do not understand where the SO_PRIORITY socket field referenced by the left hand side of those settings comes from.  Somehow, it seems to come from the DSCP field in the IP header, but that is not what it is documented as.  If it were, the documentation would be referencing the IP_TOS field for a socket.  While writing this reply, I did finally come across this page:

 

https://www.rationali.st/blog/dscp-vs-linux-socket-priorities.html

 

which explains how it seems to work, but it is not official documenation.




2230 posts

Uber Geek
+1 received by user: 623


  Reply # 1493035 16-Feb-2016 09:22
Send private message

fe31nz:

 

No, the VLAN tagging is done on the VLAN, not the PPPoE interface.  The VLAN header is where the PRI field is - not in any of the PPPoE headers or packets.  The egress-qos option is not valid on the pppoe settings - it must be on the VLAN (vif 10) settings.

 

As I said, I do not understand where the SO_PRIORITY socket field referenced by the left hand side of those settings comes from.  Somehow, it seems to come from the DSCP field in the IP header, but that is not what it is documented as.  If it were, the documentation would be referencing the IP_TOS field for a socket.  While writing this reply, I did finally come across this page:

 

https://www.rationali.st/blog/dscp-vs-linux-socket-priorities.html

 

which explains how it seems to work, but it is not official documenation.

 

 

Thanks for that, just to make sure I understand:

 

The left field in the command is the Linux Prio field from the referenced table, and the EdgeRouter automatically knows this value for each packet based on the DSCP field that the Fritz is now assigning the VoIP traffic?

 

So this command would work just as well (since DSCP 46 and 24 correspond to Linux Prio 2 and 4 respectively)?:

 

set interfaces ethernet eth0 vif 10 egress-qos "2:5 4:5"

 

Am I correct that this isn't actually performing any QoS, but rather just tagging the traffic so that QoS is perform on subsequent hops? So therefore not disabling hardware offloading on the EdgeRouter?


'That VDSL Cat'
8103 posts

Uber Geek
+1 received by user: 1693

Trusted
Spark
Subscriber

  Reply # 1493267 16-Feb-2016 14:42
Send private message

Paul1977:

 

 

 

Am I correct that this isn't actually performing any QoS, but rather just tagging the traffic so that QoS is perform on subsequent hops? So therefore not disabling hardware offloading on the EdgeRouter?

 

 

the idea is to use the CIR on the ufb, where its handled as high probity traffic past your router.





#include <std_disclaimer>

 

Any comments made are personal opinion and do not reflect directly on the position my current or past employers may have.


352 posts

Ultimate Geek
+1 received by user: 72


  Reply # 1493430 16-Feb-2016 20:34
Send private message

Paul1977:

 

Thanks for that, just to make sure I understand:

 

The left field in the command is the Linux Prio field from the referenced table, and the EdgeRouter automatically knows this value for each packet based on the DSCP field that the Fritz is now assigning the VoIP traffic?

 

So this command would work just as well (since DSCP 46 and 24 correspond to Linux Prio 2 and 4 respectively)?:

 

set interfaces ethernet eth0 vif 10 egress-qos "2:5 4:5"

 

Am I correct that this isn't actually performing any QoS, but rather just tagging the traffic so that QoS is perform on subsequent hops? So therefore not disabling hardware offloading on the EdgeRouter?

 

 

That is pretty much correct, except that the Linux kernel is a bit behind the times and is referencing the TOS bits rather than the DSCP bits.

 

I have other DSCP tagged traffic, and I want all the other non-zero tags to be mapped to CIR bandwidth, hence my setting of egress-qos "1:5 2:5 3:5 4:5 5:5 6:5 7:5".

 

I am not doing any QoS inside my EdgeRouter Lite as that would cut the speed it routes packets to well below my 200 Mbit/s fibre speed by disabling offloading.  In any case, there is no need as I do not have any congestion problems on my internal network that would affect the VOIP traffic.


1 | 2 | 3 
View this topic in a long page with up to 500 replies per page Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

Hawaiki Transpacific cable ready-for-service
Posted 20-Jul-2018 11:29


Microsoft Dynamics 365 Business Central launches
Posted 10-Jul-2018 10:40


Spark completes first milestone in voice platform upgrade
Posted 10-Jul-2018 09:36


Microsoft ices heated developers
Posted 6-Jul-2018 20:16


PB Technologies charged for its extended warranties and warned for bait advertising
Posted 3-Jul-2018 15:45


Almost 20,000 people claim credits from Spark
Posted 29-Jun-2018 10:40


Cove sells NZ's first insurance policy via chatbot
Posted 25-Jun-2018 10:04


N4L helping TAKA Trust bridge the digital divide for Lower Hutt students
Posted 18-Jun-2018 13:08


Winners Announced for 2018 CIO Awards
Posted 18-Jun-2018 13:03


Logitech Rally sets new standard for USB-connected video conference cameras
Posted 18-Jun-2018 09:27


Russell Stanners steps down as Vodafone NZ CEO
Posted 12-Jun-2018 09:13


Intergen recognised as 2018 Microsoft Country Partner of the Year for New Zealand
Posted 12-Jun-2018 08:00


Finalists Announced For Microsoft NZ Partner Awards
Posted 6-Jun-2018 15:12


Vocus Group and Vodafone announce joint venture to accelerate fibre innovation
Posted 5-Jun-2018 10:52


Kogan.com to launch Kogan Mobile in New Zealand
Posted 4-Jun-2018 14:34



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.