Community discussions

MikroTik App
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Single TCP Connection issue

Fri Oct 08, 2021 9:47 pm

Hello
as I read on other threads, I am experiencing low speed in single tcp connections test.

I try with iperf through one RB1009 and one 1036, and another 2004 with rj01 (not the eth port)

Multimple tcp stream test, I can saturate easily 1G speed.
Single tcp test, the best case are around 500M

I tried both with fastpath (routing)
fasttrack
no change

I have read that the connection is tied to a single CPU, so the TILE are around 1000-1200MHz, I replaced them with a 2004 with 1.7Ghz ARM cpu, I expected better results, but they are the same.

how can I solve this issue?
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Single TCP Connection issue

Sat Oct 09, 2021 1:10 am

For me, all these single TCP session throughput issues always boiled down to packet loss so far - either caused merely by low quality network or by a too coarse bandwidth shaping. So watch for this at first.
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: Single TCP Connection issue

Sat Oct 09, 2021 11:40 am

Hello, thank you for your reply.
In that part of the network we don't have any shaping or bandwidth restriction.
I am able to reproduce this issue with single tcp connection speed (as other in the forum).
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Single TCP Connection issue

Sat Oct 09, 2021 11:56 am

Have you tried to sniff at the iperf server and iperf client themselves? I don't comment on CCR10xx as there indeed the concept of many relatively weak cores may affect single-stream throughput; I have in mind when testing with the CCR2xxx.
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: Single TCP Connection issue

Wed Oct 20, 2021 11:59 pm

Hello
what do I have to sniff?
 
mikruser
Long time Member
Long time Member
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: Single TCP Connection issue

Mon Oct 25, 2021 6:41 pm

how can I solve this issue?
Try replacing hardware routers with CHR routers.
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: Single TCP Connection issue

Mon Oct 25, 2021 6:51 pm

It is not possible. However both 1036 and 2004 have the very same issue.
 
mikruser
Long time Member
Long time Member
Posts: 578
Joined: Wed Jan 16, 2013 6:28 pm

Re: Single TCP Connection issue

Mon Oct 25, 2021 7:26 pm

However both 1036 and 2004 have the very same issue.
Yes, all hardware routers have same issue.
CHR do not have this issue: viewtopic.php?t=146665#p770846
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Single TCP Connection issue

Mon Oct 25, 2021 11:34 pm

what do I have to sniff?
The idea of sniffing is to see whether the throughput is limited by delays between packets or by losses and subsequent retransmissions. So you should sniff the test TCP session and then use Wireshark to look for anomalies.
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: Single TCP Connection issue

Tue Oct 26, 2021 10:46 am

Thank you. There are no limitation in this aspect.
the limitation appears to be on the MT hardware routers
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: Single TCP Connection issue

Wed Oct 27, 2021 7:52 pm

@normis any news?
 
R1CH
Forum Guru
Forum Guru
Posts: 1101
Joined: Sun Oct 01, 2006 11:44 pm

Re: Single TCP Connection issue

Wed Oct 27, 2021 10:06 pm

Is iperf showing dropped packets / retransmission? If not then it's limited by OS on one of the sides. Have you adjusted buffer sizes and window scaling on the sender / receiver?
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: Single TCP Connection issue

Wed Oct 27, 2021 10:28 pm

No losses anywhere. If i replace the mt with a cisco a edgerouter for example, i dont have this limitation
 
R1CH
Forum Guru
Forum Guru
Posts: 1101
Joined: Sun Oct 01, 2006 11:44 pm

Re: Single TCP Connection issue

Thu Oct 28, 2021 12:54 am

Strange, I've managed about 960mbps through a single TCP connection on a CCR1009. What does tool / profile look like?
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: Single TCP Connection issue

Thu Oct 28, 2021 7:36 am

Try doing nat on the ccr, with fasttrack.
 
Bitto
Frequent Visitor
Frequent Visitor
Posts: 94
Joined: Wed May 02, 2012 10:15 am

Re: Single TCP Connection issue

Wed Jan 17, 2024 12:49 pm

any updates on this issue?
this is a huge problem..
 
User avatar
Maggiore81
Trainer
Trainer
Topic Author
Posts: 564
Joined: Sun Apr 15, 2012 12:10 pm
Location: Italy
Contact:

Re: Single TCP Connection issue

Wed Jan 17, 2024 12:54 pm

I replaced the CCR with a ARM cpu router (as the 2004) and the issue disappeared.
 
Bitto
Frequent Visitor
Frequent Visitor
Posts: 94
Joined: Wed May 02, 2012 10:15 am

Re: Single TCP Connection issue

Wed Jan 17, 2024 2:49 pm

I can confirm that it is way better on arm device like 2216.
yet we detected weird problem if we connect from different interface of ccr and test single stream downloads we see 200-500 mbits even if there is 8 gigabit of traffic load but if we do not connect directly to that router for example we connect from a device that located behind that router and if there is a traffic load like 5-7 Gbits on 10G port, then, single stream speed reduces to 20-10 mbits ..
we tried every possible configuration fast path, fast track without any success.

Who is online

Users browsing this forum: No registered users and 80 guests