Score:0

performance issue when linux(ubuntu) work as router with ip_forwarding enable

fj flag

I'm running a test with this topo: tester---(port1)ubuntu_linux(port2)----tester. I enabled ip_forwarding in ubuntu_linux by : echo 1 > /proc/sys/net/ipv4/ip_forward

The tester is trying to find the highest session setup rate, the basic session is: create a tcp port80 session, download a 1 byte file then close the session. The tester is trying to see how high the session setup rate could be.

In my test, the tester shows it reaches 80k sessions/sec, overall traffic throughput is low, only 200Mbps bi-direction. when try higher rate, packets dropping start to happen.

I also did a throughput test, with hundreds session, each session download a big file. overall traffic throughput could reach 2Gbps uni-direction.

To me, it looks like the ubuntu_linux has some limitation on session setup rate. I checked CPU/Memory but cannot find anything reached the limit.

My understanding is: linux does not keep session, only forward packets. So, I was expecting I got similar throughput for setup-rate test and throughput test.

Anybody know why? thanks in advance!

Tried to google "linux ip forwarding session setup rate", but cannot find anywhere talking about this.

hope to know what limits linux ip-forwarding session setup rate. how to improve

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.