ictdesigntools.optical.interfaces¶
Optical interfaces (transceivers) and whether a planned link meets them, from
data/interfaces.toml.
Each interface gives its transmitter's launch power, its receiver's sensitivity, the path attenuation and penalty it is specified for, and what it tolerates: chromatic dispersion at each end of its wavelength range, differential group delay and, for amplified links, OSNR.
assess() takes a link of optical.dispersion.Spans plus its connections and splices and
reports, item by item, whether the interface works over it:
- Attenuation: fibre loss at the worst wavelength in the interface's range, plus connections, splices, other loss and a margin, against the interface's maximum (and its minimum, below which the receiver may overload).
- Chromatic dispersion at each end of the range, against the tolerance there.
- PMD: the chance that the instantaneous DGD exceeds the receiver's tolerance, from the
Maxwellian distribution of DGD about the link's mean, against
outage_probability.
>>> from ictdesigntools.optical.dispersion import Span
>>> a = assess("p1l1-2d2", [Span("G.652.D", 60)], connections=2, splices=6)
>>> a.passes, round(a.attenuation_db, 2)
(True, 19.6)
>>> a = assess("p1l1-2d2", [Span("G.652.D", 100)])
>>> a.passes, [r.what for r in a.results if not r.passes]
(False, ['attenuation', 'chromatic dispersion at 1530 nm', 'chromatic dispersion at 1565 nm'])
Span
dataclass
¶
length_km of one fibre category, with compensation_ps_per_nm added at its end
(negative to compensate positive dispersion).
InterfaceError ¶
Bases: ValueError
An unknown interface, or a link it cannot be assessed over.
Interface
dataclass
¶
Interface(
slug: str,
name: str,
family: str,
nm: tuple[float, float],
launch_min_dbm: float,
launch_max_dbm: float,
sensitivity_dbm: float,
source: str,
overload_dbm: float | None = None,
attenuation_db: tuple[float, float] | None = None,
path_penalty_db: float = 0.0,
cd_max_ps_per_nm: tuple[float, float] | None = None,
cd_min_ps_per_nm: float | None = None,
dgd_max_ps: float | None = None,
osnr_db: float | None = None,
pre_fec_ber: float | None = None,
fiber: str = "",
)
amplified
property
¶
amplified: bool
An amplified (DWDM) interface: its reach is set by OSNR, not by attenuation.
Assessment
dataclass
¶
dgd_exceed_probability ¶
The chance that a Maxwellian-distributed DGD of mean mean_dgd_ps exceeds
dgd_ps.
Source code in src/ictdesigntools/optical/interfaces.py
assess ¶
assess(
iface: str | Interface,
spans,
connections: int = 0,
splices: int = 0,
other_loss_db: float = 0.0,
margin_db: float = 0.0,
connection_loss_db: float = CONNECTION_LOSS_DB,
splice_loss_db: float = SPLICE_LOSS_DB,
outage_probability: float = OUTAGE_PROBABILITY,
) -> Assessment
Whether iface works over a link of spans with connections mated pairs,
splices, other_loss_db (splitters, filters) and margin_db.