This patch will setup iptable rules for vif''s that does MAC matching, as PHYSDEV matching only works for bridged devices. (Patch generated from Xen-2.0-testing.) On a separate but still networking issue, I noticed that my XenU''s outbound traffic is sporadic (between 800KB/sec and 2MB/sec). The problem is the default qdisc being inadequate. So I fix it with: XenU# tc qdisc add dev eth0 root tbf rate 50mbit latency 20ms burst 50k TBF requires kernel option CONFIG_NET_SCH_TBF, but other qdisc should work too if the buffer is large enough to handle the bandwidth. To make this permanent, add it as a ''up'' line to iface eth0 in XenU''s /etc/network/interfaces. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> This patch will setup iptable rules for vif''s that does MAC > matching, as PHYSDEV matching only works for bridged devices.Is that definitely the case? I don''t see why physdev shouldn''t work with routed setups.> On a separate but still networking issue, I noticed that my > XenU''s outbound traffic is sporadic (between 800KB/sec and > 2MB/sec). The problem is the default qdisc being inadequate. > So I fix it with: > > XenU# tc qdisc add dev eth0 root tbf rate 50mbit latency 20ms > burst 50kHow much more buffering does this add? Thanks, Ian _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
At 10:44 AM 9/7/2005, Ian wrote:> > This patch will setup iptable rules for vif''s that does MAC > > matching, as PHYSDEV matching only works for bridged devices. > >Is that definitely the case? I don''t see why physdev shouldn''t work with >routed setups.Yes. I first noticed the the byte counters of Physdev iptable rules being stuck at 0. They don''t catch routed packets. Then I read: CONFIG_IP_NF_MATCH_PHYSDEV: "Physdev packet matching matches against the physical bridge ports the IP packet arrived on or will leave by." Using menuconfig, as I disable "802.1d Ethernet Bridging" from Networking, Physdev disappears from the netfilter menu too.> > On a separate but still networking issue, I noticed that my > > XenU''s outbound traffic is sporadic (between 800KB/sec and > > 2MB/sec). The problem is the default qdisc being inadequate. > > So I fix it with: > > > > XenU# tc qdisc add dev eth0 root tbf rate 50mbit latency 20ms > > burst 50k > >How much more buffering does this add?As I understand it, the buffer must complement the network speed. Default i386 kernel uses 100 HZ, or 10ms time slices. Thus 50mbits/sec fills 50KB in 10ms. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel