Vlan 802.1q performance problems

Vlan 802.1q performance problems

Post by Stian B. Barme » Fri, 11 Jan 2002 19:05:56



Hi I run Slack 8.0 with kernel 2.4.16 and compiled Vlan 802.1q with a
patched eepro100 network card/driver (needed for vlan functionality).

I have made 3 vlans and patched them into a Cisco Catalyst switch wich also
i configured to hande the same vlans.

The trunk works nicely, but performance is terrible. I have full duplex
100mbit connection, but data flow is at its best 4000kbit/s. The linux
computer has pIII 700MHz and 400MB of RAM. Top tells me that the computer is
close to idle.

ifconfig tells me that there are alot of collisions on the "mother"
interface of a vlan. For inst. eth0 is the mother interface, and eth0.2,
eth0.3 and eth0.4 is the child interfaces. The child interfaces have no
collisions. Here is the output of the eth0 ifconfig:

eth0      Link encap:Ethernet  HWaddr 00:D0:B7:48:10:53
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2215674 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1665380 errors:0 dropped:0 overruns:0 carrier:35039
          collisions:58047 txqueuelen:100
          RX bytes:774221949 (738.3 Mb)  TX bytes:1123953235 (1071.8 Mb)
          Interrupt:11 Base address:0x1000

Anyone any ideas abot this weidrness??

Best regards
Stian B. Barmen

 
 
 

Vlan 802.1q performance problems

Post by The Skul » Sat, 12 Jan 2002 01:59:10



>Hi I run Slack 8.0 with kernel 2.4.16 and compiled Vlan 802.1q with a
>patched eepro100 network card/driver (needed for vlan functionality).

>I have made 3 vlans and patched them into a Cisco Catalyst switch wich also
>i configured to hande the same vlans.

>The trunk works nicely, but performance is terrible. I have full duplex
>100mbit connection, but data flow is at its best 4000kbit/s. The linux
>computer has pIII 700MHz and 400MB of RAM. Top tells me that the computer is
>close to idle.

I believe IEEE 802.1q is actually able to manage only 10 Mbit/s VLAN
trunk segments.
This could explain the amount of collisions you encounter.
Standing on what I know cisco catalyst switches use a particular cisco
protocol to connect 100 Mbit VLANs (I cannot actually remember it's name...)

Am I right? :-/

--
Emanuele "SKULL" Balla
--------------------------------------------------------------------
Internet e' una pippa planetaria, un collettore delle frustrazioni di
40 milioni di persone.  -- Bruno Gambarotta, 20/2/1997, RaiUno

 
 
 

Vlan 802.1q performance problems

Post by Stian B. Barme » Fri, 11 Jan 2002 22:26:19



Quote:

> >Hi I run Slack 8.0 with kernel 2.4.16 and compiled Vlan 802.1q with a
> >patched eepro100 network card/driver (needed for vlan functionality).

> >I have made 3 vlans and patched them into a Cisco Catalyst switch wich
also
> >i configured to hande the same vlans.

> >The trunk works nicely, but performance is terrible. I have full duplex
> >100mbit connection, but data flow is at its best 4000kbit/s. The linux
> >computer has pIII 700MHz and 400MB of RAM. Top tells me that the computer
is
> >close to idle.

> I believe IEEE 802.1q is actually able to manage only 10 Mbit/s VLAN
> trunk segments.
> This could explain the amount of collisions you encounter.
> Standing on what I know cisco catalyst switches use a particular cisco
> protocol to connect 100 Mbit VLANs (I cannot actually remember it's
name...)

> Am I right? :-/

I connected a Cisco 7206 to a Nortel switch and was able to get full speed
at 100Mbit between these two. Also I connected the same router to the
Catalyst switch, also 100Mbit, no problem. The Linux machine connected to
either of these switches produces only about 7Mbit at the very best speeds.

Hope there is a way to get my Linux box to push more data ... !

Best regards
Stian B. Barmen

 
 
 

Vlan 802.1q performance problems

Post by Eric LEMAITR » Sat, 12 Jan 2002 02:44:06


Hi Skull !


> I believe IEEE 802.1q is actually able to manage only 10 Mbit/s VLAN
> trunk segments.
> This could explain the amount of collisions you encounter.

I believe not, tagging has nothing to do with speed.
It should come from very subtle reasons, perhaps commutation speed for
Linux network interface... It will not be easy to fix anyway.

Quote:> Standing on what I know cisco catalyst switches use a particular cisco
> protocol to connect 100 Mbit VLANs (I cannot actually remember it's
> name...)

This is called ISL (Inter Switch Link) for relaying tagging policy
between switches on trunk ports only, very same as 802.1q but
proprietary Cisco stuff, but Cisco stuff has both of them anyway.

Ciao !

 
 
 

Vlan 802.1q performance problems

Post by Mark Damros » Sat, 12 Jan 2002 07:42:27






> > >Hi I run Slack 8.0 with kernel 2.4.16 and compiled Vlan 802.1q with a
> > >patched eepro100 network card/driver (needed for vlan functionality).

> > >I have made 3 vlans and patched them into a Cisco Catalyst switch wich
> also
> > >i configured to hande the same vlans.

> > >The trunk works nicely, but performance is terrible. I have full duplex
> > >100mbit connection, but data flow is at its best 4000kbit/s. The linux
> > >computer has pIII 700MHz and 400MB of RAM. Top tells me that the
computer
> is
> > >close to idle.

How did you set up the connection?  Cisco in particular is very picky about
speed/duplex.  Both sides must be set to auto, or else both sides must
specify exacly the same settings.  You cannot mix auto settings.  In other
words if you explicitly set the speed, you must also set the duplex - you
can't use auto for only 1 of the parameters.

Quote:

> > I believe IEEE 802.1q is actually able to manage only 10 Mbit/s VLAN
> > trunk segments.
> > This could explain the amount of collisions you encounter.
> > Standing on what I know cisco catalyst switches use a particular cisco
> > protocol to connect 100 Mbit VLANs (I cannot actually remember it's
> name...)

> > Am I right? :-/

> I connected a Cisco 7206 to a Nortel switch and was able to get full speed
> at 100Mbit between these two. Also I connected the same router to the
> Catalyst switch, also 100Mbit, no problem. The Linux machine connected to
> either of these switches produces only about 7Mbit at the very best

speeds.

You connected the 7206 as a trunked connection using 802.1q?  If not, I'd
say it didn't test the same things.

- Show quoted text -

Quote:

> Hope there is a way to get my Linux box to push more data ... !

> Best regards
> Stian B. Barmen

 
 
 

Vlan 802.1q performance problems

Post by Stian B. Barme » Sat, 12 Jan 2002 08:42:56


Quote:

> I believe not, tagging has nothing to do with speed.
> It should come from very subtle reasons, perhaps commutation speed for
> Linux network interface... It will not be easy to fix anyway.

Do you think I will need to buy myself a new network interface (I have now
tried 2 intel eepro100 cards, in 2 diffrent switches, one Cisco and one
Nortel, all configs have the same problem), or is it a kernel, I/O problem
or do you have other suggestions?
Quote:

> > Standing on what I know cisco catalyst switches use a particular cisco
> > protocol to connect 100 Mbit VLANs (I cannot actually remember it's
> > name...)

> This is called ISL (Inter Switch Link) for relaying tagging policy
> between switches on trunk ports only, very same as 802.1q but
> proprietary Cisco stuff, but Cisco stuff has both of them anyway.

> Ciao !

I can also mention that I have tried the 2.4.18pre2 kernel, same result.
Running out of ideas...!

Best regards
Stian B. Barmen

 
 
 

Vlan 802.1q performance problems

Post by Eric LEMAITR » Sat, 12 Jan 2002 16:49:12


Hi Stian !


> Do you think I will need to buy myself a new network interface (I have now
> tried 2 intel eepro100 cards, in 2 diffrent switches, one Cisco and one
> Nortel, all configs have the same problem), or is it a kernel, I/O problem
> or do you have other suggestions?

> I can also mention that I have tried the 2.4.18pre2 kernel, same result.
> Running out of ideas...!

I suggest anyway you wait before spending too much money about this.
This is a really complicated matter, an affordable solution may be
allready present, or perhaps not, so let time a chance so as to find out.
In case you really want to make a last try, you might want to use 3Com
NIC, I will buy myself 2 3C905C because it seems possible to use VLAN
with them without any patch.

I forgot a last thing : this trouble me be because of 10/100 Mbps
synchronisation between interfaces, there are 4 modes for Cisco stuff
for trunk linking if I remember proberly. Whet is more I heard somewhere
  that when you use both 10 ans 100 Mbps NIC together in the same
network there are many collisions provoked by one card which emits too
many frames on purpose so as to downgrade the network to a speed level
compatible with 10 Mbps. I never saw anything like this, but the guy who
told this seemed to know the subject.

Best regards.

 
 
 

Vlan 802.1q performance problems

Post by Stian B. Barme » Sat, 12 Jan 2002 20:31:51


Quote:> I suggest anyway you wait before spending too much money about this.
> This is a really complicated matter, an affordable solution may be
> allready present, or perhaps not, so let time a chance so as to find out.
> In case you really want to make a last try, you might want to use 3Com
> NIC, I will buy myself 2 3C905C because it seems possible to use VLAN
> with them without any patch.

> I forgot a last thing : this trouble me be because of 10/100 Mbps
> synchronisation between interfaces, there are 4 modes for Cisco stuff
> for trunk linking if I remember proberly. Whet is more I heard somewhere
>   that when you use both 10 ans 100 Mbps NIC together in the same
> network there are many collisions provoked by one card which emits too
> many frames on purpose so as to downgrade the network to a speed level
> compatible with 10 Mbps. I never saw anything like this, but the guy who
> told this seemed to know the subject.

We have now tried a 3c905B PCI card without VLAN and gave it an IP,
installed FTP and tried a local file transfer. To my surprise I only got
about 2Mbit transfer, on the local LAN, 100Mbit FullDuplex...! Go figure.

-stian

 
 
 

Vlan 802.1q performance problems

Post by Bernd Eckenfel » Sun, 13 Jan 2002 02:45:28



Quote:> We have now tried a 3c905B PCI card without VLAN and gave it an IP,
> installed FTP and tried a local file transfer. To my surprise I only got
> about 2Mbit transfer, on the local LAN, 100Mbit FullDuplex...! Go figure.

Try a CrossOver Cable and check the card if it is running in the rightr mode
(mii-tool) and if it has errors (ifconfig).

Greetings
Bernd

 
 
 

1. Problem regarding Bridging, MTU, Masquerading 802.1q VLANs on SuSE 9.0

Hi,

currently I am setting up a quite unusual configuration.

A SuSE Linux Box with 2 3C905-X NICs follows shall get tow
tagged VLANS on one NIC, masq the second network behind a
single IP of the first Network (Layer 3 Networks match the
Layer 2 Networks), and bridge only one of the VLANs to the
second NIC.

VLAN/Vconfig-tools are installes, the two VLANs on eth0 are
up. I will have to patch the drivers for the 3C905-X Cards
to support MTUs of 1504 Bytes.

Questions to the group:
- Looking into the patch code, I doubt if I could configure
the NICs with MTU=1504 on eth0 and MTU=1500 on eth1. Any
Experiences here?

- Is ist possible to bridge a tagged VLAN to a native
eth1 with the packets appearing untagged on eth1?

- I would prefer bridging the first tagged vlan on eth0
to the same tagged vlan on eth1. This leads to vlan per NIC
instead of VLAN per kernel and this leads to a conflict to
the SuSE configuration abstractions, so I will to have to
patch suseconfig scripts, conventions and eventually
structure. Any Experiences here?

 Subnet x
 VLAN x
 | | |                SuSE 9.0                   Win NT
-------+    VLANx    +-----------+  Subnet x   +--------+
HP2524 |-------------| Router    |----VLANx----| Server |
-------+    VLANy    +-----------+             +--------+
 | | |              masqu'ing Subnet y
 VLAN y
 Subnet y

The first concept was to use the windows NT Server to mask
one net behind an IP of the other net. As Windowss NT is
unable to do this by concept (AFAIK) and an update to Win2k
cannot be done for about the next 12 Months, and because all
switchports and outlets are used, I have to insert the
routing box between the switch and the server.

I do not want to insert an additional switch between the
server, connecting the HP2524, the routing box and the
server, I want the Linux Box to do the bridging.

After the upgrade to W2k the Win Box could do the masking
and the router could be removed without having to reconfigure
the HP2524.

Regards

Michael
--
In Planung

2. Opening tty port without raising dtr/dsr

3. Does IBM RS/6000 100Mbps NIC support 802.1q (VLAN)?

4. Problems with gzip on Solaris x86 2.1

5. 802.1q vlans and Cisco 2948 switches

6. test

7. 802.1Q VLAN trunk support on 2 trunked ge cards.

8. Adaptec 2940 BIO 1.16 and 1.21; what's the diff

9. 802.1Q VLAN patch for 2.4.4-pre3 & 2.2.19

10. 2.4.16: 802.1Q VLAN non-modular

11. IEEE 802.1q VLAN support?

12. Anyone doing Linux VLAN? 802.1q

13. VLANs (802.1q frame tags) and bridges connecting Xen domU guests