|
From: John J. <jj...@ro...> - 2007-08-12 14:12:19
|
Hi m, Not sure if we have misunderstood each other. But I think we have. I worked using VLAN 99 and 104 (both are tagged). Native VLAN's as you say are untagged. Not touched that VLAN in this setup. There are no cross-over cables between the machines involved. =20 The entire setup is running on an VMware ESX server with vSwitches. The virtual switche support VLANs. This switch was configured to pass all vlans through, like cisco trunk ports, without stripping off the vlan tags so the DL VM gets the packets unmodified. (Two ports where set aside for this in exercise #4.) =20 The Windows VM's where on VLAN 104 and VLAN 99. However, as the Windows VMs are not capable of handling VLAN tag's I configured the ports on the vSwithes to "tag" the packets appropriately, eg. For these VMs, a normal switch port was used, same kind as a normal PCs/Servers.=20 =20 For exercise 1,2 & 3 I modified the ports on the vSwitch for DL to be either normal pc/server ports or trunkports. Or a combination depending on the needed configuration.=20 =20 =20 Should this not work? (Scenario #4) Packet exits Windows VM untagged Packet enters vSwitch, vSwitch tags with VLAN 104 vSwitch forwards this packet to port DL is connected to vSwitch does not strip the VLAN tag DL VM gets the packet, with VLAN tag "something " strips the VLAN tag and forwards out of the correct virtual interface in DL The "kernel" or something, checks a routing table and pushes the packet into the correct virtual interface "something" tags the packet with the correct VLAN tag for the virtual interface DL VM pushes the packet, with the VLAN tag into the vSwitch vSwitch forwards this packet to the port where the other Windows VM is vSwitch strips the packet of the VLAN tag as it exists the vSwitch =20 All four scenarios are more or less identical, with the exception of where a tag/untag is performed, vSwitch or DL VM. Or have I completely lost the plot somewhere? I've been struggling with this for too many hours now... =20 With this setup I would say it should be either a Linux or DL bug, (assuming the packets are tag'ed and untag'ed correctly, and as ping works with both small and large packets, no loss. I would guess they are? The error should therefore not be with the vSwitch or anywhere else except the Operating System of the VM doing the routing? =20 =20 JJ =20 =20 PS: I have a similar debate going on in the VMware ESX forums, and there is a known slowness of UDP packets using the vmxnet card. However, the e1000 does not have this issue. My issue is the same with both vmxnet and e1000 cards. =20 =20 From: dev...@li... [mailto:dev...@li...] On Behalf Of Martin Hotze Sent: 12. august 2007 14:40 To: dev...@li... Subject: AW: [Devil-Linux-discuss] VLAN & routing. Poor performance =20 Well, you have 1 physical link, one logical link (VLAN) comes with VLAN tagged frames, and the other one comes with ... nothing. So I assume that this causes the problem, because the untagged frames have - litterally - no idea where to go, but I see it more a bug than as a feature that you brought some packets through with this setup (1 VLAN and 1 nothing *g*). =20 to sum it up: having VLAN tagged frames on one physical link you either have another tagged VLAN or another untagged VLAN, but you can't have another logical link without using VLANs. =20 read here as a starting point for VLANs: http://en.wikipedia.org/wiki/Vlan =20 So I don't see it as a DL or Linux bug, IMO this is a matter of network design (even if it is only your DL box and a directly connected PC). =20 hth, #m =20 btw: don't use vlan id 1. =20 ________________________________ Von: dev...@li... im Auftrag von John Jore Gesendet: So 12.08.2007 15:00 An: dev...@li... Betreff: Re: [Devil-Linux-discuss] VLAN & routing. Poor performance Hi m, Thank you for taking time to respond to this, not sure if I understand, but if you are asking if I've tested with two nics' both in "VLAN mode". I had not tested this. Good point btw. I've now tested this too, and performance is good with SMB traffic in this setup. =20 #4 below would therefore be: Two NIC's, both in VLAN mode, map/browsing of shares from a machine on one side to a machine on the other, speed is good/normal. =20 Seems to me traffic flows normal when both cards are in the same "mode". Not sure why this is? I've searched high and low on google, but could not find this issue documented. This leads to me to think it's not a common problem, but as "many" (unsubstantiated claim by me) people use VLAN's in Linux, could it be a problem with this specific kernel/build etc? =20 =20 JJ =20 =20 From: dev...@li... [mailto:dev...@li...] On Behalf Of Martin Hotze Sent: 12. august 2007 10:33 To: dev...@li... Subject: AW: [Devil-Linux-discuss] VLAN & routing. Poor performance =20 =20 and what happens if you use 2 VLANs, both tagged or one tagged and one untagged? At least you would do so in the switching world. =20 #m =20 ________________________________ Von: dev...@li... im Auftrag von John Jore Gesendet: Sa 11.08.2007 21:47 An: dev...@li... Betreff: [Devil-Linux-discuss] VLAN & routing. Poor performance Hi! I've got a VMware VM with 2 NICs, vmxnet/e1000's. On each side there is another VM running Windows. I map and browse a share on one from the other, using the DL VM as a router. =20 1: When both NICs are running in "normal" mode, no VLANs, speed is good/normal. =20 2: When one NIC is running as "normal" and one as a VLAN card, (vmxnet and e1000 both support this). Speed is horrible and barely works. I can browse the root of the share, but it soon times-out and can't browse the share and looses all SMB connectivity with the host. Ping seems to be ok though, with both small and large packets.=20 =20 3: Remove/disable one NIC and run all traffic as VLAN traffic over the remaining card (router-on-a-stick): Speed is good/normal. =20 =20 What is going on?!? And why am I seeing this? I'm using version 1.2.13 of DL.=20 To repeat myself just in case: When a packet arrives on the normal NIC and gets routed to the VLAN'ed NIC and exits DL performance is horrible. Could there be a problem with the Linux kernel version when doing routing from a "non-VLAN'ed" NIC to a "VLAN'ed" NIC? The configuration of the nic's themselves can't really be wrong as Ping works, end-to-end. I've tried reducing the MTU as some sites have suggested, but did not solve anything. Also, I do not think neither vmxnet or e1000 have the MTU problem with VLANs. =20 Anyone have any suggestions? =20 =20 Regards, John Jore =20 =20 =20 PS: The firewall was enabled, but it's not doing much, and it's configuration did not change between these three setup's (enabled traffic on all interfaces, both vlan's and physical and filtered on IP addresses only) I would therefore not blame it in this case. =20 |