Page 1 of 1
What's the max number of 3-Layer Switch's routing entries?
Posted: Sun Apr 05, 2015 5:13 am
by mawenjian
If I use the Virtual 3-Layer Switch as a router, I have to add hundreds of or thousands of routing entries to it. As there're so many routing entries, I'm concerned about its working efficiency.
So I'm wondering how many routing entrys that I can add to the Virtual 3-Layer Switch, without reduing the efficiency?
Re: What's the max number of 3-Layer Switch's routing entri
Posted: Sun Apr 05, 2015 7:39 am
by kh_tsang
I have no idea on that. However, your network seems to be very large. I think you should consider using dynamic routing instead. Use tap device and do routing with your OS.
Re: What's the max number of 3-Layer Switch's routing entri
Posted: Sun Apr 05, 2015 7:54 am
by mawenjian
kh_tsang wrote:
> I have no idea on that. However, your network seems to be very large. I
> think you should consider using dynamic routing instead. Use tap device and
> do routing with your OS.
No, in fact, my network is quite small. I just want to distinguish the traffic to foreign countries.
Re: What's the max number of 3-Layer Switch's routing entri
Posted: Sun Apr 05, 2015 8:01 am
by kh_tsang
Are you doing multi-homing/load balancing? It seems there is no need to separate the traffic if you only have one WAN or you are not doing QoS.
Re: What's the max number of 3-Layer Switch's routing entri
Posted: Sun Apr 05, 2015 8:26 am
by GIANT_CRAB
It depends on what your router is, specifications, OS, etc.
Having thousands of static routing entries is very inefficient and I would highly recommend you to run an IGP instead - OSPF, RIP2, etc.
>I just want to distinguish the traffic to foreign countries.
Use GeoIP locationing.
Your setup sounds like you want to setup an Anycast network?
Re: What's the max number of 3-Layer Switch's routing entri
Posted: Sun Apr 05, 2015 8:47 am
by mawenjian
GIANT_CRAB wrote:
> It depends on what your router is, specifications, OS, etc.
>
> Having thousands of static routing entries is very inefficient and I would highly
> recommend you to run an IGP instead - OSPF, RIP2, etc.
>
> >I just want to distinguish the traffic to foreign countries.
>
> Use GeoIP locationing.
>
> Your setup sounds like you want to setup an Anycast network?
No...... I'm in China.
I have a VPS in China and one in the US. Both have installed the SoftEther VPN , and they're connected. The domestic one runs as an access point, and be used as an virtual 3-Layer switch. When I visit domestic website, the domestic VPS will directly transfer the traffic by local 'Secure NAT'. However, when I visit an foreign one, the domestic VPS will forward the traffic to the VPS in US, through SoftEther's VPN tunnel. To specify the traffic to domestic and foreign, I've to add many routing entries to the 3-Layer switch.
So, there is the question above.
Re: What's the max number of 3-Layer Switch's routing entri
Posted: Sun Apr 05, 2015 9:00 am
by mawenjian
kh_tsang wrote:
> Are you doing multi-homing/load balancing? It seems there is no need to
> separate the traffic if you only have one WAN or you are not doing QoS.
No.
I have a VPS in China and one in the US. Both have installed the SoftEther VPN , and they're connected. The domestic one runs as an access point, and be used as an virtual 3-Layer switch. When I visit domestic website, the domestic VPS will directly transfer the traffic by local 'Secure NAT'. However, when I visit an foreign one, the domestic VPS will forward the traffic to the VPS in US, through SoftEther's VPN tunnel. To specify the traffic to domestic and foreign, I've to add many routing entries to the 3-Layer switch.
So, there is the question above.
Re: What's the max number of 3-Layer Switch's routing entri
Posted: Sun Apr 05, 2015 9:17 am
by GIANT_CRAB
You still need GeoIP location or else manually setting those routing entries is going to be highly inefficient. Another alternative would be to run BGP.
I would consider this an anycast network already but it is more towards latency-based routing.
Re: What's the max number of 3-Layer Switch's routing entri
Posted: Thu Apr 16, 2015 7:02 am
by thisjun
SoftEther VPN supports 4096 table entries.
https://github.com/SoftEtherVPN/SoftEth ... ar/Cedar.h
#define MAX_NUM_L3_TABLE 4096