Re: high Ierrs in netstat -ni

2010-10-27 Thread Damien Bergamini
| NameMtu   Network Address  Ipkts IerrsOpkts Oerrs 
Colls
| iwn01500  Link  00:21:5c:04:9e:19   365841  6544   237425 4 0

A 2% frame error rate is not that unusual on a wireless link, considering
that iwn increments Ierrs for every frames with a bad FCS, for frames that
cannot be decrypted correctly, or for frames that are too short.
FWIW, I have similar results with a ral adapter:

NameMtu   Network Address  Ipkts IerrsOpkts Oerrs Colls
ral01500  Link  00:22:43:76:6a:8e43081   44231460 0 0

Damien



Re: high Ierrs in netstat -ni

2010-10-26 Thread frantisek holop
hmm, on Sun, Oct 17, 2010 at 08:14:34PM +0200, I??igo Ortiz de Urbina said that
 Maybe u can set debug on iwn using ifconfig. That would help troubleshooting.
 
 Also, show output of ifconfig

$ sudo ifconfig iwn0 debug 255
$ ifconfig iwn0
iwn0: flags=8847UP,BROADCAST,DEBUG,RUNNING,SIMPLEX,MULTICAST mtu 1500
lladdr 00:21:5c:04:9e:19
priority: 4
groups: wlan egress
media: IEEE802.11 autoselect (DS1 mode 11g)
status: active
ieee80211: nwid xx chan 11 bssid xx:xx:xx:xx:xx:xx 206dB wpapsk 
not displayed wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp 
wpagroupcipher tkip
inet6 fe80::221:5cff:fe04:9e19%iwn0 prefixlen 64 scopeid 0x2
inet xx.xx.xx.xx netmask 0xff00 broadcast xx.xx.xx.255
$ netstat -ni
NameMtu   Network Address  Ipkts IerrsOpkts Oerrs Colls
lo0 33200 Link   92115 092115 0 0
lo0 33200 ::1/128 ::1  92115 092115 0 0
lo0 33200 fe80::%lo0/ fe80::1%lo0  92115 092115 0 0
lo0 33200 127/8   127.0.0.192115 092115 0 0
lii0*   1500  Link  fe:e1:ba:d0:6b:b30 00 0 0
iwn01500  Link  00:21:5c:04:9e:19   365841  6544   237425 4 0
iwn01500  fe80::%iwn0 fe80::221:5cff:fe   365841  6544   237425 4 0
iwn01500  10.13.37/24 10.13.37.34 365841  6544   237425 4 0
enc0*   0 Link   0 00 0 0
pflog0  33200 Link   0 0   12 0 0

i started a tcpbench session between my 2 notebooks
so i have lots of traffic.  the Ierrs is rising by the second.

the last messages from iwn0 are about the handshake to connect
to my dhcp server.

iwn0: received msg 1/4 of the 4-way handshake from xx:xx:xx:xx:xx:xx
iwn0: sending msg 2/4 of the 4-way handshake to xx:xx:xx:xx:xx:xx
iwn0: received msg 3/4 of the 4-way handshake from xx:xx:xx:xx:xx:xx
iwn0: sending msg 4/4 of the 4-way handshake to xx:xx:xx:xx:xx:xx

nfo |grep iwn
iwn-firmware-5.5Firmware binary images for iwn driver

sorry about the late answer, hope it helps.

-f

 
 On 10/17/10, frantisek holop min...@obiit.org wrote:
  hi there,
 
  i am runing -current with iwn and i notice a high
  number of Ierr's in netstat -ni.
  0 would be ideal, right?
 
 
  i am using the latest firmware from iwn(4)
 
  $ netstat -ni
  NameMtu   Network Address  Ipkts IerrsOpkts Oerrs
  Colls
  lo0 33200 Link   15262 015262 0
   0
  lo0 33200 127/8   127.0.0.115262 015262 0
   0
  lo0 33200 ::1/128 ::1  15262 015262 0
   0
  lo0 33200 fe80::%lo0/ fe80::1%lo0  15262 015262 0
   0
  lii0*   1500  Link  fe:e1:ba:d0:6b:b30 00 0
   0
  iwn01500  Link  00:21:5c:04:9e:19 7670   429 6903 0
   0
  iwn01500  fe80::%iwn0 fe80::221:5cff:fe 7670   429 6903 0
   0
  iwn01500  10.13.37/24 10.13.37.30   7670   429 6903 0
   0
  enc0*   0 Link   0 00 0
   0
  pflog0  33200 Link   0 00 0
   0
 
  this is just 20m after reboot. with heavy traffic,
  it increases by the second..
 
 
  OpenBSD 4.8-current (GENERIC) #435: Thu Oct 14 13:37:41 MDT 2010
  dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
  cpu0: Intel(R) Celeron(R) M processor 900MHz (GenuineIntel 686-class) 631
  MHz
  cpu0:
  FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF
  real mem  = 527527936 (503MB)
  avail mem = 508899328 (485MB)
  mainbus0 at root
  bios0 at mainbus0: AT/286+ BIOS, date 03/11/09, BIOS32 rev. 0 @ 0xf0010,
  SMBIOS rev. 2.5 @ 0xf06e0 (37 entries)
  bios0: vendor American Megatrends Inc. version 1302 date 03/11/2009
  bios0: ASUSTeK Computer INC. 701
  acpi0 at bios0: rev 0
  acpi0: sleep states S0 S3 S4 S5
  acpi0: tables DSDT FACP APIC OEMB MCFG
  acpi0: wakeup devices P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4) MC97(S4)
  USB1(S3) USB2(S3) USB3(S3) USB4(S3) EUSB(S3)
  acpitimer0 at acpi0: 3579545 Hz, 24 bits
  acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
  cpu0 at mainbus0: apid 0 (boot processor)
  cpu0: apic clock running at 70MHz
  ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
  acpiprt0 at acpi0: bus 0 (PCI0)
  acpiprt1 at acpi0: bus 5 (P0P3)
  acpiprt2 at acpi0: bus 3 (P0P5)
  acpiprt3 at acpi0: bus 1 (P0P6)
  acpiec0 at acpi0
  acpicpu0 at acpi0: C3, C2
  acpitz0 at acpi0: critical temperature 90 degC
  acpibat0 at acpi0: BAT0 model 701 serial   type LION oem ASUS
  acpiac0 at acpi0: AC unit offline
  acpiasus0 at acpi0
  acpibtn0 at acpi0: LID_
  acpibtn1 at acpi0: SLPB
  acpibtn2 at acpi0: 

Re: high Ierrs in netstat -ni

2010-10-17 Thread IƱigo Ortiz de Urbina
Maybe u can set debug on iwn using ifconfig. That would help troubleshooting.

Also, show output of ifconfig

On 10/17/10, frantisek holop min...@obiit.org wrote:
 hi there,

 i am runing -current with iwn and i notice a high
 number of Ierr's in netstat -ni.
 0 would be ideal, right?


 i am using the latest firmware from iwn(4)

 $ netstat -ni
 NameMtu   Network Address  Ipkts IerrsOpkts Oerrs
 Colls
 lo0 33200 Link   15262 015262 0
  0
 lo0 33200 127/8   127.0.0.115262 015262 0
  0
 lo0 33200 ::1/128 ::1  15262 015262 0
  0
 lo0 33200 fe80::%lo0/ fe80::1%lo0  15262 015262 0
  0
 lii0*   1500  Link  fe:e1:ba:d0:6b:b30 00 0
  0
 iwn01500  Link  00:21:5c:04:9e:19 7670   429 6903 0
  0
 iwn01500  fe80::%iwn0 fe80::221:5cff:fe 7670   429 6903 0
  0
 iwn01500  10.13.37/24 10.13.37.30   7670   429 6903 0
  0
 enc0*   0 Link   0 00 0
  0
 pflog0  33200 Link   0 00 0
  0

 this is just 20m after reboot. with heavy traffic,
 it increases by the second..


 OpenBSD 4.8-current (GENERIC) #435: Thu Oct 14 13:37:41 MDT 2010
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
 cpu0: Intel(R) Celeron(R) M processor 900MHz (GenuineIntel 686-class) 631
 MHz
 cpu0:
 FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF
 real mem  = 527527936 (503MB)
 avail mem = 508899328 (485MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 03/11/09, BIOS32 rev. 0 @ 0xf0010,
 SMBIOS rev. 2.5 @ 0xf06e0 (37 entries)
 bios0: vendor American Megatrends Inc. version 1302 date 03/11/2009
 bios0: ASUSTeK Computer INC. 701
 acpi0 at bios0: rev 0
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP APIC OEMB MCFG
 acpi0: wakeup devices P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4) MC97(S4)
 USB1(S3) USB2(S3) USB3(S3) USB4(S3) EUSB(S3)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: apic clock running at 70MHz
 ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 5 (P0P3)
 acpiprt2 at acpi0: bus 3 (P0P5)
 acpiprt3 at acpi0: bus 1 (P0P6)
 acpiec0 at acpi0
 acpicpu0 at acpi0: C3, C2
 acpitz0 at acpi0: critical temperature 90 degC
 acpibat0 at acpi0: BAT0 model 701 serial   type LION oem ASUS
 acpiac0 at acpi0: AC unit offline
 acpiasus0 at acpi0
 acpibtn0 at acpi0: LID_
 acpibtn1 at acpi0: SLPB
 acpibtn2 at acpi0: PWRB
 acpivideo0 at acpi0: VGA_
 acpivout0 at acpivideo0: CRTD
 acpivout1 at acpivideo0: TVOD
 acpivout2 at acpivideo0: LCDD
 bios0: ROM list: 0xc/0xf800!
 pci0 at mainbus0 bus 0: configuration mode 1 (bios)
 pchb0 at pci0 dev 0 function 0 Intel 82915GM Host rev 0x04
 vga1 at pci0 dev 2 function 0 Intel 82915GM Video rev 0x04
 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
 wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
 intagp0 at vga1
 agp0 at intagp0: aperture at 0xd000, size 0x1000
 inteldrm0 at vga1: apic 1 int 16 (irq 5)
 drm0 at inteldrm0
 Intel 82915GM Video rev 0x04 at pci0 dev 2 function 1 not configured
 azalia0 at pci0 dev 27 function 0 Intel 82801FB HD Audio rev 0x04: apic 1
 int 16 (irq 5)
 azalia0: codecs: Realtek ALC662
 audio0 at azalia0
 ppb0 at pci0 dev 28 function 0 Intel 82801FB PCIE rev 0x04: apic 1 int 16
 (irq 5)
 pci1 at ppb0 bus 4
 ppb1 at pci0 dev 28 function 1 Intel 82801FB PCIE rev 0x04: apic 1 int 17
 (irq 11)
 pci2 at ppb1 bus 3
 lii0 at pci2 dev 0 function 0 Attansic Technology L2 rev 0xa0: apic 1 int
 17 (irq 11), address 71:ec:da:32:72:24
 ukphy0 at lii0 phy 1: Generic IEEE 802.3u media interface, rev. 2: OUI
 0x001374, model 0x0002
 ppb2 at pci0 dev 28 function 2 Intel 82801FB PCIE rev 0x04: apic 1 int 18
 (irq 10)
 pci3 at ppb2 bus 1
 iwn0 at pci3 dev 0 function 0 Intel Wireless WiFi Link 4965 rev 0x61: apic
 1 int 18 (irq 10), MIMO 2T3R, MoW2, address 00:21:5c:04:9e:19
 uhci0 at pci0 dev 29 function 0 Intel 82801FB USB rev 0x04: apic 1 int 23
 (irq 3)
 uhci1 at pci0 dev 29 function 1 Intel 82801FB USB rev 0x04: apic 1 int 19
 (irq 7)
 uhci2 at pci0 dev 29 function 2 Intel 82801FB USB rev 0x04: apic 1 int 18
 (irq 10)
 uhci3 at pci0 dev 29 function 3 Intel 82801FB USB rev 0x04: apic 1 int 16
 (irq 5)
 ehci0 at pci0 dev 29 function 7 Intel 82801FB USB rev 0x04: apic 1 int 23
 (irq 3)
 usb0 at ehci0: USB revision 2.0
 uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
 ppb3 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xd4
 pci4 at ppb3 bus 5
 ichpcib0 at pci0 dev 31 function 0 Intel 82801FBM LPC rev 0x04: PM
 disabled
 pciide0 at pci0 dev 31 function 2 Intel 82801FBM SATA rev 0x04: DMA,
 

high Ierrs in netstat -ni

2010-10-16 Thread frantisek holop
hi there,

i am runing -current with iwn and i notice a high
number of Ierr's in netstat -ni.
0 would be ideal, right?


i am using the latest firmware from iwn(4)

$ netstat -ni
NameMtu   Network Address  Ipkts IerrsOpkts Oerrs Colls
lo0 33200 Link   15262 015262 0 0
lo0 33200 127/8   127.0.0.115262 015262 0 0
lo0 33200 ::1/128 ::1  15262 015262 0 0
lo0 33200 fe80::%lo0/ fe80::1%lo0  15262 015262 0 0
lii0*   1500  Link  fe:e1:ba:d0:6b:b30 00 0 0
iwn01500  Link  00:21:5c:04:9e:19 7670   429 6903 0 0
iwn01500  fe80::%iwn0 fe80::221:5cff:fe 7670   429 6903 0 0
iwn01500  10.13.37/24 10.13.37.30   7670   429 6903 0 0
enc0*   0 Link   0 00 0 0
pflog0  33200 Link   0 00 0 0

this is just 20m after reboot. with heavy traffic,
it increases by the second..


OpenBSD 4.8-current (GENERIC) #435: Thu Oct 14 13:37:41 MDT 2010
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Celeron(R) M processor 900MHz (GenuineIntel 686-class) 631 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF
real mem  = 527527936 (503MB)
avail mem = 508899328 (485MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 03/11/09, BIOS32 rev. 0 @ 0xf0010, SMBIOS 
rev. 2.5 @ 0xf06e0 (37 entries)
bios0: vendor American Megatrends Inc. version 1302 date 03/11/2009
bios0: ASUSTeK Computer INC. 701
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC OEMB MCFG
acpi0: wakeup devices P0P3(S4) P0P4(S4) P0P5(S4) P0P6(S4) P0P7(S4) MC97(S4) 
USB1(S3) USB2(S3) USB3(S3) USB4(S3) EUSB(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 70MHz
ioapic0 at mainbus0: apid 1 pa 0xfec0, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 5 (P0P3)
acpiprt2 at acpi0: bus 3 (P0P5)
acpiprt3 at acpi0: bus 1 (P0P6)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2
acpitz0 at acpi0: critical temperature 90 degC
acpibat0 at acpi0: BAT0 model 701 serial   type LION oem ASUS
acpiac0 at acpi0: AC unit offline
acpiasus0 at acpi0
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: PWRB
acpivideo0 at acpi0: VGA_
acpivout0 at acpivideo0: CRTD
acpivout1 at acpivideo0: TVOD
acpivout2 at acpivideo0: LCDD
bios0: ROM list: 0xc/0xf800!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 Intel 82915GM Host rev 0x04
vga1 at pci0 dev 2 function 0 Intel 82915GM Video rev 0x04
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xd000, size 0x1000
inteldrm0 at vga1: apic 1 int 16 (irq 5)
drm0 at inteldrm0
Intel 82915GM Video rev 0x04 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 Intel 82801FB HD Audio rev 0x04: apic 1 int 
16 (irq 5)
azalia0: codecs: Realtek ALC662
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 Intel 82801FB PCIE rev 0x04: apic 1 int 16 
(irq 5)
pci1 at ppb0 bus 4
ppb1 at pci0 dev 28 function 1 Intel 82801FB PCIE rev 0x04: apic 1 int 17 
(irq 11)
pci2 at ppb1 bus 3
lii0 at pci2 dev 0 function 0 Attansic Technology L2 rev 0xa0: apic 1 int 17 
(irq 11), address 71:ec:da:32:72:24
ukphy0 at lii0 phy 1: Generic IEEE 802.3u media interface, rev. 2: OUI 
0x001374, model 0x0002
ppb2 at pci0 dev 28 function 2 Intel 82801FB PCIE rev 0x04: apic 1 int 18 
(irq 10)
pci3 at ppb2 bus 1
iwn0 at pci3 dev 0 function 0 Intel Wireless WiFi Link 4965 rev 0x61: apic 1 
int 18 (irq 10), MIMO 2T3R, MoW2, address 00:21:5c:04:9e:19
uhci0 at pci0 dev 29 function 0 Intel 82801FB USB rev 0x04: apic 1 int 23 
(irq 3)
uhci1 at pci0 dev 29 function 1 Intel 82801FB USB rev 0x04: apic 1 int 19 
(irq 7)
uhci2 at pci0 dev 29 function 2 Intel 82801FB USB rev 0x04: apic 1 int 18 
(irq 10)
uhci3 at pci0 dev 29 function 3 Intel 82801FB USB rev 0x04: apic 1 int 16 
(irq 5)
ehci0 at pci0 dev 29 function 7 Intel 82801FB USB rev 0x04: apic 1 int 23 
(irq 3)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 Intel EHCI root hub rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0xd4
pci4 at ppb3 bus 5
ichpcib0 at pci0 dev 31 function 0 Intel 82801FBM LPC rev 0x04: PM disabled
pciide0 at pci0 dev 31 function 2 Intel 82801FBM SATA rev 0x04: DMA, channel 
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 1 drive 0: SILICONMOTION SM223AC
wd0: 1-sector PIO, LBA, 3815MB, 7815024 sectors
wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
ichiic0 at pci0