DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 11th May 2022
Woden27 Woden27 is offline
Port Guard
 
Join Date: May 2022
Posts: 12
Default A speed test with Iperf , Relayd and PF.

Hi all,

I am conducting some speed test inside my LAN evironment .
The actual testing network topology is as follow :

Iperf Client --> OpenBSD7.1 Proxy --> host server iperf

All the connections are with CAT 6 and running at 1000 Mbps speed .(1Gbps)

The interface 10.10.10.2 is em0 or the interface facing the outside.
The IP address of the iperf server is part of the network behind the Relay
with an address of 192.168.20.9.

With Iperf from the server side, I am using the default TCP window size (128KByte), as well from the client side .

When I use this relay with RELAYD :

Code:
tcp connection fixup {
  tcp nodelay
}

relay IPERF_TEST{
  listen on 10.10.10.2 port 6740 
  forward to 192.168.20.9 port 6670
  protocol fixup
}
With IPERF I obtain a speed of 144Mbps .

If instead, I deactivate the relayd function and using a simple PF redirecting with

Code:
pass in on em0 proto {tcp} from any to em0 port 6740 rdr-to 192.168.20.9 port 6670
I obtain a speed of 892 Mbps.

(which I should expect the same as normal for being a 1Gbps link)

This make me wonder now why using RELAYD makes the TCP redirection so slow and how to improve it since I will need to use Relayd for a HTTP-->HTTPS redirect for example using SNI for different domains.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Understanding relayd sleepyjoe OpenBSD Security 2 26th April 2020 05:30 AM
Test server barti OpenBSD General 4 2nd August 2012 08:11 AM
relayd gpatrick OpenBSD General 0 8th May 2012 10:10 PM
relayd gpatrick OpenBSD General 1 16th January 2010 12:19 AM


All times are GMT. The time now is 06:24 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick