Linux Netfilter discussions
 help / color / mirror / Atom feed
* Sending packets through different interfaces and with different IPs to the same destination
@ 2008-11-28 15:08 Javier Gálvez Guerrero
  2008-12-01 19:37 ` Javier Gálvez Guerrero
  0 siblings, 1 reply; 3+ messages in thread
From: Javier Gálvez Guerrero @ 2008-11-28 15:08 UTC (permalink / raw)
  To: netfilter

Hi all,

I want to monitor the quality of two different interfaces on a
client-server architecture. Let the interfaces be a wired ethernet
(eth0) and a wireless adapter (ath0). I want to use IPERF to get
performance statistics from these two interfaces. In the server I
start two different IPERF processes with two different ports (60301
for ath0 connections and 60302 for eth0 connections) listening to the
client to send dummy packets in order to get statistics.

In the client side I have configured interface ath0 with IP x.x.x.178
and eth0 with IP x.x.x.179 and I want the IPERF process sending
packets to server port 60301 (this is an argument for IPERF) sends
them through the ath0 interface with IP 178 and IPERF process sending
packets to server port 60302 does it through the eth0 interface with
IP 179, just as they are configured. Then the server receives these
packets and process them properly (acknowledging them through the
correct client interface and IP). It could be seen as a sort of
interface load balancing, but all load balancing examples I've found
on the Internet are targeted to router load balancing, and that's not
what I want.

I've been reading some iptables documentation through the official
site and other similar cases found googling and I've tried some
configurations with IPTABLES and IP ROUTE (I have used SNAT, TOS and
MARK) in order to get this working but everything I've tried hasn't
worked. Always some links fail to get the proper IP or MAC and the
configuration becomes unstable after a while, working correctly once
and the next time wrong.

I would like someone to help me with any piece of advice, idea or
similar experience reporting, then I can make this work as desired.
Any help would be much appreciated.


Regards,
Javi

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Sending packets through different interfaces and with different IPs to the same destination
  2008-11-28 15:08 Sending packets through different interfaces and with different IPs to the same destination Javier Gálvez Guerrero
@ 2008-12-01 19:37 ` Javier Gálvez Guerrero
  2008-12-01 20:25   ` Gilad Benjamini
  0 siblings, 1 reply; 3+ messages in thread
From: Javier Gálvez Guerrero @ 2008-12-01 19:37 UTC (permalink / raw)
  To: netfilter

Any idea about this?

Any help would be much appreciated. Thanks
Javi


2008/11/28 Javier Gálvez Guerrero <javier.galvez.guerrero@gmail.com>:
> Hi all,
>
> I want to monitor the quality of two different interfaces on a
> client-server architecture. Let the interfaces be a wired ethernet
> (eth0) and a wireless adapter (ath0). I want to use IPERF to get
> performance statistics from these two interfaces. In the server I
> start two different IPERF processes with two different ports (60301
> for ath0 connections and 60302 for eth0 connections) listening to the
> client to send dummy packets in order to get statistics.
>
> In the client side I have configured interface ath0 with IP x.x.x.178
> and eth0 with IP x.x.x.179 and I want the IPERF process sending
> packets to server port 60301 (this is an argument for IPERF) sends
> them through the ath0 interface with IP 178 and IPERF process sending
> packets to server port 60302 does it through the eth0 interface with
> IP 179, just as they are configured. Then the server receives these
> packets and process them properly (acknowledging them through the
> correct client interface and IP). It could be seen as a sort of
> interface load balancing, but all load balancing examples I've found
> on the Internet are targeted to router load balancing, and that's not
> what I want.
>
> I've been reading some iptables documentation through the official
> site and other similar cases found googling and I've tried some
> configurations with IPTABLES and IP ROUTE (I have used SNAT, TOS and
> MARK) in order to get this working but everything I've tried hasn't
> worked. Always some links fail to get the proper IP or MAC and the
> configuration becomes unstable after a while, working correctly once
> and the next time wrong.
>
> I would like someone to help me with any piece of advice, idea or
> similar experience reporting, then I can make this work as desired.
> Any help would be much appreciated.
>
>
> Regards,
> Javi
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Sending packets through different interfaces and with different IPs to the same destination
  2008-12-01 19:37 ` Javier Gálvez Guerrero
@ 2008-12-01 20:25   ` Gilad Benjamini
  0 siblings, 0 replies; 3+ messages in thread
From: Gilad Benjamini @ 2008-12-01 20:25 UTC (permalink / raw)
  To: 'Javier Gálvez Guerrero', netfilter

Assuming this is a lab environment, and all you want to do is check
performance, your easiest solution is not iptables related.
You can run your tests in two different IP subnets, one for the wired and
one for the wireless.
Optimally, your server would have two physical NICs for a clean test.
Even if it doesn't, you can configure alias addresses on a single NIC on the
server.

> -----Original Message-----
> From: netfilter-owner@vger.kernel.org [mailto:netfilter-
> owner@vger.kernel.org] On Behalf Of Javier G?lvez Guerrero
> Sent: Monday, December 01, 2008 11:38 AM
> To: netfilter@vger.kernel.org
> Subject: Re: Sending packets through different interfaces and with
> different IPs to the same destination
> 
> Any idea about this?
> 
> Any help would be much appreciated. Thanks
> Javi
> 
> 
> 2008/11/28 Javier Gálvez Guerrero <javier.galvez.guerrero@gmail.com>:
> > Hi all,
> >
> > I want to monitor the quality of two different interfaces on a
> > client-server architecture. Let the interfaces be a wired ethernet
> > (eth0) and a wireless adapter (ath0). I want to use IPERF to get
> > performance statistics from these two interfaces. In the server I
> > start two different IPERF processes with two different ports (60301
> > for ath0 connections and 60302 for eth0 connections) listening to the
> > client to send dummy packets in order to get statistics.
> >
> > In the client side I have configured interface ath0 with IP x.x.x.178
> > and eth0 with IP x.x.x.179 and I want the IPERF process sending
> > packets to server port 60301 (this is an argument for IPERF) sends
> > them through the ath0 interface with IP 178 and IPERF process sending
> > packets to server port 60302 does it through the eth0 interface with
> > IP 179, just as they are configured. Then the server receives these
> > packets and process them properly (acknowledging them through the
> > correct client interface and IP). It could be seen as a sort of
> > interface load balancing, but all load balancing examples I've found
> > on the Internet are targeted to router load balancing, and that's not
> > what I want.
> >
> > I've been reading some iptables documentation through the official
> > site and other similar cases found googling and I've tried some
> > configurations with IPTABLES and IP ROUTE (I have used SNAT, TOS and
> > MARK) in order to get this working but everything I've tried hasn't
> > worked. Always some links fail to get the proper IP or MAC and the
> > configuration becomes unstable after a while, working correctly once
> > and the next time wrong.
> >
> > I would like someone to help me with any piece of advice, idea or
> > similar experience reporting, then I can make this work as desired.
> > Any help would be much appreciated.
> >
> >
> > Regards,
> > Javi
> >
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-12-01 20:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-28 15:08 Sending packets through different interfaces and with different IPs to the same destination Javier Gálvez Guerrero
2008-12-01 19:37 ` Javier Gálvez Guerrero
2008-12-01 20:25   ` Gilad Benjamini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox