Community discussions

MikroTik App
 
User avatar
leostereo
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Thu Oct 18, 2012 11:36 pm
Location: mendoza , argentina
Contact:

qinq - stripping outer vlan with hardware offloading

Wed Dec 30, 2020 4:50 pm

Hi guys ,

Im receiving from my provider following frame on my CRS317 (ver6.45) sfp interface.
s-vlan : 1000
c-vlan : 600, 500.
I need to remove the outer (s-vlan) and forward those paquets tagged with inner vlans (500 and 600) on another trunk interface.
Of course .... I would like to use offload chip feature.

I founded following example:
https://wiki.mikrotik.com/wiki/Manual:I ... 8Q-in-Q.29
But ... this is not my scenario and it is not very clear for me.
Other consern is , I already have bridge with multiple bounded tagged interfaces to it... so I dont want to take down those services.

Can you point more working examples for this ?
Regards.
Leandro.
 
User avatar
CZFan
Forum Guru
Forum Guru
Posts: 2098
Joined: Sun Oct 09, 2016 8:25 pm
Location: South Africa, Krugersdorp (Home town of Brad Binder)
Contact:

Re: qinq - stripping outer vlan with hardware offloading

Wed Dec 30, 2020 11:25 pm

I would think where the provider hands off the connection to you, the s tag is removed and you should only receive the 2 c tags from hand off
 
User avatar
StubArea51
Trainer
Trainer
Posts: 1742
Joined: Fri Aug 10, 2012 6:46 am
Location: stubarea51.net
Contact:

Re: qinq - stripping outer vlan with hardware offloading

Thu Dec 31, 2020 2:26 am

Seems like they have an example of this in the new help docs.

If i'm reading it right, you'll need a bridge set with ether-type=0x88a8

https://help.mikrotik.com/docs/display/ ... VLAN+Table
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13105
Joined: Thu Mar 03, 2016 10:23 pm

Re: qinq - stripping outer vlan with hardware offloading

Thu Dec 31, 2020 6:10 pm

I'm receiving from my provider following frame on my CRS317 (ver6.45) sfp interface.
...
Of course .... I would like to use offload chip feature.

Other consern is , I already have bridge with multiple bounded tagged interfaces to it... so I dont want to take down those services.

As @IPANetEngineer noted, you need a bridge with ether-type=0x88a8 to add/remove S-TAGs. So you can't do it using your existing bridge (assuming it's dealing with usual C-TAGs with ether-type=0x8100). While it is possible to have multiple bridges in a single Mikrotik device, only one bridge can be HW-offloaded. So you'll either have to disable HW-offloading for one bridge (e.g. the one dealing with S-TAGs) and face pretty low performance (something around 1Gbps per CRS device, but shouldn't affect performance of the other bridge) or dedicate one CRS for S-TAG handling (I'm not sure if other Mikrotiks with switch chips can handle ether type 0x88a8 in hardware).
 
User avatar
Maggiore81
Trainer
Trainer
Posts: 602
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: qinq - stripping outer vlan with hardware offloading

Sun Nov 26, 2023 2:06 pm

Hello
sorry to resurrect an old thread, but the question is still valid, also for me.

From the ISP we got vlan (100), and then other different vlans (10,11,12,13)

At the moment we use the cisco's way to handle them:
vlan 100 on the sfpplus interface, vlan 10,11,12 on the vlan 100 interface.
Then in the end we bridge all the inner vlans 10,11,12 into a big bridge and we start from there.
It is not optimized at all.
We dont use "use service tag yes anywhere" so they should be 0x8100
Can we see some real examples?

It will not be an issue to use a first CRS (for example a CRS309) as front-end to the isp, then making a connection to our CCR2116, so we could implement the l3-hw easily

thank you