WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] poor outbound network performance on DNATed domU

To: Xen Users <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] poor outbound network performance on DNATed domU
From: Christoph Fritsche <chr.fr@xxxxxxx>
Date: Thu, 24 Apr 2008 23:13:36 +0200
Delivery-date: Thu, 24 Apr 2008 14:12:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)
Hi everyone,

I experience a weird network behavior. There is a poor network performance for a domU behind DNAT when delivering data from the domU to the outside world. The other way around is surprisingly not affected. I'm using bridged networking on xen 3.2.1 with almost stock Debian etch.

The domU behind DNAT delivers a http download with about 57.67 KB/s. For example another domU with ordinary bridged networking delivers the same file to the same client with 10.73 MB/s.

The strange thing is, that uploading to the nated domU is not affected. Sending the previously downloaded file back to the domU via ftp was done with 10743.2 kB/s.

Dom0 and DomU log files do not contain any hints what might be the problem.

Does anyone have similar experiences or even an advice where to look at?

A detailed description of my setup follows.

network layout:
bridge name     bridge id               STP enabled     interfaces
eth0            8000.001a4df5dbf6       no              peth0
                                                        vif3.0
xenint          8000.2e53c90b0fb5       no              pdummy0
                                                        vif3.1
                                                        vif6.0

Eth0 is configured with a public IP, xenint a private one (172.31.0.1). Internal domUs are not directly attached to eth0 and use dom0 as gateway.

In iptables OUTPUT and FORWARD policy is ACCEPT and NAT rules are:
$IPTABLES -t nat -A PREROUTING -i eth0 -d $INET_IP -p TCP --dport 21 -j DNAT --to-destination 172.31.0.4 $IPTABLES -t nat -A PREROUTING -i eth0 -d $INET_IP -p TCP --dport 81 -j DNAT --to-destination 172.31.0.4:80

$IPTABLES -t nat -A POSTROUTING -o eth0 -s 172.31.0.0/24 -j MASQUERADE

system:
Debian etch amd64 with self compiled 2.6.18 debian + xen patched kernel
linux-tree-2.6.18               2.6.18.dfsg.1-18etch1
libxenstore3.0                  3.2.0-3~bpo4+2
xen-hypervisor-3.2-1-amd64      3.2.0-3~bpo4+2
xen-shell                       1.8-3~bpo40+1
xen-tools                       3.9-2~bpo40+1
xen-utils-3.2-1                 3.2.0-3~bpo4+2
xen-utils-common                3.2.0-1~bpo4+1
xenstore-utils                  3.2.0-3~bpo4+2

Whenever it looks like an kernel issue, I will send my .configs in.

Thanks in advance,
Christoph

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] poor outbound network performance on DNATed domU, Christoph Fritsche <=