How can I check SFP module support?

Hi!

I purchased the FS GPON-ONU-34-20BI from fs.com. Customer service got back to me quickly, as it seems that the module was designed for 1-Gbps interfaces. FS kindly offered to return the product with a refund if it didn’t work properly with the BPI R3 v.1.1.

I’m a beginner in networking but I’m still learning. I selected this GPON module because some people reported that it worked on their ISP’s optical network (I’m subscribed to the same ISP). I’d like to connect the BPI R3 with fiber (FTTH). Connecting to the network requires various settings that I’m not yet familiar with. Simply plugging in the fiber is not enough to establish a valid connection.

However, on a well-known community website, people explain how to replace my ISP router. They recommend the same GPON module. So I think it’s quite feasible with some effort.

So my main concern is about the module’s compatibility with BPI R3. I read in the thread entitled “BPI-R3 SFP Module compatibility” that this module was functional with the BPI R3. But my information is incomplete, with some contradictions.

FS provides a data sheet for this GPON module: https://resource.fs.com/mall/doc/20230602104119uvmsei.pdf

  • OpenWrt 5.15.114
  • [ethtool eth1] SFP module not plugged
root@OpenWrt:~# ethtool eth1
Settings for eth1:
        Supported ports: [ MII ]
        Supported link modes:   2500baseX/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  2500baseX/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 2500Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: no
  • [dmesg output] SFP module hot-plugged, no fiber cable connected.
root@OpenWrt:~# dmesg | grep -A3 -B3 -i 'eth1\|sfp'
[    1.004335] 0x000000080000-0x000000380000 : "reserved"
[    1.012784] 0x000000000000-0x000000080000 : "bl2"
[    1.153447] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc009780000, irq 134
[    1.163238] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc009780000, irq 134
[    1.172787] i2c_dev: i2c /dev entries driver
[    1.178556] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.187085] NET: Registered PF_INET6 protocol family
--
[   12.929745] crypto-safexcel 10320000.crypto: EIP97:230(0,1,4,4)-HIA:270(0,5,5),PE:150/433(alg:7fcdfc00)/0/0/0
[   12.943792] Loading modules backported from Linux version v6.1.24-0-g0102425ac76b
[   12.951395] Backport generated by backports.git v5.15.92-1-44-gd6ea70fafd36
[   12.961668] sfp sfp1: Host maximum power 3.0W
[   12.966769] sfp sfp2: Host maximum power 3.0W
[   13.566419] mt7986-wmac 18000000.wmac: HW/SW Version: 0x8a108a10, Build Time: 20221012174743a
[   13.566419] 
[   14.056547] mt7986-wmac 18000000.wmac: WM Firmware Version: ____000000, Build Time: 20221012174805
--
[   20.809068] br-lan: port 4(lan4) entered blocking state
[   20.814307] br-lan: port 4(lan4) entered forwarding state
[   20.820168] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   20.828433] mt7530-mdio mdio-bus:1f sfp2: configuring for inband/2500base-x link mode
[   20.838023] br-lan: port 5(sfp2) entered blocking state
[   20.843251] br-lan: port 5(sfp2) entered disabled state
[   20.850584] device sfp2 entered promiscuous mode
[   20.859190] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/2500base-x link mode
[   20.869079] br-wan: port 1(eth1) entered blocking state
[   20.874387] br-wan: port 1(eth1) entered disabled state
[   20.879818] device eth1 entered promiscuous mode
[   20.885994] br-wan: port 1(eth1) entered blocking state
[   20.891257] br-wan: port 1(eth1) entered forwarding state
[   20.898325] mt7530-mdio mdio-bus:1f wan: configuring for phy/gmii link mode
[   20.908337] br-wan: port 2(wan) entered blocking state
[   20.910044] mt7530-mdio mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control rx/tx
--
[   20.927800] device wan entered promiscuous mode
[   20.934625] br-wan: port 2(wan) entered blocking state
[   20.939751] br-wan: port 2(wan) entered forwarding state
[   21.992193] br-wan: port 1(eth1) entered disabled state
[   21.998024] br-lan: port 6(phy1-ap0) entered blocking state
[   22.003646] br-lan: port 6(phy1-ap0) entered disabled state
[   22.009413] device phy1-ap0 entered promiscuous mode
--
[   23.452706] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-ap0: link becomes ready
[   23.459427] br-lan: port 7(phy0-ap0) entered blocking state
[   23.464998] br-lan: port 7(phy0-ap0) entered forwarding state
[ 3429.621907] sfp sfp1: please wait, module slow to respond
[ 3475.001677] sfp sfp1: module FS               GPON-ONU-34-20BI rev 01   sn G2310030172      dc 230315  
[ 3475.011082] mtk_soc_eth 15100000.ethernet eth1: switched to inband/1000base-x link mode
[ 3475.050815] hwmon hwmon4: temp1_input not attached to any thermal zone
  • [ethtool eth1] SFP module hot-plugged, no fiber cable connected
Settings for eth1:
        Supported ports: [ FIBRE ]
        Supported link modes:   1000baseX/Full
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  1000baseX/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  1000baseX/Full
        Link partner advertised pause frame use: No
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: FIBRE
        PHYAD: 0
        Transceiver: internal
        Current message level: 0x000000ff (255)
                               drv probe link timer ifdown ifup rx_err tx_err
        Link detected: no
  • [ethtool -m eth1] SFP module hot-plugged, no fiber cable connected
root@OpenWrt:~# ethtool -m eth1
        Identifier                                : 0x03 (SFP)
        Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
        Connector                                 : 0x01 (SC)
        Transceiver codes                         : 0x00 0x00 0x00 0x02 0x00 0x00 0x00 0x00 0x00
        Transceiver type                          : Ethernet: 1000BASE-LX
        Encoding                                  : 0x03 (NRZ)
        BR, Nominal                               : 1200MBd
        Rate identifier                           : 0x00 (unspecified)
        Length (SMF,km)                           : 20km
        Length (SMF)                              : 20000m
        Length (50um)                             : 0m
        Length (62.5um)                           : 0m
        Length (Copper)                           : 0m
        Length (OM3)                              : 0m
        Laser wavelength                          : 1310nm
        Vendor name                               : FS
        Vendor OUI                                : 00:00:00
        Vendor PN                                 : GPON-ONU-34-20BI
        Vendor rev                                : 01
        Option values                             : 0x00 0x1a
        Option                                    : RX_LOS implemented
        Option                                    : TX_FAULT implemented
        Option                                    : TX_DISABLE implemented
        BR margin, max                            : 0%
        BR margin, min                            : 0%
        Vendor SN                                 : G2310030172
        Date code                                 : 230315
        Optical diagnostics support               : Yes
        Laser bias current                        : 10.804 mA
        Laser output power                        : 0.0001 mW / -40.00 dBm
        Receiver signal average optical power     : 0.0001 mW / -40.00 dBm
        Module temperature                        : 55.48 degrees C / 131.86 degrees F
        Module voltage                            : 3.3497 V
        Alarm/warning flags implemented           : Yes
        Laser bias current high alarm             : Off
        Laser bias current low alarm              : Off
        Laser bias current high warning           : Off
        Laser bias current low warning            : Off
        Laser output power high alarm             : Off
        Laser output power low alarm              : On
        Laser output power high warning           : Off
        Laser output power low warning            : On
        Module temperature high alarm             : Off
        Module temperature low alarm              : Off
        Module temperature high warning           : Off
        Module temperature low warning            : Off
        Module voltage high alarm                 : Off
        Module voltage low alarm                  : Off
        Module voltage high warning               : Off
        Module voltage low warning                : Off
        Laser rx power high alarm                 : Off
        Laser rx power low alarm                  : On
        Laser rx power high warning               : Off
        Laser rx power low warning                : On
        Laser bias current high alarm threshold   : 90.000 mA
        Laser bias current low alarm threshold    : 0.000 mA
        Laser bias current high warning threshold : 70.000 mA
        Laser bias current low warning threshold  : 0.000 mA
        Laser output power high alarm threshold   : 6.3095 mW / 8.00 dBm
        Laser output power low alarm threshold    : 0.5623 mW / -2.50 dBm
        Laser output power high warning threshold : 5.0118 mW / 7.00 dBm
        Laser output power low warning threshold  : 0.7079 mW / -1.50 dBm
        Module temperature high alarm threshold   : 90.00 degrees C / 194.00 degrees F
        Module temperature low alarm threshold    : -45.00 degrees C / -49.00 degrees F
        Module temperature high warning threshold : 85.00 degrees C / 185.00 degrees F
        Module temperature low warning threshold  : -40.00 degrees C / -40.00 degrees F
        Module voltage high alarm threshold       : 3.6000 V
        Module voltage low alarm threshold        : 3.0000 V
        Module voltage high warning threshold     : 3.5000 V
        Module voltage low warning threshold      : 3.1000 V
        Laser rx power high alarm threshold       : 0.3162 mW / -5.00 dBm
        Laser rx power low alarm threshold        : 0.0008 mW / -30.97 dBm
        Laser rx power high warning threshold     : 0.2511 mW / -6.00 dBm
        Laser rx power low warning threshold      : 0.0010 mW / -30.00 dBm

Is there anything I can do?

First, change your router’s lan ip to something different, than 192.168.1.x in case, if your sfp module has 192.168.1.1 ip address. Then, I recommend you to make alias for your sfp module. Example: Link Change ip address ofc. Try to reach sfp module’s web interface.

Second - you need to copy settings from your “old” optical terminal to sfp module. You should copy, at least, serial number, ploam password. Maybe onu mac address and vlan too.

Also, what type of internet auth do you have? Pppoe? Simple dhcp?

@Voidstranger

Thank you for your help!

Unfortunately, my ISP router cannot work in bridge mode. It will probably take me several days to study the information available on my ISP’s configuration and what to do. Indeed, I can read what other subscribers from my ISP have done to achieve this.

It seems to me that I need to plug the fiber cable into the SFP module of my BPI R3 in order to be able to connect to the GPON SFP module via SSH. Hack GPON provides some information about this module.

I also need to read some information about OpenWrt (read the documentation) and network security.

It seems to me that this is IPv6 (and DHCPv4&v6).

So, I prefer to read the information I have before joining the fiber cable to BPI R3 because I don’t want to expose the security of the local network or cause my Internet connectivity to malfunction.

@Voidstranger

Luckily, I managed to connect to the GPON ONU module’s network interface via SSH. It’s a long way to go.

I’ve read that we need an SFP/RJ45 converter or a switch to connect to the GPON SFP ONT module. As I don’t have any switch, I first initialized the BPI-R3 to use it as a switch.

  1. Set up OpenWrt as a Network Switch
  2. Checked that the BPI R3 works as a switch
  3. Logged in my ISP router’s admin interface (Web page)
  4. Looked at network devices detected on the LAN, in the Web interface
  5. Noticed that the BPI R3 had no IP address
  6. Assigned a static IP address for the BPI R3 from the ISP router interface
  7. Logged out from the ISP router’s admin interface
  8. Rebooted the BPI R3
  9. Scanned the local network from my PC using nmap
  10. Noticed that the SFP GPON ONU module’s network interface appeared with the default IP address
  11. Logged into the SFP GPON ONU module via SSH using the default identifier and password (but with cryptic command arguments).

Next, I need to set up the SFP GPON ONU module using the identifiers provided by my ISP.

To be honest, I don’t understand, what devices do you have. What is “ISP’s router”? Are you using BPI-R3 behind ISP’s router? Why? BPI-R3 is a router. Why do you need another one?

Or maybe “ISP’S router” is ISP’S ONU, right?

Why do you need any “converter”? I don’t have any converter or switch. Never had.

I had onu, connected to BPI-R3 WAN port. Now I have just BPI-R3 and sfp module connected to it (no need to use ISP onu anymore). No switches, converters or another routers.

@Voidstranger

This is a home router provided by my ISP to access the Internet. I have no doubt that there are several possible configurations. However, I don’t yet have the knowledge to understand how it works. I used a trial-and-error approach. I could not see the IP address of the GPON SFP module.

Obviously, the aim would be to replace my home router (delivered by my ISP) with the BPI R3.

Anyway, I should be able to modify the firmware information embedded in the GPON SFP module. Indeed, I managed to log in via SSH.

Note: my ISP home router has an integrated ONT. The link junction is between the fiber (FTTH) and the fiber cable (inside the optical outlet). The fiber cable connects the outlet to the ISP home router.

Why did you configure BPI-R3 as switch?

@Voidstranger

I don’t know. It probably depends on several factors specific to my configuration. But I can move on to the next stage. There’s an awful lot to do. Changing the information registered in the firmware doesn’t seem to be the most complicated thing to do. Setting up the ISP connection is going to take me a lot of time and reading. The switch configuration is temporary: just to reset the integrated ONT of the GPON module using the information needed for my ISP connexion.

@tidalf

Can the GPON-ONU-34-20BI module be operated at a data rate of 500-Mbps down/up on a link provided by the ISP connection, using the BPI R3 (eth1, WAN)?

@Voidstranger

My GPON SFP module gets an IP address only after rebooting the BPI R3. My mind confused things. There is no need to configure the BPI as a switch.

@doudootiana

I see you’ve got the same GPON module.

Can the GPON-ONU-34-20BI module be operated at a data rate of 500-Mbps down/up on a link provided by the ISP connection, using the BPI R3 ( eth1 , WAN)?

Hy @gilaro

I didn’t try for 500 mbps by i think it would be ok.

You Say you need to reboot tour R3 to get an IP adress? IS it th IP from isp ? I dont need to reboot my R3 to get one. If you want, i Can share my interface wan configuration.

Good morning! @doudootiana

The BPI R3 was connected behind my ISP router. The optical transceiver didn’t get an IP address. After rebooting the BPI R3, the transceiver (its network interface) receives a private IPv4 address (192.168.1.10).

However, the fiber is not yet connected to the optical transceiver. I haven’t yet mastered all the Internet connection settings (my ISP subscription).

In any case, thank you for your answer. I can’t test it at the moment (at least I can change the settings stored in the transceiver). But it gives me some hope.

Which IS your isp? Mine IS Orange and I manage to plug fibre to sfp gpon.

Hi! @doudootiana: I’ve replied to you by private message.

Since my BPI R3 will be the gateway to the Internet, I prefer to take my time. Normally, I have all the information I think I’ll need later. It’s not difficult to follow indications when things are well laid out (except when taking shortcuts or deviations or because of a lack of knowledge).

Edit: In fact, I wasn’t my plan to have my own router. But self-hosting makes it necessary.