From owner-freebsd-hackers Thu Nov 20 11:21:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA28117 for hackers-outgoing; Thu, 20 Nov 1997 11:21:16 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA28112 for ; Thu, 20 Nov 1997 11:21:13 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id LAA21407; Thu, 20 Nov 1997 11:16:41 -0800 (PST) Received: from UNKNOWN(), claiming to be "current1.whistle.com" via SMTP by alpo.whistle.com, id smtpd021401; Thu Nov 20 11:16:34 1997 Message-ID: <34748C15.794BDF32@whistle.com> Date: Thu, 20 Nov 1997 11:14:29 -0800 From: Julian Elischer Organization: Whistle Communications X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.2-CURRENT i386) MIME-Version: 1.0 To: Emmanuel.Duros@sophia.inria.fr CC: freebsd-hackers@FreeBSD.ORG Subject: Re: My fbsd router looses packets ! References: <199711200932.KAA07538@chouette.inria.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Emmanuel Duros wrote: > > My fbsd (2.2.2 release) router has two communication interfaces and when > it routes packets between its interfaces, it looses lots of packets ! > > Here is the network configuration: > > --- --------- --- > |A| | B | |C| > --- --------- --- > | (b1) | | (b2) | > -------------------------- -------------------------- > > b1 is an Ethernet interface, b2 is a dvb interface, it is a satellite > communication card (a send-only interface). I wrote the device > driver for the latter. > > I have used a video conferencing application to verify the communication > between the stations: > > 1) A generates a video stream to B up to several Mbps: NO LOSSES > 2) B generates a video stream to C up to several Mbps: NO LOSSES > 3) A generates a video stream to C at 100-200 kbps and I get 5 to > 30 % loss rate > > 1) ensures that the connectivity between A and B is fine > 2) ensures that the connectivity between B and C is fine > 3) shows that there is a routing pb !!! > > Beside this, it is not the first time I have used this network > configuration, it used to work very well on another a fbsd router > running a one year old snapshot. > > I have got absolutely no idea where my pb comes from, I have checked > IRQs, probable overlapping ports and everything looks fine to me. I do > not think it comes from my driver because of 2) and because it used to > work very well before I changed the PC and the fbsd OS version. > > I join the output of the dmesg in case this can help... > Thanks a lot for any help! > > Emmanuel > > PS: For information the send-only interface (dvtx0) has an ISA bus and > performs DMA transfers > > ------- > Copyright (c) 1992-1997 FreeBSD Inc. > Copyright (c) 1982, 1986, 1989, 1991, 1993 > The Regents of the University of California. All rights reserved. > > FreeBSD 2.2.2-RELEASE #5: Wed Nov 19 21:10:31 GMT 1997 > eduros@pacman.inria.fr:/usr/src/sys/compile/PACMAN_TX > CPU: Pentium Pro (199.43-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x619 Stepping=9 > Features=0xfbff,MTRR,PGE,MCA,CMOV> > real memory = 67108864 (65536K bytes) > avail memory = 62619648 (61152K bytes) > Probing for devices on PCI bus 0: > chip0 rev 2 on pci0:0 > chip1 rev 1 on pci0:7:0 > chip2 rev 0 on pci0:7:1 > vga0 rev 1 int a irq 10 on pci0:17 > de0 rev 17 int a irq 15 on pci0:18 > de0: 21041 [10Mb/s] pass 1.1 > de0: address 00:00:c0:6b:ea:df > chip3 rev 1 on pci0:20:0 > pci0:20:1: Intel Corporation, device=0x1960, class=memory (misc) int a irq 9 [no driver assigned] > Probing for devices on PCI bus 1: > ahc0 rev 0 int a irq 10 on pci1:1 > ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs > ahc0 waiting for scsi devices to settle > (ahc0:0:0): "CONNER CFP2107W 2.14GB 1524" type 0 fixed SCSI 2 > sd0(ahc0:0:0): Direct-Access 2048MB (4194304 512 byte sectors) > Probing for devices on the ISA bus: > sc0 at 0x60-0x6f irq 1 on motherboard > sc0: VGA color <16 virtual consoles, flags=0x0> > sio0 at 0x3f8-0x3ff irq 4 on isa > sio0: type 16550A > sio1 at 0x2f8-0x2ff irq 3 on isa > sio1: type 16550A > fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa > fdc0: NEC 72065B > fd0: 1.44MB 3.5in > wdc0 at 0x1f0-0x1f7 irq 14 on isa > wdc0: unit 0 (atapi): , removable, ovlap, dma, iordis > wcd0: 2066Kb/sec, 128Kb cache, audio play, 256 volume levels, ejectable tray > wcd0: no disc inside, unlocked > dvtx0: 0.9b1 version - Probing... > dvtx0 at 0x310 irq 11 drq 5 on isa > npx0 on motherboard > npx0: INT 16 interface > ccd0-3: Concatenated disk drivers > de0: enabling 10baseT port An ISA bus can only really support 1 ethernet and still leave any CPU time for other actions. can you stream video from B tpo A and C at the same time? how about from A and C to B at the same time.? ISA is a hog. While th ISA cycle is proceding, the CPU can do nothing else. ISA I/O cycles are approximatly 1uSec long.. do the maths. If it's an 8-bit card, you lose.. 16 bit cards are 'close' (SOME ISA implementations are better than others)