# Extending GNPy with vendor-specific data¶

GNPy ships with an equipment library containing machine-readable datasheets of networking equipment. Vendors who are willing to contribute descriptions of their supported products are encouraged to submit a patch – or just get in touch with us directly.

This chapter discusses option for modeling performance of EDFA amplifiers, Raman amplifiers, transponders and ROADMs.

## EDFAs¶

An accurate description of the EDFA and especially its noise characteristics is required.
GNPy describes this property in terms of the **Noise Figure (NF)** of an amplifier model as a function of its operating point.
GNPy supports several different noise models, and vendors are encouraged to pick one which describes performance of their equipment most accurately.

### Polynomial NF¶

This model computes the NF as a function of the difference between the optimal gain and the current gain. The NF is expressed as a third-degree polynomial:

This model can be also used for fixed-gain fixed-NF amplifiers. In that case, use:

### Polynomial OSNR (OpenROADM-style for inline amplifier)¶

This model is useful for amplifiers compliant to the OpenROADM specification for ILA (an in-line amplifier). The amplifier performance is evaluated via its incremental OSNR, which is a function of the input power.

### Noise mask (OpenROADM-style for combined preamp and booster)¶

Unlike GNPy which simluates the preamplifier and the booster separately as two amplifiers for best accuracy, the OpenROADM specification mandates a certain performance level for a combination of these two amplifiers. For the express path, the effective noise mask comprises the preamplifier and the booster. When terminating a channel, the same effective noise mask is mandated for a combination of the preamplifier and the drop stage.

GNPy emulates this specification via two special NF models:

The

`openroadm_preamp`

NF model for preamplifiers. This NF model provides all of the linear impairments to the signal, including those which are incured by the booster in a real network.The

`openroadm_booster`

NF model is a special “zero noise” faux amplifier in place of the booster.

### Min-max NF¶

When the vendor prefers not to share the amplifier description in full detail, GNPy also supports describing the NF characteristics via the *minimal* and *maximal NF*.
This approximates a more accurate polynomial description reasonably well for some models of a dual-coil EDFA with a VOA in between.
In these amplifiers, the minimal NF is achieved when the EDFA operates at its maximal (and usually optimal, in terms of flatness) gain.
The worst (maximal) NF applies when the EDFA operates at the minimal gain.

### Dual-stage¶

Dual-stage amplifier combines two distinct amplifiers. Vendors which provide an accurate description of their preamp and booster stages separately can use the dual-stage model for an aggregate description of the whole amplifier.

### Advanced Specification¶

The amplifier performance can be further described in terms of gain ripple, NF ripple, and the dynamic gain tilt. When provided, the amplifier characteristic is fine-tuned as a function of carrier frequency. Note that in this advanced specification tilt is defined vs frequency while tilt_target specified in EDFA instances is defined vs wavelength.

## Raman Amplifiers¶

An accurate simulation of Raman amplification requires knowledge of:

the

*power*and*wavelength*of all Raman pumping lasers,the

*direction*, whether it is co-propagating or counter-propagating,the Raman efficiency of the fiber,

the fiber temperature.

Under certain scenarios it is useful to be able to run a simulation without an accurate Raman description. For these purposes, it is possible to approximate a Raman amplifier via a fixed-gain EDFA with the polynomial NF model using \(\text{a} = \text{b} = \text{c} = 0\), and a desired effective \(\text{d} = NF\). This is also useful to quickly approximate a hybrid EDFA+Raman amplifier.

## Transponders¶

Since transponders are usually capable of operating in a variety of modes, these are described separately.
A *mode* usually refers to a particular performance point that is defined by a combination of the symbol rate, modulation format, and FEC.

The following data are required for each mode:

`bit_rate`

Data bit rate, in \(\text{bits}\times s^{-1}\).

`baud_rate`

Symbol modulation rate, in \(\text{baud}\).

`OSNR`

Minimal required OSNR for the receiver. In \(\text{dB}\)

`tx-osnr`

Initial OSNR at the transmitter’s output. In \(\text{dB}\)

`min-spacing`

Minimal grid spacing, i.e., an effective channel spectral bandwidth. In \(\text{Hz}\).

`roll-off`

Roll-off parameter (\(\beta\)) of the TX pulse shaping filter. This assumes a raised-cosine filter.

`rx-power-min`

and`rx-power-max`

(work in progress) The allowed range of power at the receiver. In \(\text{dBm}\).

`penalties`

Impairments such as Chromatic Dispersion (CD), Polarization Mode Dispersion (PMD), and Polarization Dispersion Loss (PDL) result in penalties at the receiver. The receiver’s ability to handle these impairments can be defined for each mode as a list of {impairment: in defined units, ‘penalty_value’ in dB} (see transceiver section here <json.rst#_transceiver>). Maximum allowed CD, maximum allowed PMD, and maximum allowed PDL should be listed there with corresponding penalties. Impairments experienced during propagation are linearly interpolated between given points to obtain the corresponding penalty. The accumulated penalties are subtracted from the path GSNR before comparing with the minimum required OSNR. Impairments: PMD in \(\text{ps}\), CD in \(\text{ps/nm}\), PDL in \(\text{dB}\), penalty_value in \(\text{dB}\)

GNPy does not directly track the FEC performance, so the type of chosen FEC is likely indicated in the *name* of the selected transponder mode alone.

## ROADMs¶

In a ROADM, GNPy simulates the impairments of the preamplifiers and boosters of line degrees separately. The set of parameters for each ROADM model therefore includes:

`add-drop-osnr`

OSNR penalty introduced by the Add and Drop stages of this ROADM type.

`target-channel-out-power`

Per-channel target TX power towards the egress amplifier. Within GNPy, a ROADM is expected to attenuate any signal that enters the ROADM node to this level. This can be overridden on a per-link in the network topology. Targets can be set using power or power spectral density (see roadm section here <json.rst#__roadm>)

`pmd`

Polarization mode dispersion (PMD) penalty of the express path. In \(\text{ps}\).

Provisions are in place to define the list of all allowed booster and preamplifier types. This is useful for specifying constraints on what amplifier modules fit into ROADM chassis, and when using fully disaggregated ROADM topologies as well.