Optical Channel Models
This module provides layers and functions that implement channel models for (fiber) optical communications.
The currently only available model is the split-step Fourier method (SSFM
, for dual- and
single-polarization) that can be combined with an Erbium-doped amplifier (EDFA
).
The following code snippets show how to setup and simulate the transmission over a single-mode fiber (SMF) by using the split-step Fourier method.
# init fiber
span = sionna.phy.channel.optical.SSFM(
alpha=0.046,
beta_2=-21.67,
f_c=193.55e12,
gamma=1.27,
length=80,
n_ssfm=200,
n_sp=1.0,
t_norm=1e-12,
with_amplification=False,
with_attenuation=True,
with_dispersion=True,
with_nonlinearity=True,
dtype=tf.complex64)
# init amplifier
amplifier = sionna.phy.channel.optical.EDFA(
g=4.0,
f=2.0,
f_c=193.55e12,
dt=1.0e-12)
@tf.function
def simulate_transmission(x, n_span):
y = x
# simulate n_span fiber spans
for _ in range(n_span):
# simulate single span
y = span(y)
# simulate amplifier
y = amplifier(y)
return y
Running the channel model is done as follows:
# x is the optical input signal, n_span the number of spans
y = simulate_transmission(x, n_span)
For further details, the tutorial “Optical Channel with Lumped Amplification” provides more sophisticated examples of how to use this module.
For the purpose of the present document, the following symbols apply:
Time normalization for the SSFM in |
|
Distance normalization the for SSFM in |
|
Bandwidth |
|
Attenuation coefficient in |
|
Group velocity dispersion coeff. in |
|
Carrier frequency in |
|
Nonlinearity coefficient in |
|
Fiber length in |
|
Planck constant |
|
Number of SSFM simulation steps |
|
Spontaneous emission factor of Raman amplification |
|
Normalized simulation time step in |
|
Normalized simulation step size in |
|
Amplifier gain |
|
Amplifier’s noise figure |
|
Noise spectral density |
|
Signal power |
|
Linear SSFM operator [A2012] |
|
Non-linear SSFM operator [A2012] |
|
Simulation bandwidth |
Remark: Depending on the exact simulation parameters, the SSFM algorithm may require dtype=tf.complex128
for accurate simulation results. However, this may increase the simulation complexity significantly.
- class sionna.phy.channel.SSFM(alpha=0.046, beta_2=-21.67, f_c=193550000000000.0, gamma=1.27, half_window_length=0, length=80, n_ssfm=1, n_sp=1.0, sample_duration=1.0, t_norm=1e-12, with_amplification=False, with_attenuation=True, with_dispersion=True, with_manakov=False, with_nonlinearity=True, phase_inc=0.0001, swap_memory=True, precision=None, **kwargs)[source]
Block implementing the split-step Fourier method (SSFM)
The SSFM (first mentioned in [HT1973]) numerically solves the generalized nonlinear Schrödinger equation (NLSE)
for an unpolarized (or single polarized) optical signal; or the Manakov equation (according to [WMC1991])
for dual polarization, with attenuation coefficient
, group velocity dispersion parameters , and nonlinearity coefficient . The noise terms and , respectively, stem from an (optional) ideally distributed Raman amplification with spontaneous emission factor . The optical signal has the unit . For the dual polarized case, is a vector consisting of the signal components of both polarizations.The symmetrized SSFM is applied according to Eq. (7) of [FMF1976] that can be written as
where only the single-polarized case is shown. The integral is approximated by
with and denoting the linear and nonlinear SSFM operator, respectively [A2012].Additionally, ideally distributed Raman amplification may be applied, which is implemented as in [MFFP2009]. Please note that the implemented Raman amplification currently results in a transparent fiber link. Hence, the introduced gain cannot be parametrized.
The SSFM operates on normalized time
(e.g., ) and distance units (e.g., ). Hence, all parameters as well as the signal itself have to be given with the same unit prefix for the same unit (e.g., always pico for time, or kilo for distance). Despite the normalization, the SSFM is implemented with physical units, which is different from the normalization, e.g., used for the nonlinear Fourier transform. For simulations, only has to be provided.To avoid reflections at the signal boundaries during simulation, a Hamming window can be applied in each SSFM-step, whose length can be defined by
half_window_length
.Example
Setting-up:
>>> ssfm = SSFM( >>> alpha=0.046, >>> beta_2=-21.67, >>> f_c=193.55e12, >>> gamma=1.27, >>> half_window_length=100, >>> length=80, >>> n_ssfm=200, >>> n_sp=1.0, >>> t_norm=1e-12, >>> with_amplification=False, >>> with_attenuation=True, >>> with_dispersion=True, >>> with_manakov=False, >>> with_nonlinearity=True)
Running:
>>> # x is the optical input signal >>> y = ssfm(x)
- Parameters:
alpha (float, (default 0.046)) – Attenuation coefficient
inbeta_2 (float, (default -21.67)) – Group velocity dispersion coefficient
inf_c (float, (default 193.55e12)) – Carrier frequency
ingamma (float, (default 1.27)) – Nonlinearity coefficient
inhalf_window_length (int, (default 0)) – Half of the Hamming window length
length (float, (default 80.0)) – Fiber length
inn_ssfm (int, (default 1) | “adaptive”) – Number of steps
. Set to “adaptive” to use nonlinear-phase rotation to calculate the step widths adaptively (maxmimum rotation can be set in phase_inc).n_sp (float, (default 1.0)) – Spontaneous emission factor
of Raman amplificationsample_duration (float, (default 1.0)) – Normalized time step
int_norm (float, (default 1e-12)) – Time normalization
inwith_amplification (bool, (default False)) – Enable ideal inline amplification and corresponding noise
with_attenuation (bool, (default True)) – Enable attenuation
with_dispersion (bool, (default True)) – Apply chromatic dispersion
with_manakov (bool, (default False)) – Considers axis [-2] as x- and y-polarization and calculates the nonlinear step as given by the Manakov equation
with_nonlinearity (bool, (default True)) – Apply Kerr nonlinearity
phase_inc (float, (default 1e-4)) – Maximum nonlinear-phase rotation in rad allowed during simulation. To be used with
n_ssfm
= “adaptive”.swap_memory (bool, (default True)) – Use CPU memory for while loop
precision (None (default) | “single” | “double”) – Precision used for internal calculations and outputs. If set to None,
precision
is used.
- Input:
x ([…,n] or […,2,n], tf.complex) – Input signal in
. Ifwith_manakov
is True, the second last dimension is interpreted as x- and y-polarization, respectively.- Output:
y (Tensor (same shape as
x
), tf.complex) – Channel output
- class sionna.phy.channel.EDFA(g=4.0, f=7.0, f_c=193550000000000.0, dt=1e-12, with_dual_polarization=False, precision=None, **kwargs)[source]
Block implementing a model of an Erbium-Doped Fiber Amplifier
Amplifies the optical input signal by a given gain and adds amplified spontaneous emission (ASE) noise.
The noise figure including the noise due to beating of signal and spontaneous emission is
, where ideally the detector is limited by shot noise only, and is the signal-to-noise-ratio. Shot noise is neglected here but is required to derive the noise power of the amplifier, as otherwise the input SNR is infinitely large. Hence, for the input SNR, it follows [A2012] that , where denotes Planck’s constant, is the signal power, and the considered bandwidth. The output SNR is decreased by ASE noise induced by the amplification. Note that shot noise is applied after the amplifier and is hence not amplified. It results that , where is the parametrized gain. Hence, one can write the former equation as . Dropping shot noise again results in .For a transparent link, e.g., the required gain per span is
. The spontaneous emission factor is . According to [A2012] and [EKWFG2010] combined with [BGT2000] and [GD1991], the noise power spectral density of the EDFA per state of polarization is obtained as . At simulation frequency , the noise has a power of , where the factor accounts for the unpolarized noise (for dual polarization the factor is per polarization). Here, the notation means that this is the noise introduced by a single EDFA.Example
Setting-up:
>>> edfa = EDFA( >>> g=4.0, >>> f=2.0, >>> f_c=193.55e12, >>> dt=1.0e-12, >>> with_dual_polarization=False)
Running:
>>> # x is the optical input signal >>> y = EDFA(x)
- Parameters:
g (float, (default 4.0)) – Amplifier gain (linear domain)
f (float, (default 7.0)) – Noise figure (linear domain)
f_c (float, (default 193.55e12)) – Carrier frequency
indt (float, (default 1e-12)) – Time step
inwith_dual_polarization (bool, (default False)) – Considers axis [-2] as x- and y-polarization and applies the noise per polarization
precision (None (default) | “single” | “double”) – Precision used for internal calculations and outputs. If set to None,
precision
is used.
- Input:
x (Tensor, tf.complex) – Optical input signal
- Output:
y (Tensor (same shape as
x
), tf.complex) – Amplifier output
Utility functions
- sionna.phy.channel.utils.time_frequency_vector(num_samples, sample_duration, precision=None)[source]
Compute the time and frequency vector for a given number of samples and duration per sample in normalized time unit.
>>> t = tf.cast(tf.linspace(-n_min, n_max, num_samples), dtype) * sample_duration >>> f = tf.cast(tf.linspace(-n_min, n_max, num_samples), dtype) * 1/(sample_duration*num_samples)
- Input:
num_samples (int) – Number of samples
sample_duration (float) – Sample duration in normalized time
precision (None (default) | “single” | “double”) – Precision used for internal calculations and outputs. If set to None,
precision
is used.
- Output:
t ([
num_samples
], tf.float) – Time vectorf ([
num_samples
], tf.float) – Frequency vector
- References:
- [HT1973]
R. H. Hardin and F. D. Tappert, “Applications of the Split-Step Fourier Method to the Numerical Solution of Nonlinear and Variable Coefficient Wave Equations.”, SIAM Review Chronicles, Vol. 15, No. 2, Part 1, p 423, 1973.
[FMF1976]J. A. Fleck, J. R. Morris, and M. D. Feit, “Time-dependent Propagation of High Energy Laser Beams Through the Atmosphere”, Appl. Phys., Vol. 10, pp 129–160, 1976.
[MFFP2009]N. J. Muga, M. C. Fugihara, M. F. S. Ferreira, and A. N. Pinto, “ASE Noise Simulation in Raman Amplification Systems”, Conftele, 2009.
[A2012] (1,2,3,4,5)G. P. Agrawal, “Fiber-optic Communication Systems”, 4th ed. Wiley Series in Microwave and Optical Engineering 222. New York: Wiley, 2010.
[EKWFG2010]R. J. Essiambre, G. Kramer, P. J. Winzer, G. J. Foschini, and B. Goebel, “Capacity Limits of Optical Fiber Networks”, Journal of Lightwave Technology 28, No. 4, 2010.
[BGT2000]D. M. Baney, P. Gallion, and R. S. Tucker, “Theory and Measurement Techniques for the Noise Figure of Optical Amplifiers”, Optical Fiber Technology 6, No. 2, 2000.
[GD1991]C. R. Giles, and E. Desurvire, “Modeling Erbium-Doped Fiber Amplifiers”, Journal of Lightwave Technology 9, No. 2, 1991.
[WMC1991]P. K. A. Wai, C. R. Menyuk, and H. H. Chen, “Stability of Solitons in Randomly Varying Birefringent Fibers”, Optics Letters, No. 16, 1991.