The problem in user space is i cannot get a new port
as for every connection. If i get say 65000 requests
and i have 10 real servers behind i cannot create more
than 1024 sockets per application. Also my
specification is that each real server will expect a
unique 5 tuple src ip, src port, dst ip, dst port,
protocol. So we have to tinker with the kernel code.
Is there any way to get new ports from the application
--- Sarada Seshadri <email@example.com> wrote:
> > I am new to Linux networking code and am trying
> > something new for my project.
> > I'm basically trying to build a port based Load
> > Balancer box. In short i maintain a table of ports
> > then forward whatever request i get to a server
> > ip i know. But the problem is that i am unable to
> > forward a packet with the source ip as the address
> > this machine. I have added code in ip_input.c to
> > this and do a ip_route_input after doing a
> > dst_release. It is able to forward the packet if
> > source address is not changed. ( ip_forwarding is
> > enabled and i have also run echo 1 >
> > /proc/sys/net/ipv4/ip_forward). IP firewalling is
> > enable.
> > However when i assign the source address as this
> > machine it is not able to forward the packet.
> I would suggest that you work in user space rather
> tinkering with the kernel code. This would also
> scope for novel features in your load balancer.
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to firstname.lastname@example.org
This archive was generated by hypermail 2b29 : Mon Apr 30 2001 - 21:00:29 EST