From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,378c0671388e2d29 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-01-04 18:22:21 PST Newsgroups: comp.unix.osf.osf1 Path: nntp.gmd.de!Germany.EU.net!howland.reston.ans.net!news.sprintlink.net!mv!usenet From: cherkus@fastball.unimaster.com Subject: Re: V3.0 E-Net Collisions with ftp Message-ID: Nntp-Posting-Host: fastball.unimaster.com Sender: usenet@mv.mv.com (System Administrator) Cc: gnewman@xmx.com Organization: UniMaster, Inc. Date: Wed, 4 Jan 1995 02:29:32 GMT References: Gary Newman wrote in article : > >We have found that the ethernet collision problem we've had with OSF >V3.0 can be simply caused by using ftp to copy a large file from one >machine to another. > >Try this between two Alphastation 400/233 machines: > >%ftp other_v3_machine >>bin >>get bigfile >1251572 bytes received in 2.8 seconds (4.4e+02 Kbytes/s) >>quit >%netstat -i >Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll >tu0 1500 DLI none 327636 1 130422 73 71651 > >note that about 50% of the packets have collisions and that the data >rate is about half of what we got with OSF V2.1 on the 2000/300 >machines (150 Mhz Alphas). You are making a reasonable yet inaccurate assumption that the counters are maintained the same way on both machines, but they are not because the interfaces use two different chips and the chips used in the tu0 interface are more accurate than the ones used in the 2000/300 (ln0?) interface. The AMD LANCE ethernet chip, used in the 2000/300 and also used for many years in DEC and many other vendor's equipment, tells the kernel one of the following things happened after a frame is transmitted: - no collisions occurred - exactly one collision occurred - two or more collisions occurred The Ethernet standard says that up to 15 collisions can occur before the transmission is aborted, so the LANCE does not communicate the full story back to the kernel. The kernel increments the netstat collision counter once when exactly one collision occurred, and by two when two or more collisions occurred. This is inaccurate, but it's the best the kernel could do. It's not just inaccurate, it's always optimistic. This is why you think you are getting 'excessive' collisions - you've been lied to by the AMD LANCE in the past. The older DEC SGEC chip (ne0) and the newer DEC TGEC chip (te0, tu0) can tell the kernel exactly how many collisions occurred, and this is what netstat reports. The AMD LANCE used in TurboChannel and ISA systems is fading into the sunset... You can identify which chip is being used by the message that appears at boot time, or by the interface name (ln0 is AMD LANCE, most of the others are tu0). If you feel more comfortable with the 'classic' statistic, you can run the command # netstat -I tu0 -is and look for 'single colllision' and 'multiple collision', then add the 'single collision' count to two times the 'multiple collision' count to get the 'classic' statistic. Or, perish the thought, perhaps we need an ANSI/POSIX standard for netstat, brought to you by the same fine people that insist that 'df' report its output in units of 512 byte blocks, and the same fine folks that decided that they needed to break 'more' so the rest of us would know that they were doing their jobs. Gee, I should quit posting late at night :-) -- Dave Cherkus ----- UniMaster, Inc. ----- Contract Software Development Specialties: UNIX TCP/IP X OSF/1 AlphaAXP AIX RS/6000 Performance ISDN Email: cherkus@UniMaster.COM Tel: (603) 888-8308 Fax: (603) 888-8308 if (cpu.type == PENTIUM && cpu.step < 8) { panic("Intel Inside!"); }