Community discussions

MikroTik App
 
anuser
Long time Member
Long time Member
Topic Author
Posts: 601
Joined: Sat Nov 29, 2014 7:27 pm

[EoIP over DSL] throughput expectations?

Sat Feb 12, 2022 8:44 pm

Hello, so I used EoIP to get a layer 2 tunnel between a DSL (Digital Subscriber Line) and a datacenter. Setup:
=> device A----[LAN switch]-----MikroTic cAP ac-<EoIP tunnel>---------------------Internet (latency ~ 60ms)-------------------<EoIP tunnel>-MikroTic cAP ac-----[LAN switch]----device B


- When connected directly to the internet at the DSL line I can happily get 250 Mbit/s download and 40 Mbit/s upload throughput
- Running a benchmark between "device A" and "device B" over EoIP I reach about 70 Mbit/s download and 35 Mbit/s upload. To reach those numbers I had to disable IPsec and enable fastpath on bot cAP ac devices.
- It would be great to get some better download throughput, though. I assume my latency is too high? Is there any setting I can change to improve the throughput? The cpu usage on the MikroTik cap AC devivces (both running 6.48.6) is low while running the tunnel, btw.
 
User avatar
sindy
Forum Guru
Forum Guru
Posts: 11278
Joined: Mon Dec 04, 2017 9:19 pm

Re: [EoIP over DSL] throughput expectations?

Sat Feb 12, 2022 10:24 pm

I have seen issues related to randomly lost fragments on multiple unrelated networks, so I wonder whether that can be related to your experience here too. Have you set the MTU of the EoIP interfaces low enough to be sure the transport (EoIP) packets wouldn't be fragmented?

Other than that, I had better results with L2TP/BCP, but that was reliability-wise, not speed-wise - I didn't need much speed back then. I had some lost frames on EoIP but none on L2TP/BCP (while the routers were connected using just a single Ethernet patchcord), but it was somewhere at the 6.43 times.
 
sup5
Member
Member
Posts: 359
Joined: Sat Jul 10, 2010 12:37 am

Re: [EoIP over DSL] throughput expectations?

Sun Feb 13, 2022 11:44 am

1) set the Layer-3 MTU of the EoIP source interfaces to the lowest ISP MTU (eg. 1492 for PPPoE)

2) set the Layer-3 MTU to something like 1432 in the EoIP interface. Leave the Layer-2 MTU isaneably high.

3) enable adjust TCP-MSS

4) only transport untagged traffic over the EoIP. Use one EoIP tunnel per VLAN.



Why ist that? Here is why:

1) sending 1500 byte Frames will be Fragmented into 1500 + 8 Bytes ar the ISPs border

2) sending 1500 byte into EoIP gets Fragmented into 1500 + 30 (or so) Bytes
Thus 2 + 1 (in that order) gives you *three* Fragments 1500 + 8 + 30 Bytes

3) this makes TCP being gracefully clamped down to a MTu that will not cause Fragments in 1) and 2), but still allows UDP port other Traffic to have the full MTU with Fragments (due to compatibility reasons).

4) TCP-MSS clamping does not work for tagged Frames over EoIp


I've done intensive testing in this regard. Also I did lot's of packet captures to find the correct setting, that cause no Fragments to be seen.
 
snoms
just joined
Posts: 18
Joined: Tue Nov 30, 2010 1:15 pm

Re: [EoIP over DSL] throughput expectations?

Thu Aug 22, 2024 9:27 pm

Would it be possible to provide an example configuration with mentioned MTUs?