1 Introduction

At present, greater than 70 million individuals pay an extra to access data-rich applications utilizing primarily high-speed links like digital subscriber line (DSL), co-axial cable, optical fiber, 4G/5G cellular, and satellite. Millions more want to connect them but are incapable to do so, because of two key reasons i.e. cost and bandwidth demerits. The service providers experience restrictions as they attempt to provide high-speed access to excitedly awaiting users. This is due to the deficit of infrastructure, cost competition, regulatory issues and last mile challenges. Free space optics (FSO) technology can subdue all these issues considerably reducing the cost and deployment time. Interception and interference free transmissions make FSO, an optical wireless communication the most favoured wireless technology. It is line of sight (LOS) communication that offers high data rate (Gbps), utilizing huge optical bandwidth in a cost effective way. Video surveillance along with monitoring, short range connectivity, disaster recovery, back-haul system, security and broadcasting are its applications. In spite of having various merits, FSO has certain disadvantages like the wave propagation is hugely affected by scintillation, turbulence, scattering and molecular absorption. Heavy snow and fog too have a harsh impact on FSO links. Several studied had been completed by different researchers to improve the transmission rate of these links and also proposed various techniques to handle the different atmospheric turbulences (Anuranjana et al. 2022; Kakati and Arya 2019; Mandal et al. 2018).

Further, in the past few years, hybrid passive optical network (PON) and FSO offer a series of significant broadband access technologies that provide several advantages like high quality services, high data rate wired/wireless access and various other cost-effective services. In addition, as resource configuring is a significant feature of any network with expected growth, in particular, the access segments of forthcoming networking configurations PON/FSO. In order to sustain the expected growth in customer density, PON/FSO should embrace scalable layouts, which would permit them to effortlessly support a raised number a full-duplex transmission. The capacity of hybrid PON/FSO systems may be enhanced by using different multiplexing techniques. To scale-up these systems, wavelength division multiplexing (WDM) based PON helps in utilizing the full-capability of FSO systems (Ratnam et al. 2009). Also, the single ray FSO systems are susceptible to varying climate conditions, so multi-ray systems may be combined by employing WDM technique for an improved performance and reducing the turbulent effects (Anuranjana et al. 2022; Naqshbandi and Jha 2016; Xu et al. 2021). Recently, Anuranjana et al. proposed a mode division multiplexing (MDM)-WDM FSO system using dual polarization-quadrature phase shift keying (DP-QPSK) modulation at 1Tbps over 20 km clear weather condition (Anuranjana et al. 2022). Chaudhary et al. illustrated the MDM-WDM using orthogonal frequency division multiplexing radio-over-free-space-optics (OFDM Ro-FSO) at 120 Gbps (Chaudhary et al. 2018). The results show that using donut modes (DT) in the system offers 80 km acceptable transmission distance. Li CY et al., proposed and demonstrated a WDM four level pulse amplitude modulation (4PAM) FSO system and under water communication (UWC) at 100Gbps data rate over 500 m FSO and 5 m in FSO and clean undersea links respectively (Li et al. 2020). In (Singh et al. 2021), a high speed 16 × 10Gbps WDM-FSO system employing OFDM modulation over the FSO link of 10.75 km is proposed. A WDM-FSO system for 51 km transmission distance at 40Gbps is investigated (Yeh et al. 2020a). Ciaramella E et al., successfully implemented a 40Gbps WDM-FSO system over 210 m FSO link for 32 users (Ciaramella et al. 2009). Dayal et al., proposed a 2.5 Gbps WDM FSO system under different weather conditions. The results shows that under light rain a successful 27 km transmission distance can be achieved (Dayal et al. 2017).

Simultaneously, optical code division multiple access (OCDMA) is widely utilized in wireless technologies as it provides attractive pros like security, spectral efficiency, asynchronous data transmission, soft capacity-on-demand etc. (Al-Khafaji et al. 2012). These advantages make OCDMA an engaging technology for next generation PON (NG-PON) based networks. Taking into account the benefits of both hybrid WDM-FSO PON and OCDMA, their integration has enticed researcher, especially tolerance to the environment degrading factor of FSO (Cao and Gan 2012; Moghaddasi et al. 2015; Mukherjee et al. 2020a) This work had been proposed in (Kumar and Singh 2014), where an OCDMA-FSO system upto 8 km at 2.5 Gbps transmission rate is presented. In (Ratnam et al. 2009), a hybrid WDM-OCDMA PON at 2.4 Gbps over 20 km is successfully examined. In (Cao and Gan 2012), a hybrid WDM-OCDMA PON at both downstream and upstream data rate of 2.5 Gbps over 22 km is successfully proposed. Ji et al., designed and demonstrated a 10Gbps FSO-OCDMA system over 1.8 m wireless range (Ji et al. 2020). In (Moghaddasi et al. 2015), a FSO system based on spectral amplitude coding (SAC)-OCDMA over 2.6 km for ten users has been proposed and designed. In these proposed systems, researchers generally focus attention on hybrid or non-hybrid WDM-OCDMA PON with FSO channel but don’t look out to OCDMA codes. Also, the complete scheme of network design based on hybrid WDM-OCDMA-FSO PON for different FSO losses, atmospheric conditions and turbulence are rarely investigated (Cao and Gan 2012; Dutta et al. 2022; Jiao et al. 2019).

The motivation behind the proposed system is to select and advances the 5G technology that handles the wide bandwidth applications and services to best tackle the subscribers’ needs. Although, the recent FSO wireless systems are becoming more advantages for using in fiber-to-the-x (FTTx), hospitals, manufacturing, business and industrial automation applications. But FSO based systems can’t be regarded as a full replacement for various traditional wired systems such as time division multiplexing PON (TDM-PON) and WDM-PON, OCDMA-PON, at a minimum in the mid-way. This is because of wireless systems corns like low throughput per-node, presence of unpredictable communication delays, unwanted congestion and diverse environment conditions. This shortcoming can be overcome by utilizing hybrid fiber-FSO links more preferably in existing energy efficient and next generation PONs. Hence, in this paper a hybrid WDM-FSO-OCDMA PON employing different OCDMA codes with integrated fiber-FSO link is demonstrated to attain the improved capacity, flexibility and efficiency (Alsharif et al. 2018; Cena et al. 2008; Dutta et al. 2021). Also, this system can enhance the network resource utilization, unlock the network potential and forward towards achieving promising research results for the future communication as well as networking demands in different scenario. Moreover, this hybrid bidirectional system reduces multi-access interference (MAI) and phase-induced intensity noise (PIIN), Rayleigh backscattering (RB) noise, and inter-channel interference (ISI) effectively as compared to other conventional PONs (Yeh et al. 2019). The main contributions of this work are as follows:

  • To propose and design the hybrid WDM-FSO-OCDMA PON system employing different OCDMA codes under the impact of different weather conditions viz. clear air, haze, rain and dust-fog as well as FSO channel losses.

  • To compare its performance in terms of different codes viz. modified new zero-cross correlation (MNZCC), multi-diagonal (MD), hadamard, shift zero cross-correlation (ZCC), ZCC, flexible cross correlation (FCC) and modified quadratic congruence (MQC) by considering fiber nonlinearities, attenuation, dispersion and noise.

  • To compare the performance of the proposed system with the previous recent work in literature.

The rest of the paper is organized as—Sect. 2 explains the mathematical analysis of the system performance. Block architecture and simulated design is presented in Sect. 3 followed by results and analysis in Sect. 4. Finally, conclusion is elucidated in Sect. 5.

2 Mathematical analysis of the system performance

To analyse the performance of the hybrid WDM-FSO-OCDMA PON using distinct codes, signal to noise ratio (SNR) and bit error rate (BER) of system are determined using Gaussian approximation under the impact of PIIN (\({\rho }_{PIIN})\), thermal noise (\({\rho }_{thermal})\), shot noise (\({\rho }_{shot})\). The four primary assumptions are considered to analyse the performance of proposed system as below (Anuar et al. 2009):

  • All light sources are un-polarised.

  • All light sources consist of flat spectrum over the bandwidth \(\left[{f}_{0}-\frac{B}{2}, {f}_{0}+\frac{B}{2}\right]\), where f0 and B is central frequency and source bandwidth respectively.

  • All the spectral components have comparable spectral width.

  • Alike power is attained at the receiver side.

  • Synchronized all bits from each subscriber.

At receiver side, photo detector variance, is given as (Bhanja and Panda 2017; Nisar et al. 2019):

$$ \rho^{2} = \rho_{shot} + \rho_{thermal} + \rho_{PIIN} $$
(1)

where,

$$ \rho_{shot} = 2eBi $$
(2)
$$ \rho_{thermal} = \frac{4KBT}{R} $$
(3)
$$ \rho_{PIIN} = i_{PIIN}^{2} Bt $$
(4)

where e, B, i, K, R, T, t and \({i}_{PIIN}\) are electron charge, electric bandwidth, photocurrent, Boltzmann constant, receiver load, receiver noise temperature, source coherent time and photo noise current respectively. Let Pk and Pl are two distinct sequences of code. So, MNZCC code’s correlation properties with direct detection design can be given as (Anuar et al. 2009; Hussein et al. 2011; Panda 2017):

$$\sum\limits_{{j = 1}}^{s} {P_{k} } \left( j \right)P_{l} \left( j \right) = \left\{ {\begin{array}{*{20}l} {w,} \hfill & {Fork = l} \hfill \\ {0,} \hfill & {Else} \hfill \\ \end{array} } \right\}$$
(5)

where s, w and l are number of subscribers, code weight and code length respectively. Further at receiver, the optical source coherent time, t, can be given in terms of single sideband (SSB) power spectral density (PSD) of photodiode (PD) incidence light H(f) as below (Anuar et al. 2009):

$$ t = \frac{{{\text{ }}\int_{0}^{\infty } {H\left( f \right)^{2} df} }}{{\left[ {\int_{0}^{\infty } {H\left( f \right)df} } \right]^{2} }} $$
(6)

In addition, to measure the SNR, PD current (i) is calculated as follows (Hussein et al. 2011):

$$i = R\int\limits_{0}^{\infty } {H\left( f \right)df}$$
(7)

where R presents PD responsivity. Further, the PSD for hybrid PON using MNZCC code is expressed as (Anuar et al. 2009):

$$ \mathop \int \limits_{0}^{\infty } H\left( f \right){ }df = \frac{{P_{{r{ }}} }}{l}\left[ {\left( {s - 1 + w} \right)w} \right] $$
(8)

where Pr means the received power. Hence, the PD current, i can be given as (Anuar et al. 2009):

$$ i = R\frac{{P_{{r{ }}} }}{l}\left[ {\left( {s - 1 + w} \right)w} \right] $$
(9)

and the SNR can be measured as (Bhanja and Panda 2017; Nisar et al. 2019):

$$ SNR = \frac{{i^{2} }}{{i_{{total{ }noise}}^{2} }} $$
(10)

where,

$$ i_{{total{ }noise}}^{2} = { }i_{shot}^{2} + i_{thermal}^{2} + i_{PIIN}^{2} $$
(11)

At receiver side, the total noise current, \({i}_{total noise}^{2}\), with disregarding PIIN noise due to the zero cross-correlation property of MNZCC code with probability of 0.5 of transmission bit ‘1’ can be written as (Anuar et al. 2009):

$$ i_{{total{ }noise}}^{2} = eRB\frac{{P_{{r{ }}} }}{l}\left[ {\left( {s - 1 + w} \right)w} \right] + \frac{4KBT}{R} $$
(12)

Using Eqs. (9), (10) and (12) the SNR for the proposed work using MNZCC, ZCC, MD, MQC, shift ZCC, hadamard, FCC codes can be measured as follow (Anuar et al. 2009):

$$ SNR_{MNZCC} = { }\frac{{2\left[ {\frac{{RwP_{r} }}{l}} \right]^{2} }}{{\left[ {\frac{{P_{r} eBR}}{l}} \right]\left( {s - 1 + w} \right)w + \frac{4BKT}{R}}} $$
(13)
$$ SNR_{ZCC} = { }\frac{{2\left[ {\frac{{RwP_{r} }}{l}} \right]^{2} }}{{\left[ {\frac{{P_{r} eBR}}{N}} \right]\left( {s - 1 + w} \right)w + \frac{4BKT}{R}}} $$
(14)
$$ SNR_{MD} = \frac{{\left[ {\frac{{Rw^{2} P_{r} }}{l}} \right]^{2} }}{{\left[ {\frac{{w^{2} eBRP_{r} }}{l}} \right] + \left[ {\frac{{4BKT_{ } }}{R}} \right]}} $$
(15)
$$ SNR_{MQC} = \frac{{\left[ {\frac{{RP_{r} }}{p}} \right]^{2} }}{{\frac{{BP_{r}^{2} R^{2} s\left( {\frac{s - 1}{p} + p + s} \right)}}{{\left[ {2\Delta B\left( {p + 1} \right)p^{2} } \right]}} + \frac{{eBRP_{r} \left( {p - 1 + 2s} \right)}}{{\left[ {p^{2} + p} \right]}} + \frac{4BTK}{R}}} $$
(16)
$$ SNR_{{Shift{ }ZCC}} = \frac{{\left[ {\frac{{Rw^{2} P_{r} }}{N}} \right]^{2} }}{{\left[ {\frac{{w^{2} eBRP_{r} }}{l}} \right]\left[ {w + 3} \right] + \left[ {\frac{{BR^{2} P_{r} w}}{2\Delta B}} \right] + \left[ {\frac{{2BKT_{ } }}{R}} \right]}} $$
(17)
$$ SNR_{Hadamard} = \frac{4\Delta f}{{B\left( {2^{{c{ }}} - 1} \right)^{2} }} $$
(18)
$$ SNR_{FCC} = \frac{{\left[ {\frac{{RwP_{r} }}{l}} \right]^{2} }}{{\left[ {\frac{{2eBRP_{r} }}{w}} \right]\left[ {w + 3} \right] + BR^{2} \left[ {\frac{{P_{r}^{2} sw}}{{\Delta Bl^{2} }}} \right]\left[ {s + 3} \right] + \frac{{4BKT_{ } }}{R}}} $$
(19)

where p and c present prime number and code’s cardinality ≥ 2 respectively. Ultimately, to evaluate the BER, Gaussian approximation is considered and the obtained BER is given as below (Anuar et al. 2009):

$$ BER = \frac{1}{2}erfc\sqrt{\frac{SNR}{8}} $$
(20)

where erfc implies the error function. Again, the FSO link under distinct atmospheric climate conditions can be given as (Amphawan et al. 2019; Fazea 2019):

$$ P_{r} = P_{t} .{ }\left( {\frac{{a_{r} }}{{\left( {\theta z} \right)^{2} }}} \right) \cdot exp\left( { - \beta z} \right) $$
(21)

where Pt,, ar, z, \(\theta \) and β are the transmitted power, effective receiver antenna aperture area, transmission distance, beam divergence and haze, fog or rain dependence appearance factor respectively. In this work, Gamma Gamma (GG) fading distribution model is chosen for different attenuation over a wide range of atmospheric turbulence as below (Yeh et al. 2020b; Yousif et al. 2019):

$$ f_{x} \left( x \right) = \frac{{2\left( {qt} \right)^{{\left( {\frac{q + t}{2}} \right)}} }}{\Gamma \left( q \right)\Gamma \left( t \right)}.x^{{\left( {\frac{q + t}{2}} \right) - 1}} J_{q - t} \left[ {2\left( {qtx} \right)^{\frac{1}{2}} } \right] $$
(22)

where x, \({J}_{q-t}\) and Γ(.) are atmospheric turbulence, modified Bessel function along with its order (qt) and Gamma function respectively. The number of wide scale effective eddies, (q) and small scale effective eddies (t) are given as (Huszaník et al. 2018; Yeh et al. 2020b; Yousif et al. 2019):

$$ q = \frac{1}{{\left[ {exp\left\{ {\frac{{0.49k_{0}^{2} }}{{\left( {1 + 0.18d^{2} + 0.56k_{0}^{\frac{12}{5}} } \right)^{\frac{7}{6}} }}} \right\} - 1} \right]}} $$
(23)

and

$$ t = \frac{1}{{\left[ {exp\left\{ {\frac{{0.51k_{0}^{2} \left( {1 + 0.18d^{2} + 0.56k_{0}^{\frac{12}{5}} } \right)^{{\frac{ - 5}{6}}} }}{{\left( {1 + 0.90d^{2} + 0.62d^{2} k_{0}^{\frac{12}{5}} } \right)^{\frac{5}{6}} }}} \right\} - 1} \right]}} $$
(24)

where \(d=\sqrt{\frac{k{D}_{r}^{2}}{4z}}\) represents the diameter of the spherical wave with Dr denotes the receiver aperture diameter, \({k}_{0}\) is the aperture-average. Table 1 shows the basic properties of various OCDMA codes for comparative performance analysis of the system.

Table 1 Comparison of various OCDMA codes (Bhanja and Panda 2017; Hussein et al. 2011; Nisar et al. 2019; Panda 2017; Rashidi et al. 2010; Rashidia et al. 2013; Samanta et al. 2019; Wei et al. 2001)

3 System description

Figure 1 illustrates the proposed NG-PON based hybrid WDM-OCDMA-PON at transmission rate of 10/2.5 Gbps downlink/uplink per channel using integrated fiber-FSO link.

Fig. 1
figure 1

Conceptual diagram of bidirectional hybrid WDM-OCDMA PON using integrated fiber-FSO link

For hybrid WDM-OCDMA PON, seven one dimensional OCDMA codes viz. MNZCC, hadamard, MD, shift ZCC, FCC, ZCC and MQC codes are utilized to evaluate the proposed system performance over fiber-FSO link for varying FSO range, fiber length, received power and distinct number of users. Here, the hybrid WDM-OCDMA PON employing distinct codes consists of maximum 12 wavelengths both for downlink (1575–1579.2 nm) and uplink (1260–1264.4 nm) transmission with 0.4 nm channel spacing at 120 Gbps (12 × 10 Gbps) and 30 Gbps (12 × 2.5 Gbps) data rate respectively (Curri et al. 2014; Effenberger and Lin 2009; Mukherjee et al. 2020b).

Also, the integrated fiber-FSO optical access communication is used to achieve the long reach transmission with high capacity and reliability under clear air, haze, rain and dust fog weather conditions. The hybrid WDM-OCDMA-FSO PON can provide wired/wireless access with high reliability and high capacity backhaul support to accomplish the long-reach transmission needs for different services like residential, business and backhaul networks etc. To realize the proposed system under the impact of different environment conditions, major constraints related to FSO link are considered. Figure 2 illustrates the block diagram of the proposed bidirectional hybrid WDM-OCDMA PON with fiber-FSO links.

Fig. 2
figure 2figure 2figure 2

a Architecture of full-duplex hybrid WDM-FSO-OCDMA PON using various codes, b downstream WDM-OCDMA-PON transmitter section for MNZCC code, different code design for c encoder and d decode; uplink e time switch section and f transmitter section

At optical line terminal (OLT) side, for downstream hybrid WDM-OCDMA PON architecture employing MNZCC code x × y (x = number of codes and y = number of available wavelengths), ONUs are sub-divided into x groups, where y users with distinct wavelengths in single group share the same OCDMA code as shown in Fig. 2a. The different wavelengths (1575–1579.2 nm having 0.4 nm spectral width) continuous wave (CW) laser sources at input power (Pin) of 10 dBm are used to originate four optical signals. These signals are modulated with 10 Gbps NRZ pseudo random bit sequence (NRZ-PRBS) at an aggregate bit rate of 120 Gbps (12 × 10 Gbps) using Mach–Zehnder Modulator (MZM). For the proposed code, y CW laser diodes are utilized by x × y ONUs to overcome the cost of system. For this, y wavelengths are multiplexed by array waveguide grading (AWG) multiplexer followed by a power splitter which splits the coded signals into x parts, and then fed into the corresponding AWG1 to AWGx. Further these multi-wavelength coded channels combined by y × 1 AWG1. The downstream WDM-OCDMA-PON transmitter section using MNZCC code is shown in Fig. 2b Also, the encoder design of different code design is presented in Fig. 2c. Then the signals are passed to single x × 1 Ideal Mux, optical circulator and bidirectional single mode fiber (SMF). At the ONU side of WDM-OCDMA PON, all the incoming downward signals form central office (CO) is split into x parts by a 1 × 2 bidirectional power splitter followed by a FSO cannel and then x groups of signals are broadcast to each OCDMA channel for decoding. After decoding, the multi-wavelength signals are demultiplexed by AWG at the corresponding optical network unit (ONU) followed by a receiver section which is used to detect and analysed the performance of system in downstream direction. Here, the receiver section consists of PIN photodetector, low pass Bessel filter and 3R regenerator to convert incoming optical signal to electrical signal, select the specific wavelength and to regenerate the distorted signal respectively. BER analyser is used to analyse the performance of the system in terms of quality (Q) factor, BER, eye diagrams, threshold etc.(Cao and Gan 2012; Kachhatiya and Prince 2016; Mostafa and Mohamed 2017; Nyachionjeka and Makondo 2014; Rashidia et al. 2013; Wei et al. 2001).

For upstream, the hybrid WDM-OCDMA-PON system employing MNZCC code consists of 32 ONUs depends upon the code design. Here, each ONUs tuned using y number of CW lasers (1260–1264.4 nm, spectral width = 0.4 nm, Pin = 0 dBm) by using MZM modulator at 2.5 Gbps NRZ-PRBS data signal, as shown in Fig. 2a. The decoder design of different codes is shown in Fig. 2d. Two cascaded dynamic Y selects are used with different switching time (0 ns to 1.6 ns, with time slot from 0 to 7), for each wavelength as shown in Fig. 2e. The y wavelengths multiplexed by y × 1 AWG multiplexer followed by 1 × 3 Fork and forwarded into four corresponding groups from Subsystem 1_Txup to Subsystem 3_Txup. Here, each Subsystem comprises a y × 1 AWG demultiplexer, y Subsystems for distinct time switching of signals using two dynamic Y selects. Finally the signals are passed through 4 × 1 ideal multiplexer for detection and analysis of received signals as shown in Fig. 2f. The switching time T1 and T2 for two cascaded dynamic selects Y1 and Y2 are given as (Kumari et al. 2019):

$$ T_{1} = {\text{TS}} \cdot \left( {\frac{1}{{\text{Data rate}}}} \right) \cdot \left( {\frac{{\text{SL }}}{{s_{u} }}} \right) $$
(25)

and

$$ T_{2} = {\text{TS}}\cdot\left( {\frac{1}{{\text{Data rate}}}} \right) \cdot \left( {\frac{{\text{SL }}}{{s_{u} }}} \right) + \left( {\frac{{\text{Time window}}}{{s_{u} }}} \right) $$
(26)

where TS, SL and TW present the timeslot (0–7), sequence length (128) and time window (1.28 × 10−08 s). \({s}_{u}\) denotes the number of upstream subscribers using the single upstream frequency at 1550 nm reference wavelength. The code designs of Hadamard, MD, ZCC, shift ZCC, FCC, MNZCC and MQC codes for three downstream and upstream users are presented in both Tables 2 and 3.

Table 2 Hadamard, MD and ZCC codes for three subscribers (Bhanja and Panda 2017; Hussein et al. 2011; Nisar et al. 2019; Panda 2017; Rashidi et al. 2010; Rashidia et al. 2013; Samanta et al. 2019; Wei et al. 2001)
Table 3 Shift ZCC, FCC, MNZCC and MQC codes for three subscribers (Bhanja and Panda 2017; Hussein et al. 2011; Nisar et al. 2019; Panda 2017; Rashidi et al. 2010; Rashidia et al. 2013; Samanta et al. 2019; Wei et al. 2001)

Also, the chip positions for various OCDMA codes used in proposed design is as follows (Bhanja and Panda 2017; Hussein et al. 2011; Nisar et al. 2019; Panda 2017; Rashidi et al. 2010; Rashidia et al. 2013; Samanta et al. 2019; Wei et al. 2001):

MNZCC code

$$ chip{ }\,positions = \left\{ {\begin{array}{*{20}c} {Subsciber\;1 \to 3} \\ {Subsciber\;2 \to 2} \\ {\begin{array}{*{20}c} {Subsciber\;3 \to 4} \\ \end{array} } \\ \end{array} } \right. $$
(27)

MD code

$$ chip\;positions = \left\{ {\begin{array}{*{20}c} {Subsciber\;1 \to 1,6} \\ {Subsciber\;2 \to 2,5} \\ {Subsciber\;3 \to 3,4} \\ \end{array} } \right. $$
(28)

Hadamard code

$$ chip\;positions = \left\{ {\begin{array}{*{20}c} {Subsciber\;1 \to 1,3} \\ {Subsciber\;2 \to 1,2} \\ {Subsciber\;3 \to 1,4} \\ \end{array} } \right. $$
(29)

ZCC code

$$ chip\;positions = \left\{ {\begin{array}{*{20}c} {Subsciber\;1 \to 1,3} \\ {Subsciber\;2 \to 2,5} \\ {Subsciber\;3 \to 4,6} \\ \end{array} } \right. $$
(30)

Shift ZCC code

$$ chip\;positions = \left\{ {\begin{array}{*{20}c} {Subsciber\;1 \to 1,2} \\ {Subsciber\;2 \to 3,4} \\ {Subsciber\;3 \to 5,6} \\ \end{array} } \right. $$
(31)

FCC code

$$ chip\;positions = \left\{ {\begin{array}{*{20}c} {Subsciber\;1 \to 1,2,3,4} \\ {Subsciber\;2 \to 4,5,6,7} \\ {Subsciber\;3 \to 7,8,9,10} \\ \end{array} } \right. $$
(32)

MQC code

$$ chip\;positions = \left\{ {\begin{array}{*{20}c} {Subsciber\;1 \to 1,6,9,11} \\ {Subsciber\;2 \to 2,4,7,11} \\ {Subsciber\;3 \to 1,5,7,8} \\ \end{array} } \right. $$
(33)

Table 4 shows the parameters used for the proposed hybrid WDM-OCDMA PON system using integrated fiber-FSO link.

Table 4 Parameters used for hybrid WDM-OCDMA PON system with integrated fiber-FSO link (Gan and Cao 2011; Kachhatiya and Prince 2016)

4 Result and analysis

In this paper, the simulated performance analysis of a full-duplex hybrid WDM-OCDMA PON employing different OCDMA codes over hybrid fiber-FSO link is presented using Optisystem v.18. Here, the performance of the system is measured at 1575 nm and 1260 nm wavelengths for WDM-OCDMA PON downstream and upstream transmission respectively. Again, the performance of the proposed system is analysed in terms of Q value, log(BER), eye diagrams, received optical power (Pr) in dB and SNR in dB under the impact of weak turbulence condition with distinct climate conditions, shot noise and thermal noise. Here, the fiber length, FSO range, FSO receiver and FSO transmitter aperture diameter are considered as 10 km, 10 m, 10 cm and 10 cm respectively.

In Fig. 3a the performance of the proposed WDM-OCDMA PON with MNZCC code over fiber-FSO link with regards the FSO range for both upstream and downstream transmission under the impact of clear air, haze, rain and dust-fog atmospheric conditions is evaluated. From figure it is observed that as the FSO channel range increases, the incoming coded signal would diverge gradually. From simulation result, when the downstream FSO length is 100, 300 and 500 m the observed Q-factor is 29, 15 and 1 for clear air respectively. For the same FSO link, the obtained Q-factor for haze Q value is 28, 13 and 0, for rain is 26, 9 and 0 as well as for dust-fog is 25, 7 and 0 over 100, 300 and 500 m respectively. Again for the upstream FSO range, the noted Q-factor is 37, 27 and 15 for clear air; 36, 25 and 12 for haze; 35, 23 and 10 for rain and 34, 21 and 8 for dust-for over 100, 300 and 500 m FSO length respectively. It is also seen that hybrid fiber-FSO (10 km + 50–500 m) performs superior with acceptable Q factor (≥ 6) under clear air followed by haze, rain and dust-fog for both uplink and downlink transmission. However, uplink FSO link performs better than downstream due to presence of low input power (0dBm) and low data rate (2.5Gbps) in uplink transmission system. Thus the maximum faithful FSO ranges for downstream and upstream channel are 450 and 600 m for clear air; 350 and 550 m for haze; 330 m and 520 m for rain as well as 300 m and 500 m for dust-fog respectively.

Fig. 3
figure 3figure 3

Calculated Q-Factor vs. FSO range under clear air, haze, rain and dust-fog for both a downstream and upstream transmission, eye diagrams of FSO signals for b downstream and c upstream transmission at 100 and 450 m FSO distance under clear air climate condition

Figure 3b and c presents the eye diagrams over 100 and 450 m for both downstream and upstream transmission respectively. The open eye diagrams show the feasibility of the proposed WDM-FSO-OCDMA PON system under clear weather condition at 10/2.5Gbps per channel bidirectional transmission. However, the closed eyes indicate the effect of fiber non-linearities, ISI and MAI due to different no. users (Mrabet 2020). The comparative analysis of the proposed hybrid system employing MNZCC code with hybrid fiber-FSO links for downlink/uplink transmission for varying FSO range under different weather conditions is tabulated in Table 5.

Table 5 Comparative performance analysis of downlink and uplink hybrid fiber-FSO links for varying FSO range under different environment conditions

The above-reported results illustrate that the proposed PON system for varying FSO range performs best under clear air environment conditions followed by haze, rain and dust-fog for both downlink and uplink transmission.

The number of active users retrieving the proposed system is a significant performance measure of the hybrid fiber-FSO link. The measured no. of users vs. log(BER) for downstream and upstream different OCDMA codes’ signals under clear air is presented in Fig. 4a and b respectively. From both figures it can be seen that when the number of end users retrieving the system increases, the system noise level especially due to MAI and shot noises, increases consequently and system transmission performance declines. Further, when the system employs MNZCC code, when the deciding threshold of the receiver is fix as the superior and log(BER) is at −9 magnitude, most of users can retrieve the system successfully. While when the system uses shift ZCC, MD, MQC, ZCC, Hadamard and FCC codes, only few of the users can reacquire the system. Thus for downstream transmission, MNZCC code can support maximum users upto 100 users [log(BER) = −9] followed by 95 by MD, 95 by shift ZCC, 90 by Hadamard, 90 by ZCC, 75 by MQC and 70 by FCC as shown in Fig. 4a.

Fig. 4
figure 4

Measured no. of users vs. log(BER) for a downstream and b upstream under clear air using different codes

While for uplink transmission, MNZCC code can support more than 100 users [log(BER) = −26] simultaneously followed by MD, FCC, MQC, shift ZCC, ZCC and Hadamard as shown in Fig. 4b. Hence, MNZCC code shows better preformance than other code over upstream hybrid fiber-FSO link than other codes. The comparative analysis of the proposed work employing different codes with hybrid fiber-FSO links for varying no. of users in downlink/uplink transmission under clear air climate condition is tabulated in Table 6.

Table 6 Comparative performance analysis of downlink and uplink hybrid fiber-FSO links (10 km + 10 m) for varying no. of subscribers’ using different OCDMA codes under clear air environment condition

The above-reported results summarized that MNZCC code is most desirable for variable no. of users in both downlink and uplink hybrid fiber-FSO links in terms of minimum BER and high ROP than other codes. Also, uplink transmission shows better performance than downlink transmission.

Figure 5a and b show the graph between log(BER) versus the fiber length for different OCDMA codes for downstream and upstream transmission respectively. From Fig. 5a, it has been seen that there is a considerable increase in the log(BER) values from −24 to −4, −22 to −2, −23 to 1, −17 to −3, −21 to −3, −21 to −1 and −20 to −3.5 for downstream transmission distance from 10 to 60 km in case of MZNCC, MD, Hadamard, shift ZCC, ZCC, FCC and MQC respectively. Similarly Fig. 5b also shows that BER values increases from −33 to −24, −26 to −13, −24 to −4, −21 to −11, −27 to −5, −27.5 to −11 and −26 to −2 for upstream transmission distance from 10 to 60 km in case of MZNCC, MD, Hadamard, shift ZCC, ZCC, FCC and MQC respectively. The increase in BER values w.r.t. length is due to presence of fiber non linearities, ISI, dispersion, attenuation and noise in the system. Besides this, MNZCC code shows superior performance followed by MQC, ZCC, shift ZCC, MD, Hadamard and FCC for downlink transmission. Also, it is observed that uplink transmission performs better than downlink transmission for different OCDMA code with best performance by MNZCC followed by Hadamard, MD, ZCC, FCC, MQC and shift ZCC.

Fig. 5
figure 5figure 5

Variation of BER with varying fiber lengths for a downstream, b upstream, eye diagrams of fiber links at 10 and 60 km for c downstream and d upstream transmission

Figure 5c and d present the eye diagrams over 10 and 60 km for both downstream and upstream transmission respectively. Here, the large eye opening indicates the viability of the proposed WDM-FSO-OCDMA PON system employing MNZCC code under clear weather condition at 10/2.5Gbps per channel bidirectional transmission (Mrabet 2020). The comparative analysis of the proposed work employing different codes with hybrid fiber-FSO links for downlink/uplink transmission under clear air climate condition is tabulated in Table 7.

Table 7 Comparative performance analysis of downlink and uplink hybrid fiber-FSO links employing different OCDMA codes for varying fiber distance under clear air environment conditions

The above-reported results predict that MNZCC code is most desirable for variable received optical power in both downlink and uplink hybrid fiber-FSO links in terms of minimum BER and high SNR than other codes. Also, uplink transmission shows better performance than downlink transmission.

Tables 8, 9, 10, 11, 12, 13, 14 and 15 show the comparative analysis of the hybrid WDM-OCDMA PON employing MNZCC code with integrated fiber-FSO link (10 km fiber + 10 m FSO) transmitter and receiver aperture diameter of 10 and 20 cm respectively, under the impact of different environment conditions for downstream and upstream transmission. The system performance is compared for varying beam divergence, transmitter loss, receiver loss, and additional loss in terms received power, SNR and log(BER) over 10 km fiber and 10 m FSO range at 10/2.5 Gbps data rate. It is observed that as the beam divergence, transmitter and receiver losses are increases, the performance of the system decreases under different weather conditions. The performance of system can be best achieved under the impact of clear air, followed by haze, rain and dust-fog. Moreover, upstream transmission shows better performance than downstream due to less ISI, low input power as well as data rate than downstream transmission (Table 16).

Table 8 Comparative performance analysis of downlink hybrid fiber-FSO link in the presence of different transmission losses for clear air weather condition
Table 9 Comparative performance analysis of downlink hybrid fiber-FSO link in the presence of different transmission losses for haze weather condition
Table 10 Comparative performance analysis of downlink hybrid fiber-FSO link in the presence of different transmission losses for rain weather condition
Table 11 Comparative performance analysis of downlink hybrid fiber-FSO link in the presence of different transmission losses for dust-fog weather condition
Table 12 Comparative performance analysis of uplink hybrid fiber-FSO link in the presence of different transmission losses for clear air weather condition
Table 13 Comparative performance analysis of uplink hybrid fiber-FSO link in the presence of different transmission losses for haze weather condition
Table 14 Comparative performance analysis of uplink hybrid fiber-FSO link in the presence of different transmission losses for rain weather condition
Table 15 Comparative performance analysis of uplink hybrid fiber-FSO link in the presence of different transmission losses for dust-fog weather condition
Table 16 Performance comparison of the proposed PON system with different OCDMA codes

The comparative analysis of the proposed system employing MNZCC code with other different codes means DCS, MDW, EDW, hadamard and MQC is tabulated in Table 15. From table it is clear that the proposed work at less weight and code length can handle more no. of users with zero cross-correlation. Also, the code construction of MNZCC is simple, hence simple encoder decoder design which reduces the cost of the system. Hence, the bidirectional hybrid WDM-OCDMA PON employing MNZCC code with integrated fiber-FSO link under clear air atmospheric condition offers many benefits like high transmission rate, long-reach transmission, cost-effeteness, easy upgradeability, reliability, scalability and security by supporting a large number of subscribers.

5 Conclusion

A hybrid full-duplex 120/30Gbps WDM-OCDMA PON employing seven OCDMA codes viz. MNZCC, MD, ZCC, hadamard, shift ZCC, FCC and MQC with hybrid fiber-FSO link under different weather conditions over long reach (60 km fiber + 500 m FSO) to allow the information to the wired as well as wireless 68 subscribers is proposed and investigated. Employment of MNZCC code for downlink and uplink transmission in the hybrid fiber-FSO are the primary steps to avoid the transmission impairments like fiber non-linearities, ISI, noise and dispersion under the impact of adverse atmospheric conditions. Integrated fiber-FSO link in proposed system improves the data transmitting capacity, offers ‘pay-as-you-grow’ features, security and reduce the overall system cost by reducing number of encoders/decoders even in unworkable environment restrictions. Minimum BER value (approx. 10–9), high received power (dBm), high Q-factor, eye diagrams and high SNR (dB) also presents maintenance of viability condition of the proposed system. It is analysed that the proposed system performs well under clear air climate condition followed by haze, rain and dust-fog. The results reported that the over the fiber length of 10 km, the long wireless FSO range of 450 m having received power of −4dBm and more than 500 m having received power of −2dBm downlink and uplink transmission can be achieved in the proposed system at 10/2.5Gbps transmission rate under clear air. While under haze, rain and dust-fog atmospheric condition, the maximum achieved FSO range are 350, 330 and 300 m for downstream and 550, 520, 500 m for upstream respectively. In addition, the comparative analysis of the proposed system using distinct OCDMA codes over 10 km fiber and 10 m FSO range demonstrate that modified NZCC code performs superior than other codes in terms of handling 100 no. of users in downlink and even more than this for uplink transmission at received power of −12 and −8 dBm respectively at log(BER) of −9. Moreover, for the hybrid fiber-FSO link (10 m + 60 km) range, the proposed system employing modified NZCC code provides quite high SNR of 30 dB and 34 dB at downstream received power of 3dBm and upstream received power of 4dBm respectively. The beam divergence, transmitter and receiver losses are also measured for different weather conditions over the integrated fiber-FSO link (10 km fiber + 10 m FSO) to check and determine the best possible performance of system for both downstream and upstream transmission. On comparison with other exiting previous work, the hybrid 160/40Gnps full-duplex WDM-OCDMA PON employing modified NZCC code expresses the potential to handle large no. of users, long-reach transmission, data rate and security. Therefore the advantages of channelization, integration and low power consumption of hybrid WDM-FSO-OCDMA PON offer a promising result on constructing the next generation fronthaul/backhaul integrated wired-wireless links.