OPNsense Forum

Archive => 17.1 Legacy Series => Topic started by: guest15756 on May 09, 2017, 12:42:14 pm

Title: Wrong speed and duplex after upgrade to 17.1.6
Post by: guest15756 on May 09, 2017, 12:42:14 pm
Hi!

After upgrade to 17.1.6 something wrong is happening with NIC which is assigned to WAN. NIC is this (http://www.dlink.ru/en/products/7/702.html). As you can see, NIC should work as gigabit adapter, and before upgrade to 17.1.6 it was working as 1000baseT <full-duplex>. But after upgrade it's working as 100baseTX <full-duplex> and I can't change it. NIC assigned for LAN works well after upgrade, no issues.

CPU -  Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz (4 cores)
RAM - 4GB

I think something is changed with drivers, because before and after upgrade I didn't made any changes in configuration at all.
Title: Re: Wrong speed and duplex after upgrade to 17.1.6
Post by: franco on May 09, 2017, 05:36:59 pm
Which version was working ok?


Cheers,
Franco
Title: Re: Wrong speed and duplex after upgrade to 17.1.6
Post by: guest15756 on May 09, 2017, 07:28:55 pm
17.1.5 was working ok.
Title: Re: Wrong speed and duplex after upgrade to 17.1.6
Post by: franco on May 09, 2017, 09:55:33 pm
Kernel wasn't updated since 17.1.4 so no "driver changes", firmware did not require reboots also. Did you check your cables and gear?


Thanks,
Franco
Title: Re: Wrong speed and duplex after upgrade to 17.1.6
Post by: guest15756 on May 09, 2017, 10:35:51 pm
Then 17.1.4 was working ok, but 17.1.5 not anymore, I just can't remember exact date when I did speedtest last time before upgrade to 17.1.6. I saw changes in "Speed and Duplex" area for WAN as soon as I did speedtest after upgrade because of oddities on some files download speed.
Title: Re: Wrong speed and duplex after upgrade to 17.1.6
Post by: franco on May 09, 2017, 10:48:32 pm
Hi there,

You're not giving a lot of info to go on. I'm sure something changed, but did you reboot or not? Did you try to replug your cables? Did someone replace a switch? Did you check dmesg output for errors in link state? Did you check interface stats for other oddities and errors? Maybe outage times in your WAN connection through the health or insight graphs? Gateway quality drop signs? Did other links drop in link speed? Did you check the config history whether somebody changed a setting that could have cuased this?  Did you double-check the respective interface settings page that it is properly set to "autoselect"?

Lots of questions. :)


Cheers,
Franco
Title: Re: Wrong speed and duplex after upgrade to 17.1.6
Post by: guest15756 on May 10, 2017, 10:52:55 am
Oh, ok. :)

1. I did reboot after upgrade.
2. I did cable replug, check and test on another computer, no issues with cable.
3. No one, except me, has access to room where everything mechanical is running, so no switch/cables or smth changed/replaced. OPNSense is running for workplace with more than 60 employees.
4. No, I didn't check dsmeg.
5. I have only two interfaces configured - one for WAN, one for LAN. Interface for LAN works ok, it's Intel NIC.
6. After I noticed this problem with interface speed, I did factory reset and all configuration restore. No one has access to drive where I was saved configuration file, so no changes in configuration is done.
7 Speed and Duplex for both interfaces is set to "autoselect", yes. For WAN best I can choose is 100baseTX full-duplex. For LAN I can choose 1000Tbase full-duplex.

I really think that with kernel changes something wrong is with drivers, because when I select "Assign Interfaces" via SSH, it shows that card for WAN is Realtek GBE Family Controler. For LAN it shows that it's Intel(R) Pro/1000 Network Connection.
Title: Re: Wrong speed and duplex after upgrade to 17.1.6
Post by: tomtomz on May 17, 2017, 07:52:11 am
My Speedtest download rates have decreased by half after the upgrade from 17.1.5 to 17.1.6 
It  properly detects my WAN interface parameters, but download throughput is halved and ping times have increased.

Where shall I start looking to isolate this behavior?

Thanks,

Tom
Title: Re: Wrong speed and duplex after upgrade to 17.1.6
Post by: tomtomz on May 17, 2017, 08:06:22 am
No changes:

# dmesg
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
   The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.0-RELEASE-p8 #0 e84bb9532(stable/17.1): Sun Mar 26 15:34:40 CEST 2017
    root@sensey64:/usr/obj/usr/src/sys/SMP amd64
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
[HBSD ASLR] status: opt-out
[HBSD ASLR] mmap: 30 bit
[HBSD ASLR] exec base: 30 bit
[HBSD ASLR] stack: 42 bit
[HBSD ASLR] vdso: 28 bit
[HBSD ASLR] map32bit: 18 bit
[HBSD ASLR] disallow MAP_32BIT mode mmap: opt-out
[HBSD ASLR (compat)] status: opt-out
[HBSD ASLR (compat)] mmap: 14 bit
[HBSD ASLR (compat)] exec base: 14 bit
[HBSD ASLR (compat)] stack: 14 bit
[HBSD ASLR (compat)] vdso: 8 bit
[HBSD HARDENING] procfs hardening: enabled
[HBSD LOG] logging to system: enabled
[HBSD LOG] logging to user: disabled
[HBSD SEGVGUARD] status: opt-out
[HBSD SEGVGUARD] expiry: 120 sec
[HBSD SEGVGUARD] suspension: 600 sec
[HBSD SEGVGUARD] maxcrashes: 5
CPU: Pentium(R) Dual-Core  CPU      E5200  @ 2.50GHz (2493.80-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x10676  Family=0x6  Model=0x17  Stepping=6
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0xe39d<SSE3,DTES64,MON,DS_CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
  TSC: P-state invariant, performance statistics
real memory  = 4294967296 (4096 MB)
avail memory = 4050477056 (3862 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <072309 APIC1648>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
random: unblocking device.
ioapic0 <Version 2.0> irqs 0-23 on motherboard
random: entropy device external interface
wlan: mac acl policy registered
netmap: loaded module
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
acpi0: <DELL ECS    > on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 450
Event timer "HPET1" frequency 14318180 Hz quality 440
Event timer "HPET2" frequency 14318180 Hz quality 440
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
vgapci0: <VGA-compatible display> port 0xbc00-0xbc07 mem 0xfe400000-0xfe7fffff,0xd0000000-0xdfffffff irq 16 at device 2.0 on pci0
agp0: <Intel G41 SVGA controller> on vgapci0
agp0: aperture size is 256M, detected 32764k stolen memory
vgapci0: Boot video device
hdac0: <Intel 82801G HDA Controller> mem 0xfe8f8000-0xfe8fbfff irq 16 at device 27.0 on pci0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pcib1: [GIANT-LOCKED]
pci1: <ACPI PCI bus> on pcib1
em0: <Intel(R) PRO/1000 Network Connection 7.6.1-k> port 0xcc00-0xcc1f mem 0xfe9e0000-0xfe9fffff,0xfe900000-0xfe97ffff,0xfe9dc000-0xfe9dffff irq 16 at device 0.0 on pci1
em0: Using MSIX interrupts with 3 vectors
em0: Ethernet address: 00:1b:21:25:04:87
em0: netmap queues/slots: TX 1/1024, RX 1/1024
pcib2: <ACPI PCI-PCI bridge> irq 17 at device 28.1 on pci0
pcib2: [GIANT-LOCKED]
pci2: <ACPI PCI bus> on pcib2
re0: <Realtek PCIe FE Family Controller> port 0xd800-0xd8ff mem 0xfdfff000-0xfdffffff,0xfdfe0000-0xfdfeffff irq 17 at device 0.0 on pci2
re0: Using Memory Mapping!
re0: Using line-based interrupt
re0: version:1.93
re0: Ethernet address: 00:25:64:01:f3:47

This product is covered by one or more of the following patents:
US6,570,884, US6,115,776, and US6,327,625.
re0: Ethernet address: 00:25:64:01:f3:47
uhci0: <Intel 82801G (ICH7) USB controller USB-A> port 0xb880-0xb89f irq 23 at device 29.0 on pci0
uhci0: LegSup = 0x2f00
usbus0 on uhci0
uhci1: <Intel 82801G (ICH7) USB controller USB-B> port 0xb800-0xb81f irq 19 at device 29.1 on pci0
uhci1: LegSup = 0x2f00
usbus1 on uhci1
uhci2: <Intel 82801G (ICH7) USB controller USB-C> port 0xb480-0xb49f irq 18 at device 29.2 on pci0
uhci2: LegSup = 0x2f00
usbus2 on uhci2
uhci3: <Intel 82801G (ICH7) USB controller USB-D> port 0xb400-0xb41f irq 16 at device 29.3 on pci0
uhci3: LegSup = 0x2f00
usbus3 on uhci3
ehci0: <Intel 82801GB/R (ICH7) USB 2.0 controller> mem 0xfe8f7c00-0xfe8f7fff irq 23 at device 29.7 on pci0
usbus4: EHCI version 1.0
usbus4 on ehci0
pcib3: <ACPI PCI-PCI bridge> at device 30.0 on pci0
pci3: <ACPI PCI bus> on pcib3
re1: <Realtek PCI GBE Family Controller> port 0xe800-0xe8ff mem 0xfebffc00-0xfebffcff irq 18 at device 1.0 on pci3
re1: Using Memory Mapping!
re1: Using line-based interrupt
re1: version:1.93
re1: Ethernet address: 00:e0:53:16:32:05

This product is covered by one or more of the following patents:
US6,570,884, US6,115,776, and US6,327,625.
re1: Ethernet address: 00:e0:53:16:32:05
re2: <Realtek PCI GBE Family Controller> port 0xe400-0xe4ff mem 0xfebff800-0xfebff8ff irq 19 at device 2.0 on pci3
re2: Using Memory Mapping!
re2: Using line-based interrupt
re2: version:1.93
re2: Ethernet address: 00:e0:53:16:31:4f

This product is covered by one or more of the following patents:
US6,570,884, US6,115,776, and US6,327,625.
re2: Ethernet address: 00:e0:53:16:31:4f
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH7 SATA300 controller> port 0xb080-0xb087,0xb000-0xb003,0xac00-0xac07,0xa880-0xa883,0xa800-0xa80f irq 19 at device 31.2 on pci0
ata2: <ATA channel> at channel 0 on atapci0
ata3: <ATA channel> at channel 1 on atapci0
acpi_button0: <Power Button> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
orm0: <ISA Option ROM> at iomem 0xcc800-0xcd7ff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ppc0: cannot reserve I/O port range
est0: <Enhanced SpeedStep Frequency Control> on cpu0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
Timecounters tick every 1.000 msec
nvme cam probe device init
hdacc0: <Realtek ALC662 HDA CODEC> at cad 0 on hdac0
hdaa0: <Realtek ALC662 Audio Function Group> at nid 1 on hdacc0
pcm0: <Realtek ALC662 (Analog 2.0+HP/2.0)> at nid 20,27 and 24,25,26 on hdaa0
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 12Mbps Full Speed USB v1.0
usbus4: 480Mbps High Speed USB v2.0
ugen1.1: <Intel> at usbus1
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen0.1: <Intel> at usbus0
uhub1: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen4.1: <Intel> at usbus4
uhub2: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4
ugen3.1: <Intel> at usbus3
uhub3: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
ugen2.1: <Intel> at usbus2
uhub4: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
uhub1: 2 ports with 2 removable, self powered
uhub0: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
uhub4: 2 ports with 2 removable, self powered
ada0 at ata2 bus 0 scbus0 target 0 lun 0
ada0: <Samsung SSD 850 EVO 250GB EMT02B6Q> ACS-2 ATA SATA 3.x device
ada0: Serial Number S2R5NX0J112688T
ada0: 150.000MB/s transfers (SATA, UDMA5, PIO 512bytes)
ada0: 238475MB (488397168 512 byte sectors)
ada0: quirks=0x3<4K,NCQ_TRIM_BROKEN>
SMP: AP CPU #1 Launched!
cd0 at ata2 bus 0 scbus0 target 1 lun 0
cd0: <HL-DT-ST DVD+-RW GH30N A102> Removable CD-ROM SCSI device
cd0: 150.000MB/s transfers (SATA, UDMA5, ATAPI 12bytes, PIO 8192bytes)
cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
Trying to mount root from ufs:/dev/ufs/OPNsense [rw]...
uhub2: 8 ports with 8 removable, self powered
ugen4.2: <Generic> at usbus4
umass0: <Generic Mass Storage Device, class 0/0, rev 2.00/1.00, addr 2> on usbus4
umass0:  SCSI over Bulk-Only; quirks = 0x4001
umass0:2:0: Attached to scbus2
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <Generic- SD/MMC 1.00> Removable Direct Access SCSI device
da0: Serial Number 058F63626420
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
da0: quirks=0x2<NO_6_BYTE>
da1 at umass-sim0 bus 0 scbus2 target 0 lun 1
da1: <Generic- Compact Flash 1.01> Removable Direct Access SCSI device
da1: Serial Number 058F63626420
da1: 40.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present
da1: quirks=0x2<NO_6_BYTE>
da2 at umass-sim0 bus 0 scbus2 target 0 lun 2
da2: <Generic- SM/xD Picture 1.02> Removable Direct Access SCSI device
da2: Serial Number 058F63626420
da2: 40.000MB/s transfers
da2: Attempt to query device size failed: NOT READY, Medium not present
da2: quirks=0x2<NO_6_BYTE>
da3 at umass-sim0 bus 0 scbus2 target 0 lun 3
da3: <Generic- MS/MS-Pro 1.03> Removable Direct Access SCSI device
da3: Serial Number 058F63626420
da3: 40.000MB/s transfers
da3: Attempt to query device size failed: NOT READY, Medium not present
da3: quirks=0x2<NO_6_BYTE>
em0: link state changed to UP
aesni0: No AESNI support.
coretemp0: <CPU On-Die Thermal Sensors> on cpu0
coretemp1: <CPU On-Die Thermal Sensors> on cpu1
em0: link state changed to DOWN
re2: link state changed to UP
re1: link state changed to UP
re0: link state changed to UP
pflog0: promiscuous mode enabled
em0: link state changed to UP
Title: Re: Wrong speed and duplex after upgrade to 17.1.6
Post by: franco on May 31, 2017, 12:07:48 pm
You could reinstall/reimport from 17.1.4 and see if the speed comes back, but I suspect this is a local hardware issue.


Cheers,
Franco