Cool. I didn't know that.
At 10Gb/s, with the bitstream randomized by the scrambling,
a run length of 72 or more will (by my somewhat flaky
probability calculations) occur roughly once every 30,000
YEARS.... Sounds like pretty conservative design to me!
Presumably SONET also includes some kind of error recovery
mechanism? (Please humour me, I'm totally ignorant about
SONET and similar big-budget telecomms protocols.)
It will drop out then reframe after some ms. This will happen every
now and then (although probably not in the lifetime of the product,
because the probability is quite low as you noted).
When SONET was first envisioned, the composite data stream was made up
by byte interleaving tributaries. The tributaries in turn were were
made up of byte interleaving 64kb/s voice data channels (e.g. E1/DS1,
E3/DS3, etc.).
Each of these channels was independent, so it was basically impossible
to mount a denial of service attack by putting the inverse of the
scrambler sequence in any given channel.
The SONET designers used a (tiny) 7 bit scrambler as it seemed
adequate.
Later (e.g. 1990s), SONET was used to carry to carry bulk data. E.g.
RFC 1619 (Packet over SONET, 1994) maps HDCL frames directly into the
SPE, which in essence means that entire packets (up to 64kbytes) can
appear directly on the fibre with nothing other than the weak
scrambler to improve transition density.
The designers realised their mistake, and RFC 2615 replaced RFC 1619
in 1999. The change added a 43 bit scrambler to the HDLC data before
it was mapped to the SPE:
"The major change from RFC 1619 is the addition of payload
scrambling when inserting the HDLC-like framed PPP packets
into the SONET STS-SPE/SDH Higher Order VC. RFC 1619 was
operationally found to permit malicious users to generate
packets with bit patterns that could create SONET/SDH-layer
low-transition-density synchronization problems, emulation
of the SDH set-reset scrambler pattern, and replication of
the STM-N frame alignment word."
More modern formats (e.g. GFP, which is like POS, but has more useful
header information) retain the 43 bit scrambler.
http://www.ietf.org/rfc/rfc1619.txt
http://www.ietf.org/rfc/rfc2615.txt
Regards,
Allan