- // Based on roll-of-factor of 0.5, 87.5 - 12.5 = 75GHz translates to 63.1 GBaud
- LOG.info("Given modulation format is {} and thus rate is 400G", modulationFormat);
- return 400;
+ // DpQam16 is possible for both 31.6 or 63.1 GBaud, for which spectral width is different
+ // Here take the difference of highest and lowest spectral numbers and determine the width
+ LOG.info("The width with guard band {}", (spectrumInformation.getHigherSpectralSlotNumber()
+ - spectrumInformation.getLowerSpectralSlotNumber() + 1) * GridConstant.GRANULARITY);
+ if ((spectrumInformation.getHigherSpectralSlotNumber()
+ - spectrumInformation.getLowerSpectralSlotNumber() + 1) * GridConstant.GRANULARITY == 50.0) {
+ // Based on roll-of-factor of 0.5, 50 - 12.5 = 37.5GHz translates to 31.6 GBaud
+ LOG.info("The baud-rate is 31.6 GBaud");
+ LOG.info("Given modulation format {} with 31.6 Gbaud rate is 200G", modulationFormat);
+ return 200;
+ } else {
+ // Based on roll-of-factor of 0.5, 87.5 - 12.5 = 75GHz translates to 63.1 GBaud
+ LOG.info("The baud-rate is 63.1 GBaud");
+ return 400;
+ }