Be careful, SFP+ ports are connected to CPU, not switch chips.Hi all,
I have a CCR2004 (which has two switch chips, 9 ports on chip 1 and 9 ports on chip 2, both Marvell 88E6191X).
mkx was that across platforms or only applicable to the RB4011 ??Yes, you can have single bridge spanning both port groups. With potential performance hit mentioned by @anav.
There was a bug in how ROS configures VLAN offload to switch chips ... on devices with two switch chips it was necessary to add bridge port as tagged member of all VLANs which span both switch chips even if router doesn't communicate with it (useful when device is used as a switch), otherwise frames would not pass between ports on different switch chips. This bug was acknowledged by MT, but I'm not sure if it was fixed already.
As far as I understood MT staffer who chimed in (could be it was Normis, could be it was somebody else) was that the bug was in the way ROS configured the switch-CPU interconnect port of the switch. I.e. it was configured to pass only VLANs of which bridge (the CPU-facing) port was member. Which is fine for devices with single switch-chip and the switch-CPU interconnect is really used only for interaction between ROS and network. But this is not OK on devices with multiple switch chips where switch-CPU interconnects are used also for (indirectly) interconnecting different switch chips where switch-CPU ports must be configured to pass also VLANs present on other switch chips even if ROS doesn't interact with them.mkx was that across platforms or only applicable to the RB4011 ??
Two ASICs, means two bridges.
bridge1 for ports ether1-8, bridge2 for ether 9-16, this ensures both port groups are fully hardware offloaded to the correct ASIC.
For SFP1 and SFP2, both being independent paths towards the CPU, you could put them in bride3
You could do that, by running a cable from ether8 to ether9, but why? This is a bandwidth poor approach.But it doesn't have to be two bridges, one bridge spanning all ether ports will do just fine.
... but why?
Hi mkx, that's an interesting remark. I may indeed have purchased the wrong device (in my defence: I'm a system administrator, not a network administrator). I could use the CCR2004's ports only for routing/separating between interfaces but I thought using the switch chips in it would accomplish the same thing only on layer two. Furthermore, directly attached to the CCR2004 are a number of switches (different brands) that have a number of VLANs on them. How would I connect several VLANS (on different switches) if not by using a bridge on the CCR2004? I work for a school (thus (very) low budget) so I use the CCR2004 as a router with integrated core switch.... but why?
Using a CCR2004 in a switch manner is a sin to begin with. But it's up to device admin how he wants to use his device and I simply answered questions by @KrisVG. You, OTOH, are risking accusations about pushing your own ideas upon person asking for help (accusations seem to be fashionable these days).
Hi DarkNate,You could do that, by running a cable from ether8 to ether9, but why? This is a bandwidth poor approach.But it doesn't have to be two bridges, one bridge spanning all ether ports will do just fine.
It was a more or less rethorical remark, directed at @DarkNate . Since you already have the device, you should use it as much as possible ("abuse" even). If using it as router/switch combo fits your needs, then just use it so. And if you're not after last bps of performance, then you don't have to bother with all the tricks @DarkNate mentioned (specially so as they come with their own price) which then allows you to apply a much more straight-forward config.Hi mkx, that's an interesting remark.
So if I want a single bridge I need to connect two ports (one of each switch chip) and probably configure them as trunk for all VLANs.
Don't listen to @mkx, he's trying to sell you a piss poor implementation that itself doesn't match official MikroTik docs. He calls my approach as “tricks” even though official MikroTik agrees.Hi DarkNate,
So if I want a single bridge I need to connect two ports (one of each switch chip) and probably configure them as trunk for all VLANs. Is that correct? If so, that would be a lot of unneccesary traffic going over that connection, is that what you mean by "bandwidth poor approach"?
FYI: I'm going for the two bridge approach and if a connected switch has VLANs of both bridges I'll just connect two ports of that switch with one port of each bridge.
Using the cable works, offloading will work, but you're limited to just 1Gig for inter-ASIC forwarding.For devices that have multiple switch chips (for example, RB2011, RB3011, RB1100), each switch chip is only able to switch VLAN traffic between ports that are on the same switch chip, VLAN filtering will not work on a hardware level between ports that are on different switch chips, this means you should not add all ports to a single bridge if you are intending to use VLAN filtering using the switch chip, VLANs between switch chips will not get filtered. You can connect a single cable between both switch chips to work around this hardware limitation, another option is to use Bridge VLAN Filtering, but it disables hardware offloading (and lowers the total throughput).
CCR2004 fits under the "Other devices with a built-in switch chip" section, please check with official MikroTik support, you don't have to trust me blindly, verify.@DarkNate, I could have misread and I don't even have 0,1% of your knowledge, the note you posted seems to be for "Other devices with a built-in switch chip" (VLANs configured on the switch).
I was one that reported bug on the RB4011 in v7.8 for devices with 2 switches and hardware offload, until v7.7 and from v7.10 devices (RB4011 + CCR2004) with multiple switches and a single bridge are working as expected.
This type of configuration should be used on RouterBOARD series devices, this includes RB4xx, RB9xx, RB2011, RB3011, hAP, hEX, cAP and other devices.
/interface bridge
add dhcp-snooping=yes frame-types=admit-only-vlan-tagged igmp-snooping=yes igmp-version=3 mld-version=2 name=Bridge protocol-mode=mstp vlan-filtering=yes
/interface bridge port
add bridge=Bridge edge=no-discover frame-types=admit-only-vlan-tagged interface=sfp-sfpplus1 point-to-point=yes
add bridge=Bridge edge=no-discover frame-types=admit-only-vlan-tagged interface=ether3 point-to-point=yes
add bridge=Bridge edge=no-discover frame-types=admit-only-vlan-tagged interface=ether10 point-to-point=yes
add bridge=Bridge edge=yes-discover fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether4 point-to-point=yes pvid=10
add bridge=Bridge edge=yes-discover fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether5 point-to-point=yes pvid=10
add bridge=Bridge edge=yes-discover fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether6 point-to-point=yes pvid=10
add bridge=Bridge edge=yes-discover fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether7 point-to-point=yes pvid=10
add bridge=Bridge edge=yes-discover fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether8 point-to-point=yes pvid=20
add bridge=Bridge edge=yes-discover fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether9 point-to-point=yes pvid=30
Don't listen to @mkx, he's trying to sell you a piss poor implementation that itself doesn't match official MikroTik docs. He calls my approach as “tricks” even though official MikroTik agrees.
See this link:
https://help.mikrotik.com/docs/display/ ... switchchip
Exactly. That's what the manual states. But some people are too dumb for their own good.mkx - believe you are wrong this time around. Every one of the devices cited in that section has 1 switch chip only. So, when there is 1 switch chip only, a 88E5191X would be configured accordingly. The disclaimer further down is specifically about devices with two switch chips. Therefore, one would efficiently configure a CCR2004 with 2 bridges, 8 ports per bridge. A CCR2216 or CCR2116 would be configured with 1 bridge only, because it only has one switch chip between the ports and the CPU. Can't be any clearer to me if you look at the block diagrams. YES, you could configure a CCR2004 with all ports on 1 switch, but you would lose the HW offloading on 8 of those ports.
I think only intra-asic ports are offloaded. There's no way inter-asic is offloaded without a cable because inter-asic physical path doesn't exist, and therefore would be punted to the CPU.Yes sir. DarkNate,
I trust you more than me
This is an RB4011, currently I can't show you that ports were hardware offloaded due to testing dhcp/igmp snooping enabled;Support involved with SUP-141900 to give us an official statement.Code: Select all/interface bridge add dhcp-snooping=yes frame-types=admit-only-vlan-tagged igmp-snooping=yes igmp-version=3 mld-version=2 name=Bridge protocol-mode=mstp vlan-filtering=yes /interface bridge port add bridge=Bridge edge=no-discover frame-types=admit-only-vlan-tagged interface=sfp-sfpplus1 point-to-point=yes add bridge=Bridge edge=no-discover frame-types=admit-only-vlan-tagged interface=ether3 point-to-point=yes add bridge=Bridge edge=no-discover frame-types=admit-only-vlan-tagged interface=ether10 point-to-point=yes add bridge=Bridge edge=yes-discover fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether4 point-to-point=yes pvid=10 add bridge=Bridge edge=yes-discover fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether5 point-to-point=yes pvid=10 add bridge=Bridge edge=yes-discover fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether6 point-to-point=yes pvid=10 add bridge=Bridge edge=yes-discover fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether7 point-to-point=yes pvid=10 add bridge=Bridge edge=yes-discover fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether8 point-to-point=yes pvid=20 add bridge=Bridge edge=yes-discover fast-leave=yes frame-types=admit-only-untagged-and-priority-tagged interface=ether9 point-to-point=yes pvid=30
No, there is nowhere in that 1st section that says one switch chip only. It also mostly lists the switch chips, not the devices. And as you can see in the the RouterBoard device tables on this pagemkx - believe you are wrong this time around. Every one of the devices cited in that section has 1 switch chip only. So, when there is 1 switch chip only, a 88E5191X would be configured accordingly. The disclaimer further down is specifically about devices with two switch chips. Therefore, one would efficiently configure a CCR2004 with 2 bridges, 8 ports per bridge. A CCR2216 or CCR2116 would be configured with 1 bridge only, because it only has one switch chip between the ports and the CPU. Can't be any clearer to me if you look at the block diagrams. YES, you could configure a CCR2004 with all ports on 1 switch, but you would lose the HW offloading on 8 of those ports.
The document cites some devices and some switch chip types. Device which @IP uses, has one of cited switch chip types. And section doesn't consider multi-switch-chip devices at all. We can only guess why that is but reason being that it doesn't really matter is a probable one as well.mkx - believe you are wrong this time around. Every one of the devices cited in that section has 1 switch chip only.
inter-asic traffic is punted via CPU, stop purporting fake information like mkx. The proper solution is to run a cable between both ASICs.For someone with a CCR2004-16G-2S+ and a single bridge between both switch chips and one of the SFP+ ports, the hardware offloading does work as long as the same vlan to vlan traffic is on the same switch chip.
So the winner is mkx!
I guess you did not understand my statement - traffic on the same switch chip (via the same vlan) will be hardware offloaded. Anything outside of that one switch chip will go to the CPU. My statement was to say that the switch chip functionality still works even when using one bridge as long as the traffic does not need to leave the switch chip.inter-asic traffic is punted via CPU, stop purporting fake information like mkx. The proper solution is to run a cable between both ASICs.For someone with a CCR2004-16G-2S+ and a single bridge between both switch chips and one of the SFP+ ports, the hardware offloading does work as long as the same vlan to vlan traffic is on the same switch chip.
So the winner is mkx!
viewtopic.php?t=203659#p1051860
inter-asic traffic is punted via CPU, stop purporting fake information like mkx.
What is crazy is the fact MikroTik still makes new products with this weird double ASIC thing, which doesn't result in double performance at all in practice.I think this is what we've all been talking about but in different aspects, some of focused more on best practices versus if something can be done. I never meant to infer that you absolutely cannot use the router in different ways. It's like people who use CRS switches for routers in their home. Yes, it might work but that's not a best practice IMHO.
My thoughts we're focused more on the most efficient way to use the router in order to eek out every bit of performance possible. Hitting the CPU isn't a problem if you have the CPU to spare and you're fine with that. My tests just now confirm the hardware offload with one bridge but also show a 10% CPU load doing a local speed test between devices connected to ports that are in the different switch chips. It's 0% if they are on the same chip. So it won't take many threads across the CPU before you would start seeing performance/stability issues. Running a cable between ports in the switch seems stupid since you'd be taking 7 possible ports at 1 gig each (7 gigs traffic) and limiting them to just a 1 gig trunk. Crazy talk.
I agree on this. Everyone's a network engineer, everyone's an expert, until shit hits the fan, then either one:At the end of the day, the story I've seen time and time again on this forum is that people buy things without researching the block diagram and understanding how the device was meant to be used versus how they want to use it or what their network needs are.
Both methods are correct.Let us know what official support says at least for RB4011.
Re-read post #10 above ... you claimed that single bridge means reduced throughput (you didn't go with CPU punting initially). And you claimed that one would have to use short patch cable (implicitly saying that switch-CPU interconnects could not be used at all).Bottom-line, single bridge means packet is punted to CPU for inter-switch chip traffic… Don't know how I was wrong at all.